<< | Page list | >>
Customize Menus and Toolbar
LyX 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.
From 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 file
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
The toolbars are defined in
The syntax is pretty straightforward:
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.
The 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