How to specify a default label on a asciidoctor bibliograpy

75 views Asked by At

I'm struggling with defining a default label for bibliography entries. The reference displays correctly tough.

The ref: <<some-um2>>, default text.

[bibliography]
== Bibliography

[bibliography]

- *[[[some-um2,SOME User Manual2]]]* SOME User Manual, 2017

This renders as follows:

The ref: SOME User Manual2, default text.

Bibliography

[] SOME User Manual, 2017

How do I fix the empty square brackets on the bibliography entry?

I'm using asciidoctor-maven-plugin:1.5.5:process-asciidoc (asciidoc-to-docbook)

2

There are 2 answers

3
leo On BEST ANSWER

After some experimentation, the following syntax seems to work:

The ref: <<some-um2>>, default text.                      

[bibliography]                                            
== Bibliography                                           

[bibliography]                                            

- [[[some-um2,SOME User Manual2]]SOME User Manual77] SOME User Manual, 2017 

produces:

The ref: SOME User Manual2, default text.

Bibliography

[SOME User Manual77] SOME User Manual, 2017

2
EhmKah a.k.a. Michael Krauße On

I think asciidoctor does not like the * around the reference. If you remove them it works.

The ref: <<some-um2>>, default text.                      

[bibliography]                                            
== Bibliography                                           

[bibliography]                                            

- [[[some-um2,SOME User Manual2]]] SOME User Manual, 2017 

renders to

enter image description here