# -dviprt:

If this parameter is specified, the dviout printer driver are invoked instead of the Windows driver for printing. Or it specifies command for calling another program such as the console version of dviprt for printing.
Changing the defaults of printing
+ If a plus sign (+) is added to the beginning of -dviprt: in the [Printer] of Property Sheets, the default becomes printing based on the dviprt settings.
The leading "+" is removed in the display when reading [Setup...] from the print dialog. Do not add it, in usual case. Although this can be changed, the change is considered to be a temporary one-time change and is not registered.
Using built-in dviout print drivers
` When the beginning is ` or +`, printing under the dviprt settings is done by the built-in drivers.
The function is determined by the following characters (based on the specification following the -p= in the MS-DOS version).
`e ESC/P compatible output (default of 180 dpi).
`p PC-PR compatible output (default of 160 dpi).
`n NM compatible output (default of 300 dpi).
`l LIPS III/IV compatible output (default of 300 dpi) Subsequent suboptions can be specified..
`lD600 LIPS IV compatible output (default of 600 dpi) A semicolon (;) is inserted and subsequent suboptions can be specified.
`m ESC/Page compatible output (default of 300 dpi) Subsequent suboptions can be specified.
`o A specification for an external configuration file follows.
If "e", "p", "n", "l", "m", and "o" above are uppercase letters, they are not dviout settings, but use the default resolution (dpi) defined for each one.
The suboptions can be specified for LIPS III/IV and ESC/Page LBP Drivers.
Controlling external programs
If the beginning is not ` or +`, the execution command is indicated. Specifically, a batch file is created and is responsible for processing.
However, when this is not multiple statements, but is only one line and the end of the first command, excluding the command's parameters, is ".exe", the batch file is not created and the command is directly executed.
The following keywords can be used.
; Represents the newline in multiple statements.
^t Full path name of the temporary files that can be freely used (If the environment variable TMP or TEMP is set, this is the directory. If they are not set, the path name is the "dvitmp.$$$" directory containing dviout.)
^q Full path name of the target dvi file
^d The string deleted .dvi from ^q
^D Name of the dvi file without its directory and extension
^p Printing range in the dviprt format (For dual page printing, macros are also included.)
^P This represents dviprt.exe^-=^f^^q^^p.
^f File writing out the option parameters (Determines the parameters required by dviout from -harf:, -mag:, -lc:, -Z:, -OX:, -OY:, -varf:, -e:, -o:, -y:, and -nf:.
For example, -OX: judged to be required when it is not zero. However, -y: is always included.)
Specifically, this is the dvitmp.par file in the same directory as ^t.
^S Represents ^.
^s Represents space. If the next character is not a letter, the "s" can be omitted.
^A Start page (logical page)
^B Stop page (logical page)
^a Start page (physical page)
^b Stop page (physical page) )
^c Number of copies (corresponds to -lc:)
^e Reduction/magnification ratio(corresponds to -e:)
^m Displays the selections by "Option for Paging" in the print dialog (number from 0 to 5)
^n Indicates the position of the right page in dual page printing (corresponds to W: in the print dialog, width represented in cm like 14.85 cm)
^y Paper size and orientation (corresponds to -y:, "A4P", etc.)
^h Horizontal position adjustment (corresponds to -OX:, cm format such as 1.25cm)
^v Vertical position adjustment (corresponds to -OY:, cm format)
^o Page printing order (corresponds to -o:, any of the six choices "r", "o", "e", "re", "ro" or space)
^x Directory containing the dviout to be started
^W paper size and orientation, odd/even/reverse, offet (-OX: -OY:) for dvips
^w paper size (A3-6, B3-6, Letter, Legal) and orientation, offset (-OX: -OY:) for dvipdfm
^Z or ^Z^n^{...}^{...} The part after this is a message and shown in the Print dialog. At most one ; is possible in the message.
Here n is an integer whose bits correpond to the validities of the following functions.
1: Collate Copies
2: Reverse order
4: Copies
8: + button
16: Option button
32: Unite 2 pages
64: Reduce/Magnify
^z or ^z^n^{...}^{...} This is the same as above but an Window is open for the external program.
^{...} is a check box defined by a user. At most two check boxes are defined. ... is the string shown at the check box.
^X^{...} ... is skipped if the first check box defined by the user is not checked.
^X^}...{ ... is skipped if the first check box defined by the user is checked.
^Y^{...} ... is skipped if the second check box defined by the user is not checked.
^Y^}...{ ... is skipped if the second check box defined by the user is checked.
If -dviprt: is a space or only a plus sign (+), the defaults are set. Refer to "Example of dviprt Settings" and the manual for the dviprt being used.