1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
# Source and destination file names
test_source = "latex_literal_block.rst"
test_destination = "latex_literal_block_listings.tex"
# Keyword parameters passed to publish_file()
writer = "latex"
settings_overrides = {
'stylesheet': 'docutils',
'legacy_column_widths': True,
'use_latex_citations': False,
'literal_block_env': 'lstlisting',
'latex_preamble': r"""
% PDF Standard Fonts
\usepackage{mathptmx} % Times
\usepackage[scaled=.90]{helvet}
\usepackage{courier}
% LaTeX syntax highlight with "listings":
\lstloadlanguages{[LaTeX]TeX} % comma separated list of languages
\newcommand{\DUCLASSlatex}{\lstset{language=[LaTeX]TeX}}
""",
}
|