On Sun, Nov 14, 2010 at 6:37 PM, Steve Litt <[email protected]> wrote: >> of any progress regarding nesting in a layout files? Does 2.0 have >> anything new to offer? If this is technically feasible, should I file >> a bug report? > > Here is the email where I troubleshot the compile failures down to the > practice of nesting LaTeX code inside LyX styles: > > http://www.mail-archive.com/[email protected]/msg66171.html > > The thread that follows goes into possible solutions and eventually comes to > the conclusion that it's insoluble without modifying LyX files to take LaTeX > out of LyX style defs. > > If one could somehow take all the Preamble...EndPreamble code out of LyX > styles and put it in the document preamble, the compile problems would go > away. > I haven't looked at the two threads attentively, but on a quick check this wasn't discussed: what about using one of the following tricks [1]? \AtEndOfClass {code} \AtEndOfPackage {code} \AtBeginDocument {code}
I'm not sure that the code included in the last command is actually included in the preamble, but I have a feeling that it is treated as if it were. Could this help? [1] http://tex.loria.fr/general/new/clsguide.html#Sec:delays > The only solution I can think of that doesn't involve reconstructing existing > LyX files that distribute with LyX is a script that recurses through all > included LyX files, removes LaTeX embedded in LyX styles, and moves it up to > the document preamble, and then use THAT MASSIVE FILE as your layout file. > Ugly! > Yes, this doesn't sound very nice. :) Regards Liviu > SteveT > > Steve Litt > Recession Relief Package > http://www.recession-relief.US > Twitter: http://www.twitter.com/stevelitt > > -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
