On Wed, 2002-10-23 at 23:39, Dekel Tsur wrote: > On Wed, Oct 23, 2002 at 10:19:55PM +0930, Darren Freeman wrote: > > > Darren> This is really freaking me out, man. Have a go for yourselves. > > > Darren> Can you insert TeX as the first thing in a document, in the > > > Darren> standard environment (bold if it matters). Try what I tried: > > > Darren> \pagestyle{empty}. > > > > > > Putting an ERT in font change is asking for trouble in general. Could > > > you post your example file? > > > > I just made one for you. Just create a new doc, type something and make > > it bold, centred. Insert an ERT before the writing and type > > \pagestyle{empty} into it. View it, the ERT is ignored. Make it > > \thispagestyle{empty} and it will now work. > > > > Breaking the ERT onto its own line (first line) and the text on the > > second doesn't fix it, same with un-bold-ing the ERT which was > > incorrectly inserted as bold *before* some bold text. > > Of course it doesn't work. > You put the \pagestyle{empty} command inside two groups: > 1. \begin{center} .. \end{center}, and > 2. \textbf{...} > > You should put the ERT inset in a paragraph of its own, not in bold, > and the paragraph should not be centered.
I just did those two, and here's the result. BTW it didn't fix it =) If this is really a problem, putting ERTs wherever you feel like, then is it documented for the user? Could we add an intelligent error for the user when an ERT appears somewhere illegal instead of screwing up the LaTeX output? Have fun, Darren
#LyX 1.3 created this file. For more info see http://www.lyx.org/ \lyxformat 221 \textclass article \language english \inputencoding auto \fontscheme times \graphics default \paperfontsize 12 \spacing onehalf \papersize a4paper \paperpackage a4 \use_geometry 1 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \leftmargin 2.5cm \topmargin 2cm \rightmargin 2.5cm \bottommargin 2cm \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \align left \begin_inset ERT status Collapsed \layout Standard \backslash pagestyle{empty} \end_inset \layout Standard \align center \series bold hello \the_end