summaryrefslogtreecommitdiff
path: root/sandbox/code-block-directive/docs/myfunction.py.tex
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2009-02-24 11:40:50 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2009-02-24 11:40:50 +0000
commit17b8a432d43e18bec738fbec1ebd2cca1ebcf041 (patch)
treebbdad678bad69c9f957066e2a2d1c74f7b2fa4d7 /sandbox/code-block-directive/docs/myfunction.py.tex
parent3eeffd4ba5169690bf321b6a96a1e814e74e259d (diff)
downloaddocutils-17b8a432d43e18bec738fbec1ebd2cca1ebcf041.tar.gz
sandbox/code-block-directive: Add LaTeX front end, update
documentation and examples git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5873 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/code-block-directive/docs/myfunction.py.tex')
-rw-r--r--sandbox/code-block-directive/docs/myfunction.py.tex6
1 files changed, 4 insertions, 2 deletions
diff --git a/sandbox/code-block-directive/docs/myfunction.py.tex b/sandbox/code-block-directive/docs/myfunction.py.tex
index 689a02703..6d5ddd5dd 100644
--- a/sandbox/code-block-directive/docs/myfunction.py.tex
+++ b/sandbox/code-block-directive/docs/myfunction.py.tex
@@ -56,7 +56,7 @@
\newcommand{\titlereference}[1]{\textsl{#1}}
% end of "some commands"
% user specified packages and stylesheets:
-\usepackage{cmlgc}
+\usepackage{../data/pygments-docutilsroles}
\ifthenelse{\isundefined{\hypersetup}}{
\usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
}{}
@@ -80,7 +80,9 @@
This is a test of the new code-block directive:
% Translate this document to HTML with a pygments enhanced frontend, e.g.
%
-% rst2html-highlight --stylesheet=pygments-default.css --link-stylesheet
+% rst2html-highlight --stylesheet=../data/pygments-default.css --link-stylesheet
+%
+% rst2latex-highlight --stylesheet=../data/pygments-docutileroles.sty
\begin{quote}{\ttfamily \raggedright \noindent
\DUrole{k}{def}~\DUrole{nf}{my{\_}function}\DUrole{p}{():}~\\
~~~~\DUrole{s}{"just~a~test"}~\\