2661658a69
Closes #4803 After this commit use `$titleblock$` in order to get what was contained in `$title$` before, that is a title and subtitle rendered according to the official rST method: http://docutils.sourceforge.net/docs/user/rst/quickstart.html#document-title-subtitle. from With this commit, the `$title$` and `$subtitle$` metadata are available and they simply carry the metadata values. This opens up more possibilities in templates.
46 lines
499 B
ReStructuredText
46 lines
499 B
ReStructuredText
$if(titleblock)$
|
|
$titleblock$
|
|
|
|
$endif$
|
|
$for(author)$
|
|
:Author: $author$
|
|
$endfor$
|
|
$if(date)$
|
|
:Date: $date$
|
|
$endif$
|
|
$if(author)$
|
|
|
|
$else$
|
|
$if(date)$
|
|
|
|
$endif$
|
|
$endif$
|
|
$if(rawtex)$
|
|
.. role:: raw-latex(raw)
|
|
:format: latex
|
|
..
|
|
|
|
$endif$
|
|
$for(include-before)$
|
|
$include-before$
|
|
|
|
$endfor$
|
|
$if(toc)$
|
|
.. contents::
|
|
:depth: $toc-depth$
|
|
..
|
|
|
|
$endif$
|
|
$if(number-sections)$
|
|
.. section-numbering::
|
|
|
|
$endif$
|
|
$for(header-includes)$
|
|
$header-includes$
|
|
|
|
$endfor$
|
|
$body$
|
|
$for(include-after)$
|
|
|
|
$include-after$
|
|
$endfor$
|