On 4 November 2017 at 17:39, Shep <[email protected]> wrote:
> Hi,
>
> I'm trying to create a sub-heading that doesn't appear in the ToC and isn't
> numbered, but is still rendered as a sub-heading. I believe this is also
> referred to as a "floating" heading.
>
> Basic asciidoc:
>
> :toc:
> = Section example
>
> == Introduction
>
> Simple introduction section.
>
> == More
>
> There is more information in this document.
>
>
> That renders as you would expect.
>
> Now, add discrete:
>
> :toc:
> = Section example
>
> [discrete]
> == Introduction
>
> Simple introduction section.
>
> == More
>
> There is more information in this document.
>
>
> This now generates an error:
>
> Shep:Asciidoc sandbox AJTSheppard$ a2x -fpdf -dbook discrete-example.txt -v
>
> a2x: args: ['-fpdf', '-dbook', 'discrete-example.txt', '-v']
>
> a2x: resource files: []
>
> a2x: resource directories: ['/opt/local/etc/asciidoc/images',
> '/opt/local/etc/asciidoc/stylesheets']
>
> a2x: executing: "/opt/local/bin/asciidoc" --backend docbook -a
> "a2x-format=pdf"  --doctype book --verbose  --out-file
> "/Users/AJTSheppard/Documents/Writing/Asciidoc sandbox/discrete-example.xml"
> "/Users/AJTSheppard/Documents/Writing/Asciidoc sandbox/discrete-example.txt"
>
>
> asciidoc: reading: /opt/local/etc/asciidoc/asciidoc.conf
>
> asciidoc: reading: /Users/AJTSheppard/Documents/Writing/Asciidoc
> sandbox/discrete-example.txt
>
> asciidoc: reading: /opt/local/etc/asciidoc/docbook45.conf
>
> asciidoc: reading: /opt/local/etc/asciidoc/filters/code/code-filter.conf
>
> asciidoc: reading:
> /opt/local/etc/asciidoc/filters/graphviz/graphviz-filter.conf
>
> asciidoc: reading: /opt/local/etc/asciidoc/filters/latex/latex-filter.conf
>
> asciidoc: reading: /opt/local/etc/asciidoc/filters/music/music-filter.conf
>
> asciidoc: reading:
> /opt/local/etc/asciidoc/filters/source/source-highlight-filter.conf
>
> asciidoc: reading: /opt/local/etc/asciidoc/lang-en.conf
>
> asciidoc: writing: /Users/AJTSheppard/Documents/Writing/Asciidoc
> sandbox/discrete-example.xml
>
> asciidoc: WARNING: discrete-example.txt: line 5: missing section: [discrete]

As it says above, [discrete] is not defined, you had it right above
see http://asciidoc.org/userguide.html#_floating_titles

Cheers
Lex


>
>
> a2x: executing: "xmllint" --nonet --noout --valid
> "/Users/AJTSheppard/Documents/Writing/Asciidoc sandbox/discrete-example.xml"
>
>
> /Users/AJTSheppard/Documents/Writing/Asciidoc
> sandbox/discrete-example.xml:15: element book: validity error : Element book
> content does not follow the DTD, expecting ((title , subtitle? ,
> titleabbrev?)? , bookinfo? , (dedication | toc | lot | glossary |
> bibliography | preface | chapter | reference | part | article | appendix |
> index | setindex | colophon)*), got (bookinfo simpara chapter )
>
> </book>
>
>        ^
>
>
> a2x: ERROR: "xmllint" --nonet --noout --valid
> "/Users/AJTSheppard/Documents/Writing/Asciidoc sandbox/discrete-example.xml"
> returned non-zero exit status 4
>
>
> Same for ePub and xhtml as targets.
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to