Hello,
I encounter the problem, that when creating pdf from my asciidoc file. The chapter title is not shown in the header. The corresponding code in the yml file looks as follows: header: font_size: $base_font_size border_color: dddddd border_width: 0.25 height: $base_line_height_length * 4.0 line_height: 1 padding: [$base_line_height_length / 2, 1, 0, 1] vertical_align: bottom recto: right: content: image:OS_transparent.png[width=150] left: content: '{page-number} | {chapter-title}' verso: left: content: image:OptiSense_transparent.png[width=150] right: content: '{page-number} | {chapter-title}' In the output only the page number is shown in the header, as well as the logo. If I use {section-title} instead of {chapter-title} the section title is shown correctly. What did I do wrong here? Thank you for your help. |
I never considered that you could even do this with Asciidoctor. That's interesting. Did you end up finding a solution?
Could this be done with pagination specific CSS? |
Administrator
|
In reply to this post by Clemens
Clemens, > If I use {section-title} instead of {chapter-title} the section title is shown correctly. That's a strong indicator to me that you have not set the doctype to book (and thus the document isn't being parsed as a book). The section-title replacement is always available, whereas the chapter-title is only available in a book (as only a book has chapters). Cheers, -Dan On Mon, Apr 16, 2018 at 2:37 AM, Clemens [via Asciidoctor :: Discussion] <[hidden email]> wrote: Hello, Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Dear Dan,
you were right that solved the problem. However, another question arose The header show e.g. "Chapter 7. Name_of_Chapter" I would like to format it like the following: "7. Name_of_Chapter" Where can I do that? By the way, a great program that you wrote. I convinced my colleagues to switch from Word to Asciidoc for writing documentation. |
Found out myself:
chapter-label |Prefix added to chapter titles (i.e., level-1 section titles when doctype is book). (pdf converter only) |
Administrator
|
I'm glad you got it sorted out! > I convinced my colleagues to switch from Word to Asciidoc for writing documentation. I cannot tell you how happy that makes me to hear that. Nice work! Cheers, -Dan On Wed, Apr 18, 2018 at 1:52 AM, Clemens [via Asciidoctor :: Discussion] <[hidden email]> wrote: Found out myself: Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Free forum by Nabble | Edit this page |