File: verb.xml

package info (click to toggle)
latexml 0.8.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,920 kB
  • sloc: xml: 109,048; perl: 30,224; sh: 179; javascript: 28; makefile: 13
file content (114 lines) | stat: -rw-r--r-- 3,886 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0" encoding="UTF-8"?>
<?latexml class="article"?>
<?latexml RelaxNGSchema="LaTeXML"?>
<document xmlns="http://dlmf.nist.gov/LaTeXML">
  <resource src="LaTeXML.css" type="text/css"/>
  <resource src="ltx-article.css" type="text/css"/>
  <section inlist="toc" xml:id="S1">
    <tags>
      <tag>1</tag>
      <tag role="refnum">1</tag>
      <tag role="typerefnum">§1</tag>
    </tags>
    <title><tag close=" ">1</tag>Verbatim Environment</title>
    <para xml:id="S1.p1">
      <p>Normal <text font="bold">Bold</text> stuff.</p>
    </para>
    <para xml:id="S1.p2">
      <p>Verbatim 1:</p>
      <verbatim font="typewriter">
AbNormal {\bf NonBold} stuff.
</verbatim>
    </para>
    <para xml:id="S1.p3">
      <p>Verbatim 2:</p>
      <verbatim font="typewriter">
inside verbatim
\end {verbatim}
still inside verbatim
</verbatim>
    </para>
    <para xml:id="S1.p4">
      <p>Verbatim 3:</p>
      <verbatim font="typewriter"> keep this
AbNormal {\bf NonBold} stuff.
keep this too    
</verbatim>
      <p>outside verbatim
More Normal <text font="bold">Bold</text> stuff.</p>
    </para>
    <para xml:id="S1.p5">
      <p>Verbatim 4:</p>
      <verbatim font="typewriter">␣keep␣this
AbNormal␣{\bf␣NonBold}␣stuff.
keep␣this␣too␣␣␣␣
</verbatim>
      <p>outside verbatim
More Normal <text font="bold">Bold</text> stuff.</p>
    </para>
  </section>
  <section inlist="toc" xml:id="S2">
    <tags>
      <tag>2</tag>
      <tag role="refnum">2</tag>
      <tag role="typerefnum">§2</tag>
    </tags>
    <title><tag close=" ">2</tag>Inline verb command</title>
    <para xml:id="S2.p1">
      <p>Some inline <verbatim font="typewriter">\verb</verbatim> verbatim.</p>
    </para>
    <para xml:id="S2.p2">
      <p>More <verbatim font="typewriter">a } b # c ^ d _ e $ f</verbatim> stuff;</p>
    </para>
    <para xml:id="S2.p3">
      <p>And more <verbatim font="typewriter">a␣}␣b␣#␣c␣^␣d␣_␣e␣$␣f</verbatim> stuff</p>
    </para>
    <para xml:id="S2.p4">
      <p>Even in math <Math mode="inline" tex="\verb|a_b|^{2}" text="a_b ^ 2" xml:id="S2.p4.m1">
          <XMath>
            <XMApp>
              <XMTok role="SUPERSCRIPTOP" scriptpos="post1"/>
              <XMTok font="typewriter">a_b</XMTok>
              <XMTok fontsize="70%" meaning="2" role="NUMBER">2</XMTok>
            </XMApp>
          </XMath>
        </Math>.</p>
    </para>
    <para xml:id="S2.p5">
      <p>More inline <verbatim font="typewriter">\verb</verbatim> verbatim.</p>
    </para>
    <para xml:id="S2.p6">
      <p>x<text font="bold" width="144.5pt">x<verbatim font="typewriter medium">\verb</verbatim>y.</text>y</p>
    </para>
    <para xml:id="S2.p7">
      <p><verbatim font="typewriter">Nested | is allowed .</verbatim></p>
    </para>
    <para xml:id="S2.p8">
      <p>Note that spaces after a control-sequence are skipped on the <emph font="italic">next</emph> read,
by which time catcodes may have been changed.
Prior to April, 2020, a space following <verbatim font="typewriter">\verb</verbatim> would – surprisingly – have been treated as
the delimiter! Since then, spaces are skipped and the following char (even *) is used as delimiter.
We’ll adopt the newer approach.</p>
    </para>
    <para xml:id="S2.p9">
      <p><verbatim font="typewriter">a}b#c^d_e$f</verbatim> stuff</p>
    </para>
    <para xml:id="S2.p10">
      <p><verbatim font="typewriter">rick-roll} </verbatim></p>
    </para>
    <para xml:id="S2.p11">
      <p><verbatim font="typewriter">rick-roll}␣</verbatim></p>
    </para>
    <para xml:id="S2.p12">
      <p><verbatim font="typewriter">+ i n </verbatim> o u t +</p>
    </para>
    <para xml:id="S2.p13">
      <p>Input snippet</p>
    </para>
    <para xml:id="S2.p14">
      <verbatim font="typewriter">|a}b#c^d_e$f|
</verbatim>
      <p>after.</p>
    </para>
  </section>
</document>