Philippe Charpentier a écrit :
Jürgen Spitzmüller a écrit :
Philippe Charpentier wrote:
The Preamble of the Style called by the tag is not put in the Preamble
of the document and LaTeX
does not compile.
So bug 3521?
http://bugzilla.lyx.org/show_bug.cgi?id=3521
Jürgen
I don't think so. If I understand well, bug 3521 is related to non
ascii characters in layouts which is solved now.
I will try to get time to create simple Styles with the same problem
and I will post the result in the list.
PhC
I made the test and my first impression was wright:
Create the following Styles:
Style Test_A
Margin Static
LatexType Command
LatexName TestA
ParIndent MM
ParSkip 0.4
Align Block
AlignPossible Block, Left, Right, Center
LabelType No_Label
Preamble
\def\TestA#1{\textcolor{blue}{#1}}
EndPreamble
End
Style TestA
CopyStyle Test_A
DependsOn Test_A
Preamble
EndPreamble
End
Style TestB
Margin Static
LatexType Command
LatexName TestB
ParIndent MM
ParSkip 0.4
Align Block
AlignPossible Block, Left, Right, Center
LabelType No_Label
Preamble
\def\TestB#1{\textcolor{red}{#1}}
EndPreamble
End
Style Test_B
CopyStyle TestB
DependsOn TestB
Preamble
EndPreamble
End
Then:
Test_B works : the Preamble of TestB is put in the Preamble of the document
TestA does not works : the Preamble of Test_A is not put in the Preamble
of the document
PhC