Text FormattingListing style for technical report

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
krislodz
Posts: 42
Joined: Sun Nov 08, 2009 1:13 pm

Listing style for technical report

Post by krislodz »

Hello,

Can anyone suggest some neat style of listing for technical report presenting source code snippets ? What kind of frames, and so on.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
adrian
Posts: 8
Joined: Thu Nov 12, 2009 5:24 pm

Re: Listing style for technical report

Post by adrian »

I recently started using the listings package:

http://tug.ctan.org/tex-archive/help/Ca ... tings.html

It is language "aware" and can, optionally, highlight keywords in
different languages (C++, Python and so on).

There are many options for frames around the code, different fonts.

Personally, I've been displaying the code snippets with a gray background,
and no frame around it.

HTH
Adrian
Post Reply