Style customization in the PDF generation process #290
Replies: 1 comment 3 replies
-
Hi @yl5682 to tackle your first question: You can see this bit of code in the quire/themes/default/source/css/print.scss Lines 443 to 463 in 5b533e0 The CSS selector there is targeting external links, but when Hugo switched Markdown processors away from Black Friday, the selector stopped working the way it should. The first thing you can try is changing the selector from Additionally you can try the following: To fix line breaks, they need to be written out in full Markdown link styling (brackets with the text as it appears, followed by parens for the URL). And the code for a zero-width non-breaking space () needs to be inserted following the character you want to break to the next line:
Or, in some cases, parts of the URL need to be wrapped in HTML span tags:
Let us know if these tips work. We'll be in touch to help respond to # 2 and # 3 shortly. |
Beta Was this translation helpful? Give feedback.
-
Dear community,
Long story short I am using the PDF generation feature to produce PDF for the Quire project. For the most part it works flawlessly. However there are a few issues that I hope to resolve.
1. Break long strings in an URL in the Notes section.

If you notice in the screenshot, the long URLs won't break because of the current word-break setting.
Knowing that the
print.scss
is responsible for the style of the PDF, I added this:And the result looks like this:

The challenge is that it is breaking everything (as expected). So I wonder if there is a predefined selector that I can use to target only the Notes section (or footnote, if it is called that way)? Any recommendation would be great!
2. Vertically center an image on a page

My second question is also CSS related: Is there any way to vertically center the entire image/attribution section on the page for an image object? Please see the screenshot for when it is aligned at the top (desired layout is vertical center alignment).
3. Publisher information page
Does the default PDF template/generator produce a publisher's information page? Currently I am not able to generate the PDF and get a page that has information about the publisher. A similar page that I am looking for may contain information such as:
in this sample publication and I cite: https://highpoint-editions.netlify.app/downloads/mia-highpoint-editions.pdf
Thank you so much for the community's support!
Beta Was this translation helpful? Give feedback.
All reactions