Cpp2LaTeX

This is a little piece of software to convert C++-programmlistings to a file you can input in an LaTeX-document.

I wrote it primarily for my bwinf-project-documentation, because we had to include the source-code and I wanted it all printed in the same style. After BWInf I had time to work on C++2LaTeX and made it stable and usable for the rest of the world.

Georgi Todorov has created a cool web-frontend at http://cpp2latex.geodar.com/ which you can use to convert your C/C++-sources without needing to install C++2LaTex...

Thanks

I would like to say thanks to... all people who send me bugreports and fixes and extensions. The Line-numbering in version 2.1 is from Eduard Bröcker! A lot of improvements and the availability on gentoo are there thanks to Richard Garant!

Installing

The project is based on the C++-Template from KDevelop so the installing should be very easy. Just ./configure; make; make install and then it should work...
The binary is copied to /usr/local/bin, to GPL-documents come to /usr/local/doc/cpp2latex.

For more information see the install file in the package.

Download

The following packages are available for download.
Note: These are the official packages, other packages may be available from your distribution.

cpp2latex-2.3.tar.gz
Fixed compilation with gcc3.*. Added a commandline-switch to protect lines ie. no linebreaking.
cpp2latex-2.2.tar.gz | cpp2latex-2.2-1.i386.rpm
Some bugs with quotes, etc fixed. New commandline-options!
cpp2latex-2.1.tar.gz
New in this version is line-numbering. Also some bugs have been fixed.
cpp2latex-2.0.tar.gz
Here it is: Version 2. The first version with working syntax-highlighting for C++.
cpp2latex-1.1.tar.gz
Now creates full LaTeX-documents as well as files for including.
cpp2latex-1.0.tar.gz
Converts c++-code into LaTeX-format. This version doesn't work properly on every other system except mine.