{
    "mode": "man",
    "parameter": "dvitodvi",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/dvitodvi/1/json",
    "generated": "2026-07-05T11:58:14Z",
    "synopsis": "dvitodvi  [  -q  ] [ -i infile ] [ -o outfile ] [ -wwidth ] [ -hheight ] pagespecs [ infile [\noutfile ] ]",
    "sections": {
        "NAME": {
            "content": "dvitodvi - rearrange pages in a DVI file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "dvitodvi  [  -q  ] [ -i infile ] [ -o outfile ] [ -wwidth ] [ -hheight ] pagespecs [ infile [\noutfile ] ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Dvitodvi rearranges pages from a DVI file, creating a new DVI file.  Dvitodvi can be used  to\nperform  a  large  number  of arbitrary re-arrangements of Documents, including arranging for\nprinting 2-up, 4-up, booklets, reversing, selecting front or back sides of  documents,  scal‐\ning, etc.\n\npagespecs follow the syntax:\n\npagespecs   = [modulo:][mag@]specs\n\nspecs       = spec[+specs][,specs]\n\nspec        = [-]pageno[(xoff,yoff)]\n\nmodulo  is  the  number of pages in each block. The value of modulo should be greater than 0;\nthe default value is 1.  The optional mag parameter adjusts the file's magnification  by  the\nmagnification  specified.  The  magnification and modulo can be specified in reverse order if\ndesired.  specs are the page specifications for the pages in each block.  The  value  of  the\npageno  in  each spec should be between 0 (for the first page in the block) and modulo-1 (for\nthe last page in each block) inclusive.  The optional dimensions xoff and yoff shift the page\nby  the  specified  (positive)  amount.  xoff and yoff are in PostScript's points, but may be\nfollowed by the units cm or in to convert to centimetres or inches, or the flag  w  or  h  to\nspecify  as  a multiple of the width or height.  If the optional minus sign is specified, the\npage is relative to the end of the document, instead of the start.\n\nIf page specs are separated by + the pages will be merged into one page; if  they  are  sepa‐\nrated  by  ,  they  will be on separate pages.  If there is only one page specification, with\npageno zero, the pageno may be omitted.\n\nThe -w option gives the width which is used by the w dimension specifier, and the  -h  option\ngives  the  height which is used by the h dimension specifier. These dimensions are also used\n(after scaling) to set the clipping path for each page.\n\nDvitodvi normally prints the page numbers of the pages re-arranged; the -q option  suppresses\nthis.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "This  section  contains  some sample re-arrangements. To put two pages on one sheet (of land‐\nscaped A3 paper), the pagespec to use is:\n\n2:0+1(21cm,0)\n\nTo reduce an A3 page to A4 size, the pagespec to use is:\n\n700@(-.3in,-.3in)\n\nTo select all of the odd pages in reverse order, use:\n\n2:-0\n\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Angus Duggan, from dviselect(1), by Chris Torek, University of Maryland. Currently maintained\nas part of TeX Live (https://tug.org/texlive).\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "dvibook(1), dviconcat(1), dviselect(1), latex(1), tex(1)\nMC-TeX User's Guide\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Dvitodvi  does  not  adjust some of the parameters in the postamble. This may be a problem if\nthese values are used to size certain structures in the output conversion programs.\n\n\n\nTeX Live                                  8 September 2020                               DVITODVI(1)",
            "subsections": []
        }
    },
    "summary": "dvitodvi - rearrange pages in a DVI file",
    "flags": [],
    "examples": [
        "This  section  contains  some sample re-arrangements. To put two pages on one sheet (of land‐",
        "scaped A3 paper), the pagespec to use is:",
        "2:0+1(21cm,0)",
        "To reduce an A3 page to A4 size, the pagespec to use is:",
        "700@(-.3in,-.3in)",
        "To select all of the odd pages in reverse order, use:",
        "2:-0"
    ],
    "see_also": [
        {
            "name": "dvibook",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/dvibook/1/json"
        },
        {
            "name": "dviconcat",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/dviconcat/1/json"
        },
        {
            "name": "dviselect",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/dviselect/1/json"
        },
        {
            "name": "latex",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/latex/1/json"
        },
        {
            "name": "tex",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/tex/1/json"
        }
    ]
}