| 1 |
% $Id: pdftex-dvi.tex 1513 2006-02-13 00:22:35Z karl $ |
| 2 |
% Karl Berry and others, 2004. Public domain. |
| 3 |
% |
| 4 |
% This file is not used in TeX Live 2005. |
| 5 |
% |
| 6 |
% For TeX Live 2004, we started building the "latex" format with the |
| 7 |
% pdfetex engine. This is nice because it gives users access to various |
| 8 |
% advanced typesetting features. But it's problematic because user |
| 9 |
% documents have used, ever since the inception of pdftex, the test |
| 10 |
% \ifx\pdfoutput\undefined |
| 11 |
% to determine whether they are generating pdf or dvi, whether to use |
| 12 |
% the [pdftex] option to graphicx and hyperref, etc. |
| 13 |
% |
| 14 |
% Also, some packages (geometry) test \pdfpageheight and the like, |
| 15 |
% similarly. |
| 16 |
% |
| 17 |
% Although the generic ifpdf.sty style file tests this more robustly, it |
| 18 |
% is asking a lot for everyone to switch. |
| 19 |
% |
| 20 |
% So this file, read at format-creation time, is our attempt at making |
| 21 |
% the change compatible: we *un*define various pdf-related primitives, |
| 22 |
% so that tests like the above will continue to work. At the same time, |
| 23 |
% we make the undefined primitives available as \normalPRIMITIVE, so |
| 24 |
% anyone who really needs to can still get them, despite everything. |
| 25 |
|
| 26 |
\let\normalpdfannot\pdfannot |
| 27 |
\let\pdfannnot\undefined |
| 28 |
|
| 29 |
\let\normalpdfhorigin\pdfhorigin |
| 30 |
\let\pdfhorigin\undefined |
| 31 |
|
| 32 |
\let\normalpdfinfo\pdfinfo |
| 33 |
\let\pdfinfo\undefined |
| 34 |
|
| 35 |
\let\normalpdfliteral\pdfliteral |
| 36 |
\let\pdfliteral\undefined |
| 37 |
|
| 38 |
\let\normalpdfmapfile\pdfmapfile |
| 39 |
\let\pdfmapfile\undefined |
| 40 |
|
| 41 |
\let\normalpdfoutput\pdfoutput |
| 42 |
\let\pdfoutput\undefined |
| 43 |
|
| 44 |
\let\normalpdfpageheight\pdfpageheight |
| 45 |
\let\pdfpageheight\undefined |
| 46 |
|
| 47 |
\let\normalpdfpagewidth\pdfpagewidth |
| 48 |
\let\pdfpagewidth\undefined |
| 49 |
|
| 50 |
\let\normalpdftexversion\pdftexversion |
| 51 |
\let\pdftexversion\undefined |
| 52 |
|
| 53 |
\let\normalpdfvorigin\pdfvorigin |
| 54 |
\let\pdfvorigin\undefined |
| 55 |
|
| 56 |
\let\normalpdftexrevision\pdftexrevision |
| 57 |
\let\pdftexrevision\undefined |
| 58 |
|
| 59 |
\let\normalpdfxform\pdfxform |
| 60 |
\let\pdfxform\undefined |
| 61 |
|
| 62 |
\let\normalpdfximage\pdfximage |
| 63 |
\let\pdfximage\undefined |
| 64 |
|
| 65 |
% these public primitives remain usable in dvi mode: |
| 66 |
% \pdfadjustspacing |
| 67 |
% \pdfavoidoverfull |
| 68 |
% \pdffontattr |
| 69 |
% \pdffontexpand |
| 70 |
% \pdffontname |
| 71 |
% \pdffontsize |
| 72 |
% \*code |
| 73 |
|
| 74 |
\endinput |