-
DescriptionWe create a book with quarto with online version in HTML and a printed version via PDF. The default (blue) display of hyperlinks in PDF is not suitable for a printed book. External links should be shown as footnotes instead, unless the URL is displayed in text. ---
title: Example
format: pdf
number-sections: true
---
## Demo {#sec-demo}
This is an example with a [link to Wikipedia](https://en.wikipedia.org/). The URL should be should in a footnote.
A plain link such as <https://quarto.org> should not be shown as footnote, neither internal links such as to @sec-demo. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Use the markdown footnote syntax, see https://quarto.org/docs/authoring/markdown-basics.html#footnotes. Or use a LUA filter that read the document as AST and change the elements in whatever way you need. |
Beta Was this translation helpful? Give feedback.
-
The option Did you try this already ? ---
title: Example
format:
pdf:
links-as-notes: true
number-sections: true
---
## Demo {#sec-demo}
This is an example with a [link to Wikipedia](https://en.wikipedia.org/). The URL should be should in a footnote.
A plain link such as <https://quarto.org> should not be shown as footnote, neither internal links such as to @sec-demo.
|
Beta Was this translation helpful? Give feedback.
The option
links-as-notes
should be what you are looking for: https://quarto.org/docs/reference/formats/pdf.html#footnotesIt is initially a Pandoc feature, and it should still work in Quarto.
Did you try this already ?