From 5aa46e8d12bd92b7d541ddd22fa81a8164deb46f Mon Sep 17 00:00:00 2001
From: milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Date: Wed, 9 May 2012 13:42:58 +0000
Subject: Clean up code-block-directive sandbox project.

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7430 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
---
 sandbox/code-block-directive/docs/myfunction.py.tex | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

(limited to 'sandbox/code-block-directive/docs/myfunction.py.tex')

diff --git a/sandbox/code-block-directive/docs/myfunction.py.tex b/sandbox/code-block-directive/docs/myfunction.py.tex
index 5a7721295..70f96df3a 100644
--- a/sandbox/code-block-directive/docs/myfunction.py.tex
+++ b/sandbox/code-block-directive/docs/myfunction.py.tex
@@ -14,8 +14,11 @@
 \setlength{\DUlineblockindent}{1em}
 
 %%% User specified packages and stylesheets
-\usepackage{../data/pygments-docutilsroles}
+\usepackage{palatino-optima-txtt}
+\usepackage{microtype}
+\usepackage{bookmark}
 
+\usepackage{../data/pygments-docutilsroles}
 %%% Fallback definitions for Docutils-specific commands
 
 % inline markup (custom roles)
@@ -65,7 +68,7 @@ The example from Docutils TODO list:
 Numbered lines:
 %
 \begin{quote}{\ttfamily \raggedright \noindent
-\DUrole{ln}{1~}\DUrole{c}{\#~This~is~Python~code,}~\\
+\DUrole{l}{\DUrole{n}{1~}}\DUrole{c}{\#~This~is~Python~code,}~\\
 \DUrole{ln}{2~}\DUrole{c}{\#~that~prints~the~integers~from~0~to~9}~\\
 \DUrole{ln}{3~}\DUrole{k}{for}~\DUrole{n}{i}~\DUrole{ow}{in}~\DUrole{nb}{range}\DUrole{p}{(}\DUrole{mi}{10}\DUrole{p}{):}~\\
 \DUrole{ln}{4~}~~~~\DUrole{k}{print}~\DUrole{n}{i}
@@ -75,7 +78,7 @@ Numbered lines:
 Another example:
 %
 \begin{quote}{\ttfamily \raggedright \noindent
-\DUrole{ln}{~7~}\DUrole{k}{def}~\DUrole{nf}{my\_function}\DUrole{p}{():}~\\
+\DUrole{l}{\DUrole{n}{~7~}}\DUrole{k}{def}~\DUrole{nf}{my\_function}\DUrole{p}{():}~\\
 \DUrole{ln}{~8~}~~~~\DUrole{sd}{"{}"{}"Test~the~lexer.\\
 }\DUrole{ln}{~9~}\DUrole{sd}{~~~~"{}"{}"}~\\
 \DUrole{ln}{10~}~\\
@@ -84,6 +87,9 @@ Another example:
 }
 \end{quote}
 
-The end.
+Inline code \texttt{\DUrole{code}{\$\textbackslash{}alpha =
+\textbackslash{}int\_0\textasciicircum{}\textbackslash{}infty f(x) dx\$}}.
+
+Python code \texttt{\DUrole{code}{\DUrole{python}{\DUrole{testclass}{\DUrole{k}{print}\DUrole{p}{(}\DUrole{s}{"The end."}\DUrole{p}{)}}}}}
 
 \end{document}
-- 
cgit v1.2.1

