Open cderv opened 1 year ago
See https://github.com/rstudio/rmarkdown/issues/2420
```{r} #| label: html-specific #| echo: false #| include: false #| eval: true latexString <- if (knitr::is_html_output()) { r"($\mathrm{\LaTeX{}}$)" } else { r"(\LaTeX{})" }
Then use r latexString in the text.
r latexString
See https://github.com/rstudio/rmarkdown/issues/2420
Then use
r latexString
in the text.