Login  Register

Re: AsciidoctorJ does not create TOC

Posted by mojavelinux on Jan 20, 2020; 7:10am
URL: https://discuss.asciidoctor.org/AsciidoctorJ-does-not-create-TOC-tp7499p7502.html

It's because the AsciiDoc header is invalid. It should look like this:

= Documentation
Author Name
v0.1
:toc:

Please see https://asciidoctor.org/docs/user-manual/#revision-number-date-and-remark

Best,

-Dan

On Sun, Jan 19, 2020 at 11:56 PM Conrad [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

I try to create a TOC. But it does not work. Why?

Conrad

Command:

C:\Program_Portable\asciidoctorj\bin\asciidoctorj.bat -b pdf 0_Documentation.adoc


adoc:

= Documentation
Version 0.1
:toc:
:toclevels: 4
:toc-title: Content
:imagesdir: ./img
:description: example AsciiDoc document
:keywords: Documentation
// 1. chap
== 1. Chap
This is the 1. chapter.
// 2. chap
== 2. Chapter
This is the 2. chapter.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/AsciidoctorJ-does-not-create-TOC-tp7499.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux