Index of /ctan/macros/latex/contrib/program/

NameLast ModifiedSizeType
../ -  Directory
README2008-Nov-12 16:25:001.0Ktext/plain;charset=utf-8
gpl-3.0.txt2008-Nov-12 16:21:0034.3Ktext/plain;charset=utf-8
plink.tex2007-Jul-17 10:13:481.6Kapplication/x-tex
program-demo.tex2007-Jul-17 10:21:469.4Kapplication/x-tex
program-doc.pdf2017-May-05 12:17:3842.7Kapplication/pdf
program-doc.tex2017-May-05 12:17:362.6Kapplication/x-tex
program.sty2017-May-05 12:07:5834.5Kapplication/octet-stream
Here's a copy of my LaTeX2e style file for typesetting programs
and algorithms in my favourite style without having to type
in endless tabbing commands.  Each line is set in math mode
so all the indentation and spacing is done automatically.
The notation |variable_name| can be used within normal text,
maths expressions or programs to indicate a variable name.
Use \origbar to get a normal | symbol in a program.
The commands \A, \B, \R, \T and \Z typeset the corresponding bold
letter with the next object as a substript (eg \S1 typesets {\bf
S$_1$} etc). They now cope with primes as well, (eg $\S2'''$). The
program.sty file can be easily edited to reflect your favoured style.
Typesetting a program is as easy as:

\(\IF x \ne 0 \THEN |long_name|_{123} = x^y \FI\)

See the program-demo.tex file for examples.

The file should work with or without AMSLaTeX.

This work is released under the GPL version 3.

                        Martin Ward.

[email protected]  http://www.cse.dmu.ac.uk/~mward/  Erdos number: 4
G.K.Chesterton web site:  http://www.cse.dmu.ac.uk/~mward/gkc/

panini/0.0.8 us-west-1 b156048a-bcf3-4b4f-96ed-31e873bb3711