On Tue, 18 Mar 2003, gavron wrote::-) Well.. that was the easy part.. That's what named it for now.. "Parts"... Probably something like the more official "Paragraph styles" would make more sense..
[...]
I'll check see if this could easily be replaced by a menu.. something called "Styles" perhaps..? unfortunately I can't think of anything that starts w/ a "P"..
"Paragraphs"?
/Christian
I added this to the "main" description in ~/.lyx/ui/default.ui as:
Submenu "Parts|P" "styles"
and proceeded to create a lengthy "styles" menu:
# # STYLES MENU # Menu "styles" Item "Abstract..." "layout Abstract" Item "Paragraph..." "layout Paragraph" Item "Itemize..." "layout Itemize" Item "LyX-Code..." "layout LyX-Code" Item "Description..." "layout Description" Item "Enumerate..." "layout Enumerate" Item "ShortFoilhead..." "layout ShortFoilhead" Item "Itemize..." "layout Itemize" Item "List..." "layout List" Item "Enumerate..." "layout Enumerate" Item "Quote..." "layout Quote" Item "Standard..." "layout Standard" Item "Title..." "layout Title" Item "Verse..." "layout Verse" Item "Chapter..." "layout Chapter" Item "Section..." "layout Section" Item "Subsection..." "layout Subsection" Item "Subsubsection..." "layout Subsubsection" Item "Paragraph..." "layout Paragraph" Item "Subparagraph..." "layout Subparagraph" Item "Part*..." "layout Part*" Item "Chapter*..." "layout Chapter*" Item "Section*..." "layout Section*" Item "Subsection*..." "layout Subsection*" Item "Subsubsection*..." "layout Subsubsection*" Item "Paragraph*..." "layout Paragraph*" Item "Subparagraph*..." "layout Subparagraph*" Item "Author..." "layout Author" Item "Bibliography..." "layout Bibliography" Item "Comment..." "layout Comment" Item "Date..." "layout Date" Item "Foilhead..." "layout Foilhead" Item "LaTeX..." "layout LaTeX" Item "Quotation..." "layout Quotation" Item "RightAddress..." "layout RightAddress" Item "Address..." "layout Address" Item "Caption..." "layout Caption" End
..by pasting just about everything relevant that I could find in the LyX Customization Guide.. this gave me a nice long menu after I restarted lyx.. w/ all the accelerators.. and switching styles from this menu does work.. but then I realized what I had known all along - ie. that only some of the entries are valid for the current document class.. In other words I would need this menu to be dynamically gen'd to reflect only the valid "styles" for the selected document class..
I wonder if this is possible..? I had tried using the keyword "Layouts" before this but lyx apprently only recognizes it in the "toolbar" section of the ui config file..
Another annoying problem is that the accelerators (Alt_p-s for Standard - eg.) no longer work..! Alt-p opens the menu.. but then I have to select the style by moving the up/down arrows and hitting <enter> when the desired entry is focused..
So for now and since I couldn't altogether get rid of the toolbar anyway I may go back to that peculiar "Layouts" mini-window and make sure I memorize (most of..) the accelerators..
Does the qt GUI also have this feature..?
All the same I still like the idea of having a menu rather than the mini-window.. and having the mini-buffer - or some status bar feature display the "Paragraph style" that is currently active.. Besides giving the GUI a simpler more homogeneous look & feel.. (?) the main reason is that I never use a pointing device unless I have to.. and I haven't found a way to open the styles' mini-window from the keyboard.
If anyone has successfully set this up the way I tried/failed.. I would be interested in hearing from them..
Thanks for reading and all apologies for this lengthy post.
Chris.