summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/eptexdir/tests/suppress_errors.tex
blob: 6b116350fdf5aafbaf73f8619d932d4a08c63aac (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
\batchmode
\long\def\typeout#1{\immediate\write-1{#1}}
\def\ { }%
\output{\deadcycles0\setbox0\box255}
\def\E#1{}
\typeout{*** \string\par\ in non-\string\long\ cmd.}
\E{a

b}
\E{c\par d}

\outer\def\F{hoge}
\typeout{*** \string\outer\ cmd in \string\message\ and \string\write.}
\immediate\write-1{\F}
\message{\F}

\typeout{*** \string\outer\ cmd in conditionals.}
\iftrue a\F 
\else b\F
\fi

\typeout{*** \string\outer\ cmd in alignment preambles.}
\halign{#\F&#\cr a&d\cr}

\typeout{*** \string\par\ in math mode.}
$ x+1 =

a\par b$

$$\eqno{a}\par$$

$$ aaa\par$$

\typeout{*** \string\pdfprimitive\ and non-primitive.}
\ifdefined\primitive
  \primitive\batchmode
  \primitive\hoge
\else
  \pdfprimitive\batchmode
  \pdfprimitive\hoge
\fi

\typeout{===============}
\suppresslongerror=1
\suppressoutererror=1
\suppressmathparerror=1

\typeout{*** \string\par\ in non-\string\long\ cmd.}
\E{a

b}
\E{c\par d}

\typeout{*** \string\outer\ cmd in \string\message\ and \string\write.}
\immediate\write-1{\F}
\message{\F}

\typeout{*** \string\outer\ cmd in conditionals.}
\iftrue a\F 
\else b\F
\fi

\typeout{*** \string\outer\ cmd in alignment preambles.}
\halign{#\F&#\cr a&d\cr}

\typeout{*** \string\par\ in math mode.}
$ x+1 =

a\par b$

$$\eqno{a}\par$$

$$ aaa\par$$

\bye