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
pgp07BzRb9wDE.pgp
Description: PGP signature
