quarto-dev / quarto-dev/quarto-cli

`xelatex not found` when using `output-ext` different than pdf as Quarto LaTeX engine is not used

Open
#10,731 16 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug latex
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

xelatex is not found when a profile is used.

Steps to reproduce

Use the test.qmd

---
title: "Test"
---

# abc

and _quarto.yml

format:
  latex:
    output-ext: tex
  pdf:
    output-ext: pdf

with the _quarto-test.yml

format:
  latex:
    output-ext: test.tex
  pdf:
    output-ext: test.pdf

and the _metadata.yml

format:
  latex: default # requires such that .tex file is moved to output
  pdf:
    keep-tex: true
    documentclass: scrartcl

then run

quarto render test.qmd

which works fine.

Next run

quarto render test.qmd --profile test

which fails with

xelatex not found. Please select a different --pdf-engine or install xelatex
Expected behavior

Proper rendering when --profile test is used, because obviously xelatex is available (otherwise the default profile would have failed as well)

Actual behavior

xelatex not found when using --profile test on rendering

Your environment
  • VSCode 1.93.0
  • devcontainer using debian bookworm on MacOS
Quarto check output
Quarto 1.5.56
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.5.56
      Path: /opt/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: v2024.09
      Chromium: (not installed)

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

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

[✓] Checking Python 3 installation....OK
      Version: 3.11.2
      Path: /usr/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with test.qmd, _quarto.yml, _quarto-test.yml, and _metadata.yml by running quarto render test.qmd with and without --profile test. Trace how profile format settings select the LaTeX/PDF engine, then verify that the test profile renders successfully without the xelatex error while preserving the requested output extensions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, latex
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.