RST: implement footnotes and citations (#16960)
* RST: implement footnotes and citations * manual fixup of nimdoc.out.css * remove unused code * shorter printing code * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
56f5010fa4
commit
35bd39a9d0
9 changed files with 656 additions and 36 deletions
|
|
@ -50,7 +50,7 @@ doc.file = """
|
|||
\usepackage{fancyvrb, courier}
|
||||
\usepackage{tabularx}
|
||||
\usepackage{hyperref}
|
||||
\usepackage{enumitem}
|
||||
\usepackage{enumitem} % for enumList and rstfootnote
|
||||
|
||||
\usepackage{xcolor}
|
||||
\usepackage[tikz]{mdframed}
|
||||
|
|
@ -76,6 +76,7 @@ bottomline=false}
|
|||
\maketitle
|
||||
|
||||
\newenvironment{rstpre}{\VerbatimEnvironment\begingroup\begin{Verbatim}[fontsize=\footnotesize , commandchars=\\\{\}]}{\end{Verbatim}\endgroup}
|
||||
\newenvironment{rstfootnote}{\begin{description}[labelindent=1em,leftmargin=1em,labelwidth=2.6em]}{\end{description}}
|
||||
|
||||
% to pack tabularx into a new environment, special syntax is needed :-(
|
||||
\newenvironment{rsttab}[1]{\tabularx{\linewidth}{#1}}{\endtabularx}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue