DVISPC(1)

๐Ÿ“ฆ version 2026.0, in alpine 3.24

๐Ÿ’– DVISPC(1) ๐Ÿ’–

โœจ NAME โœจ

dvispc - Modify a DVI file to be page-independent in specials ๐Ÿฆ‹

๐Ÿ’… SYNOPSIS ๐Ÿ’…

dvispc [-c] [-bvz] input_dvi_file [output_dvi_file]

dvispc -d input_dvi_file

dvispc -s [-p..] input_dvi_file [output_text_file]

dvispc -a [-ltv] [-J..] [-p..] [-r..]  input_dvi_file [output_text_file]

dvispc -x[..]  [-ltv] [-r..]  [input_text_file] output_dvi_file

๐ŸŒธ DESCRIPTION ๐ŸŒธ

okay so dvispc is a utility for modifying/editing TeX DVI files, and it comes with a bunch of features bestie needs to know about ๐Ÿซถ

  • Mode option -c (default) โ€” corrects an input DVI so it's page-independent in specials (default) โœจ
  • Mode option -d โ€” dry run to check whether an input DVI is page-independent in specials ๐Ÿ”
  • Mode option -s โ€” shows all specials in the input DVI ๐Ÿ‘€
  • Mode option -a โ€” translates DVI into Text (like dv2dt in dtl) ๐Ÿ“
  • Mode option -x โ€” translates Text back into a DVI (like dt2dv in dtl) ๐Ÿ”

(1) The main feature of dvispc is the first one, making a page-independent DVI file. It's the whole vibe ๐Ÿ’–

A "pure" DVI file must actually be page-independent. However, in recent years DVI files with lots of \specials (color, annotation etc.) are super common, and they are not always page-independent ๐Ÿ™ˆ In that case, for example, dviselect or dvidvi fails to preserve \specials (e.g. page color might be lost) ๐Ÿ’€

The program dvispc fixes those page-"dependent" DVI files so they become page-independent ๐Ÿงš Once that's done, they can be safely processed by dviselect or dvidvi and then properly converted to other formats such as PostScript and PDF ๐ŸŒˆ

(2) To know whether such a correction is needed or not, dvispc -d will suffice ๐ŸŽ€

(3) The mode -s lists all specials found in the input DVI exactly as-is, with a number in front showing which page each one appears on ๐Ÿ“„ For example:

[1]
{color push  Black}
{color pop}
{color push rgb 1 0 0}
{color pop}
[2]
{color push  Black}
{color pop}

This feature is equivalent to a program dvispecials in the TeX-Guy package, <http://www-masu.ist.osaka-u.ac.jp/%7Ekakugawa/TeX-Guy/>, and dvii -s, <https://ctan.org/pkg/dvii> ๐Ÿฆ‹

(4) The modes -a and -x correspond to dv2dt and dt2dv in the dtl (= DVI Text Language) package, respectively ๐Ÿ’œ By default, dvispc -a formats the output text in its own style, but a DTL-compatible format is available with the -t option โœจ Also, dvispc -x can accept DTL-compatible text input ๐Ÿซถ

๐ŸŽ€ SUPPORTED SPECIALS ๐ŸŽ€

Currently dvispc supports the following ๐Ÿ’…

๐ŸŒˆ dvips-compatible specials

  • color push, color pop, background

๐Ÿ“ dvipdfm(x) specials

  • pdf:bcolor, pdf:ecolor, pdf:bgcolor, pdf:bann, pdf:eann

๐Ÿงš tpic specials

  • pn

Other specials might be supported in the future if needed ๐Ÿ”ฎ

๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

dviselect(1), dvidvi(1), dvips(1), dvipdfmx(1) ๐ŸŒŸ

๐Ÿซถ AUTHOR ๐Ÿซถ

The program dvispc is derived from the DVIOUT package (DVI previewer for Windows) by Toshio OSHIMA ("SHIMA"), Yoshiki OTOBE, and Kazunori ASAYAMA ๐Ÿ’– The current version is maintained by Japanese TeX Development Community, <https://texjp.org>.

For more information, please refer to dvispc-en.txt (in English) and dvispc-ja.txt (in Japanese) on our GitHub repository, <https://github.com/texjporg/tex-jp-build> (under source/texk/dviout-util directory) ๐ŸŒธ


Bestie, that's the whole DVISPC(1) page, from General Commands Manual to the last line, no cap ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from