TeX Scripts

Skip contents

Contents

  1. Introduction
  2. ordinalref
  3. curvedarrows
  4. latex2ps.kmdr
  5. ttf2texfonts
  6. latex2ps
  7. pstex2eps
  8. fig2eps
  9. mp2eps

1. Introduction

All the scripts on this page are licensed under the GPL, unless otherwise specified. Get a copy of the GPL before downloading the following scripts.

[ Top ]

2. ordinalref

Ordinalref is a LaTeX package (.sty) which allows you to replace a string representing a number into its ordinal counterpart. The package is also able to give references in ordinal number format.

The package provides the commands:

Ordinalref is compatible with babel. Currently supported languages are: english, french, dutch, spanish, italian. Read the source of ordinalref.sty for more information.

Files: download ordinalref.sty (version 0.2), example LaTeX file using ordinalref.

[ Top ]

3. curvedarrows

Curvedarrows is a LaTeX package (.sty) which provides the commands necessary to make tables which show the behavior of the graph of a R -> R function. The package requires the PGF package.

The package provides the commands:

The following variables can be changed in order to modify the style of the arrows:

Files: download curvedarrows.sty (version 0.2), example LaTeX file using curvedarrows.

[ Top ]

4. latex2ps.kmdr

This is a Kommander script (Kommander is a KDE application which runs scripts written in a specific XML language; you need kmdr-executor in order to run this script). This Kommander script generates a dialog which enables the user to generate DVI, PostScript, or PDF files from a LaTeX source (of course this script is only a frontend for latex, dvips, ps2pdf and pdflatex which you should install first). The dialog offers several options which can be set by simply ticking some checkboxes. There is also a LaTeX output box in which you can see the information that LaTeX generates when it is runned. View screenshot of latex2ps.kdmr typesetting a LaTeX document to PDF via PS.

Files: download latex2ps.kmdr (version 1.7), and a service menu for Konqueror which enables you to right click in Konqueror on a LaTeX file and select latex2ps.kmdr in the popup menu.

[ Top ]

5. ttf2texfonts

This script takes one or more Truetype font files as arguments (these files should belong to the same font, i.e. one file should be the regular type, another file the boldface type, ... of the same font) and produces Postscript fonts and the necessary auxiliary files needed by LaTeX and installs them.

Read the manual of ttf2texfonts.

Files: download ttf2texfonts (version 2.2).

Note: instead of this script, you may want to use something advanced, such as FontInstall.

[ Top ]

6. latex2ps

This script produces Postscript files (and also PDF files) from a (La)TeX source document. The usage of BibTeX and MakeIndex is supported.

Usage: latex2ps [OPTIONS] file[.tex]
Options: [defaults in brackets after descriptions]
Configuration:
  --mode=MODE                   typeset using MODE [1], where MODE is one of
                                0: run latex to produce dvi
                                1: run latex and dvips to produce ps
                                2: run latex, dvips, ps2pdf to produce pdf
                                3: run pdflatex to produce pdf
                                4: convert dvi file to pdf via dvips+ps2pdf
  --typeset=CMD                 use CMD for typesetting
                                [/usr/bin/latex]
  --bib=yes/no                  use bibtex [no]
                                (note: if you have a .bbl file which you don't
                                want to be overwritten, then use --bib=no)
  -b                            short for --bib=yes
  --bibtexcommand=CMD           use CMD as your bibtex command
                                [/usr/bin/bibtex]
  --index=yes/no                use makeindex [no]
                                (note: if you have a .ind file which you don't
                                want to be overwritten, then use --index=no)
  -i                            short for --index=yes
  --makeindexcommand=CMD        use CMD as your makeindex command
                                [/usr/bin/makeindex]
  --sequence=SEQ                run latex, bibtex and makeindex according to
                                the sequence SEQ (which consists of the
                                letters b, i, l)
                                e.g. --sequence=llbil runs latex, latex,
                                bibtex, makeindex, latex
  --preview=yes/no              preview using program defined
                                by --previewcommand [no]
  -p                            short for --preview=yes
  --previewcommand=CMD          use CMD to preview the output file
                                [gv]
  --delete=yes/no               delete auxiliary files produced by tex/latex
                                [yes]
  --latexoptions=OPTIONS        options passed to tex/latex (e.g.
                                `latex2ps --latexoptions="-fmt=amstex"'
                                runs `latex -fmt=amstex')
  --bibtexoptions=OPTIONS       options passed to bibtex
  --makeindexoptions=OPTIONS    options passed to makeindex
  --dvipsoptions=OPTIONS        options passed to dvips
  --ps2pdfoptions=OPTIONS       options passed to ps2pdf
  --forcecontinue=yes/no        force to continue typesetting when
                                errors are encountered
  -f                            short for --forcecontinue=yes
  --compress=yes/no             compress the output file [no]
  -c                            short for --compress=yes
  --compresscommand=CMD         use CMD for compressing
                                [/bin/bzip2]
  --rcfile=FILE                 get the defaults from the file FILE
                                instead of from .latex2psrc
  --norcfile                    don't use a configuration file (all information
                                must be given by the above options then)
  -h, --help                    display this help and exit
  -v, --version                 output version information and exit

Files: download latex2ps (version 4.1), example configuration file for latex2ps.

[ Top ]

7. pstex2eps

This script produces Encapsulated Postscript files from combined Postscript/LaTeX output in xfig. The fonts and other style options can be changed by means of a style file.

Usage: pstex2eps [OPTIONS] file[.pstex|.pstex_t]
Options: [defaults in brackets after descriptions]
Configuration:
  --preview=yes/no      preview using program defined by --previewcommand [no]
  -p                    short for --preview=yes
  --previewcommand=CMD  use CMD to preview postscript files [gv]
  --style=FILE          use user-defined style file FILE instead of
                        standard style
  --delete=yes/no       delete file.pstex and file.pstex_t [yes]
  -h, --help            display this help and exit
  -v, --version         output version information and exit

Files: download pstex2eps (version 3.1), example style file for pstex2eps.

[ Top ]

8. fig2eps

This script produces Encapsulated Postscript files from FIG source files produced by xfig. The fonts and other style options can be changed by means of a style file.

Usage: fig2eps [OPTIONS] file[.fig]
You need pstex2eps in order to run this script.
Options:
  -h, --help            display this help and exit
  -v, --version         output version information and exit
All other options are passed to pstex2eps.

pstex2eps options: [defaults in brackets after descriptions]
  --preview=yes/no      preview using program defined by 
--previewcommand [no]
  -p                    short for --preview=yes
  --previewcommand=CMD  use CMD to preview postscript files [gv]
  --style=FILE          use user-defined style file FILE instead of
                        standard style
  --delete=yes/no       delete file.pstex and file.pstex_t [yes]

Files: download fig2eps (version 0.2).

[ Top ]

9. mp2eps

This script produces Encapsulated Postscript files from MetaPost source files. In general MetaPost does not produce standalone EPS files which should be included in LaTeX in order to be viewed. This script gives you the opportunity to produce standalone EPS files. By default the figures in foo.mp are stored by MetaPost in foo.1, foo.2, ... This script allows you to choose your own names: by putting <figure number="1" name="bar.eps"/> in your MetaPost source file (in a comment of course) and running "mp2eps --rename=yes" you will obtain bar.eps instead of foo.1.

Usage: mp2eps [OPTIONS] file[.mp]
Options: [defaults in brackets after descriptions]
Configuration:
  --typeset=CMD                 use CMD for typesetting [latex]
  --standalone=yes/no           produce standalone EPS figures [yes]
  -s                            short for --standalone=yes
  --delete=yes/no               delete auxiliary files produced by mpost
                                [yes]
  --rename=yes/no               rename outputfiles to name mentioned in
                                file.mp as e.g.
                                % <figure number="1" name="testfig.eps"/>
  --preview=yes/no              preview using program defined
                                by --previewcommand [no]
  -p                            short for --preview=yes
  --previewcommand=CMD          use CMD to preview the output file [gv]
  -h, --help                    display this help and exit
  -v, --version                 output version information and exit

Files: download mp2eps (version 1.0), Perl version of mp2eps (version 1.0; also works for MikTeX).

[ Top ]

Created by Glad Deschrijver.