Pulling embedded URLs into footnotes automatically.

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

Pulling embedded URLs into footnotes automatically.

Sparks
I'm trying to figure out how to generate two different PDFs from the same source: one for use on a device (where embedded links make sense) and one for use for printing (where links should be pulled out as a footnote or similar so they can be typed in later).  I've not found any documentation around a feature that would do this when generating a PDF using asciidoctor-pdf.  Is this currently possible with a switch of some kind?

Thanks,
Eric
Reply | Threaded
Open this post in threaded view
|

Re: Pulling embedded URLs into footnotes automatically.

mojavelinux
Administrator
I think you're looking for the media attribute:

-a media=print

or

-a media=prepress

The URLs for links are not placed at the bottom of the page due to reasons well documented in this issue and elsewhere: https://github.com/asciidoctor/asciidoctor-pdf/issues/1086#issuecomment-498018423 Instead, the URLs are shown inline, adjacent to the linked text. It will look like this:

Asciidoctor [ https://asciidoctor.org ]

Best Regards,

-Dan

On Fri, May 15, 2020 at 9:52 PM Sparks [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I'm trying to figure out how to generate two different PDFs from the same source: one for use on a device (where embedded links make sense) and one for use for printing (where links should be pulled out as a footnote or similar so they can be typed in later).  I've not found any documentation around a feature that would do this when generating a PDF using asciidoctor-pdf.  Is this currently possible with a switch of some kind?

Thanks,
Eric


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Pulling-embedded-URLs-into-footnotes-automatically-tp8002.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