fix snapshot creation, and put snapshots on sourceforge.net directly (not via ftp...
[docutils.git] / sandbox / code-block-directive / docs / myfunction.py.tex
blobd8c934c7ae732c52c6fbda3ab6e1cfac29f3b3fc
1 \documentclass[10pt,a4paper,english]{article}
2 \usepackage{babel}
3 \usepackage{ae}
4 \usepackage{aeguill}
5 \usepackage{shortvrb}
6 \usepackage[latin1]{inputenc}
7 \usepackage{tabularx}
8 \usepackage{longtable}
9 \setlength{\extrarowheight}{2pt}
10 \usepackage{amsmath}
11 \usepackage{graphicx}
12 \usepackage{color}
13 \usepackage{multirow}
14 \usepackage{ifthen}
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]
25 {\begin{list}{}
26 {\setlength{\labelwidth}{#1}
27 \setlength{\rightmargin}{1cm}
28 \setlength{\leftmargin}{\rightmargin}
29 \addtolength{\leftmargin}{\labelwidth}
30 \addtolength{\leftmargin}{\labelsep}
31 \renewcommand{\makelabel}{\optionlistlabel}}
32 }{\end{list}}
33 \newlength{\lineblockindentation}
34 \setlength{\lineblockindentation}{2.5em}
35 \newenvironment{lineblock}[1]
36 {\begin{list}{}
37 {\setlength{\partopsep}{\parskip}
38 \addtolength{\partopsep}{\baselineskip}
39 \topsep0pt\itemsep0.15\baselineskip\parsep0pt
40 \leftmargin#1}
41 \raggedright}
42 {\end{list}}
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"
58 \title{}
59 \author{}
60 \date{}
61 \raggedbottom
62 \begin{document}
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}~\\
75 }\end{quote}
77 \begin{center}\small
79 Generated on: 2007-06-05.
82 \end{center}
84 \end{document}