lotus



previous page: Q19) How to format BETA programs in LaTeX?
  
page up: BETA Programming Language FAQ
  
next page: L01) What features do BETA have?

Q19.1) How to use the BETA lgrind style




Description

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

Q19.1) How to use the BETA lgrind style

When the lgrind style is made available (as above), you can use it in the
following way.

Let us assume, that you have a BETA source file called prog.bet.

* If the lgrind style is saved among the standard lgrind styles, you
execute:

lgrind -lbeta -i prog.bet > prog.tex

* If the lgrind style is saved in your personal file system, you execute:

lgrind -lbeta -d $HOME/lgrind/lgrindefs -i prog.bet > prog.tex

You are now ready to include the BETA source into a LaTeX document. You do
this by inserting the following in the start of the LaTeX document:

\usepackage{lgrind}

Please note, that you only need to insert this once.

This implies, that the lgrind LaTeX style is available. At the position in
the document, where you wish the BETA source code, you just insert one of
the following:

* \lgrindfile{prog}
which will simply include the file at that point of text, and will draw
horizontal lines before and after the listing.
* \lagrind[htbp]{prog.tex}{caption}{label}
which will put the listing also within a figure environment, using the
float options, caption and label you gave.

You insert one lgridfile or lagrind command for each piece of BETA source
code, you wish to include in the document.



 

Continue to:















TOP
previous page: Q19) How to format BETA programs in LaTeX?
  
page up: BETA Programming Language FAQ
  
next page: L01) What features do BETA have?