Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 61 lines (50 sloc) 1.781 kb
3438731 Fix bug introduced in r57022, add regression tests
murdoch authored
1 \inputencoding{utf8}
2 \HeaderA{ver20}{Johnson \& Johnson, \$ \_ \#\#\# \textasciicircum{} \textasciitilde{}}{ver20}
3 %
4 \begin{Description}\relax
5 This is the description
6 \end{Description}
7 %
8 \begin{Arguments}
9 \begin{ldescription}
10 \item[\code{foo}] item 1
11 \item[\code{bar}] space, the item 2
12 \item[\code{bah}] newline, then item 3
13 \end{ldescription}
14 \end{Arguments}
15 %
16 \begin{Details}\relax
17 \R{} \R{} \bsl{}R \eqn{\alpha\beta\Gamma}{}
18
19 In code, all that needs to be escaped is percent, backslash and unpaired
20 braces: \code{\% \bsl{} \{}. Unescaped: \code{\$ \# \_ \textasciicircum{} \textasciitilde{} < > |}, and as a
21 pair, \code{\{...\}}. If we escape: \code{ \_ \# \$ \& \{ \} \bsl{} }
22 And some backslashes: \code{\bsl{} \bsl{} \bsl{}\bsl{} \bsl{}\bsl{}} should
23 give one, one, two, two backslashes.
24
25 How about \bsl{} (that is backslash space) in text?
26
27 Elsewhere, \{ \} \% \bsl{} need to be escaped, but not \$ \# \_ \textasciicircum{} \textasciitilde{} < > | .
28 Let's try that again in \code{\bsl{}samp}: \samp{ \{ \} \% \bsl{} \$ \# \_ \textasciicircum{} \textasciitilde{} < > |}.
29 And if we do escape: \bsl{}\$ \bsl{}\# \bsl{}\_ , and with three backslashes, \bsl{}\bsl{}\#.
30
31 \deqn{a < b > c | d, x^y}{}
32 \deqn{\$k > \#k, x_y, x\_y}{}
33
34
35 group-weighting from \$[N\_iP\_i(1-P\_i)]\$
36
37 \begin{alltt}
38 % a
39 \bsl{}
40 \bsl{}% c
41 \{
42 \bsl{}\{
43 \end{alltt}
44
45 \end{Details}
46 %
47 \begin{Section}{URLs and emails}
48 URLs need to be verbatim: \url{testit ~^_$#<>|}.
49
50 Markus Kuhn, ``ASCII and Unicode quotation marks''.
51 \url{http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html}
52
53 No escape is needed in \email{Micah\_Altman@harvard.edu}
54 \end{Section}
55 %
56 \begin{Examples}
57 \begin{ExampleCode}
58 "\\r\\n"
59 \end{ExampleCode}
60 \end{Examples}
Something went wrong with that request. Please try again.