Skip to content

Error rendering PDF with ∈ symbol in Julia cells #14553

@juliohm

Description

@juliohm

I have:

  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide

Bug description

Julia allows the use of unicode like in

1  [1, 2, 3]

If I add a Julia cell with this operator, I get an error message when I attempt to render a PDF:

ERROR: 
compilation failed- error
You can't use `\spacefactor' in math mode.
\@->\spacefactor 
                 \@m {}
l.2920 If you don't know the \(\LaTeX
                                   \) name of a symbol, you can copy/paste it

This might be happening with similar mathematical symbols (e.g., , ).

Steps to reproduce

Create a simple Julia document with the following cell and try to render to PDF:

1 ∈ [1, 2, 3]

Actual behavior

Error message from TeX stack.

Expected behavior

PDF output with Julia cell normally executed.

Your environment

VSCode
Version: 1.117.0
Commit: 10c8e557c8b9f9ed0a87f61f1c9a44bde731c409
Date: 2026-04-21T16:12:14-07:00
Electron: 39.8.7
ElectronBuildId: 13841579
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Linux x64 5.15.202-1-MANJARO

Quarto check output

Quarto 1.9.37
[✓] Checking environment information...
      Quarto cache location: /home/juliohm/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.8.3: OK
      Dart Sass version 1.87.0: OK
      Deno version 2.4.5: OK
      Typst version 0.14.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.9.37
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: v2025.02
      Chromium: (not installed)
      Chrome Headless Shell: (not installed)
      VeraPDF: (not installed)

[✓] Checking LaTeX....................OK
      Using: TinyTex
      Path: /home/juliohm/.TinyTeX/bin/x86_64-linux
      Version: 2024

[✓] Checking Chrome Headless....................OK
      Using: Chrome from QUARTO_CHROMIUM
      Path: /usr/bin/chromium

[✓] Checking basic markdown render....OK

[✓] Checking R installation...........OK
      Version: 4.5.3
      Path: /usr/lib64/R
      LibPaths:
        - /usr/lib/R/library
      knitr: (None)
      rmarkdown: (None)

      The knitr package is not available in this R installation.
      Install with install.packages("knitr")
      The rmarkdown package is not available in this R installation.
      Install with install.packages("rmarkdown")

[✓] Checking Python 3 installation....OK
      Version: 3.14.3
      Path: /usr/bin/python3
      Jupyter: 5.9.1
      Kernels: python3, julia-1.11, julia-1.10, julia-1.9

[✓] Checking Jupyter engine render....OK

[✓] Checking Julia installation...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlatexLaTeX engines related libraries and technologiesupstreamBug is in upstream library

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions