Quantcast
Channel: What's the best way to typeset C++ codes in latex? - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 3

What's the best way to typeset C++ codes in latex?

$
0
0

I'm participating in a programming contest and we are allowed to prepare a team reference document which must not exceed 25 pages. Typically we will prepare many code templates and this year I'm trying to use latex to typeset these C++ codes and I want to know what's the best way to do that.

Some requirements:

  1. Since there is a page length limit I want to typeset my codes as compact as possible.
  2. I want to have the C++ codes syntax highlighted.
  3. If it is possible to generate a compact table of content in front, it would be best.

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>