You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more of a question than a request. But I was wondering if it is possible to include a table of contents in the HTML outputs from the weave() command? This way it is easier to navigate around a document and see the sections, instead of manually scrolling.
I checked other issues and there was a reference to someone asking for control of the table of contents from pandoc_options, however in looking at the documentation I did not see any explanation about using pandoc_options for setting the table of contents. I saw that pandoc_options was mentioned, but it was not really elaborated on.
Hence, I was just wondering if there is a way to include a TOC or if there is an example of include a TOC that I can emulate. Thanks.
The text was updated successfully, but these errors were encountered:
you can already include table of contents by passing in pandoc_options=[] where you can pick most options from https://pandoc.org/MANUAL.html#options I think
However, It would be nice if the pandoc2html output format could keep the julia syntax highlighting and not break the table rendering as seen in the default html output.
@vjd Oh this is very helpful. Yeah, I see how the pandoc options work now. I tested it out and the syntax highlighting seems to work for me. I wonder if that is simply a matter of including some library in the header of the HTML file. Hmm, there must be a way to include that either through Weave.jl or through some script to add the library to the HTML file that comes out of Weave?
description
This is more of a question than a request. But I was wondering if it is possible to include a table of contents in the HTML outputs from the
weave()
command? This way it is easier to navigate around a document and see the sections, instead of manually scrolling.I checked other issues and there was a reference to someone asking for control of the table of contents from
pandoc_options
, however in looking at the documentation I did not see any explanation about usingpandoc_options
for setting the table of contents. I saw thatpandoc_options
was mentioned, but it was not really elaborated on.Hence, I was just wondering if there is a way to include a TOC or if there is an example of include a TOC that I can emulate. Thanks.
The text was updated successfully, but these errors were encountered: