chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
29 stars 4 forks source link

LaTeX headers aren't picked up for the table of contents from standalone documents #223

Closed christianp closed 4 months ago

christianp commented 4 months ago

Here's a minimal example .tex file:

\documentclass{article}
\usepackage{chirun}

\title{This is a test document}

\begin{document}

\maketitle

This is a line.

\section{A section}

A line in a section.

\end{document}

When rendered as a standalone document with the -f command-line switch, the table of contents is empty. When rendered with a config.yml as a chapter item, the title and section headers appear in the table of contents.