New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newline (\\) suddenly doesn't work #1601
Comments
By "suddenly", how sudden was it? When did it work before? I doubt if it ever worked at all. I'm not a LaTeX expert, but a quick Google search of "latex linebreak in math mode" led to several StackExchange posts, and all of them said |
I was seriously taken aback while I couldn't find any .Rmd file rendered to PDF where I used only However,
Also, |
Because LaTeX math is rendered by MathJax (a JS library) in HTML. |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
If I use
\\
inside$$
, a new line is not created anymore. Consider the following example:This generates the following file: try.pdf
Screenshot:
As you can find there, the three sentences in the .Rmd file separated by
\\
are in same line in the rendered document. However, the preview displays correctly, and if I render as HTML, it works there too.Here's my sessioninfo:
By filing an issue to this repo, I promise that
xfun::session_info('rmarkdown')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rmarkdown')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: