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

escape LaTeX special characters #10

Closed
flying-sheep opened this issue Jul 10, 2015 · 4 comments
Closed

escape LaTeX special characters #10

flying-sheep opened this issue Jul 10, 2015 · 4 comments

Comments

@flying-sheep
Copy link
Member

we have to do this:

char macro
# \#
$ \$
% \%
& \&
\ \textbackslash{}
^ \textasciicircum{}
_ \_
{ \{
} \}
~ \textasciitilde{}
@karldw
Copy link
Contributor

karldw commented Feb 13, 2016

Hey @flying-sheep, can I contribute to this? It looks like you already have the replacement dictionary and functions in place in utils.r. It also looks like LaTeX special characters in R functions and help files are already being sanitized.

Would it make sense to add LaTeX escapes to:

I'm happy to pull something together and submit a pull request, I just wanted to check that I'm not missing some other solution you have in place.

@flying-sheep
Copy link
Member Author

cool, sure!

everything that can contain those characters should be escaped in a sensible way. e.g. character strings.

@karldw
Copy link
Contributor

karldw commented Mar 13, 2016

Are there any other LaTeX things I should escape? Otherwise, this can be closed.

@flying-sheep
Copy link
Member Author

nope! i think this is the best we can do. LaTeX can never be supported perfectly, because you can toggle every character to be special and therefore execute code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants