I'm new to ConTeXt, I know some LaTeX as I have used it to produce some documents in the past.

I'm using quarto to produce some documents and I want to fine tune the PDF by editing .tex output, and then compiling with ConTeXt.

In quarto, I have set the context: context option and pdf-engine:lualatex in header, as it seems luametatex engine is not a valid option yet.

Quarto generates a .tex file correctly using lualatex engine, but not PDF. Then I can't compile that file with context. I get this error (showing first lines in .tex output from context compiling:

.tex first lines:

% Options for packages loaded elsewhere

ConTeXt compilation error:

open source     > level 1, order 2, name './prueba_quarto_ConTeXt.tex'
tex error       > tex error on line 2 in file ./prueba_quarto_ConTeXt.tex: Undefined control sequence \undefined

<line 3.2>

Is quarto generating LaTeX output and not ConTeXt?

Any advice will be greatly appreciated!

  • I don't think context uses packages and usually not that syntax, so I'd say that that is LaTeX output.
    – daleif
    Commented Nov 8, 2022 at 13:40
  • 3
    pdf-engine:lualatex looks definitively wrong as you want to use context. Commented Nov 8, 2022 at 14:00

1 Answer 1


Solved: it was a misunderstanding on my part of quarto header configuration to generate context output. The good one is simply:

title: "Testing Quarto with ConTeXt"
format: context
pdf-engine: context
editor: visual

Works like a charm.

Thanks for help!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .