-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theming bibliography #1889
Comments
I'm happy to share that this is what the converter does by default for bibliography lists. See asciidoctor-pdf/lib/asciidoctor/pdf/converter.rb Lines 1367 to 1368 in 39c0ffb
To make the list a bibliography, you must add the bibliography style either to the section that contains it (preferred): [bibliography]
== Bibliography
* [[[bar]]] Bar, Foo. All The Things. 2010. or directly on the list itself: == Bibliography
[bibliography]
* [[[bar]]] Bar, Foo. All The Things. 2010. |
@odrotbohm Does that solution work for you? |
Aha! That's the detail I was looking for. I didn't realize you were using something else to generate the bibliography. This turns out to be a shortcoming of asciidoctor-bibtex itself. It's not creating a list using the document model, so we have no way to recognize it as a bibliography list in Asciidoctor PDF. Instead, it's making a single paragraph for each bibliography item. Furthermore, it's not honoring the role set on the bibliography macro itself, so it's not even possible to pass in the This is a problem that needs to be dealt with in asciidoctor-bibtex. It really shouldn't be creating multiple paragraphs. Instead, it should be constructing an unordered list with the bibliography role and letting the converter handle the formatting. It's important that extensions work in a way that is compatible with converters. Otherwise, the converters cannot properly format the document. |
Thanks for the explanation, Dan. I'll open a ticket with the bibtex extension. |
Previously, the bibliography entries have been rendered as individual paragraphs. This commit tweaks the rendering to rather use an unstyled, left-aligned, unordered list. This essentially fixes asciidoctor#76 and relates to asciidoctor/asciidoctor-pdf#1889.
I've monkey-patched asciidoctor-bibtex (see asciidoctor/asciidoctor-bibtex#84). Not a serious suggestion for a fix, but does the trick for me for now. |
Nice. I'll follow up there. |
My overall document uses text align justify. For the bibliography though, I'd rather switch to
left
but that currently doesn't seem to be supported.The text was updated successfully, but these errors were encountered: