Version 8, last updated by sebug at May 20, 2008 14:00 UTC
Installation Instructions
Installation Prerequisites: Perltex
As of its latest version, Scalit requires perltex. You can download the latest version of perltex from CTAN. Follow the installation instructions on the page. I recommend you install perltex.sty in the same directory as scalit.sty and scaladefs.sty (see below).
If you have downloaded the binary distribution:
copy the file scalit.jar to $SCALA_HOME/lib, the lib folder where you installed Scala.
sudo cp scalit.jar $SCALA_HOME/lib
Now, you'll have to install the two binaries, litcomp and sweave somewhere on your path, I chose /usr/local/bin:
sudo cp litcomp sweave /usr/local/bin
Afterwards, you should be able from every directory to type
sweave
and get an empty LaTeX document as output.
Afterwards, you'll have to place scaladefs.sty somewhere where your TeX distribution can find it. This is explained in the last section.
If you have downloaded the source distribution:
First, type
./bootstrap.sh
This will compile the sources with the jar that was included and then compile them again with the binaries built before. If you have noweb installed, you can also bootstrap without the jar:
./bootstrap.sh notangle
When that process has completed, type
make
This will build the documentation. Finally, you can install the program by typing
sudo make install SCALA_HOME=$SCALA_HOME
If for some reasons, this does not work, you can type
make jar
And install the jar like in the binary distribution.
Installing Scaladefs
To compile the weaved LaTeX files, you will have to create a private tex directory. Where this should be located depends on your system (see these instructions). On MacOS X, do the following:
mkdir -p ~/Library/texmf/tex/latex
cp scaladefs.sty ~/Library/texmf/tex/latex
cp scalit.sty ~/Library/texmf/tex/latex
sudo texhash
Your path may differ, but the procedure essentially stays the same.