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

Support for LaTeXFragment delimited by $...$ #22

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

torfjelde
Copy link
Contributor

As the title says:) $...$ are supported by default in Org, so it seems like something that would be useful to support in Org.jl too.

I noticed there aren't any tests, so I didn't add any; happy to add some if desired!

@tecosaur
Copy link
Owner

I've been wary to add support for $ because they're a bit tricky to get right, e.g. treating $5-10$, $5 to $10, $5 (in AUD$) appropriately.

It would be fine if $ had to be escaped for normal usage in text ... but it doesn't. There are threads on the Org ML about imperfect compromises that have to be made in the parsing. Being careful to exactly match Org's current behaviour is one path forwards, I just kind of like the simplicity of side-stepping this can of worms entirely since we have the (better) \( ... \) syntax.

See messages on the ML like https://list.orgmode.org/87r18t7fc5.fsf@localhost

@torfjelde
Copy link
Contributor Author

Gotcha; that is very sensible 👍

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

Successfully merging this pull request may close these issues.

2 participants