Re: Life changing LyX idiom gives me new productivity
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 LeftMarginMMM RightMargin MMM Font SizeLarger 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 SeriesMedium 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
Re: Life changing LyX idiom gives me new productivity
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 LeftMarginMMM RightMargin MMM Font SizeLarger 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 SeriesMedium 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
Re: Life changing LyX idiom gives me new productivity
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 > LeftMarginMMM > RightMargin MMM > Font > SizeLarger > 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 SeriesMedium 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
Life changing LyX idiom gives me new productivity
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. As most of you know, my biggest objection to LyX is the excruciating pain required to make my own environments in the layout file. Excruciating pain is an overstatement. I was a contract software developer from 1984-2002, so obviously I can make the environments. My problem is that, for me, it's very hard to switch mindsets from author to tech geek and back again in order to create a style. Now I don't have to. When I come upon a situation requiring a new style, I just put this in my layout file: Style MyNewStyle CopyStyle Standard End And I go on about my business. When I have time I'll check whether I can actually change appearances in LyX like this: Style MyNewStyle CopyStyle Standard LeftMarginMMM RightMargin MMM Font SizeLarger 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. After several days or weeks of creating this type of dummy styles, one day I can go into programmer mode and make all the styles without the pressure of having to slam out 2000 words that day. So Gunter -- thanks SO much for that idiom. It makes LyX a much more useful tool. SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
Re: Life changing LyX idiom gives me new productivity
Steve Litt wrote: When I have time I'll check whether I can actually change appearances in LyX like this: Style MyNewStyle CopyStyle Standard LeftMarginMMM RightMargin MMM Font SizeLarger 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. You can do this kind of thing. Later declarations just override earlier ones. Have a look at e.g. stdsections.inc, or the ams layouts, where this idea is used over and over again. rh
Life changing LyX idiom gives me new productivity
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. As most of you know, my biggest objection to LyX is the excruciating pain required to make my own environments in the layout file. Excruciating pain is an overstatement. I was a contract software developer from 1984-2002, so obviously I can make the environments. My problem is that, for me, it's very hard to switch mindsets from author to tech geek and back again in order to create a style. Now I don't have to. When I come upon a situation requiring a new style, I just put this in my layout file: Style MyNewStyle CopyStyle Standard End And I go on about my business. When I have time I'll check whether I can actually change appearances in LyX like this: Style MyNewStyle CopyStyle Standard LeftMarginMMM RightMargin MMM Font SizeLarger 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. After several days or weeks of creating this type of dummy styles, one day I can go into programmer mode and make all the styles without the pressure of having to slam out 2000 words that day. So Gunter -- thanks SO much for that idiom. It makes LyX a much more useful tool. SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
Re: Life changing LyX idiom gives me new productivity
Steve Litt wrote: When I have time I'll check whether I can actually change appearances in LyX like this: Style MyNewStyle CopyStyle Standard LeftMarginMMM RightMargin MMM Font SizeLarger 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. You can do this kind of thing. Later declarations just override earlier ones. Have a look at e.g. stdsections.inc, or the ams layouts, where this idea is used over and over again. rh
Life changing LyX idiom gives me new productivity
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. As most of you know, my biggest objection to LyX is the excruciating pain required to make my own environments in the layout file. "Excruciating pain" is an overstatement. I was a contract software developer from 1984-2002, so obviously I can make the environments. My problem is that, for me, it's very hard to switch mindsets from author to tech geek and back again in order to create a style. Now I don't have to. When I come upon a situation requiring a new style, I just put this in my layout file: Style MyNewStyle CopyStyle Standard End And I go on about my business. When I have time I'll check whether I can actually change appearances in LyX like this: Style MyNewStyle CopyStyle Standard LeftMarginMMM RightMargin MMM Font SizeLarger 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. After several days or weeks of creating this type of dummy styles, one day I can go into programmer mode and make all the styles without the pressure of having to slam out 2000 words that day. So Gunter -- thanks SO much for that idiom. It makes LyX a much more useful tool. SteveT Steve Litt Recession Relief Package http://www.recession-relief.US
Re: Life changing LyX idiom gives me new productivity
Steve Litt wrote: When I have time I'll check whether I can actually change appearances in LyX like this: Style MyNewStyle CopyStyle Standard LeftMarginMMM RightMargin MMM Font SizeLarger 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. You can do this kind of thing. Later declarations just override earlier ones. Have a look at e.g. stdsections.inc, or the ams layouts, where this idea is used over and over again. rh