Login  Register

Re: AsciidoctorJ does not create TOC

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

If I download and extract the AsciidoctorJ 2.2.0 distribution (which you can also install via sdkman), then run the following:

asciidoctorj -b pdf test.adoc

on this document:

= Documentation
Author Name
v0.1
:toc:

== Section

The PDF contains a toc. (You need at least one section for the toc to show).

> The preview in AsciidocFX does not show the TOC.
> The pdf generator of AsciidocFX does not create the TOC.

AsciidocFX has nothing to do with AsciidoctorJ. You will need to direct that inquiry to AsciidocFX.

Best,

-Dan

On Mon, Jan 20, 2020 at 10:43 PM Conrad [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi Dan,

Many thanks for your answer,

It tried your correction:

= Documentation
Author Name
v0.1
:toc:

It does not work:
- The preview in AsciidocFX does not show the TOC.
- The pdf generator of AsciidocFX does not create the TOC.
- The pdf generator of AsciidoctorJ does not create the TOC.

I want to follow the standard. So what's wrong?

Conrad


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/AsciidoctorJ-does-not-create-TOC-tp7499p7514.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