[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-texinfo] Inserting Code Sample
From: |
Karl Berry |
Subject: |
Re: [help-texinfo] Inserting Code Sample |
Date: |
Sat, 30 Apr 2011 23:10:30 GMT |
I'm using the quotation environment now which seems to work well for
multiline code.
From
http://www.gnu.org/software/hello/manual/texinfo/Block-Enclosing-Commands.html
..
@example is the intended environment for code examples:
Illustrate code, commands, and the like. The text is printed in a
fixed-width font, and indented but not filled.
@quotation is for, well, quotations:
Indicate text that is quoted. The text is filled, indented (from
both margins), and printed in a roman font by default.
I doubt you want a roman font or indented margins or filled (justified)
text in your code examples, that would be bizarre.
The only problem is that there is a big rectangular box
at the end of it for no apparent reason that I can see.
There are no "big rectangular boxes" by default, for sure :). If you
send an example document, maybe we can debug.
Best,
k