Version 6, last updated by sebug at May 20, 2008 11:38 UTC
Scalit Command Line Usage
Tools
- litcomp
- Compiles literate programs
- sweave
- Creates LaTeX output from literate programs
- scala markup.Markup
- Creates markup intermediary format from literate program
- scala tangle.Tangle
- Creates a compilable source file from literate programs but does not compile it
Examples
scala markup.Markup literate.nw | sweave -o test.tex -mi
This creates the markup intermediary format from literate.nw and passes the result to weave (which reads markup from standard input and writes to file test.tex)
litcomp infile1.nw -m infile2.m -d classes
Compiles the content of literate file infile1.nw and markup file infile2.m. The results are placed in the directory classes
General Options
To specify a literate program source on the command line, simply give its name.
- -m filename.m
- Take input from filename.m in the intermediary markup format
- -mi as last argument
- Read standard input in the intermediary markup format
- -li as last argument
- Reads a literate program from standard input
- -o outfile
- Redirects standard output to outfile
- -d outdir
- Specifies the destination directory for generated files. Only useful for tangle.LitComp
- -r chunkname
- (only for tangle): Begins tangling at chunk named chunkname instead of *