Linux Software

Write documents with math with latex

Åsmund Ødegård drift@simula.no
11 March 2002

1. Simula slides with LaTeX and Prosper

Please have a look at this example to see how you should format you LaTeX-file to have the Simula look on your slides.

For more information on how to use Prosper, see the local documentation in /usr/share/doc/prosper on linux-computers at Simula..

H2[id="printslides" A usefull command for printing of slides

Because of a font-problem, the slides doesn't print very well from postscript files. A solution which work in most cases is to convert to pdf with ps2pdf, and then print with this command:

acroread -toPostScript -scale 90 < slides.pdf | psnup -l -2| lpr -P <printer>

The scaling is optional, but the slidestyle use as much as possible of the pagewidth, so it generally looks better on paper when scaled down a bit. The number-option to the psnup command tells how many pages you want on each sheet. Adjust to your needs. We also supply the -l option because we use landscape in the slide-style.

2. Simula preprint with LaTeX

You can now write a Simula report, using LaTeX and have the proper coverpages. This is achieved by using the simulacover style file. Please have a look at this example to see how the cover-page should be added to your document.

Before you can make a proper Simula Preprint you have to obtain a report-number. Ask Ragnfrid Sjøberg for this number.

The author of the package like to bring to our attention that there are five optional commands that can be used before issuing the new \makesimulacover command:

  • \simdoctitle{Another Title}
    gives another title layout by inserting e.g. extra linebreaks
  • \simdocauthor{New Names}
    if you like another way of listing the author names on the cover
  • \simdoctype{Memo}
    for example another document type other than the default 'Research Report'.
  • \simdoctext{This report will appear in}
    Some text that will go on the back of the coverpage.
  • \simdocextra{\psfig{figure=my_logo.eps }}
    Some material, for instance a picture, that will go on the coverpage.

By the way, after issuing the \makesimulacover command, you should proceed exactly as before. That is, \maketitle should normally be the next command.

The author of the simulacover package is Xing Cai and consequently any trouble with using the \makesimulacover command can be reported to Xing Cai, or to drift@simula.no

3. Simula Prosper on a Laptop

This description is based on laptop running Debian linux, and already have the prosper package installed. If you not have prosper installed, install it with apt-get install prosper.

3.1. What you need

Before you start, you need to download some files from this page.

  1. Download fonts and stylefiles

Unpack the first file in /usr/local/lib/texmf. The second file should be appended to /etc/texmf/dvips/psfonts.map. For the last, use for instance cat arial-maps.map >> /etc/texmf/dvips/psfonts.map. You need to be root on your computer to do this. That also goes for the rest of the description.

3.2. Configuration

Check the following in your /etc/texmf/texmf.cnf

  • Make sure that TEXMFLOCAL=/usr/local/lib/texmf is set, and that this variable is included in the settings for TEXMF. The variable may, e.g., look like
    TEXMF = {$HOMETEXMF,!!$TEXMFMAIN,!!$TEXMFLOCAL,!!$SHARETEXMF}

3.3. Finish the installation

The last thing you need to do is to run

  • /usr/sbin/texconfig confall and
  • /usr/sbin/texconfig rehash.

This loads the new settings and rebuild the configuration files. Download the examplefile from section Simula slides above.

4. Simula preprint on laptop

Download the report package from the link. Then, as root-user on your laptop, do the following:

  1. Extract the tar-file in /usr/local/lib/texmf.
  • Make sure that TEXMFLOCAL is included in your tex-configuration, see section on texconfiguration above.
  • Run /usr/sbin/texconfig confall and
  • /usr/sbin/texconfig rehash

Test the installation on the examplefile listed in section on Simula preprint above.