mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-06-06 21:01:26 +02:00
Switched to docutils/sphinx for parsing docstrings into LaTeX.
This commit is contained in:
@@ -11,10 +11,40 @@
|
||||
\setlength{\zerosep}{-1em}
|
||||
[% endif %]
|
||||
|
||||
[% include 'preamble.tex' %]
|
||||
|
||||
\title{Features and Magic Items}
|
||||
\author{[[ character.name ]]}
|
||||
\date{}
|
||||
|
||||
%%% Fallback definitions for Docutils-specific commands
|
||||
[% raw %]
|
||||
\usepackage{longtable,ltcaption,array}
|
||||
\setlength{\extrarowheight}{2pt}
|
||||
\newlength{\DUtablewidth} % internal use in tables
|
||||
% 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
|
||||
|
||||
Reference in New Issue
Block a user