Skip to content
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

R markdown error when use \partial #2522

Open
hunghx12 opened this issue Oct 18, 2023 · 1 comment
Open

R markdown error when use \partial #2522

hunghx12 opened this issue Oct 18, 2023 · 1 comment
Labels
reprex needs a minimal reproducible example

Comments

@hunghx12
Copy link

Hi

The issue is just as simple as the title. Whenever I use \partial in my markdown, R can't knit, even though it can be viewed properly on the preview popup.

Here is the equation I wrote in R markdown:

$$ \frac{\partial l(X \mid \mu_x)}{\partial \mu_x} $$

The error message was
! Missing $ inserted. <inserted text> $ l.425 ...\partial l(X \mid \mu_x)}{\partial \mu_x}

Here is the session info:

R version 4.3.1 (2023-06-16)
Platform: x86_64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.0

Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8

Package version:
htmltools_0.5.6.1 jquerylib_0.1.4 jsonlite_1.8.7 knitr_1.44
labeling_0.4.3 latex2exp_0.9.6 R6_2.5.1 rmarkdown_2.25
utf8_1.2.3 utils_4.3.1 xfun_0.40 yaml_2.3.7

@yihui yihui added the reprex needs a minimal reproducible example label Oct 18, 2023
@yihui
Copy link
Member

yihui commented Oct 18, 2023

Please follow the issue guide when filing issues. In particular, please provide a minimal reproducible example and xfun::session_info('rmarkdown'). The problem is not reproducible with the following example:

---
output: pdf_document
---

$$   \frac{\partial l(X \mid \mu_x)}{\partial \mu_x}   $$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reprex needs a minimal reproducible example
Projects
None yet
Development

No branches or pull requests

2 participants