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

Define different width for Page Columns #2389

Closed madduci closed 1 year ago

madduci commented 1 year ago

Hi

it's more a feature request than a bug reporting. First of all, thanks for the great job.

I'd like to ask if it would be possible to define (maybe through YAML theme file?) the width of the columns, to create some kind of effect like a shorter column on left and a bigger one on right or viceversa (similar to a sidebar). Maybe the different columns could be identified with an id label, to make the configuration in the YAML easier

[type=column,id=first-col]

Content Here for First Column

[type=column,id=second-col]
<<<

Content Here for Second Column
madduci commented 1 year ago

Nevermind, i was able to achieve the desired result with sidebar and a negative value for column_gap

mojavelinux commented 1 year ago

Glad to hear you figured it out.

In the future, I'd prefer if you raised these kinds of use case questions in the project chat at https://docs.asciidoctor.org. That gives us more room to discuss and share solutions. Thanks!