Jean-Marc Lasgouttes wrote:
Le 24 juin 09 à 22:31, rgheck a écrit :
guess it's a tex2lyx importation bug, but I also doubt that any sane
version of tex2lyx could ever catch this kind of thing reliably.
Could you make an executive summary for me?
The class wraps the title block in a command, \phmHeader, so you get
something like:
\phmHeader{
\title{...}
\author{...}
\address{...}
\maketitle
}
When tex2lyx imported it, \phmHeader went into ERT, in a Standard
environment, which then caused \maketitle to be output at the wrong
time. Nor of course can \phmHeader go into the title environment, since
then you get:
\title{\phmHeader{...
which is wrong.
I don't think LyX can easily output a structure like the one shown, no
matter what tricks you use. But it seems to turn out that \maketitle can
go outside the \phmHeader block with no damage.
I suppose one thing one could do is somehow use the trick I ended up
suggesting in tex2lyx, namely, that we use a special InTitle environment
instead of Standard until we get out of the title.
rh