rtex.rb: Run (La)TeX ODP PDF de


[API-Dokumentation (englisch)]
You are here: Home rtex.rb: Run (La)TeX

rtex.rb: run (La)TeX


12th  January 2004

Contents

1 Preamble
2 Userinterface
  2.1 Usage
  2.2 Options
3 Programs and Packages
  3.1 Support of programs
  3.2 Support of packages
   3.2.1 Index.sty: Multiple Indexes
   3.2.2 Gloss.sty: Glossaries
   3.2.3 Rail.sty: Rail-Diagramms
  3.3 Known Problems

 

1 Preamble

The script checks, how often a T E X -file must be translated to create a document with correct references, all indexes, bibliographies etc. All messages are suppressed, at the end you get an overview on all errors, sorted by programs.

Similar programs for the same problem:

Why I wrote another script and what are the differences to the other programs?

 

2 Userinterface

 

2.1 Usage

rtex.rb [switches] source[.tex]

 

2.2 Options

 

-h
type out an overview
-l
set the level of informations you get.
0
No information at all
1
Tool-Error + Summary information from TeX
2
Level 1 + Summary information from tools
3
Level 2 + Executed steps + Statistics + Errors
4
Level 3 + Warnings
5
Level 4 + hints from process
6
Level 5 + detailed hints from process
9
Everything

All levels are reported in the Log-File

-a
Define the ”action chain”. A chain defines the steps from source to the target. The following chains are supported:
pdfLaTeX
calls pdfLaTeX and creates the PDF-File. [default]
LaTeX
calls L A T E X and creates the DVI-File.
LaTeXPS
Call L A T E X  and then create a Postscript file (dvips)
LaTeXPSPDF
Call L A T E X  and then create a PDF via dvips and ghostscript
LaTeXPDF
Call L A T E X  and then create a PDF with dvipdfm
htlatex
Call ht L A T E X  and creates a HTML-version.

Remark: Each step may define a ”subchain”. (pdf)LaTeX calls bibtex, makeindex and rail if necessary

-o
Set the limit, from which overfull boxes are reported
-u
Set the limit, from which underfull boxes are reported
-w
Wait after finishing the script. (helpfull, when started by another programms)

 

3 Programs and Packages

 

3.1 Support of programs

Following programs are supported:

 

The programs are called, if the T E X -File requires it.

Some L A T E X -styles may change the usage of programs. See the next section.

 

3.2 Support of packages

There are styles, which will require a special treatment of rtex.rb. Below you find, how different styles are supported. Not supported are:

 

3.2.1 Index.sty: Multiple Indexes

Index.sty is not supported. But there is a corrected version index2.sty which is supported by rtex.rb. I hope my correction will be added to the original. The differences of index2 and index:

 

3.2.2 Gloss.sty: Glossaries

Gloss.sty is supported, for each glossary bibtex is called. In the log they are listed as ”bibTeX/-” where - is the glossary name.

 

3.2.3 Rail.sty: Rail-Diagramms

Rail is a tool to create ”Rail”-diagrams. It requires a call of the program rail.exe.

 

3.3 Known Problems