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
115
116
117
118
119
120
121
122
123
124
125
126
127
|
\ProvidesPackage{dtx-style}
\errorcontextlines=999
\def\@dotsep{1000}
\setcounter{tocdepth}{2}
\setlength\columnseprule{0.1pt}
\renewcommand\tableofcontents{\relax
\begin{multicols}{2}[\section*{\contentsname}]\small
\@starttoc{toc}\relax
\end{multicols}}
\setcounter{IndexColumns}{2}
\renewenvironment{theglossary}
{\small\list{}{}
\item\relax
\glossary@prologue\GlossaryParms
\let\item\@idxitem \ignorespaces
\def\pfill{\hspace*{\fill}}}
{\endlist}
\usepackage[svgnames]{xcolor}
\usepackage{amsmath,array,bm,booktabs,calc,enumitem,fancyvrb,graphicx,ifthen,longtable,refstyle,subfig,topcapt,varioref,\jobname}
\usepackage{easyvector,vector,tensind}
\usepackage{url}
\usepackage[sc,osf]{mathpazo}
\linespread{1.069} % A bit more space between lines
\frenchspacing % Remove ugly extra space after punctuation
\definecolor{niceblue}{rgb}{0.2,0.4,0.8}
\newenvironment{example}[1]
{\VerbatimEnvironment
\def\Options{#1}%
\begin{VerbatimOut}[gobble=2]{\examplefilename}}
{\end{VerbatimOut}\relax
\typesetexample}
\fvset{formatcom=\color{niceblue}}
\DefineShortVerb{\|}
\def\theCodelineNo{\textcolor{niceblue}{\sffamily\tiny\arabic{CodelineNo}}}
\let\examplesize\normalsize
\let\auxwidth\relax
\newlength\examplewidth\newlength\verbatimwidth
\newlength\exoutdent \newlength\exverbgap
\setlength\exverbgap{1em}
\setlength\exoutdent{-0.15\textwidth}
\newsavebox\verbatimbox
\edef\examplefilename{\jobname.example}
\newcommand\typesetexample{\relax
\smallskip
\noindent
\begin{minipage}{\linewidth}
\color{niceblue}
\hrulefill\par
\edef\@tempa{[gobble=0,fontsize=\noexpand\small,\Options]}%
\begin{lrbox}{\verbatimbox}\relax
\expandafter\BVerbatimInput\@tempa{\examplefilename}%
\end{lrbox}
\begin{list}{}{\setlength\itemindent{0pt}
\setlength\leftmargin\exoutdent
\setlength\rightmargin{0pt}}\item
\ifx\auxwidth\relax
\setlength\verbatimwidth{\wd\verbatimbox}%
\else
\setlength\verbatimwidth{\auxwidth}%
\fi
\begin{minipage}[c]{\textwidth-\exoutdent-\verbatimwidth-\exverbgap}
\catcode`\%=14\centering\linespread{1.6}\input\examplefilename\relax
\end{minipage}\hfill
\begin{minipage}[c]{\verbatimwidth}
\usebox\verbatimbox
\end{minipage}
\end{list}
\par\noindent\hrulefill
\end{minipage}
\smallskip}
\newcommand*\setverbwidth[1]{\def\auxwidth{#1}}
\newcommand*\name[1]{{#1}}
\newcommand*\pkg[1]{\textsf{#1}}
\newcommand*\feat[1]{\texttt{#1}}
\newcommand*\opt[1]{\texttt{#1}}
\newcommand*\ltx[1]{%
\ifx3#1\relax
\textsc{ltx3}%
\else
\LaTeXe
\fi}
\newcommand*\note[1]{\unskip\footnote{#1}}
\let\latin\textit
\def\eg{\latin{e.g.}}
\def\Eg{\latin{E.g.}}
\def\ie{\latin{i.e.}}
\def\etc{\@ifnextchar.{\latin{etc}}{\latin{etc.}\@}}
\def\STIX{\textsc{stix}}
\def\MacOSX{Mac~OS~X}
\def\ascii{\textsc{ascii}}
\def\OMEGA{Omega}
\def\CTAN{\textsc{ctan}}
\newcounter{argument}
\g@addto@macro\endmacro{\setcounter{argument}{0}}
\newcommand*\darg[1]{%
\stepcounter{argument}%
{\ttfamily\char`\#\theargument~:~}#1\par\noindent\ignorespaces}
\newcommand*\doarg[1]{%
\stepcounter{argument}%
{\ttfamily\makebox[0pt][r]{[}\char`\#\theargument]:~}#1\par\noindent\ignorespaces}
\def\codeline{\par\hspace{\parindent}}% two \indents in total
\newcommand\unichar[2]{\textsc{\MakeLowercase{u+#1: #2}}}
\setlength\parindent{2em}
|