quarto-dev / quarto-dev/quarto-cli

PDF output does not respect Latex Line Breaks in Math

Aperta
#2,601 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

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

Descrizione

Bug description
---
title: "Quarto Latex Issue PDF"
format: pdf
---

$$
\text{Level 1: } Y_{ij} = \beta_j +\epsilon_{ij} \\
\text{Level 2: } \beta_j = \gamma + \delta_j \\
\text{Reduced Form: } Y_{ij} = \gamma + \delta_j + \epsilon_{ij}
$$

```{r}
sessionInfo()
```

This is my sessionInfo()

R version 4.2.1 (2022-06-23)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.1 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0

locale:
 [1] LC_CTYPE=en_CA.UTF-8       LC_NUMERIC=C               LC_TIME=en_CA.UTF-8       
 [4] LC_COLLATE=en_CA.UTF-8     LC_MONETARY=en_CA.UTF-8    LC_MESSAGES=en_CA.UTF-8   
 [7] LC_PAPER=en_CA.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] flextable_0.7.3

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.9        digest_0.6.29     R6_2.5.1          evaluate_0.16     zip_2.2.0        
 [6] rlang_1.0.4       gdtools_0.2.4     cli_3.3.0         uuid_1.1-0        data.table_1.14.2
[11] rstudioapi_0.14   xml2_1.3.3        rmarkdown_2.16    tools_4.2.1       officer_0.4.3    
[16] yaml_2.3.5        xfun_0.32         fastmap_1.1.0     compiler_4.2.1    systemfonts_1.0.4
[21] base64enc_0.1-3   htmltools_0.5.3   knitr_1.40       

The pdf outputs into a single line: Level 1:𝑌𝑖𝑗= 𝛽𝑗+ 𝜖𝑖𝑗Level 2:𝛽𝑗= 𝛾 + 𝛿𝑗Reduced Form:𝑌𝑖𝑗= 𝛾 + 𝛿𝑗+ 𝜖𝑖𝑗

When it seems like it should be broken up

RStudio: "Spotted Wakerobin" Release (7872775e, 2022-07-22) for Ubuntu Jammy

Checklist
  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

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 supplied minimal .qmd example and render it to PDF using the reported R and Ubuntu environment. Compare the rendered math with the source line breaks; done when the three displayed equations appear on separate lines in the PDF.

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

Valutazione

Stack tecnologico
latex, r
Ambito
documentation
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.