Hi
Maybe this should be sent to the developper list. Sorry .
In order to use LyX to produce Elsevier preprints (elsart.cls), I defined
a new "elsart.layout", mainly based on article.layout. As the title stuff
is intended to be enclosed in a so called "frontmatter" environment, I
defined a new style :
Style Frontmatter
LatexType Environment
LatexName frontmatter
KeepEmpty 1
LabelType No_label
End
It is a bit tricky to use it (use of "change environment depth" button),
but produced the expected latex output. But ReLyX was anable to handle it
: it seemed to forgot to ouput the "layout Frontmatter" line, leading Lyx
to crash when reading the converted file ( "\begin_deeper" just after
"\end_preamble").
In the end, I modified BasicLyX.pm by :
adding a global variable; let's call it $PendingLayout.
setting it to true in ConvertToLayout, together with $IsNewParagraph.
setting it to false in CheckForNewParagraph, together with $IsNewParagraph.
Checking it before calling ConvertToLayout, and call CheckForNewParagraph
if true.
Result seems to be OK, but I don't know if it is the right way to to it (I
don't speak Pearl... and just a little bit English).
My questions are :
Was it the right way to declare Frontmatter (i.e. an environment which
contains only other environments or commands, and no data ) ?
If yes, this mail couls be considered as a bug report for ReLyX, and does
my correction introduce any side effect ?
Thanks
Alain
--
+++ the lyx project user mailing list +++
To unsubscribe from this list send mail to
[EMAIL PROTECTED]
with the **Subject** unsubscribe.