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

Two-column layout not working #2404

Closed programming-wolf closed 1 year ago

programming-wolf commented 1 year ago

Hi everyone, I'm trying to create a document with two columns for the main texts. I found that it should be working according to this issue: https://github.com/asciidoctor/asciidoctor-pdf/issues/327.

I set the document type to article, and also set

page:
  columns: 2

in my PDF theme. However, the output is just a regular document, without columns.

Is there anything else I am missing? According to the documentation, it should work.

I'm using asciidoctor via gradle, this is the config:

plugins {
    id "org.asciidoctor.jvm.base" version "3.3.2"
    id "org.asciidoctor.jvm.convert" version "3.3.2"
    id "org.asciidoctor.jvm.pdf" version "3.3.2"
}

asciidoctorj {
    version = '2.5.3'
}

I've also attached my pdf theme, in case I did anything wrong there. el-theme.yml.zip

Thanks in advance!

mojavelinux commented 1 year ago

From what you're describing, it sounds like you are using a version of Asciidoctor PDF that is older then when this feature was introduced. It was added in Asciidoctor PDF 2.1.0. The Gradle build script you shared is using asciidoctorj-pdf-1.5.3. (You can also find this information in the properties panel in the PDF). That's simply too old to use this feature.

In the future, I kindly ask that you direct questions about usage to the project chat at https://docs.asciidoctor.org, just as the issue template suggests. The issue tracker is not a support portal. Thanks.

programming-wolf commented 1 year ago

Apologies, I assumed that asciidoctorj 2.5.3 and "org.asciidoctor.jvm.pdf" version "3.3.2" also included asciidoctorj-pdf in its most recent version. I'm super sorry for this. :-/

mojavelinux commented 1 year ago

I'll admit that it's not immediately apparent since the version of AsciidoctorJ (and the version of the Gradle plugin) does not give an indication of which version of AsciidoctorJ PDF it pulls in. However, you can find this information on the following page in the docs for future reference: (https://docs.asciidoctor.org/asciidoctorj/latest/distribution/) If that page is outdated, I encourage you to request an edit because there is an expectation that it is accurate.