quarto-dev / quarto-dev/quarto-cli

`equation` environment under `$$`

Aperta
#9,366 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug engines-julia math upstream
Lingua principale
JavaScript
Stelle
6k
Fork
458
Merge medio
1g 9h
PR unite (30g)
41

Descrizione

Bug description

My qmd file contains a julia code cell, and the output of the cell is a equation environment.
When I rendered it into a html file, it works correctly.
But when I rendered it into a latex file, it creates a latex file with the following environment

$$
\begin{equation}
ZZZ
\end{equation}
$$

When I render a latex file containing such blocks, it gives an error.

Steps to reproduce

```{julia}
using Symbolics
Symbolics.variables(:x, 1:3)
```

Expected behavior

\begin{equation}
\left[
\begin{array}{c}
x_1 \\
x_2 \\
x_3 \\
\end{array}
\right]
\end{equation}


Actual behavior


$$ \begin{equation}
\left[
\begin{array}{c}
x_1 \\
x_2 \\
x_3 \\
\end{array}
\right]
\end{equation}
 $$



Your environment

No response

Quarto check output

Quarto 1.4.553
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.553
Path: /Applications/quarto/bin

[✓] Checking tools....................OK
TinyTeX: (external install)
Chromium: (not installed)

[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /Users/likanzhan/Library/TinyTeX/bin/universal-darwin
Version: 2024

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

[✓] Checking Python 3 installation....OK
Version: 3.10.13 (Conda)
Path: /Users/likanzhan/.julia/conda/3/aarch64/bin/python
Jupyter: 5.7.1
Kernels: julia-1.10, python3

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

[✓] Checking R installation...........OK
Version: 4.3.1
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
knitr: 1.45
rmarkdown: 2.25

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Start with the Julia-cell reproduction in the issue and compare the generated HTML and LaTeX output. Trace the Quarto rendering path that wraps the equation environment, then verify that the LaTeX output contains the equation environment without an enclosing $$ block and renders successfully.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
latex, markdown
Ambito
build-system
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.