Headless browser PDF rendering pipeline as Unicode-friendly alternative to pdflatex #14331
Replies: 3 comments 2 replies
-
Regarding Marp, have you looked for other discussions first?
Extensions are there for that.
See the open issues and discussions such as: Finally, don't follow AI guidelines, follow repository guidelines, see a subset of the guidelines given for "Feature Requests" discussion:
|
Beta Was this translation helpful? Give feedback.
-
|
Hi, thanks for your reply. Yes, I can explain in some details waht I do using Marp and VScode.
As for using AI guidelines, I used them as a last resort. I am not an eager consumer of AI technologies. I like to know what I do. However, in the current case, I don't have a clue how to solve it. I have been dealing with this problem for two days already with no success, and I have gone through a lot of your documentation (as I have in the past, where you helped by pointing out some Quarto extensions), but I have not found a solution. As I am aware that less sophisticated software (Marp) allows me to avoid that same problem out of the blue, maybe I was doing something wrong, and this is where AI assistance came into play. Edited. One of the links above was duplicated. Problem now corrected.Exporting to PDF (frontmatter)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Exporting to HTML (frontamatter) |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the guidelines about better accessibility. I have been using these forums for more than a decade now and was not aware that I was doing anything wrong. But it's never too late to learn. I have changed the text, but I am not sure it has improved the reading or accessibility. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi, I am using Quarto to produce a document that must be compiled into both PDF and HTML. One of its sections contains Julia code chunks with Unicode characters. Julia allows this handy functionality, and for teaching, it works like a charm.
My problem is that when I compile the document into HTML, no problem at all, Quarto and VSCode do a wonderful job. However, when I compile the exact same document to PDF, I get a nightmare: it fails to compile because it contains Unicode characters.
Well, most people may find this pretty acceptable, given that compiling Unicode characters with pdflatex is an old, well-known problem that we can do very little about.
However, I have a doubt. I have slides that I produced with Marp for VSCode, and they have the same Julia code chunks with plenty of Unicode characters. When I compile the same (Marp) markdown file with pdflatex and with html, I get exactly the same NICE, clean output. Can this also be done with Quarto?
I am not a developer, but I am a regular user of Quarto and its nice functionalities. However, I find this problem with Unicode characters very annoying. Why should a document display the output properly when compiled to HTML, but blow up completely when compiled to PDF? I checked the new functionalities of AI, and I got the following advice:
" When you raise the issue, it might be worth framing it as a feature request rather than a bug — something like: "provide a modern PDF rendering pipeline via headless browser (similar to Marp) as an alternative to pdflatex/lualatex, to handle Unicode natively without workarounds." That framing is more likely to get traction than reporting it as a broken feature.
You could also mention weasyprint and pagedjs-cli as existing PDF engines that Quarto already supports in principle — it would just be a matter of making them work smoothly within the existing workflow, including with extensions like aea."
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions