On Wed, 2007-07-25 at 13:46 +0200, Helge Hafting wrote: > 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"
Yes, I think everybody who knows the acronym ERT knows that. > > 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 don't want it in one of the other environments, it is in place of one. > 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. I don't want my TeX inside an \author{} or \title{} or similar. It is in lieu of the \author{} because I want it to look like: \author[a1]{Name1}, \author[a2]{Name2}, ... \address[a1]{Add1} \address[a2]{Add2} Now the problem is if I put an ERT in a Standard environment, LyX will finish off the frontmatter section, my ERT is after that, and then the following frontmatter which is supported by the LyX class will erroneously be outside frontmatter too. And none of that will appear. > 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. I'll keep that in mind, thanks. But given what I'm writing, I think only the abstract text is suitable. Everything else is too fiddly to bother. Have fun, Darren