-
-
Notifications
You must be signed in to change notification settings - Fork 879
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
Wrong tilde inserted into LaTeX #492
Comments
This is where I absolutely hate LaTeX. It is ridiculously difficult to typeset certain characters such as the tilde and straight single quotes/backticks. You can learn endless hacks in posts like this http://tex.stackexchange.com/questions/312/correctly-typesetting-a-tilde but I do not want to spend time on this. If you have got an elegant solution, let me know. You can certainly modify the |
For now I'll leave it to the editor. When I get time I'll play with the hook. Should be fairly simple along the lines of str_replace_all(string=x, pattern="~", replacement="\\url{~}") or str_replace_all(string=x, pattern="~", replacement="\$sim\$") |
@jaredlander Did you solve this one? |
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. |
Hey @yihui you were an idiot. Apparently you had no idea what you were talking about in 2013! |
Yet still more knowledgeable than almost anyone else. |
…e symbol ~ with the package option latex.tilde
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. |
Run running functions that need a formula, say
The tilde is made into a "high" tilde instead of a "middle" tilde such as generated by$\sim$ .
For example
results in the following LaTeX
and that generates
This is entirely cosmetic, but actually makes a big typographical difference. Is it possible to swap ~ with$\sim$ in the code blocks?
The text was updated successfully, but these errors were encountered: