<span class="mw-page-title-namespace">Blog</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">Hacks/Emacs regexp for our compound decay rates notation</span>
Elena & Fabrice's Web

Emacs regexp for our compound decay rates notation

From laussy.org's Blog about Hacks.
Published: 00:36, 13 January 2016.

We find that algebraic sums of decay rates are fairly common, which make a notation such as $\gamma_{\widetilde{ij}}=i \gamma_a + j\gamma_\sigma$ useful (e.g., $\gamma_{\widetilde{31}}=3\gamma_a+\gamma_\sigma$). This is, however, a bit of a pain to typeset:

(e.g., $\gamma_{\widetilde{31}}=3\gamma_a+\gamma_\sigma$)

In emacs, this regexp substitution allows to transliterate \gamma_{31} into the widetilde form:

Replace regexp (default _{\([0-9][0-9]\)} -> _{\\widetilde{\1}}):