75f4e41d7d
Changed markdown, rtf, and HTML-based templates accordingly. This allows you to set `toc: true` in the metadata; this previously produced strange results in some output formats. Closes #2872. For backwards compatibility, `toc` is still set to the toc contents. But it is recommended that you update templates to use `table-of-contents` for the toc contents and `toc` for a boolean flag.
30 lines
600 B
Text
30 lines
600 B
Text
{\rtf1\ansi\deff0{\fonttbl{\f0 \fswiss Helvetica;}{\f1 Courier;}}
|
|
{\colortbl;\red255\green0\blue0;\red0\green0\blue255;}
|
|
\widowctrl\hyphauto
|
|
$for(header-includes)$
|
|
$header-includes$
|
|
$endfor$
|
|
|
|
$if(title)$
|
|
{\pard \qc \f0 \sa180 \li0 \fi0 \b \fs36 $title$\par}
|
|
$endif$
|
|
$for(author)$
|
|
{\pard \qc \f0 \sa180 \li0 \fi0 $author$\par}
|
|
$endfor$
|
|
$if(date)$
|
|
{\pard \qc \f0 \sa180 \li0 \fi0 $date$\par}
|
|
$endif$
|
|
$if(spacer)$
|
|
{\pard \ql \f0 \sa180 \li0 \fi0 \par}
|
|
$endif$
|
|
$if(toc)$
|
|
$table-of-contents$
|
|
$endif$
|
|
$for(include-before)$
|
|
$include-before$
|
|
$endfor$
|
|
$body$
|
|
$for(include-after)$
|
|
$include-after$
|
|
$endfor$
|
|
}
|