all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to detect latex subscripts with org-element?
@ 2014-03-10 14:05 Rasmus
  0 siblings, 0 replies; only message in thread
From: Rasmus @ 2014-03-10 14:05 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I want to detect if my point is inside a super/subscript irrespective
of whether I'm in a latex-fragment/environment or in plain text.  If
"|" is my point, I can easily detect the subscript here

    x_{z|}

using `org-element-context`.  However, I have found no good way of
detecting if I'm in the subscript in this example

    $x^{3}_{z|}$

Can I somehow ask org-element to tread a latex-fragment or a
latex-environment as-if it was a plain paragraph?

The motivation is that I'm writing a function to escape fontified
subscripts, such as those of the second example, using double space,
but I cannot find a way to detect if I'm in a subscript when I have
several sup/superscritps.

Thanks,
Rasmus

-- 
Hooray!

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-10 14:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-10 14:05 How to detect latex subscripts with org-element? Rasmus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.