lotus



previous page: Q18) What is the origin of the name BETA?
  
page up: BETA Programming Language FAQ
  
next page: Q19.1) How to use the BETA lgrind style

Q19) How to format BETA programs in LaTeX?




Description

This article is from the FAQ, by with numerous contributions by others.

Q19) How to format BETA programs in LaTeX?

The best way to format BETA programs in the LaTeX formatting system is by
using the lgrind LaTeX package.

You can use the following lgrind style:

beta|the BETA programming language:\
        :pb=(^\d?\p\d?\:\d?\p?\d?\(#\d?:\
        :id=_:\
        :bb=\d(\(#|\(if|\(for)\d:\
        :be=\d(#\)|if\)|for\))\d|;:\
        :oc:\
        :cb=\(*:\
        :ce=*\):\
        :sb=':\
        :se=':\
        :tb=%%:\
        :te=%%:\
        :mb=%\$:\
        :me=\$%:\
        :vb=%\|:\
        :ve=\|%:\
        :kw=if then else for repeat\
            do inner none this enter exit leave restart suspend\
            and or xor mod div\
            stop:

This lgrind style can be made available in two different ways:

* Included in the among standard lgrind styles. This is done by copying
the above definition into the lgrindefs styles file, which is installed
as part of the lgrind installation (possibly in the
/usr/share/local/lib/lgrindefs file - dependent on your local setup).
This installation must be done by the local systems administrator.
* You can also copy the lgrind style onto a file in your personal file
system. Let us for further reference assume that this file is called:
$HOME/lgrind/lgrindefs.

 

Continue to:















TOP
previous page: Q18) What is the origin of the name BETA?
  
page up: BETA Programming Language FAQ
  
next page: Q19.1) How to use the BETA lgrind style