summaryrefslogtreecommitdiff
path: root/Master/texmf/tex/generic/config/pdftex-dvi.tex
blob: 5f23295068295b232ab6a1c116f0d8f7b71fb41b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
% $Id: //depot/Master/texmf/tex/generic/config/pdftex-dvi.tex#3 $  $Date: 2005/10/09 $  $author$
% Karl Berry and others, 2004. Public domain.
% 
% This file is not used in TeX Live 2005.
% 
% For TeX Live 2004, we started building the "latex" format with the
% pdfetex engine.  This is nice because it gives users access to various
% advanced typesetting features.  But it's problematic because user
% documents have used, ever since the inception of pdftex, the test
%   \ifx\pdfoutput\undefined
% to determine whether they are generating pdf or dvi, whether to use
% the [pdftex] option to graphicx and hyperref, etc.
% 
% Also, some packages (geometry) test \pdfpageheight and the like,
% similarly.
% 
% Although the generic ifpdf.sty style file tests this more robustly, it
% is asking a lot for everyone to switch.
% 
% So this file, read at format-creation time, is our attempt at making
% the change compatible: we *un*define various pdf-related primitives,
% so that tests like the above will continue to work.  At the same time,
% we make the undefined primitives available as \normalPRIMITIVE, so
% anyone who really needs to can still get them, despite everything.

\let\normalpdfannot\pdfannot
\let\pdfannnot\undefined

\let\normalpdfhorigin\pdfhorigin
\let\pdfhorigin\undefined

\let\normalpdfinfo\pdfinfo
\let\pdfinfo\undefined

\let\normalpdfliteral\pdfliteral
\let\pdfliteral\undefined

\let\normalpdfmapfile\pdfmapfile
\let\pdfmapfile\undefined

\let\normalpdfoutput\pdfoutput
\let\pdfoutput\undefined

\let\normalpdfpageheight\pdfpageheight
\let\pdfpageheight\undefined

\let\normalpdfpagewidth\pdfpagewidth
\let\pdfpagewidth\undefined

\let\normalpdftexversion\pdftexversion
\let\pdftexversion\undefined

\let\normalpdfvorigin\pdfvorigin
\let\pdfvorigin\undefined

\let\normalpdftexrevision\pdftexrevision
\let\pdftexrevision\undefined

\let\normalpdfxform\pdfxform
\let\pdfxform\undefined

\let\normalpdfximage\pdfximage
\let\pdfximage\undefined

% these public primitives remain usable in dvi mode:
% \pdfadjustspacing
% \pdfavoidoverfull
% \pdffontattr
% \pdffontexpand
% \pdffontname
% \pdffontsize
% \*code

\endinput