Gerald Gutierrez <[EMAIL PROTECTED]> writes:

| Also, I expect to have a moderate about of source code in my
| report. Perhaps I'm just ignorant, but even today I cannot figure out
| how to incorporate source code properly into a Lyx document. The
| Lyx-Code seemed like it might work, but I've found that I can't
| control it well. It doesn't "look" right to me. For example, if my
| report is double-spaced, is there a way to have the code
| single-spaced?  I also can't seem to have tab-indents in
| Lyx-Code. Things of that sort. Am I missing something?

LyX-Code is not very nice and is something that will replace with
better opions later (sometime). What you should do depends on what
kind of code you are going to have in the document, is it large chunks
or just small ones. Are the chunks in separate files or all in one
file?

One options that often works well is to not have the code _in_ the
document, but just include it. You can use the
Insert->Include... for this. (the verbatim option might work well for
code). If this option is to crude you should have a look at the
options available in moreverb.sty and fancyvrb.sty. Those packages has
more specialized environments tuned for inclusion of code and other
types of verbatim text.

        Lgb

Reply via email to