Q: how can I test if point is inside LaTeX ``quotes,'' and how can I get the bounds of that quote?
LaTeX quotation marks are kooky, typesetting ``text inside a double-quote'' and `text inside a single-quote' for the standard "text inside a double-quote" and 'text inside a single-quote'.
I'd like to detect if point is inside such a quote (either single or double) and, ideally, return the bounds of the quoted passage. However, syntax-ppss
does not appear to recognize such passages as strings (re: elements 3 and 8 in the returned list; see parse-partial-sexp
for details).
Is there a predicate function baked-in to AUCTeX to do so? Many of their functions also have curious naming conventions, so I may have missed it. If no such function already exists, what alternatives would work?
(font-latex-faces-present-p '(font-latex-string-face))
inside a double quotation, you get true, otherwise false.