1

Possible Duplicate:
How best to include programming source code in LaTeX documents?

suppose a file with code (*.cpp, *.php, or whatever). There's a lot of symbols like '$', '{', '}' what will definetely be disliked by TeX. I want to make a documentation from a code file. Maybe you heard of some templates for working with code?

Thank you in advance!

Eugeny89
  • 165
  • 2
    Search the site and you will find lots of relevant info. Check the listings package – pmav99 Sep 20 '11 at 10:08
  • 1
    IMHO the refman class is very useful for technical documentation, so it might be a starting point. As pmav99 said, the listings package will also help you to output code with a fancy syntax highlighting. :-) That said, I usually prefer to use an external tool to generate my code documentation in the LaTeX format, e.g., Doxygen or Sphinx, because I can keep both doc and src sync'ed. :-) – Paulo Cereda Sep 20 '11 at 10:33
  • Just for reference look here for other packages http://www.ctan.org/keyword/computer_code. This is a common question that has been covered before (almost a FAQ). Perhaps it should be closed. – pmav99 Sep 20 '11 at 10:47

0 Answers0