Open royfrancis opened 1 year ago
Hi, I will do my best to look into this error but I am having issues with Quarto 1.3 running at all at the moment so there will be a delay with this. Has this error only occurred since you upgraded to the newer version of quarto? I can't reproduce the error under 1.2. Can you include the (relevant) contents of prettypdf.log
to see the error in more detail?
No worries! Thanks for the quick reply. I am not that familiar with latex, so I am just curious if this is something wrong with my setup or a bug in the extension. I haven't tried on Quarto 1.2. This is the first time I've tried PrettyPDF and it happens to be on Quarto 1.3. Here is the log. I am not sure which part is relevant, so here is all of it.
Also, I am on Linux if that matters.
🢒 lsb_release -a
No LSB modules are available.
Distributor ID: Zorin
Description: Zorin OS 16.2
Release: 16
Codename: focal
I had the same problem. It appears to be limited to Texlive 2019. I have successfully rendered the example .qmd file using Texlive 2021 (MacOS) and Texlive 2023 (Ubuntu). I suggest moving away from Texlive 2019.
Cheers, Brandon
It has to do with the margin section in the template. More specifically how the units are fed to \put and \rule. I think... I got it to work on Tex Live 2019/Debian with this variant of the margin section (in PrettyPDF.tex).
% Let's add the border on the right hand side \AddToShipoutPicture{% \AtPageLowerLeft{% \put(\LenToUnit{\dimexpr\paperwidth-3cm},\LenToUnit{0cm}){% \color{light}\rule{3cm}{\paperheight}% }% }% % logo \AtPageLowerLeft{% start the bar at the bottom right of the page \put(\LenToUnit{\dimexpr\paperwidth-2.25cm},\LenToUnit{27.2cm}){% move it to the top right \color{light}\includegraphics[width=1.5cm]{_extensions/nrennie/PrettyPDF/logo.png} }% }% }
Thanks for the template :)
Just trying to run the default example,
and I get this error: