<pre>Suppose I create two styles.

When Style 1 is in use, I want the LyX editor to add to the preamble the
following code:

usepackage{x}
latex code for style 1

When style 2 is in use, I want to add to the preamble the following
code:
usepackage{x}
latex code for style 2

What I do now to achieve this is

Style Style1
LatexType Environment
LatexName style1
Preamble
usepackage{x}
latex code for style 1
EndPreamble
End

and

Style Style2
LatexType Environment
LatexName style2
DependsOn Style1 # &lt;&lt;&lt;
Preamble
latex code for style 2
EndPreamble
End

but this is somewhat inefficient.
I am looking for a way to add the common line-of-code (usepackage{x}) in
this case when whichever style is used.

So if I use only Style2 in my document, the &lt;latex code for style
1&gt; is not inserted.
Any idea?</pre>
 
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to