Thanks for the tip Miklos, I've added it to the FAQ.

Cheers, Stuart


On 23/07/10 05:11, Miklos Vajna wrote:
On Mon, Jul 12, 2010 at 09:54:26AM -0600, Warren Block<[email protected]>  
wrote:
Just trying to disable the toc generation in a PDF.  No problem with
HTML, leaving "-a toc" off the asciidoc command line is fine.

a2x with dblatex is a different matter.  It looks like setting
--xslt-opts='--string-param generate.toc ""' might work, but that has to
be passed through a2x's --dblatex-opts, and then it's a maze of shell
quoting.

Is there a better way to do this?  I'm using AsciiDoc 8.5.3 on FreeBSD.

Actually I don't think generate.doc will help here. :)

See the dblatex doc:

http://dblatex.sourceforge.net/doc/manual/doc.layout.html

Now if you want to disable toc, you need:

a2x -f pdf --dblatex-opts "-Pdoc.layout=\"coverpage frontmatter mainmatter index 
\"" foo.txt

--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to