asciidoctor / asciidoctor-bibtex

Add bibtex citation support for asciidoc documents
Other
69 stars 27 forks source link

Using asciidoctor-bibtex with :toc: disables - attributes title replacement #96

Open ioliano opened 10 months ago

ioliano commented 10 months ago

Having the following file:

test.adoc file - ATTRIBUTE - TITLE SUBSTITUTION WORKING

:doctype: book
:commondir: ../common
:bibtex-file: {commondir}/test.bib
//:toc:

= TEST

:test_id: Check_one

== {test_id} //Shows Check_one

:test_id: Check_two

== {test_id} //Shows Check two

test.bib file

@misc { book-one,
  title = {test title},
  author = {no/one/cares}
}

I am using to run:

sudo podman run -it -v /tmp/test/:/documents/ docker.io/asciidoctor/docker-asciidoctor
asciidoctor-pdf -r asciidoctor-bibtex test1/test.adoc -a commondir=/documents/common --trace

Folder structure is:

Test.adoc file - ATTRIBUTE - TITLE SUBSTITUTION NOT WORKING

:doctype: book
:commondir: ../../common
:bibtex-file: {commondir}/test.bib
:toc:

= TEST

:test_id: Check_one

== {test_id} // Shows {test_id}

:test_id: Check_two

== {test_id} // Shows {test_id}