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

How to set it up for latex fragments in a org file #27

Open
student-sx opened this issue Aug 22, 2020 · 4 comments
Open

How to set it up for latex fragments in a org file #27

student-sx opened this issue Aug 22, 2020 · 4 comments

Comments

@student-sx
Copy link

Can I use poly-org to automatically switch to latex mode if the point is between latex delimiters? What to add to my init file to make it work?

@vspinu
Copy link
Contributor

vspinu commented Aug 24, 2020

I have created inline-latex branch. Unfortunately I see font lock errors and indentation is not working as expected, so it's not veryuseful I would need to spend more time with it and cannot promise that it will happen soon unfortunately.

@student-sx
Copy link
Author

Thanks. Something like \begin{equation} ... \end{equation} seems to be recognized. However \[ ... \] or \(... \) doesn't work for me, as well as $a^2$ or $$ a^2 + b^2 = c^2 $$. Compare the regexp used in poly-markdown.el.

@vspinu
Copy link
Contributor

vspinu commented Aug 26, 2020

yes, it does not because even the \begin .. \end has issues, so I didn't proceed with others.

@QMeqGR
Copy link

QMeqGR commented Apr 22, 2022

Hello, I just discovered polymode and poly-org and would like to use it for inline LaTeX as well. If the trouble is with the symmetric delimiters $..$ and $$..$$, I could live without them. I tried to modify the regex for \begin..\end to work with [..] but I don't know regular expressions well enough to make it work. Is it as straightforward as modifying the regex to search for [..] and (..) ?

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

3 participants