Switch to using Minted and splitting long lines in verbatim.

This commit is contained in:
Amar Takhar 2016-03-10 11:48:15 -05:00 committed by Amar Takhar
parent 63eaa6fbf0
commit 2bcd424b4b
3 changed files with 11 additions and 1 deletions

View File

@ -182,7 +182,7 @@ latex_elements = {
} }
latex_additional_files = ['../common/rtemsstyle.sty', '../common/logo.pdf'] latex_additional_files = ['../common/rtemsstyle.sty', '../common/minted.sty', '../common/logo.pdf']
latex_use_modindex = False latex_use_modindex = False

View File

@ -14,6 +14,14 @@
\renewenvironment{printindex}{\underscoresplit\oldprintindex} \renewenvironment{printindex}{\underscoresplit\oldprintindex}
\usepackage{minted}
\fvset{
breaklines=true,
linenos,
numbersep=5pt,
gobble=2,
}
\renewcommand{\maketitle}{% \renewcommand{\maketitle}{%
\begin{titlepage}% \begin{titlepage}%

View File

@ -65,6 +65,8 @@ def check_sphinx_version(ctx, minver):
def cmd_configure(ctx): def cmd_configure(ctx):
ctx.load('tex') ctx.load('tex')
ctx.env.append_value('PDFLATEXFLAGS', '-shell-escape')
ctx.find_program("sphinx-build", var="BIN_SPHINX_BUILD", mandatory=True) ctx.find_program("sphinx-build", var="BIN_SPHINX_BUILD", mandatory=True)
ctx.find_program("aspell", var="BIN_ASPELL", mandatory=False) ctx.find_program("aspell", var="BIN_ASPELL", mandatory=False)
ctx.find_program("inliner", var="BIN_INLINER", mandatory=False) ctx.find_program("inliner", var="BIN_INLINER", mandatory=False)