!for author in book.authors: !for url in renderer.styles: !for url in renderer.scripts:

Table of Contents

%bookmark toc
%!for chapter in book.chapters: %eval renderer.set_chapter({chapter.id!r})
%include: chapter.text load="chapter" with_namespace=True %append toc {renderer.current_chapter.title} {toc.get(renderer.current_chapter.id, 0)}