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 render
to 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.yml
contains 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"
TinyTex
installation. 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
.qmd
fileQuarto-generated
index.tex
:Which is incompatible with the Quarto-generated preamble that uses
unicode-math
:Specifically, if I comment out the
% THIS
lines, 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 thepdflatex
engine then everything works as expected:But, of course, if I use the π characters, then
pdflatex
fails due to:Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions