quarto-dev / quarto-dev/quarto-cli
PDF output does not respect Latex Line Breaks in Math
Open
Nobody has claimed this yet.
bug
math
third-party
upstream
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex, r
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100