summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/pdftex/manual/pdftex-syntax.txt
blob: 70a1a454d84fbdaf11907188b7bfbd945aa54753 (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
%% $Id: syntaxform.pl 742 2016-04-25 17:30:55Z karl $
%% This is the list of new or extended primitives provided by pdftex.
%% Don't edit this file, as it is now auto-generated from the
%% pdfTeX manual source pdftex-t.tex (and the generated
%% pdftex-syntax.tex) by the script syntaxform.awk.
%% Syntax rule conventions borrowed from `TeXbook naruby' by Petr Olsak.

%% Integer registers:
\efcode <font> <8-bit number>                           (integer)
\knaccode <font> <8-bit number>                         (integer)
\knbccode <font> <8-bit number>                         (integer)
\knbscode <font> <8-bit number>                         (integer)
\lpcode <font> <8-bit number>                           (integer)
\pdfadjustinterwordglue                                 (integer)
\pdfadjustspacing                                       (integer)
\pdfappendkern                                          (integer)
\pdfcompresslevel                                       (integer)
\pdfdecimaldigits                                       (integer)
\pdfdraftmode                                           (integer)
\pdfforcepagebox                                        (integer)
\pdfgamma                                               (integer)
\pdfgentounicode                                        (integer)
\pdfimageapplygamma                                     (integer)
\pdfimagegamma                                          (integer)
\pdfimagehicolor                                        (integer)
\pdfimageresolution                                     (integer)
\pdfinclusioncopyfonts                                  (integer)
\pdfinclusionerrorlevel                                 (integer)
\pdfinfoomitdate                                        (integer)
\pdfminorversion                                        (integer)
\pdfobjcompresslevel                                    (integer)
\pdfoutput                                              (integer)
\pdfpagebox                                             (integer)
\pdfpkresolution                                        (integer)
\pdfprependkern                                         (integer)
\pdfprotrudechars                                       (integer)
\pdfsuppressptexinfo                                    (integer)
\pdfsuppresswarningdupdest                              (integer)
\pdfsuppresswarningdupmap                               (integer)
\pdfsuppresswarningpagegroup                            (integer)
\pdftracingfonts                                        (integer)
\pdfuniqueresname                                       (integer)
\rpcode <font> <8-bit number>                           (integer)
\shbscode <font> <8-bit number>                         (integer)
\stbscode <font> <8-bit number>                         (integer)
\tagcode <font> <8-bit number>                          (integer)

%% Read-only integers:
\pdfelapsedtime                                         (read-only integer)
\pdflastannot                                           (read-only integer)
\pdflastlink                                            (read-only integer)
\pdflastobj                                             (read-only integer)
\pdflastxform                                           (read-only integer)
\pdflastximage                                          (read-only integer)
\pdflastximagecolordepth                                (read-only integer)
\pdflastximagepages                                     (read-only integer)
\pdflastxpos                                            (read-only integer)
\pdflastypos                                            (read-only integer)
\pdfrandomseed                                          (read-only integer)
\pdfretval                                              (read-only integer)
\pdfshellescape                                         (read-only integer)
\pdftexversion                                          (read-only integer)

%% Dimen registers:
\pdfdestmargin                                          (dimen)
\pdfeachlinedepth                                       (dimen)
\pdfeachlineheight                                      (dimen)
\pdffirstlineheight                                     (dimen)
\pdfhorigin                                             (dimen)
\pdfignoreddimen                                        (dimen)
\pdflastlinedepth                                       (dimen)
\pdflinkmargin                                          (dimen)
\pdfpageheight                                          (dimen)
\pdfpagewidth                                           (dimen)
\pdfpxdimen                                             (dimen)
\pdfthreadmargin                                        (dimen)
\pdfvorigin                                             (dimen)

%% Token registers:
\pdfpageattr                                            (tokens)
\pdfpageresources                                       (tokens)
\pdfpagesattr                                           (tokens)
\pdfpkmode                                              (tokens)

%% Expandable commands:
\ifincsname                                             (expandable)
\ifpdfabsdim                                            (expandable)
\ifpdfabsnum                                            (expandable)
\ifpdfprimitive <control sequence>                      (expandable)
\leftmarginkern <box number>                            (expandable)
\pdfcolorstackinit [page] [direct] <general text>       (expandable)
\pdfcreationdate                                        (expandable)
\pdfescapehex <general text>                            (expandable)
\pdfescapename <general text>                           (expandable)
\pdfescapestring <general text>                         (expandable)
\pdffiledump [offset <number>] [length <number>] <general text> (expandable)
\pdffilemoddate <general text>                          (expandable)
\pdffilesize <general text>                             (expandable)
\pdffontname <font>                                     (expandable)
\pdffontobjnum <font>                                   (expandable)
\pdffontsize <font>                                     (expandable)
\pdfincludechars <font> <general text>                  (expandable)
\pdfinsertht <integer>                                  (expandable)
\pdflastmatch <integer>                                 (expandable)
\pdfmatch [icase] [subcount <integer>] <general text> <general text> (expandable)
\pdfmdfivesum file <general text>                       (expandable)
\pdfnormaldeviate                                       (expandable)
\pdfpageref <page number>                               (expandable)
\pdfstrcmp <general text> <general text>                (expandable)
\pdftexbanner                                           (expandable)
\pdftexrevision                                         (expandable)
\pdfunescapehex <general text>                          (expandable)
\pdfuniformdeviate <number>                             (expandable)
\pdfxformname <object number>                           (expandable)
\pdfximagebbox <integer> <integer>                      (expandable)
\rightmarginkern <box number>                           (expandable)

%% General commands:
\letterspacefont <control sequence> <font> <integer>
\pdfannot <annot type spec>                             (h, v, m)
\pdfcatalog <general text> [openaction <action spec>]
\pdfcolorstack <stack number> <stack action> <general text>
\pdfcopyfont <control sequence> <font>
\pdfdest <dest spec>                                    (h, v, m)
\pdfendlink                                             (h, m)
\pdfendthread                                           (v, m)
\pdffakespace
\pdffontattr <font> <general text>
\pdffontexpand <font> <stretch> <shrink> <step> [autoexpand]
\pdfglyphtounicode <general text> <general text>
\pdfinfo <general text>
\pdfinterwordspaceoff
\pdfinterwordspaceon
\pdfliteral [<pdfliteral spec>] <general text>          (h, v, m)
\pdfmapfile <map spec>
\pdfmapline <map spec>
\pdfnames <general text>
\pdfnobuiltintounicode <font>
\pdfnoligatures <font>
\pdfobj <object type spec>                              (h, v, m)
\pdfoutline [<attr spec>] <action spec> [count <integer>] <general text> (h, v, m)
\pdfprimitive <control sequence>
\pdfrefobj <object number>                              (h, v, m)
\pdfrefxform <object number>                            (h, v, m)
\pdfrefximage <object number>
\pdfresettimer
\pdfrestore
\pdfsave
\pdfsavepos                                             (h, v, m)
\pdfsetmatrix
\pdfsetrandomseed <number>
\pdfstartlink [<rule spec>] [<attr spec>] <action spec> (h, m)
\pdfthread [<rule spec>] [<attr spec>] <id spec>        (h, v, m)
\pdftrailer <general text>
\pdftrailerid <general text>
\pdftstartthread [<rule spec>] [<attr spec>] <id spec>  (v, m)
\pdfxform [<attr spec>] [<resources spec>] <box number> (h, v, m)
\pdfximage [<rule spec>] [<attr spec>] [<page spec>] [<colorspace spec>] [<pdf box spec>] <general text> (h, v, m)
\quitvmode
\special {pdf: <text> }
\special {pdf:direct: <text> }
\special {pdf:page: <text> }
\vadjust [<pre spec>] <filler> { <vertical mode material> } (h, m)

%% Syntax rules:
<general text> --> { <balanced text> }
<attr spec> --> attr <general text>
<resources spec> --> resources <general text>
<rule spec> --> (width | height | depth) <dimen> [<rule spec>]
<object type spec> --> reserveobjnum
                     | [useobjnum <number>] [stream [<attr spec>]] <object contents>
<annot type spec> --> reserveobjnum
                    | [useobjnum <number>] [<rule spec>] <general text>
<object contents> --> <file spec>
                    | <general text>
<xform attr spec> --> [<attr spec>] [<resources spec>]
<image attr spec> --> [<rule spec>] [<attr spec>] [<page spec>] [<colorspace spec>] [<pdf box spec>]
<outline spec> --> [<attr spec>] <action spec> [count <number>] <general text>
<action spec> --> user <user-action spec>
                | goto <goto-action spec>
                | thread <thread-action spec>
<user-action spec> --> <general text>
<goto-action spec> --> <numid>
                     | [<file spec>] <nameid>
                     | [<file spec>] [<page spec>] <general text>
                     | <file spec> <nameid> <newwindow spec>
                     | <file spec> [<page spec>] <general text> <newwindow spec>
<thread-action spec> --> [<file spec>] <numid>
                       | [<file spec>] <nameid>
<colorspace spec> --> colorspace <number>
<pdf box spec> --> mediabox | cropbox | bleedbox | trimbox | artbox
<map spec> --> { [<map modifier>] <balanced text> }
<map modifier> --> + | = | -
<numid> --> num <number>
<nameid> --> name <general text>
<newwindow spec> --> newwindow | nonewwindow
<dest spec> --> <numid> <dest type>
              | <nameid> <dest type>
<dest type> --> xyz [zoom <number>]
              | fitr <rule spec>
              | fitbh
              | fitbv
              | fitb
              | fith
              | fitv
              | fit
<thread spec> --> [<rule spec>] [<attr spec>] <id spec>
<id spec> --> <numid> | <nameid>
<file spec> --> file <general text>
<page spec> --> page <number>
<expand spec> --> <stretch> <shrink> <step> [autoexpand]
<stretch> --> <number>
<shrink> --> <number>
<step> --> <number>
<pre spec> --> pre
<pdfliteral spec> --> direct | page
<pdfspecial spec> --> { [<pdfspecial id> [<pdfspecial modifier>]] <balanced text> }
<pdfspecial id> --> pdf: | PDF:
<pdfspecial modifier> --> direct:
<stack action> --> set | push | pop | current