Darren Freeman wrote:
Hi all,
I'm trying to use the Elsart style/class, which is still pretty tricky.
I want to put an ERT into the \begin{frontmatter}..\end{frontmatter}
section, but I don't know how.
While writing your front matter, press the TEX button
on the toolbar. If your LyX don't have a toolbar, use
the menu "insert->Tex code"
An ERT in a Standard environment terminates the frontmatter section and
the front matter after it doesn't get output.
Sure. Which is why you shouldn't use a standard environment.
Put the ERT directly into the environment where you need it.
I finally got everything to work with an enormous ERT containing the
whole frontmatter section but this doesn't seem to be the "LyX way" when
all I wanted in an ERT was the author/address fields which are too
complex for the provided LyX class.
Isn't there a better way? Is there or can we add an environment which is
just for ERTs that live in frontmatter?
What LyX version is this? I tried this with the 1.5.0 beta:
1. create an elsart document
2. Set paragraph type to author
3. Type in "firstname "
4. Insert->tex code
5. Type in "\emph{lastname}"
6. view->dvi gives an otherwise empty article, where the author
has the last name emphasized.
Of course this example is doable without ERT, but you could use
almost anything in that ERT box.
Sometimes you don't want to put all into a single ERT box - for example
when there is a lot of normal text (or lyx-supported constructs)
inbetween. In those cases I use two ERT boxes, a starting one that
possibly have unbalanced braces, and a later one that terminates the
braces to keep
latex happy. Be careful with this sort of trick though.
Helge Hafting