Debian Codegraph @

texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_pgfcoreexternal.code.tex

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %%% This file is a copy of some part of PGF/Tikz.
3 %%% It has been copied here to provide :
4 %%% - compatibility with older PGF versions
5 %%% - availability of PGF contributions by Christian Feuersaenger
6 %%% which are necessary or helpful for pgfplots.
7 %%%
8 %%% For reasons of simplicity, I have copied the whole file, including own contributions AND
9 %%% PGF parts. The copyrights are as they appear in PGF.
10 %%%
11 %%% Note that pgfplots has compatible licenses.
12 %%%
13 %%% This copy has been modified in the following ways:
14 %%% - nested \input commands have been updated
15 %%%
16 %
17 % Support for the contents of this file will NOT be done by the PGF/TikZ team.
18 % Please contact the author and/or maintainer of pgfplots (Christian Feuersaenger) if you need assistance in conjunction
19 % with the deployment of this patch or partial content of PGF. Note that the author and/or maintainer of pgfplots has no obligation to fix anything:
20 % This file comes without any warranty as the rest of pgfplots; there is no obligation for help.
21 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22 %%% Date of this copy: Do 31. Dez 19:01:21 CET 2015 %%%
23
24
25
26 % Copyright 2006 by Till Tantau
27 %
28 % This file may be distributed and/or modified
29 %
30 % 1. under the LaTeX Project Public License and/or
31 % 2. under the GNU Public License.
32 %
33 % See the file doc/generic/pgf/licenses/LICENSE for more details.
34
35 \ProvidesFileRCS $Header: /cvsroot/pgf/pgf/generic/pgf/basiclayer/pgfcoreexternal.code.tex,v 1.22 2015/08/29 10:15:21 cfeuersaenger Exp $
36
37
38
39 \newif\ifpgfexternal@aux@in@dpth
40 \newif\ifpgfexternal@info
41
42 \pgfkeys{
43 /pgf/images/include external/.code={\pgfimage{#1}},
44 /pgf/images/aux in dpth/.is if=pgfexternal@aux@in@dpth,
45 /pgf/images/aux in dpth/.default=true,
46 /pgf/images/trim external/.code n args={4}{%
47 \def\pgf@external@kern@left{#1}%
48 \def\pgf@external@kern@bottom{#2}%
49 \def\pgf@external@kern@right{#3}%
50 \def\pgf@external@kern@top{#4}%
51 \ifx\pgf@external@kern@left\pgfutil@empty\def\pgf@external@kern@left{0sp}\fi%
52 \ifx\pgf@external@kern@bottom\pgfutil@empty\def\pgf@external@kern@bottom{0sp}\fi%
53 \ifx\pgf@external@kern@right\pgfutil@empty\def\pgf@external@kern@right{0sp}\fi%
54 \ifx\pgf@external@kern@top\pgfutil@empty\def\pgf@external@kern@top{0sp}\fi%
55 },
56 /pgf/images/trim external={1truein}{1truein}{1truein}{1truein},
57 /pgf/images/external info/.is if=pgfexternal@info,
58 /pgf/images/external info/.default=true,
59 }
60
61 % The external read/write mechanism is used as follows:
62 %
63 % In your document, you put a number or all of your pgfpicture (or
64 % tikzpicture) environments inside a pair of \beginpgfexternal and
65 % \endpgfexternal. The \beginpgfexternal gets one parameter called the
66 % graphics name.
67 %
68 % Once this is done, the next step is to declare the names of your
69 % graphics in the document at the beginning using the
70 % \pgfdeclaregraphicname command.
71 %
72 % Now, when you typeset your document, each time a \beginpgfexternal
73 % command is encountered, it will be checked whether the corresponding
74 % graphics file exists. If this is the case, it will be included and
75 % the code between \beginpgfexternal and \endpgfexternal is
76 % ignored. Otherwise, the code is executed normally.
77 %
78 % Things change when you run tex on your file with the \jobname set to
79 % the name of a decalred graphics name. In this case, only your
80 % graphic will be typeset, the rest of the document will be "thrown away".
81 % To be more precise, everything is gobbled up to the beginning
82 % of the first \beginpgfexternal with the given graphics name. Then,
83 % the content of the "environment" is put in a box (this "environment"
84 % need not contain a graphics, it may contain anything that can be put
85 % in a box). Then a single page is output whose size is exactly the
86 % size of the picture.
87 %
88 % So, once you have run tex repeatedly, each time with the jobname set
89 % to each of the graphics, you can then run tex on the whole document
90 % and this will cause all graphics to be included rather than begin
91 % typeset.
92 %
93 % Finally, once all the graphics have been created, you can also say
94 % \input pgfexternal.tex instead of including pgf/TikZ.
95
96
97 \newif\ifpgfexternalreadmainaux
98 \pgfexternalreadmainauxtrue
99
100 % Tells pgf which jobname is the name of the real file
101 %
102 % #1 = name
103 %
104 % Description:
105 %
106 % This command is used to tell pgf that the file named #1 should be
107 % typeset normally. If \jobname is not equal to #1, only
108 % the graphic called \jobname will be typeset.
109 %
110 % Example:
111 %
112 % \pgfrealjobname{survey}
113 %
114 % Note that afterwards, \jobname will be set to the argument. In our
115 % example, \jobname will be 'survey'. This is to accomplish
116 % compatibility with aux-file generation.
117
118 \def\pgfrealjobname#1{%
119 \global\let\pgfactualjobname=\jobname
120 \edef\pgf@tempa{\expandafter\string\csname #1\endcsname}%
121 \edef\pgf@tempb{\expandafter\string\csname\jobname\endcsname}%
122 \ifx\pgf@tempa\pgf@tempb%
123 \else%
124 \pgf@external@grabshipouttrue%
125 \pgfexternal@nofiles% see also \pgf@external@init@aux@in@dpth
126 \ifpgfexternalreadmainaux
127 % and reset the jobname. This should allow to handle any
128 % \label/\ref constructions which are stored in \jobname.aux (and
129 % which won't be found otherwise)
130 \gdef\jobname{#1}%
131 \fi
132 \ifpgfexternal@aux@in@dpth
133 \csname newwrite\endcsname\w@pgfexternal@auxout
134 \fi
135 \pgfexternal@geometry@compatibility
136 \fi%
137 \gdef\pgfrealjobname##1{}% avoid multiple calls.
138 }
139
140 \def\pgfexternal@geometry@compatibility{%
141 % check if \usepackage{geometry} is loaded:
142 \pgfutil@ifundefined{geometry}{%
143 }{%
144 % The geometry package hooks into \begin{document}, evaluates
145 % its driver -- and generates \special instructions to set the
146 % paper size.
147 %
148 % Unfortunately, this confuses dvips utterly - and perhaps
149 % other drivers as well.
150 %
151 % Thus, if we currently about to generate some external
152 % graphics, we WANT to disable geometry (it has no purpose in
153 % this context anyway).
154 %
155 % This here works well:
156 \immediate\write16{Package TikZ externalization: calling \string\geometry{driver=none} during externalization.^^J}%
157 \geometry{driver=none}%
158 }%
159 }%
160
161 \def\pgfexternal@nofiles{%
162 % replace \relax. The \nofiles macros does
163 % \let\makeglossary=\relax
164 % but the glossary.sty calls \renewcommand\makeglossary (which
165 % will fail if \makeglossary=\relax). Stupid, but it works.
166 \let\pgfexternal@nofiles@=\relax
167 \def\relax{\relax}%
168 %
169 % suppress generation of LaTeX .aux, .toc etc files.
170 % generation of these files is not thread-safe.
171 % the \csname \endcsname yields \relax if \nofiles doesn't exist.
172 \csname nofiles\endcsname
173 %
174 \let\relax=\pgfexternal@nofiles@
175 }%
176
177 \newif\ifpgf@external@grabshipout
178 \newbox\pgfexternal@startupbox
179
180 \pgfutil@ifundefined{AtBeginDocument}{}{%
181 \AtBeginDocument{%
182 \ifpgf@external@grabshipout%
183 \global\let\pgfexternal@originalshipout=\shipout%
184 \global\def\shipout{\setbox\pgfpic=}%
185 \maxdeadcycles=10000%
186 % Ok, gather everything we have seen up to now in a box. This box
187 % will contain any specials that have been used.
188 {%
189 \output{\global\setbox\pgfexternal@startupbox=\vbox{\csname @begindvi\endcsname\unvbox255}}%
190 \hbox{}\eject%
191 }%
192 \fi%
193 }
194 }%
195
196 \pgfutil@ifundefined{AtEndDocument}{}{%
197 \AtEndDocument{%
198 \ifpgf@external@grabshipout
199 \pgfutil@ifundefined{pgfexternal@did@a@shipout}{%
200 \pgfexternal@error@no@shipout
201 }{}%
202 \fi
203 }%
204 }
205
206 % This will be overwritten by the tikz external lib if it is loaded.
207 \def\pgfexternal@error@no@shipout{%
208 \pgferror{Sorry, image externalization failed: the resulting image was EMPTY. I tried to externalize '\pgfactualjobname'. Perhaps there was a typo somewhere? Please check that your document contains '\string\beginpgfgraphicnamed{\pgfactualjobname} ... \string\endpgfgraphicnamed'}%
209 }%
210
211
212 % "Environment" for an external graphic.
213 %
214 % #1 = graphic name
215 %
216 % Example:
217 %
218 % \beginpgfgraphicnamed{main-graphic2}
219 % \begin{tikzpicture}
220 % ...
221 % \end{tikzpicture}
222 % \endpgfgraphicnamed
223
224 \def\pgf@externalbegin#1{%
225 % First, check whether we wish to grab this graphic:
226 \let\pgf@next=\pgf@external@normal%
227 \ifpgf@external@grabshipout%
228 \edef\pgf@tempa{\expandafter\string\csname #1\endcsname}%
229 \edef\pgf@tempb{\expandafter\string\csname\pgfactualjobname\endcsname}%
230 \ifx\pgf@tempa\pgf@tempb%
231 \let\pgf@next=\pgf@external@grab%
232 \fi%
233 \fi%
234 \pgf@next{#1}%
235 }
236
237
238 \AtBeginDocument{
239 \let\beginpgfgraphicnamed=\pgf@externalbegin% overwrite definition of pgfexternal.tex if necessary
240 \let\endpgfgraphicnamed=\unskip
241 }
242
243
244 % Normal operation: Include an external graphic instead of the
245 % picture, if such an external picture exists.
246 \def\pgf@external@normal#1{%
247 \let\pgf@filename=\pgfutil@empty%
248 \expandafter\pgf@findfile\pgfsys@imagesuffixlist:+{#1}%
249 \ifx\pgf@filename\pgfutil@empty%
250 % Ok, no such image... Just typeset the picture normally.
251 \let\pgf@next=\relax%
252 \else%
253 \let\pgf@next=\pgf@replacepicturebygraphic%
254 \fi%
255 \pgf@next%
256 }
257
258 \long\def\pgf@replacepicturebygraphic#1\endpgfgraphicnamed{%
259 \expandafter\pgfincludeexternalgraphics\expandafter{\pgf@filename}\unskip
260 }
261
262 % This is almost the same as \includegraphics{#1}, but it checks
263 % whether '#1.dpth' exists. In such case, it restores the boxes depth
264 % stored in #1.dpth.
265 %
266 % Furthermore, the .dpth file may contain .aux related information
267 % collected for the external graphics (references). They start after
268 % the first line (if any).
269 \def\pgfincludeexternalgraphics#1{%
270 \begingroup
271 \pgfexternalreaddpth{#1}%
272 \pgfkeysifdefined{/pgf/images/include external/#1/.@cmd}{%
273 \pgfkeysgetvalue{/pgf/images/include external/#1/.@cmd}\pgf@tempa
274 \pgfkeyslet{/pgf/images/include external/.@cmd}\pgf@tempa
275 }{}%
276 \setbox1=\hbox{\pgfkeysvalueof{/pgf/images/include external/.@cmd}{#1}\pgfeov}%
277 \ifdim\pgfexternaltrimleft=0sp \else \kern\pgfexternaltrimleft\relax \fi
278 \ifdim\pgfexternaldepth=0pt
279 \box1
280 \else
281 \dimen0=\pgfexternaldepth\relax
282 \hbox{\lower\dimen0 \box1 }%
283 \fi
284 \ifdim\pgfexternaltrimright=0sp \else \kern\pgfexternaltrimright\relax \fi
285 \endgroup
286 }
287
288 % Reads the .dpth file which contains meta data of the external
289 % picture.
290 %
291 % This command handles the following stuff:
292 % - it defines \pgfexternaldepth . The macro contains the contents of
293 % a line which does not start with a control sequence (for example a
294 % line containing '50pt')
295 % - it defines \pgfexternaltrimleft and \pgfexternaltrimright
296 % - it checks if the .dpth file contains content stored by means of
297 % \pgfexternalstorecommand. If so, the argument of
298 % \pgfexternalstorecommand will be restored.
299 % - anything else will be appended to the main .aux file, assuming that
300 % it contains \label or \ref information (only if the LaTeX switch
301 % \if@filesw is \iftrue).
302 %
303 %
304 % #1: the image file name (such that #1.dpth exists)
305 \def\pgfexternalreaddpth#1{%
306 % no \begingroup. Handle that manually:
307 \edef\pgfexternalreaddpth@restore{%
308 \noexpand\endlinechar=\the\endlinechar\space
309 \noexpand\catcode`\noexpand\@=\the\catcode`\@\space
310 }%
311 %
312 \def\pgfexternaldepth{0sp}%
313 \def\pgfexternaltrimleft{0sp}%
314 \def\pgfexternaltrimright{0sp}%
315 \endlinechar=-1 % suppress white space at end
316 \catcode`\@=11
317 \openin\r@pgf@reada=#1.dpth
318 \pgfincludeexternalgraphics@read@dpth
319 %
320 \pgfexternalreaddpth@restore
321 }%
322 %
323 % The .dpth consists of 0-N lines, where each is either a single
324 % dimension (the box' depth) or something which belongs to the .aux
325 % file (such lines will always start with a macro).
326 \def\pgfincludeexternalgraphics@read@dpth{%
327 \ifeof\r@pgf@reada
328 \closein\r@pgf@reada
329 \else
330 \read\r@pgf@reada to\pgfincludeexternalgraphics@auxline
331 \ifx\pgfincludeexternalgraphics@auxline\pgfutil@empty
332 \else
333 \expandafter\pgfincludeexternalgraphics@read@dpth@line\pgfincludeexternalgraphics@auxline\pgfincludeexternalgraphics@read@dpth@line@EOI
334 \fi
335 \expandafter\pgfincludeexternalgraphics@read@dpth
336 \fi
337 }%
338
339 \def\pgfexternal@restore#1{#1}%
340
341 \long\def\pgfincludeexternalgraphics@read@dpth@line@getfirst#1#2\pgfincludeexternalgraphics@read@dpth@line@EOI{%
342 \def\pgf@first{#1}%
343 }%
344 \long\def\pgfincludeexternalgraphics@read@dpth@line#1\pgfincludeexternalgraphics@read@dpth@line@EOI{%
345 \pgfincludeexternalgraphics@read@dpth@line@getfirst#1\pgfincludeexternalgraphics@read@dpth@line@EOI
346 \expandafter\ifcat\expandafter\noexpand\pgf@first\relax
347 % Ah -- the first token is a control sequence. It belongs to
348 % the .aux file.
349 %
350 \expandafter\ifx\pgf@first\pgfexternal@restore
351 % if the first line in the .dpth file starts with the
352 % magic string \pgfexternal@restore, the complete line
353 % will be executed as-is. Example:
354 % \pgfexternal@restore{\def\somevalue{1}}
355 #1%
356 \else
357 % do NOT execute #1! many LaTeX commands don't support it (\label for example)
358 \pgfutil@ifundefined{if@filesw}{%
359 % sorry, .aux file support only for latex
360 }{%
361 % append to main .aux file (for forward references)
362 \if@filesw
363 {%
364 \toks0={#1}%
365 % believe it or not, but the
366 % \def\dpthimport{...}\dpthimport *makes* a
367 % difference! In ensures any occuring `##' characters are properly expanded to `#'.
368 \immediate\write\@auxout{%
369 \noexpand\def\noexpand\dpthimport{\the\toks0}\noexpand\dpthimport}%
370 }%
371 \fi
372 }%
373 \fi
374 \else% it is the depth (which is simply a number for backwards compatibility)
375 \def\pgfexternaldepth{#1}%
376 \fi
377 }%
378
379 % Stores '#1' (expanded!) into the .dpth file of the currently
380 % exported image.
381 %
382 % This command has only an effect if an image is being exported.
383 %
384 % The stored contents will be read in the context where
385 % /pgf/images/include external is active (i.e. by
386 % \pgfexternalreaddpth).
387 %
388 \def\pgfexternalstorecommand#1{%
389 }%
390 \def\pgfexternalstorecommand@isexporting#1{%
391 \immediate\write\w@pgfexternal@auxout{\noexpand\pgfexternal@restore{#1}}%
392 }%
393
394
395
396 % Grab operation: If jobname matches the graphic name, typeset this
397 % picture normall.
398 % REMARK:
399 % this method is also invoked from within the tikz external library.
400 \def\pgf@external@grab#1{%
401 \def\pgf@filename{#1}%
402 \ifpgfexternal@aux@in@dpth
403 \begingroup
404 \pgf@external@init@aux@in@dpth
405 \let\G@refundefinedtrue=\pgf@external@grab@refundefinedtrue
406 \fi
407 \gdef\pgf@trimleft@final{0sp}%
408 \gdef\pgf@trimright@final{0sp}%
409 \setbox\pgfpic=\hbox\bgroup\bgroup%
410 \let\endpgfgraphicnamed=\pgf@externalend%
411 }
412
413 {\catcode`\^=12 \gdef\pgfexternal@hat{^}}
414
415 \expandafter\let\expandafter\pgf@external@grab@refundefinedtrue@orig\csname G@refundefinedtrue\endcsname
416
417 \def\pgf@external@grab@refundefinedtrue{%
418 \pgf@external@grab@refundefinedtrue@orig
419 \begingroup
420 \def\n{\pgfexternal@hat\pgfexternal@hat J}%
421 \pgfexternalstorecommand{%
422 \pgf@external@grab@refundefinedtrue@code
423 \noexpand\immediate\noexpand\write16{\pgf@external@grab@refundefinedtrue@warning}%
424 \noexpand\G@refundefinedtrue
425 }%
426 \endgroup
427 }%
428
429 % A hook. will be overwritten by \usetikzlibrary{external}
430 \def\pgf@external@grab@refundefinedtrue@code{}
431
432 \def\pgf@external@grab@refundefinedtrue@warning{%
433 LaTeX Warning: External picture `\pgfactualjobname' contains undefined references\noexpand\on@line.\n
434 }%
435
436 \let\pgf@external@@protected@write@orig=\protected@write
437 \long\def\pgf@external@@protected@write@immediate#1#2#3{%
438 \begingroup
439 \let\pgf@write@=\write
440 \def\write{\noexpand\immediate\pgf@write@}%
441 \pgf@external@@protected@write@orig{#1}{#2}{#3}%
442 \endgroup
443 }%
444
445 \def\pgf@external@init@aux@in@dpth{%
446 \let\pgfexternalstorecommand=\pgfexternalstorecommand@isexporting
447 %
448 % tell LaTeX to write aux files...
449 \csname @fileswtrue\endcsname
450 % ... but redirect output to the .dpth file!
451 \immediate\openout\w@pgfexternal@auxout=\[email protected]
452 \let\@auxout=\w@pgfexternal@auxout
453 % ... and disable the correct page numbers. I can't get that
454 % (because the correct page number is only available in the
455 % shipout routine). Use immediate output:
456 \let\protected@write=\pgf@external@@protected@write@immediate
457 }%
458
459 \def\pgf@externalend@storeshifts#1{%
460 \immediate\write#1{\the\dp\pgfpic}% store the depth simply as number for backw. compat.
461 \ifx\pgf@trimleft@final\pgfutil@empty\else
462 \immediate\write#1{\noexpand\pgfexternal@restore{\noexpand\def\noexpand\pgfexternaltrimleft{\pgf@trimleft@final}}}%
463 \fi
464 \ifx\pgf@trimright@final\pgfutil@empty\else
465 \immediate\write#1{\noexpand\pgfexternal@restore{\noexpand\def\noexpand\pgfexternaltrimright{\pgf@trimright@final}}}%
466 \fi
467 \ifpgfexternal@info
468 \immediate\write#1{\noexpand\pgfexternal@restore{\noexpand\def\noexpand\pgfexternalwidth{\the\wd\pgfpic}}}%
469 \immediate\write#1{\noexpand\pgfexternal@restore{\noexpand\def\noexpand\pgfexternalheight{\the\dimen0}}}%
470 \fi
471 }
472 % REMARK:
473 % this method is also invoked from within the tikz external library.
474 \def\pgf@externalend{%
475 \unskip\egroup\egroup%
476 {%
477 \def\pgf@external@trim{0}%
478 \def\pgf@external@store@dpth{0}%
479 %
480 \ifpgf@trim@lowlevel
481 \gdef\pgf@trimleft@final{}%
482 \gdef\pgf@trimright@final{}%
483 \else
484 \ifdim\pgf@trimleft@final=0sp \gdef\pgf@trimleft@final{} \else\def\pgf@external@trim{1}\fi
485 \ifdim\pgf@trimright@final=0sp \gdef\pgf@trimright@final{} \else\def\pgf@external@trim{1}\fi
486 \if1\pgf@external@trim
487 % UNDO the trimming! export to pdf doesn't supported trimmed
488 % bounding boxes (has to do with the mediabox/trimbox etc).
489 % I'll keep the bounding box intact and store the trim information
490 % into the .dpth file.
491 \setbox\pgfpic=\hbox{%
492 \ifx\pgf@trimleft@final\pgfutil@empty\else\kern-\pgf@trimleft@final\fi
493 \box\pgfpic
494 \ifx\pgf@trimright@final\pgfutil@empty\else\kern-\pgf@trimright@final\fi
495 }%
496 \def\pgf@external@store@dpth{1}%
497 \fi
498 \fi
499 %
500 \parindent0pt % leave the space
501 % \leftmargin0pt%
502 % \rightmargin0pt%
503 \hoffset=0pt % reset to default
504 \voffset=0pt
505 \dimen0\ht\pgfpic%
506 \advance\dimen0\dp\pgfpic%
507 \ifdim\dp\pgfpic=0pt\relax
508 \else% store the picture's depth. Otherwise, it would be lost.
509 \def\pgf@external@store@dpth{1}%
510 \fi
511 \ifpgfexternal@info
512 \def\pgf@external@store@dpth{1}%
513 \fi
514 %
515 \if1\pgf@external@store@dpth
516 \ifpgfexternal@aux@in@dpth
517 \pgf@externalend@storeshifts\@auxout
518 \immediate\closeout\@auxout
519 \else
520 \immediate\openout\pgf@plotwrite=\[email protected]
521 \pgf@externalend@storeshifts\pgf@plotwrite
522 \immediate\closeout\pgf@plotwrite
523 \fi
524 \fi
525 \pgfsys@prepare@papersize{\the\wd\pgfpic}{\the\dimen0}%
526 %
527 \setbox0=\vbox{%
528 % I admit that I don't know why there is this kerning:
529 \kern -\pgf@external@kern@top\relax%
530 \hbox{%
531 \kern -\pgf@external@kern@left\relax%
532 \hbox to0pt{%
533 \wd\pgfexternal@startupbox=0pt %
534 \ht\pgfexternal@startupbox=0pt %
535 \dp\pgfexternal@startupbox=0pt %
536 \box\pgfexternal@startupbox%
537 \pgfsys@atbegindocument\hss}%
538 \box\pgfpic%
539 \kern\pgf@external@kern@right\relax%
540 }%
541 \kern\pgf@external@kern@bottom\relax%
542 }%
543 %
544 % compatibility with eso-pic package: \nointerlineskip is not
545 % allowed here, but the eso-pic package uses \nointerlineskip in
546 % its shipout routine.
547 \let\pgfexternal@nointerlineskip@orig=\nointerlineskip
548 \let\nointerlineskip=\pgfexternal@nointerlineskip
549 %
550 \pgfexternal@originalshipout\box0 %
551 \gdef\pgfexternal@did@a@shipout{1}%
552 }%
553 \ifpgfexternal@aux@in@dpth
554 \endgroup
555 \fi
556 }
557
558 \def\pgfexternal@nointerlineskip{%
559 \ifvmode
560 \pgfexternal@nointerlineskip@orig
561 \else
562 \relax% \nointerlineskip in horizontal mode not allowed. Silently ignore the error message.
563 \fi
564 }%
565
566 \endinput
567 % vi: tabstop=4 shiftwidth=2 expandtab