GeneralAdvice on typesetting custom source code

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
hmmmcurious
Posts: 2
Joined: Wed May 28, 2008 3:08 am

Advice on typesetting custom source code

Post by hmmmcurious »

Hi,

I have a project that I am typesetting in LaTeX that requires that I typeset code from a custom language. What I mean is that it is a programming language, but not one that is common. I also need to be able to typeset mathematical symbols in the source code. It is a very small language, with very few keywords.I need to be able to indent the code as well.

Any advice on the best way to go about doing this? Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Advice on typesetting custom source code

Post by gmedina »

The listings package could be useful. The algorithms bundle could also be of interest.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
hmmmcurious
Posts: 2
Joined: Wed May 28, 2008 3:08 am

Re: Advice on typesetting custom source code

Post by hmmmcurious »

Thanks so much. The algorithm package fits the job perfectly, with a few tweaks here and there.
Post Reply