Edit Links |
LyX /
UserInterface
<< | Page list | >>
Customize Menus and Toolbar
Table of contents (hide) 1. General informationLyX allows the configuration of menus and toolbar via .ui files. They are found in your system directory (in the ui folder). Generally, if you change something in the file, copy the file Starting with LyX 1.4.0, several ui files are available. To use an .ui file, set it in the menu Edit→Preferences→Look and feel→User interface and restart LyX to see the changes. NOTE: DO NOT select the file 2. Using Multiple ToolbarsFrom 1.4.0 on, multiple toolbars are provided: the main toolbar, an extra toolbar, a math and a tabular toolbar, plus the minibuffer (which is actually not a toolbar, but treated similarly). Up to LyX 1.3.7, you cannot use multiple toolbars. The toolbars can be enabled and disabled on the bottom of the filedefault.ui or classic.ui , respectively. Look for these lines:Toolbars "standard" "on,top" "extra" "on,top" "table" "off,bottom" "math" "off,bottom" "minibuffer" "off,bottom" EndYou'll find a comment explaining which settings you can use. Amongst others, you can set the tabular and math toolbars to automatically appear only when the cursor is inside math or a table. You'd have to change it as follows: Toolbars "standard" "on,top" "extra" "on,top" "table" "table,bottom" "math" "math,bottom" "minibuffer" "off,bottom" End 3. Modifying the toolbarsThe toolbars are defined in The syntax is pretty straightforward: Item "Tooltip" "lfun"
where So, if you want to use an alternative icon, just put an alternative xpm-image (more recent versions of LyX use png image files) with the appropriate name in your user directory, and LyX will select that automatically. If you want to remove an icon, just comment the according Item out by a preceding If you want to add a new action, follow the above syntax. If no icon is found, LyX will display the tooltip text in the toolbar. 4. Modifying the menusThe menus are defined in The syntax is similar to the toolbar syntax, except that you can set a shortcut in the description part, after the An example of a modified ui file can be found under Tips.ToplevelMathMenu 5. Collection of toolbars5.1 "Toolbar-Extension" for LyX 1.4.x5.2 Ekkehart Schlicht's toolbar for LyX 1.3 (legacy) |