If you want to include MATLAB code in your LaTeX document, then there is this excellent package [1]. It preserves layout, colours etc.
However, I now want to include C# code in my LaTeX document and I don't know of any such package. Does anyone else?
[1] M-code LaTeX Package - File Exchange - MATLAB Central
Math & Science ⇒ Presenting C# Code
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 126
- Joined: Sun Feb 13, 2011 8:36 pm
Presenting C# Code
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
Re: Presenting C# Code
thanks.
just had a look at their manual (http://mirror.ox.ac.uk/sites/ctan.org/m ... stings.pdf)
It doesn't appear to have been updated since 2007, nor is there any mention of C#. It does however mention Java. I will have a play with it.
Any other replies welcome!
thanks
just had a look at their manual (http://mirror.ox.ac.uk/sites/ctan.org/m ... stings.pdf)
It doesn't appear to have been updated since 2007, nor is there any mention of C#. It does however mention Java. I will have a play with it.
Any other replies welcome!
thanks
-
- Posts: 126
- Joined: Sun Feb 13, 2011 8:36 pm
Presenting C# Code
Use C with "dialect" Sharp. As mentioned in table 1. Naming the language C# wouldn't have been a good idea since the # is a LaTeX control sequence.
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).