Add inner mode for latex environments#17
Add inner mode for latex environments#17jethrokuan wants to merge 2 commits intopolymode:masterfrom jethrokuan:feat/org-latex
Conversation
|
Thanks. This makes sense indeed. Would you mind defining the poly-org-root-innermode and deriving the two innermodes from it? You can use poly-markdown as an example. |
| :head-mode 'host | ||
| :tail-mode 'host | ||
| (define-innermode poly-org-latex-innermode poly-org-root-innermode | ||
| :mode 'latex-mode |
There was a problem hiding this comment.
I am actually no longer sure about this change. It looks like there is little support from org for latex chunks so most of configuration options cannot be reused. Also, shouldn't head be of body type here?
There was a problem hiding this comment.
In the same fashion as src chunks, latex chunks are typically edited by entering the indirect buffer environment with C-c ', so I thought equivalent treatment would make sense.
most of configuration options cannot be reused
what kind of configuration options?
Also, shouldn't head be of body type here?
honestly not sure what each of them entail, but this had worked for me
There was a problem hiding this comment.
so I thought equivalent treatment would make sense.
I see. Ok. If latex is a first class environment in org then yes.
most of configuration options cannot be reused
what kind of configuration options?
Object's slots like head-mode, regexp etc. So it doesn't make much sense to inherit the latex from org src.
I will play with this as soon as I can. I am having limited computer access these weeks.
There was a problem hiding this comment.
So it doesn't make much sense to inherit the latex from org src.
I don't think I had made it inherit from the org-src ones.
I will play with this as soon as I can. I am having limited computer access these weeks.
np, take your time.
|
Hi! It would super useful if you could merge this into the master. Also if it's possible implement it on poly-R. Definitely this PR is a must to have a complete smooth experience with literate documents with mixed latex and R. Thanks for your great work! |
This enables latex-mode for raw latex environments, which are common where we want exports to md/html to also have the latex equation. E.g.