File: latex_literal_block_listings.py

package info (click to toggle)
python-docutils 0.21.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,900 kB
  • sloc: python: 50,310; lisp: 14,475; xml: 1,810; javascript: 1,032; makefile: 107; sh: 78
file content (21 lines) | stat: -rw-r--r-- 663 bytes parent folder | download
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.txt"
test_destination = "latex_literal_block_listings.tex"

# Keyword parameters passed to publish_file()
writer_name = "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}}
""",
}