Difference between revisions of "TeXExec"

From Wiki
Jump to navigation Jump to search
m (mention that texexec.pl is obsolete)
m (→‎Command-Line Options: Changed to wiki marup... There seems to be a bug with partial html markup)
Line 6: Line 6:
  
 
==Command-Line Options==
 
==Command-Line Options==
<table>
+
 
<tr><td>--alone<td> bypass utilities (e.g. fmtutil for non-standard fmt)
+
{| 
<tr><td>--arrange<td> process and arrange
+
| --alone
<tr><td>--automprun<td> MetaPost at runtime when needed
+
bypass utilities (e.g. fmtutil for non-standard fmt)
<tr valign="top"><td>--autopdf<td> Open the pdf viewer after the texexec run. [[#autopdf|See below]].   
+
|-
<tr><td>--batch<td> run in batch mode (don't pause)
+
| --arrange
<tr><td>--centerpage<td> center the page on the paper
+
process and arrange
<tr><td>--color<td> enable color (when not yet enabled)
+
|-
<tr><td>--environment = name<td> load some environments first. Name is: list of environments
+
| --automprun
<tr><td>--fast<td> skip as much as possible
+
MetaPost at runtime when needed
<tr valign="top"><td>--figures = (a|b|c)<td> typeset figure directory   
+
|-  valign="top"
 +
| --autopdf
 +
Open the pdf viewer after the texexec run. [[#autopdf|See below]].   
 +
|-
 +
| --batch
 +
run in batch mode (don't pause)
 +
|-
 +
| --centerpage
 +
center the page on the paper
 +
|-
 +
| --color
 +
enable color (when not yet enabled)
 +
|-
 +
| --environment = name
 +
load some environments first. Name is: list of environments
 +
|-
 +
| --fast
 +
skip as much as possible
 +
|-  valign="top"
 +
| --figures = (a&#124;b&#124;c)
 +
typeset figure directory   
 
; a : room for corrections
 
; a : room for corrections
 
; b : just graphics  
 
; b : just graphics  
 
; c : one (cropped) per page
 
; c : one (cropped) per page
<tr><td>--final<td> add a final run without skipping
+
|-
<tr><td>--format = name<td> fmt file. name: format file (memory dump)
+
| --final
<tr><td>--help<td> show this or more, e.g. '--help interface'
+
add a final run without skipping
<tr><td>--input = name<td> input file (if used). name: filename
+
|-
<tr><td>--interface = (cz|de|en|it|nl|uk)<td> user interface   
+
| --format = name
<tr><td>--language = lang<td> main hyphenation language. lang: standard abbreviation
+
fmt file. name: format file (memory dump)
<tr><td>--listing<td> produce a verbatim listing
+
|-
<tr><td>--make<td> build format files
+
| --help
<tr><td>--mode = list<td> running mode. list: modes to set
+
show this or more, e.g. '--help interface'
<tr><td>--module<td> typeset tex/pl/mp module
+
|-
<tr><td>--mpgraphic<td>  process mp file to stand-alone graphics
+
| --input = name
<tr><td>--mpformat = name<td> mem file. name: format file (memory dump)
+
input file (if used). name: filename
<tr><td>--mptex<td> run an MetaPost plus btex-etex cycle
+
|-
<tr><td>--mpxtex<td> generatet an MetaPostmpx file
+
| --interface = (cz&#124;de&#124;en&#124;it&#124;nl&#124;uk)
<tr><td>--noarrange<td> process but ignore arrange
+
user interface   
<tr><td>--nomp<td> don't run MetaPost at all
+
|-
<tr><td>--nomprun<td> don't run MetaPost at runtime
+
| --language = lang
<tr><td>--nonstop<td> run in non stop mode (don't pause)
+
main hyphenation language. lang: standard abbreviation
<tr><td>--once<td> run TeX only once (no TeXUtil either)
+
|-
<tr valign="top"><td>--output<td> specials to use. Can be one of
+
| --listing
{|
+
produce a verbatim listing
| dvipdfm  || Mark Wicks' dvi to pdf converter  
+
|-
|-
+
| --make
| dvipdfmx || Jin-Hwan Cho's extended dvipdfm   
+
build format files
|-
+
|-
| dvips    || Thomas Rokicky's dvi to ps converter
+
| --mode = list
|-
+
running mode. list: modes to set
| dvipsone || YandY's dvi to ps converter  
+
|-
|-
+
| --module
| dviwindo || YandY's windows previewer  
+
typeset tex/pl/mp module
|-
+
|-
| pdftex  || Han The Than's pdf backend
+
| --mpgraphic
 +
process mp file to stand-alone graphics
 +
|-
 +
| --mpformat = name
 +
mem file. name: format file (memory dump)
 +
|-
 +
| --mptex
 +
run an MetaPost plus btex-etex cycle
 +
|-
 +
| --mpxtex
 +
generatet an MetaPostmpx file
 +
|-
 +
| --noarrange
 +
process but ignore arrange
 +
|-
 +
| --nomp
 +
don't run MetaPost at all
 +
|-
 +
| --nomprun
 +
don't run MetaPost at runtime
 +
|-
 +
| --nonstop
 +
run in non stop mode (don't pause)
 +
|-
 +
| --once
 +
run TeX only once (no TeXUtil either)
 +
|-  valign="top"
 +
| --output
 +
specials to use. Can be one of
 +
; dvipdfm  : Mark Wicks' dvi to pdf converter  
 +
; dvipdfmx : Jin-Hwan Cho's extended dvipdfm   
 +
; dvips    : Thomas Rokicky's dvi to ps converter
 +
; dvipsone : YandY's dvi to ps converter  
 +
; dviwindo : YandY's windows previewer  
 +
; pdftex  : Han The Than's pdf backend
 +
|-
 +
| --pages = (even&#124;odd&#124;x,y:z)
 +
|  pages to output. x,y:z: pages x and y to z
 +
|-
 +
| --paperformat = AB or A:B or A*B
 +
|  paper input and output format.  a4a3: A4 printed on A3, a5a4: A5 printed on A4
 +
|-
 +
| --paperoffset = extra offset
 +
|  paper input and output format.  a4a3: A4 printed on A3, a5a4: A5 printed on A4
 +
|-
 +
| --passon
 +
|  switches to pass to TeX (--src for MikTeX)
 +
|-
 +
| --path = string
 +
|  document source path. string: path
 +
|-
 +
| --pdf
 +
|  produce PDF directly using pdf(e)tex
 +
|-
 +
| --pdfarrange
 +
|  arrange pdf pages
 +
|-
 +
| --pdfcombine
 +
|  combine pages to one page
 +
|-
 +
| --pdfcopy
 +
|  scale pages down/up
 +
|-
 +
| --pdfselect
 +
|  select pdf pages
 +
|-
 +
| --print = (up&#124;down)
 +
|  page imposition scheme.  down = 2 rotated pages per sheet doubleside,  up = 2 pages per sheet doublesided
 +
|-
 +
| --result = filename
 +
|  resulting file will have that filename
 +
|-
 +
| --runs = n
 +
|  maximum number of TeX runs. n: number of runs
 +
|-
 +
| --screensaver
 +
|  turn graphic file into a (pdf) full screen file
 +
|-
 +
| --setfile
 +
|  load environment (batch) file
 +
|-
 +
| --silent
 +
|  minimize (status) messages
 +
|-
 +
| --suffix= string
 +
|  resulting file suffix. string: suffix
 +
|-
 +
| --tex = name
 +
|  TeX binary. name: binary of executable
 +
|-
 +
| --texroot = path
 +
|  root of tex trees. path: tex root
 +
|-
 +
| --textree = path
 +
|  additional texmf tree to be used. path: subpath of tex root
 +
|-
 +
| --texutil
 +
|  force TeXUtil run
 +
|-
 +
| --usemodule = name
 +
|  load some modules first  name: list of modules
 +
|-
 +
| --verbose
 +
|  shows some additional info
 +
|-
 +
| --version
 +
|  display various version information
 +
|-
 +
| --xmlfilter = name
 +
|  apply XML filter.  name: list of filters
 
|}
 
|}
<tr><td>--pages = (even|odd|x,y:z)<td> pages to output. x,y:z: pages x and y to z
 
<tr><td>--paperformat = AB or A:B or A*B<td> paper input and output format.  a4a3: A4 printed on A3, a5a4: A5 printed on A4
 
<tr><td>--paperoffset = extra offset<td> paper input and output format.  a4a3: A4 printed on A3, a5a4: A5 printed on A4
 
<tr><td>--passon<td> switches to pass to TeX (--src for MikTeX)
 
<tr><td>--path = string<td> document source path. string: path
 
<tr><td>--pdf<td> produce PDF directly using pdf(e)tex
 
<tr><td>--pdfarrange<td> arrange pdf pages
 
<tr><td>--pdfcombine<td> combine pages to one page
 
<tr><td>--pdfcopy<td> scale pages down/up
 
<tr><td>--pdfselect<td> select pdf pages
 
<tr><td>--print = (up|down) <td> page imposition scheme.  down = 2 rotated pages per sheet doubleside,  up = 2 pages per sheet doublesided
 
<tr><td>--result = filename<td> resulting file will have that filename
 
<tr><td>--runs = n<td> maximum number of TeX runs. n: number of runs
 
<tr><td>--screensaver<td> turn graphic file into a (pdf) full screen file
 
<tr><td>--setfile<td> load environment (batch) file
 
<tr><td>--silent<td> minimize (status) messages
 
<tr><td>--suffix= string<td> resulting file suffix. string: suffix
 
<tr><td>--tex = name<td> TeX binary. name: binary of executable
 
<tr><td>--texroot = path<td> root of tex trees. path: tex root
 
<tr><td>--textree = path<td> additional texmf tree to be used. path: subpath of tex root
 
<tr><td>--texutil<td> force TeXUtil run
 
<tr><td>--usemodule = name<td> load some modules first  name: list of modules
 
<tr><td>--verbose<td> shows some additional info
 
<tr><td>--version<td> display various version information
 
<tr><td>--xmlfilter = name<td> apply XML filter.  name: list of filters
 
</table>
 
  
 
== Some features explained in detail ==
 
== Some features explained in detail ==

Revision as of 21:35, 31 October 2006

< texexec.ini >


TODO: On this page I'd like to see some texexec trickery and explanations. --pg (See: To-Do List)



NOTE: This page documents the Perl version of TeXExec, which has (relatively recently) been replaced by a ruby re-implementation

Command-Line Options

--alone bypass utilities (e.g. fmtutil for non-standard fmt)
--arrange process and arrange
--automprun MetaPost at runtime when needed
--autopdf Open the pdf viewer after the texexec run. See below.
--batch run in batch mode (don't pause)
--centerpage center the page on the paper
--color enable color (when not yet enabled)
--environment = name load some environments first. Name is: list of environments
--fast skip as much as possible
--figures = (a|b|c) typeset figure directory
room for corrections
just graphics
one (cropped) per page
--final add a final run without skipping
--format = name fmt file. name: format file (memory dump)
--help show this or more, e.g. '--help interface'
--input = name input file (if used). name: filename
--interface = (cz|de|en|it|nl|uk) user interface
--language = lang main hyphenation language. lang: standard abbreviation
--listing produce a verbatim listing
--make build format files
--mode = list running mode. list: modes to set
--module typeset tex/pl/mp module
--mpgraphic process mp file to stand-alone graphics
--mpformat = name mem file. name: format file (memory dump)
--mptex run an MetaPost plus btex-etex cycle
--mpxtex generatet an MetaPostmpx file
--noarrange process but ignore arrange
--nomp don't run MetaPost at all
--nomprun don't run MetaPost at runtime
--nonstop run in non stop mode (don't pause)
--once run TeX only once (no TeXUtil either)
--output specials to use. Can be one of
dvipdfm
Mark Wicks' dvi to pdf converter
dvipdfmx 
Jin-Hwan Cho's extended dvipdfm
dvips
Thomas Rokicky's dvi to ps converter
dvipsone 
YandY's dvi to ps converter
dviwindo 
YandY's windows previewer
pdftex
Han The Than's pdf backend
--pages = (even|odd|x,y:z) pages to output. x,y:z: pages x and y to z
--paperformat = AB or A:B or A*B paper input and output format. a4a3: A4 printed on A3, a5a4: A5 printed on A4
--paperoffset = extra offset paper input and output format. a4a3: A4 printed on A3, a5a4: A5 printed on A4
--passon switches to pass to TeX (--src for MikTeX)
--path = string document source path. string: path
--pdf produce PDF directly using pdf(e)tex
--pdfarrange arrange pdf pages
--pdfcombine combine pages to one page
--pdfcopy scale pages down/up
--pdfselect select pdf pages
--print = (up|down) page imposition scheme. down = 2 rotated pages per sheet doubleside, up = 2 pages per sheet doublesided
--result = filename resulting file will have that filename
--runs = n maximum number of TeX runs. n: number of runs
--screensaver turn graphic file into a (pdf) full screen file
--setfile load environment (batch) file
--silent minimize (status) messages
--suffix= string resulting file suffix. string: suffix
--tex = name TeX binary. name: binary of executable
--texroot = path root of tex trees. path: tex root
--textree = path additional texmf tree to be used. path: subpath of tex root
--texutil force TeXUtil run
--usemodule = name load some modules first name: list of modules
--verbose shows some additional info
--version display various version information
--xmlfilter = name apply XML filter. name: list of filters

Some features explained in detail

autopdf

Currently works only on Windows and Linux. On Mac OS X there is no way to do this for Acrobat Reader 7.0 and Preview.app in a sophisticated way (= keep view), since they are not (apple-)scriptable. You can use TeXniscope, TeXshop or iTeXMac that does that automatically.

nonstopmode

Useful when running texexec from an editor and do not want it to stop for errors.

TeXTools

(should be moved on a separate page, but it's stil almost empty anyway)

To update your TeX tree to the most recent version of kurier fonts for example, you can use

textools --updatetree kurier-tex e:\tex\texmf

with kurier-tex being the new content for your old TEXMF tree (if it were) located under e:\tex\texmf (change folder names accordingly). This will tell you what will be updated, merged and deleted (use --force to really do it)