Login  Register

:toc: not working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

:toc: not working

alfonz19@gmail.com
3 posts
Hi,

I tried to google it, but any hint does not work. I'd like to have toc on left side, in separate scrollable panel. Flags mentioned in documentation seems to have no effect, I need to invoke asciidoctor -a toc to get toc rendered (at wrong location, but at least I get something).

Can someone advise?

M.

in document header I have:

:doctype: book
:source-highlighter: coderay
:listing-caption: Listing
:pdf-page-size: A4

++++
<link rel="stylesheet"  href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.1.0/css/font-awesome.min.css">
++++

:toc:
:toc-placement: left
:toclevels: 4
:icons: font
:sectnums:


Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: :toc: not working

mojavelinux
Administrator
2681 posts
You have blanks lines (and a block) in your document header, which makes it not a document header.


The settings for the toc can only be defined in the document header (when defined in the document).

-Dan

On Fri, Mar 24, 2017 at 8:14 AM, [hidden email] [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

I tried to google it, but any hint does not work. I'd like to have toc on left side, in separate scrollable panel. Flags mentioned in documentation seems to have no effect, I need to invoke asciidoctor -a toc to get toc rendered (at wrong location, but at least I get something).

Can someone advise?

M.

in document header I have:

:doctype: book
:source-highlighter: coderay
:listing-caption: Listing
:pdf-page-size: A4

++++
<link rel="stylesheet"  href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.1.0/css/font-awesome.min.css">
++++

:toc:
:toc-placement: left
:toclevels: 4
:icons: font
:sectnums:





If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/toc-not-working-tp5427.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
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: :toc: not working

alfonz19@gmail.com
3 posts
Oh, yes, YES!

This is the best thing I got from someone this week ;) Thank you very much! (and for that very quick response!!)

M.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: :toc: not working

mojavelinux
Administrator
2681 posts
;)

-Dan

On Fri, Mar 24, 2017 at 8:35 AM, [hidden email] [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Oh, yes, YES!

This is the best thing I got from someone this week ;) Thank you very much! (and for that very quick response!!)

M.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/toc-not-working-tp5427p5429.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