asciidoctor / asciidoctor-pdf

:page_with_curl: Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
https://docs.asciidoctor.org/pdf-converter/latest/
MIT License
1.14k stars 501 forks source link

Title partitioning not working #2296

Closed alpinus4 closed 2 years ago

alpinus4 commented 2 years ago

Hi Title partitioning seems not to work for me.

test.adoc

= Main title: Subtitle

content content

When running asciidoctor-pdf test.adoc I get such output: image

However I would like subtitle to be in the next line.

$ asciidoctor-pdf --version
Asciidoctor PDF 2.2.0 using Asciidoctor 2.0.17 [https://asciidoctor.org]
Runtime Environment (ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)

Any help?

mojavelinux commented 2 years ago

Subtitle partitioning is only done on the title page. You must set the doctype to book or set the title-page attribute. As the docs state here:

Subtitle partitioning of the document title is only enabled when the title page is also enabled.

In the future, please direct questions about usage to the project chat at https://chat.asciidoctor.org. That helps us to better manage the project. Thanks.