On Tue, 9 Jul 2013 22:03:30 -0400
Steve Litt <[email protected]> wrote:
> Hi all,
>
> In the attached minimal LyX file's local layout, See the commented out
>
> \newenvironment{\licenseheadL} {\itshape} {\par}
>
> As long as that is commented out, the file compiles. When I remove the
> comment, the compile fails with "Undefined control sequence." on
> "...vironment{\licenseheadL} {\itshape} {\par}". I've checked over and
> over again, and I'm pretty sure my syntax on the \newenvironment is
> correct, and I've used it many times before in layout files. So my
> question is, within a local layout, are there any tricks you need to
> use to get \newenvironment to work?
>
> Thanks,
>
> SteveT
>
> Steve Litt * http://www.troubleshooters.com/
> Troubleshooting Training * Human Performance
This was a case of defective user, rather than any kind of LyXism. See
the backslash before "licenseheadL"? That doesn't belong there. Take
away that backslash and things work.
Oh, and by the way, to the best of my knowledge I'm supposed to put
LaTeX stuff not in the Local Layout part of Document->Settings, but in
the Latex_Preamble part.
Thanks, and sorry for the trouble.
SteveT
Steve Litt * http://www.troubleshooters.com/
Troubleshooting Training * Human Performance