>>>>> "Ernesto" == Ernesto Posse <[EMAIL PROTECTED]> writes:
Ernesto> I have a couple of questions about customizing the toolbar: Ernesto> 1) Is there a lyx function that applies layouts Ernesto> (environments) to a selection or to the current paragraph, Ernesto> which can be used by a (custom) toolbar button? (I didn't Ernesto> find any) Sure, it is called "layout". We even have proper icons for "layout Section" and "layout LyX-Code". You can add your own icons by providing a file layout_foo.xpm for layout "foo". Ernesto> 2) Are there keyboard shortcuts for layouts (environments)? Ernesto> Where would I find those? In LYXDIR/bind/menus.bind. I append the list for your reading pleasure. Note also that when you select a layout from the layout box, you will see the corresponding keyboard shortcut in the minibuffer (the same holds for menu entries and icons). JMarc # # Paragraph style menu # \bind "M-p ~S-0" "layout Part" \bind "M-p ~S-1" "layout Chapter" \bind "M-p ~S-2" "layout Section" \bind "M-p ~S-3" "layout Subsection" \bind "M-p ~S-4" "layout Subsubsection" \bind "M-p ~S-5" "layout Paragraph" \bind "M-p ~S-6" "layout Subparagraph" \bind "M-p ~S-asterisk ~S-0" "layout Part*" \bind "M-p ~S-asterisk ~S-1" "layout Chapter*" \bind "M-p ~S-asterisk ~S-2" "layout Section*" \bind "M-p ~S-asterisk ~S-3" "layout Subsection*" \bind "M-p ~S-asterisk ~S-4" "layout Subsubsection*" \bind "M-p ~S-asterisk ~S-5" "layout Paragraph*" \bind "M-p ~S-asterisk ~S-6" "layout Subparagraph*" \bind "M-p a" "layout Abstract" \bind "M-p S-A" "layout Author" \bind "M-p M-a" "layout Address" \bind "M-p C-a" "layout Right_Address" \bind "M-p b" "layout Itemize" # bulleted list \bind "M-p S-B" "layout Bibliography" \bind "M-p c" "layout LyX-Code" \bind "M-p S-C" "layout Comment" \bind "M-p M-c" "layout Caption" \bind "M-p d" "layout Description" \bind "M-p S-D" "layout Date" \bind "M-p e" "layout Enumerate" # numbered list \bind "M-p f" "layout ShortFoilhead" # Foils!! \bind "M-p S-F" "layout Foilhead" # Foils!! \bind "M-p i" "layout Itemize" # bulleted list \bind "M-p l" "layout List" \bind "M-p S-L" "layout LaTeX" \bind "M-p n" "layout Enumerate" # numbered list \bind "M-p q" "layout Quote" \bind "M-p S-Q" "layout Quotation" \bind "M-p r" "layout ShortRotatefoilhead" # Foils!! \bind "M-p S-R" "layout Rotatefoilhead" # Foils!! \bind "M-p s" "layout Standard" \bind "M-p t" "layout Title" \bind "M-p space" "drop-layouts-choice" \bind "M-p v" "layout Verse"