Challenges with Quarto and Julia unicode π #10826
Replies: 1 comment 2 replies
-
|
You need to use/set a font that allows such characters. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I've been struggling the past several days getting my Quarto document to
quarto renderto PDF -- it works fine toquarto preview. The issue seems to boil down to my use of the characterπin some Julia code blocks -- I really want these to render asπ(e.g.,2π,3π/2) rather thanpi(e.g.,2*pi,3*pi/2). The specific code-block looks like this:And my
_quarto.ymlcontains the following for the PDF spec:Note that I've got my own installation of TexLive 2024 -- though I've also tried using the "Quarto-recommended"
TinyTexinstallation. I've installedTexLive(as well asMikTex) to try to have more control over the distro.If I try to use the above approach I get an error:
Which appears to be because inline math using
$\math \stuff \here$delimiters gets translated to\( \math \stuff \here \)What I wrote in the
.qmdfileQuarto-generated
index.tex:Which is incompatible with the Quarto-generated preamble that uses
unicode-math:Specifically, if I comment out the
% THISlines, then the document compiles - but leaves empty spaces in place of π.Also note that if I replace all instances of
πwithpi(incl. necessary operators such as*), and use thepdflatexengine then everything works as expected:But, of course, if I use the π characters, then
pdflatexfails due to:Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions