The TeX Catalogue Online

by Graham Williams

CTAN Edition

Search | Home | Alpha | Brief | Topical | Hierarchical | Full
tinyc2lPretty print C/C++/Java source code using LaTeX.
A small converter for pretty printing C/C++/Java source code using LaTeX. Features include: ease of use; use roman font for standard output for better legibility of the generated text; use direct positioning of TeX boxes to preserve vertical structures in the source text; context-sensitive linebreaking---linebreaking is not done by TeX, only by the supported macros, so the language structure is considered when breaking a line. For example, if a C++ comment is broken, the continuation line starts also with //. If a string or preprocessor line is broken, it gets an \ at the end of the line. If you would convert the generated dvi file back to ASCII, you get a valid source text again; some special comment styles (fill comments, block comments, embedded LaTeX comments); insert LaTeX text into comments; special support for multiple file projects: The generated files can be used as standalone files or as include file in a larger project without modification (if they are used as include file, the wrapper file must only include the position package in the package list; everything else is done automagically); lines may be omitted from output. This package was implemented by Michael Plugge and catalogued for CTAN.
Visit CTAN:support/tiny_c2l/Download from somewhere nearby (Search)Download from DanteLicense: gpl Version: 1.4.0 Catalogued: 2000/02/25