summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/eplain/base/test/verb2.tex
blob: b3c7c4ad54c137d3f8fa5b8792533c8fd9f58696 (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
% This file is public domain.
%
% Date: Wed, 30 Mar 94 09:50:27 CST
% From: dorai@cs.rice.edu (Dorai Sitaram)
% To: karl@cs.umb.edu
% Subject: eplain 2.4's \verbatim: problem & fix

\input eplain

Testing Eplain's \verbatim verbatim|endverbatim

\def\junk{{\it Some obviously $a^2+b^2$ non-verbatim stuff}}

\bigskip\bigskip

First let's test if the default | works

\verbatim
verbatim starts
Some special chars:
  !@#$%^&*()_+
Now test if doubling works:
  This line ends with a single ||
Now test if I can use || to get non-verbatim stuff:
  \junk
verbatim ends
|endverbatim

\bigskip\bigskip

Now let's try the same with escape set to \#.
\verbatimescapechar\#

\verbatim
verbatim starts
Some special chars:
  !@$%^&*()_+
Now test if doubling works:
  This line ends with a single ##
Now test if I can use ## to get non-verbatim stuff:
  #junk
verbatim ends
#endverbatim

\bigskip\bigskip

Now with @.
\verbatimescapechar\@

\verbatim
verbatim starts
Some special chars:
  !#$%^&*()_+
Now test if doubling works:
  This line ends with a single @@
Now test if I can use @@ to get non-verbatim stuff:
  @junk
verbatim ends
@endverbatim

\bye