GNU bug report logs - #61410
texmathp and literal $

Previous Next

Package: auctex;

Reported by: Arash Esbati <arash <at> gnu.org>

Date: Fri, 10 Feb 2023 20:18:02 UTC

Severity: normal

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: auctex-bugs <bug-auctex <at> gnu.org>
Subject: texmathp and literal $
Date: Fri, 10 Feb 2023 21:16:22 +0100
Hi all,

please consider this small example:

--8<---------------cut here---------------start------------->8---
\documentclass{article}

\begin{document}

text \verb|$|

\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
--8<---------------cut here---------------end--------------->8---

Now do:

  M-: (goto-char 58) RET
  C-c C-f C-t

and AUCTeX insert \mathtt{} at point.  Doing 'M-x texmathp RET' returns:

  math-mode is on: $ begins at buffer position 55

texmathp ignores the verb macro completely.  The similar scenario can be
created for a verbatim-like environment.  Can others reproduce this?
And if yes, any idea about course of action?

Best, Arash




This bug report was last modified 2 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.