\begin
and \end{document}
. Is it possible to insert C++ (or Java or Python or PHP or Mathematica or etc... ) code in LaTeX? (I am newbie so please answer me by a simple example, if this is possible)Thanks
Charis.
\begin
and \end{document}
. Is it possible to insert C++ (or Java or Python or PHP or Mathematica or etc... ) code in LaTeX? (I am newbie so please answer me by a simple example, if this is possible)Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
listings
package is for displaying source code, it offers many features such as language specific syntax highlighting. So it also may answer your question about inserting code.Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis