org-mode: support latex blocks outside of latex delimiters
This commit is contained in:
parent
3b7c727aff
commit
76aa4cb9ac
1 changed files with 4 additions and 3 deletions
|
@ -61,8 +61,9 @@
|
||||||
(context (org-element-lineage
|
(context (org-element-lineage
|
||||||
(org-element-context)
|
(org-element-context)
|
||||||
'(table table-row clock comment comment-block footnote-definition
|
'(table table-row clock comment comment-block footnote-definition
|
||||||
footnote-reference headline inlinetask keyword link
|
footnote-reference headline inlinetask keyword link latex-fragment
|
||||||
latex-fragment src-block inline-src-block item plain-list timestamp babel-call)
|
latex-environment src-block inline-src-block item plain-list
|
||||||
|
timestamp babel-call)
|
||||||
t))
|
t))
|
||||||
(type (org-element-type context))
|
(type (org-element-type context))
|
||||||
(value (org-element-property :value context)))
|
(value (org-element-property :value context)))
|
||||||
|
@ -94,7 +95,7 @@
|
||||||
((memq type '(src-block inline-src-block))
|
((memq type '(src-block inline-src-block))
|
||||||
(org-babel-execute-src-block))
|
(org-babel-execute-src-block))
|
||||||
|
|
||||||
((memq type '(latex-fragment))
|
((memq type '(latex-fragment latex-environment))
|
||||||
(org-toggle-latex-fragment))
|
(org-toggle-latex-fragment))
|
||||||
|
|
||||||
((memq type '(link))
|
((memq type '(link))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue