This is going to get a little messy. Could be LaTeX-related but I can’t figure 
out how to untangle the ERT I’m trying from the LyX file.

I’m using Article (Standard Class) with a non-default font in two-column mode. 
I would like a nice one-column abstract that has a little wider margins than 
the main body. The abstract package

http://mirror.las.iastate.edu/tex-archive/macros/latex/contrib/abstract/abstract.pdf

promises to do the job.

I’ve put the  \usepackage{abstract} line in the LaTeX preamble under 
Document->Settings. Then, trying to mimic the simple example at the above link, 
I inserted the ERT as such:

\twocolumn[
\maketitle
\begin{onecolabstract}
Abstract text...
\end{onecolabstract}
]
\saythanks

Things go wrong. (1) The title, author, and date are correctly placed on the 
first page, along with a footnote associate with the author’s name—footnote 
contains e-mail address etc. There is nothing else on this first page! It is 
mostly white space. On the second page the abstract (one column, inset margins, 
smaller font, “Abstract” title, everything nice) correctly appears, followed by 
the body of the paper in two columns as expected. But (2) the same “author” 
footnote appears at the bottom of the first column of this second page.

I looked at the LaTeX export and saw a snippet that looks like this:

\maketitle
\twocolumn[
\maketitle
\begin{onecolabstract}
Abstract text...
\end{onecolabstract}
]
\saythanks

The \maketitle appears twice. If I delete the second one, the one inside the 
twocolumn command that I inserted from LyX as ERT, nothing changes. However, if 
I put that back in and delete the first \maketitle, _the one inserted into the 
LaTeX by LyX_, I get a properly rendered document.

So this is why I’m posting to this list. How do I prevent LyX from inserting 
the first \maketitle? Or am I misusing this package? <Most likely>

Jerry

Reply via email to