doc-src/railsetup.sty
author haftmann
Tue, 13 Jul 2010 11:38:04 +0200
changeset 37788 261c61fabc98
parent 32234 96345b918125
child 42515 3f8d7f80173b
permissions -rw-r--r--
corrected title
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
32234
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
     1
%% dimensions
7137
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
     2
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
     3
\setlength\railextra{3.6ex}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
     4
\setlength\railboxleft{0.9ex}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
     5
\setlength\railboxright{0.9ex}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
     6
\setlength\railovalspace{1.8ex}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
     7
\setlength\railframespace{1.8ex}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
     8
\setlength\railtextleft{0.9ex}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
     9
\setlength\railtextright{0.9ex}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
    10
\setlength\railnamesep{0.9ex}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
    11
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
    12
\setlength\railboxheight{16pt}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
    13
\setlength\railboxskip{24pt}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
    14
\setlength\railtextup{5pt}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
    15
\setlength\railjoinsize{16pt}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
    16
32234
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    17
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    18
%% rail antiquotation environment
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    19
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    20
\newenvironment{railoutput}%
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    21
{\begin{list}{}{\rail@param}\def\rail@expand{\relax}\makeatletter}{\end{list}}
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    22
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    23
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    24
%% old-style content markup
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    25
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    26
\railalias{percent}{\%}
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    27
\railalias{ppercent}{\%\%}
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    28
\railalias{underscore}{\_}
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    29
\railalias{lbrace}{\texttt{\ttlbrace}}
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    30
\railalias{rbrace}{\texttt{\ttrbrace}}
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    31
\railalias{atsign}{{\at}}
96345b918125 added rail antiquotation environment, which coexists with old-style content markup;
wenzelm
parents: 13048
diff changeset
    32
7137
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
    33
\def\rail@termfont{\small\ttfamily\upshape}
8592
c7f7cb82fd56 tail token vs. terminal;
wenzelm
parents: 7170
diff changeset
    34
\def\rail@tokenfont{\small\ttfamily\upshape}
7137
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
    35
\def\rail@nontfont{\small\rmfamily\upshape}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
    36
\def\rail@annofont{\small\rmfamily\itshape}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
    37
\def\rail@namefont{\small\rmfamily\itshape}
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
    38
\def\rail@indexfont{\small\rmfamily\itshape}
8592
c7f7cb82fd56 tail token vs. terminal;
wenzelm
parents: 7170
diff changeset
    39
\newcommand{\railtterm}[1]{{\texttt{#1}}}
13048
wenzelm
parents: 9613
diff changeset
    40
\newcommand{\railtok}[1]{{\textrm{#1}}}
wenzelm
parents: 9613
diff changeset
    41
\newcommand{\railqtok}[1]{{\rmfamily\textsl{#1}}}
7137
e5d18fd42430 hacking the rail package;
wenzelm
parents:
diff changeset
    42
\newcommand{\railnonterm}[1]{{\emph{#1}}}