On Wednesday 22 Jan 2003 2:02 pm, Helge Hafting wrote:
> Richard Huxton wrote:
> > I'm putting together about a 20-page help doc for pdf and html output
> > using the linuxdoc (article) template.
> >
> > I like the linuxdoc pdflatex output (bookmarks, links, standard fonts
> > etc) but can't force a page break at the start of a new section. I've
> > tried the Layout
> >
> > | Paragraph setting
>
> Ought to work, could be a bug
Well it inserts "\pagebreak_top" in the .lyx file, I just don't get anything
happening. If I get a chance I'll try an older RPM and see if I can reproduce
it there.
> > and inserting a \pagebreak TeX code (cribbed from
>
> You can't just type a latex command in the text. It is embedded
> literally
> because it must be possible to write things like that (i.e. someone
> writing about the \pagebreak command)
I was using the TeX button...
> you need to write \pagebreak{} or \pagebreak followed by a space
> inside that tex box. (Complicated, but necessary because people
> sometimes
> use tex commands that _should_ affect the next character of text)
...but I didn't know about the space/brackets. It doesn't seem to make a
difference though,
\pagebreak{}
becomes (in an exported .tex file)
$\backslash$pagebreak$\{$$\}$
Which looks to me like it's been deliberately escaped.
The .lyx file contains:
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
pagebreak{}
\end_inset
Which looks reasonable to the uneducated (me) except maybe for the Standard
layout.
> If you export to latex yourself, run latex (or pdflatex) three times in
> order to resolve references correctly. (You may get away with less, see
> the output of latex/pdflatex. If it complains about references near
> the end - use another run. The TOC is built from lots of references.
>
> Indexes and bibliographies may need a fourth run, and they need
> running of other programs like makeidx too. Try to get lyx to do the job
> instead if you need these.
Ah! thank you - multi-pass to resolve the references of course. Should have
paid more attention to the output of pdflatex, but LyX redirected it to
/dev/null so I ignored it.
A small shell-script to do some search & replace, a loop to call pdflatex and
I can finally get my sections to start new pages. Good enough for the moment.
Thanks very much Helge.
--
Richard Huxton