Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Word Wrap in Verbatim / Math (LaTeX)

595 views
Skip to first unread message

Holger Brandsmeier

unread,
Mar 1, 2004, 1:45:52 PM3/1/04
to
I currently use LaTeX for writing a computer science related document.
Therefor I need to include Program output, which I did with the
/verbatim environment (and \verbatiminput).
My problem is, that Program Ouptput can have long lines which are not
automatically word wraped, is there a work around?

I also like to type Code fragments in math mode, so they look optical
different from the normal text, in equation mode ($<text>$) there is a
word wrapt, but some long methods exeed the line ends which looks
pretty ugly. [I have a long string but on the line is only space for
the first few characters, in normal text mode he would start a new
line, but somehow he did not. I may post screenshots if its not a
known problem.] Is there a work around with better word wrap?

I use verbatim and Math mode often just because of the different look
from normal text. So I don't need much of the functionality, are there
any commands which just look like math or verbatim mode?

Thanks,
Holger Brandsmeier

Herbert Voss

unread,
Mar 1, 2004, 1:57:20 PM3/1/04
to
Holger Brandsmeier wrote:
> I currently use LaTeX for writing a computer science related document.
> Therefor I need to include Program output, which I did with the
> /verbatim environment (and \verbatiminput).
> My problem is, that Program Ouptput can have long lines which are not
> automatically word wraped, is there a work around?

http://latex.s-v-p.de/listings/listings.phtml

Herbert

Holger Brandsmeier

unread,
Mar 2, 2004, 6:31:36 AM3/2/04
to
Herbert Voss <Herber...@gmx.net> wrote in message news:<c20122$q1v$06$1...@news.t-online.com>...
As far as I can see thats for including sourcecode, but I wanted to
include program output, which can be normal text.

But your suggestion is also helpful, because I need to include the
sorucecode later, and you gave me a method how to do it. Thanks

Holger Brandsmeier

Lars Madsen

unread,
Mar 2, 2004, 8:06:45 AM3/2/04
to


the memoir class can do this in verbatim mode, read the manual.

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
AMSMATH Intro: http://www.ams.org/tex/short-math-guide.html
LaTeX Intro: http://people.ee.ethz.ch/~oetiker/lshort/lshort.pdf
Graphics Intro: http://www.ctan.org/tex-archive/info/epslatex.pdf
Superb Class: http://www.ctan.org/tex-archive/help/Catalogue/entries/memoir.html
Remember to post minimal working examples.

0 new messages