On 22.07.08, Steve Litt wrote: > Hi all, > In a different thread, Gunter Milde penned these words:
> > You need to clone both, LyX layout:: > > > > Style Questions > > CopyStyle Enumeration > > > That is THE most powerful LyX idiom I've ever seen. > When I have time I'll check whether I can actually change appearances > in LyX like this: > Style MyNewStyle > CopyStyle Standard > LeftMargin MMM > RightMargin MMM > Font > Size Larger > EndFont > End > If that's possible, then within LyX I can see at a glance that my new > style is custom, and that I later have to develop the LaTeX to complete > it. I'd use a different colour (or sans-serif fonts), but this is a matter of taste. Maybe a label (like Label myStyle ) would be an idea as well, but might be too distracting in the text. BTW, you can leave out > CopyStyle Standard if you want to clone Standard, as Standard is what a new style copies by default. > So Gunter -- thanks SO much for that idiom. It makes LyX a much more > useful tool. You are welcome. However, I just found this idiom in the sources (and the Customization guide -- always read the docs). My and your thanks should go to the one who actually implemented the CopyStyle keyword! One more useful idiom: Style MyTemplate Label myStyle LabelFont Series Medium Shape Italic Size Small Color blue EndFont # ... more definitions End Style MyEnv CopyStyle MyTemplate # changes End # more private styles ... # Remove auxiliary style NoStyle MyTemplate See my dinbrief.layout version on the lyx wiki as an example. Günter