On Tue, Jan 15, 2002 at 02:56:20AM +0200, Tomer Altman wrote:
> What is the best way to make a front page to a document in LyX?
> Meaning, to have a part which holds it's own page, while the rest of the 
> document is on the next pages. If I just put it one after another, it 
> doesn't give it space (obviously) and if I do the front page in another 
> file, then I have page #1 twice, which isn't too good.

Use the paragraph dialog to insert a pagebreak at the end of the front page.

> Another issue that frustates me is copy+pasting text into LyX. My 
> intention was to insert C code in (using LaTeX "verbatim" command) but 
> when I tried to simply copy the code from the editor (KDE embedded 
> editor "Advanced Editor"), the text had no spacing, which makes the code 
> unreadable. Any help about this will be appreciated. (maybe there's an 
> easier way to insert the \begin{verbatim} thru lyx which might not 
> "care" about spacing? Maybe a copy+paste help?)

1. Start a new empty paragraph
2. Select LyX-Code layout
3. Use the menu Edit->Paste External Selection->As lines
(or alternatively, Insert->Insert File->Ascii as lines).
Note that it will look weird when you try to do DVI preview, but if you save
the file and reopen it, it will look OK.

A better option for inserting source code is to use the listing package:
http://www.lyx.org/help/listings/listings.php3

Reply via email to