1 \documentclass[10pt,
a4paper,english
]{article
}
6 \usepackage[latin1]{inputenc}
9 \setlength{\extrarowheight}{2pt
}
15 \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue
]{hyperref
}
16 \usepackage[DIV12
]{typearea
}
17 %% generator Docutils: http://docutils.sourceforge.net/
18 \newlength{\admonitionwidth}
19 \setlength{\admonitionwidth}{0.9\textwidth}
20 \newlength{\docinfowidth}
21 \setlength{\docinfowidth}{0.9\textwidth}
22 \newlength{\locallinewidth}
23 \newcommand{\optionlistlabel}[1]{\bf #1 \hfill}
24 \newenvironment{optionlist
}[1]
26 {\setlength{\labelwidth}{#1}
27 \setlength{\rightmargin}{1cm
}
28 \setlength{\leftmargin}{\rightmargin}
29 \addtolength{\leftmargin}{\labelwidth}
30 \addtolength{\leftmargin}{\labelsep}
31 \renewcommand{\makelabel}{\optionlistlabel}}
33 \newlength{\lineblockindentation}
34 \setlength{\lineblockindentation}{2.5em
}
35 \newenvironment{lineblock
}[1]
37 {\setlength{\partopsep}{\parskip}
38 \addtolength{\partopsep}{\baselineskip}
39 \topsep0pt\itemsep0.15
\baselineskip\parsep0pt
43 % begin: floats for footnotes tweaking.
44 \setlength{\floatsep}{0.5em
}
45 \setlength{\textfloatsep}{\fill}
46 \addtolength{\textfloatsep}{3em
}
47 \renewcommand{\textfraction}{0.5}
48 \renewcommand{\topfraction}{0.5}
49 \renewcommand{\bottomfraction}{0.5}
50 \setcounter{totalnumber
}{50}
51 \setcounter{topnumber
}{50}
52 \setcounter{bottomnumber
}{50}
53 % end floats for footnotes
54 % some commands, that could be overwritten in the style file.
55 \newcommand{\rubric}[1]{\subsection*
{~
\hfill {\it #1} \hfill ~
}}
56 \newcommand{\titlereference}[1]{\textsl{#1}}
57 % end of "some commands"
64 \setlength{\locallinewidth}{\linewidth}
66 This is a test of the new code-block directive:
67 % Translate this document to HTML with a pygments enhanced frontend, e.g.
69 % rst2html-highlight --stylesheet=pygments-default.css --link-stylesheet
70 \begin{quote
}{\ttfamily \raggedright \noindent
71 \docutilsroleNone{def
}~
\docutilsroleNone{my
{\_}function
}\docutilsroleNone{():
}~\\
72 ~~~~
\docutilsroleNone{"just~a~test"
}~\\
73 ~~~~
\docutilsroleNone{print
}~
\docutilsroleNone{8}\docutilsroleNone{/
}\docutilsroleNone{2}~\\
79 Generated on:
2007-
06-
05.