ptex --version (return code: 0)
pTeX 3.14159265-p3.6 (utf8.euc) (TeX Live 2015/Debian)
kpathsea version 6.2.1
ptexenc version 1.3.3
Copyright 2015 D.E. Knuth.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pTeX source.
Primary author of pTeX: D.E. Knuth.
ptex --help (return code: 0)
Usage: ptex [OPTION]... [TEXNAME[.tex]] [COMMANDS]
or: ptex [OPTION]... \FIRST-LINE
or: ptex [OPTION]... &FMT ARGS
Run pTeX on TEXNAME, usually creating TEXNAME.dvi.
Any remaining COMMANDS are processed as pTeX input, after TEXNAME is read.
If the first line of TEXNAME is %&FMT, and FMT is an existing .fmt file,
use it. Else use `NAME.fmt', where NAME is the program invocation name,
most commonly `ptex'.
Alternatively, if the first non-option argument begins with a backslash,
interpret all non-option arguments as a line of pTeX input.
Alternatively, if the first non-option argument begins with a &, the
next word is taken as the FMT to read, overriding all else. Any
remaining arguments are processed as above.
If no arguments or options are specified, prompt for input.
-fmt=NAME use NAME instead of program name or %&format.
-halt-on-error stop processing at the first error
[-no]-file-line-error disable/enable file:line:error style messages
-ini be iniptex.
-interaction=STRING set interaction mode (STRING=batchmode|nonstopmode|
scrollmode|errorstopmode)
-ipc send DVI output to a socket as well as the usual
output file
-ipc-start as -ipc, and also start the server at the other end
-jobname=STRING set the job name to STRING
-kanji=STRING set Japanese encoding (STRING=euc|jis|sjis|utf8)
-kanji-internal=STRING set Japanese internal encoding (STRING=euc|sjis)
-kpathsea-debug=NUMBER set path searching debugging flags according to
the bits of NUMBER
[-no]-mktex=FMT disable/enable mktexFMT generation (FMT=tex/tfm)
-mltex enable MLTeX extensions such as \charsubdef
-output-comment=STRING use STRING for DVI file comment instead of date
-output-directory=DIR use existing DIR as the directory to write files in
[-no]-parse-first-line disable/enable parsing of first line of input file
-progname=STRING set program (and fmt) name to STRING
-recorder enable filename recorder
[-no]-shell-escape disable/enable \write18{SHELL COMMAND}
-shell-restricted enable restricted \write18
-src-specials insert source specials into the DVI file
-src-specials=WHERE insert source specials in certain places of
the DVI file. WHERE is a comma-separated value
list: cr display hbox math par parend vbox
-synctex=NUMBER generate SyncTeX data for previewers if nonzero
-translate-file=TCXNAME use the TCX file TCXNAME
-help print this message and exit.
-version print version information and exit.
Email bug reports to ptex-staff@ml.asciimw.jp.