How can I write "C++" in LaTeX so that the output looks nice. For example C$++$ doesn't look good: the plus signs are too big and there is too much space. TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up. Sign up to join this community. Adding C++ code in Latex. Ask Question Asked 8 years, 2 months ago. Active 8 years, 2 months ago.
Displaying code in LaTeX documents Posted: 27th January 2014 by Tim in C++, Java, LaTeX Tags: code, color, document, highlight, LaTeX, listing, listings, syntax. 3. There are a few ways to do this, but one of the simplest ways to pretty-print code in LaTeX documents is to use the listings package. The package can be configured to use specific. about cpp.sh. C++ Shell, 2014-2015.