bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#73302: TeX-find-closing-brace and verbatim macros


From: Arash Esbati
Subject: bug#73302: TeX-find-closing-brace and verbatim macros
Date: Fri, 27 Sep 2024 19:22:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Paul Nelson <ultrono@gmail.com> writes:

> For whatever it's worth, I updated my package czm-tex-fold to support
> the variety of verbatim formats from Arash's earlier email.  This is
> less flexible than what we would get by extending the display spec
> format, but has the advantage that it's been implemented.

> (defvar czm-tex-fold--verb-regex
>   "\\\\\\(Verb\\|verb\\)\\(?:\\[[^]]*\\]\\)?[|{]\\([^|}]*\\)[|}]")

A little simpler:

  "\\\\\\([Vv]verb\\)\\(?:\\[[^]]*\\]\\)?[|{]\\([^|}]*\\)[|}]"

How does your code work on this example:

  \verb|}|

?  I admit, this is a mess, but maybe we can come up with a solution
within AUCTeX; I have to think about it, though.

Best, Arash





reply via email to

[Prev in Thread] Current Thread [Next in Thread]