Add table into page header or footer

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Add table into page header or footer

dysou17
This post was updated on .
Hello guys, i have just started working with AsciiDoc. I am currently trying to convert an adoc file to a PDF. As you may already know I am using Asciidoctor for this task. But I have a problem right now which is the embedding of a table into the page header or footer (running content). Is this even possible with Asciidoctor? If so how do you do it? If not what are the possible ways to achieve this task?

I'll apologize if there are already topics and solutions within the discussion forum regarding this matter.
Reply | Threaded
Open this post in threaded view
|

Re: Add table into page header or footer

mojavelinux
Administrator
Hi there!

No, it's not possible to embed a table in the header / footer content in Asciidoctor PDF. However, you can configure up to three columns with proportional widths. You can also make multiple lines in each column using the hard line break modifier (a trailing +). See https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#multiple-lines

Cheers,

-Dan

On Tue, Feb 18, 2020 at 7:04 AM dysou17 [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello guys, i have just started working with AsciiDoc. I am currently trying to convert an adoc file to a PDF. As you may already know I am using Asciidoctor for this task. But I have a problem right now which is the embedding of a table into the page header or footer (running content). Is this even possible with Asciidoctor? If so how do you do it? If not what are the possible ways to achieve this task?

I'll apologize if there are already topics and solutions within the discussion forum.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Add-table-into-page-header-or-footer-tp7658.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Add table into page header or footer

dysou17
Your suggestion is not suitable for my task. There are multiple rows in one column, therefore I need to highlight the borders.
But still thanks for your reply, Dan.
Reply | Threaded
Open this post in threaded view
|

Re: Add table into page header or footer

mojavelinux
Administrator
In that case, it's beyond what's possible with the theming system in Asciidoctor PDF, and Asciidoctor PDF in general.

Being able to use arbitrary templates for the header/footer will be a key requirement for asciidoctor-pdf.js (the browser-based predecessor that's starting to take shape). See https://github.com/mogztter/asciidoctor-pdf.js

Best Regards,

-Dan

--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux