-
I am trying to compile a quarto document to both HTML and pdf that includes a conditional independence symbol and a "not" version (see below). I've tried several options, but can only seem to get things to work when compiling to HTML. Here is the quarto file: ---
title: "Reproducible Quarto Document"
format: pdf
---
...two types of associations between $X$ and $Y$, with and without conditioning on a third variable, $Z$. In the top panels, $X$ and $Y$ are marginally dependent (i.e., $X \not\!\perp\!\!\!\perp Y$), but become independent when we condition on $Z$ (i.e., $X \perp\!\!\!\perp Y | Z$). Here is the output in the terminal window:
I am using quarto version 1.6.33 and Microsoft Windows [Version 10.0.26100.2033]. Here is the output from quarto check: C:\Users\jfieberg\Documents\Teaching\Sandbox>quarto check
Quarto 1.6.33
[>] Checking environment information...
Quarto cache location: C:\Users\jfieberg\AppData\Local\quarto
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.4.0: OK
Dart Sass version 1.70.0: OK
Deno version 1.46.3: OK
Typst version 0.11.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.6.33
Path: C:\Users\jfieberg\AppData\Local\Programs\Quarto\bin
CodePage: 1252
[>] Checking tools....................OK
TinyTeX: (external install)
Chromium: (not installed)
[>] Checking LaTeX....................OK
Using: TinyTex
Path: C:\Users\jfieberg\AppData\Roaming\TinyTeX\bin\windows\
Version: 2024
[>] Checking basic markdown render....OK
[>] Checking Python 3 installation....(None)
Unable to locate an installed version of Python 3.
Install Python 3 from https://www.python.org/downloads/
[>] Checking R installation...........OK
Version: 4.4.1
Path: C:/Users/jfieberg/AppData/Local/Programs/R/R-4.4.1
LibPaths:
- C:/Users/jfieberg/AppData/Local/Programs/R/R-4.4.1/library
knitr: 1.48
rmarkdown: 2.27
[>] Checking Knitr engine render......OK |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Could you properly format your post using code blocks for code and terminal outputs? Thanks. |
Beta Was this translation helpful? Give feedback.
-
I think this is LaTeX problem directly. Quarto defaults to xelatex and this is what causes the issue. If you set ---
title: "Reproducible Quarto Document"
format:
pdf:
pdf-engine: pdflatex
---
...two types of associations between $X$ and $Y$, with and without conditioning on a third variable, $Z$. In the top panels, $X$ and $Y$ are marginally dependent (i.e., $X \not\!\perp\!\!\!\perp Y$), but become independent when we condition on $Z$ (i.e., $X \perp\!\!\!\perp Y | Z$). So I would look into why this specific latex equation syntax for xelatex or lualatex engine. Using |
Beta Was this translation helpful? Give feedback.
I think this is LaTeX problem directly. Quarto defaults to xelatex and this is what causes the issue.
If you set
pdf-engine: pdflatex
it worksSo I would look into why this specific latex equation syntax for xelatex or lualatex engine.
Using
pandoc -t pdf -f markdown -o test.pdf --pdf-engine=xelatex test.qmd
gives me …