Switched to docutils/sphinx for parsing docstrings into LaTeX.

This commit is contained in:
Mark Wolfman
2021-04-07 22:01:32 -05:00
parent e448244ba5
commit 4719ad4305
8 changed files with 164 additions and 35 deletions
@@ -9,10 +9,37 @@
\setlength{\zerosep}{-1em}
[% endif %]
[% include 'preamble.tex' %]
\title{Infusion Descriptions}
\author{[[ character.name ]] (Artificer [[ character.Artificer.level ]] level)}
\date{}
%%% Fallback definitions for Docutils-specific commands
[% raw %]
% admonition (specially marked topic)
\providecommand{\DUadmonition}[2][class-arg]{%
% try \DUadmonition#1{#2}:
\ifcsname DUadmonition#1\endcsname%
\csname DUadmonition#1\endcsname{#2}%
\else
\begin{center}
\fbox{\parbox{0.9\linewidth}{#2}}
\end{center}
\fi
}
% title for topics, admonitions, unsupported section levels, and sidebar
\providecommand*{\DUtitle}[2][class-arg]{%
% call \DUtitle#1{#2} if it exists:
\ifcsname DUtitle#1\endcsname%
\csname DUtitle#1\endcsname{#2}%
\else
\smallskip\noindent\textbf{#2}\smallskip%
\fi
}
[% endraw %]
\begin{document}
\maketitle