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

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

User avatar
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