2013-09-18 Selective replacement in LaTeX documents (en)
A few days ago, I was working on a LaTeX file written by a someone. The person who typed it in didn't . . . {{{\b\([A-Cx-z]\)\b}}} with {{{\,(if (texmathp) \1 (concat "$" \1 "$"))}}}. To my surprise, . . . of searching I found the culprit: AUCTeX's {{{texmathp}}} isn't a pure function -- it does some searching . . . quick and dirty: {{{\,(let ((letter \1)) (if (texmathp) letter (concat "$" letter "$")))}}}; after . . . I realized that {{{\,(if (save-match-data (texmathp)) \1 (concat "$" \1 "$"))}}} is much better. . . .
3K - last updated 2013-09-19 09:10 UTC by Marcin Borkowski
2013-12-14 Searching for strings in math mode only
Sometimes I wish AUCTeX had a function similar to {{{search-forward}}}, but looking only at math mode . . . ") (while (progn (search-forward string) (not (texmathp))))) }}} What is especially nice about this . . .
2K - last updated 2013-12-14 19:29 UTC by Marcin Borkowski
2016-01-09 mrr-auto-replace
It is often the case that I need to do some heavy search-and-replace in LaTeX files. Usually, this is . . . "\\\\[" "\\\\]") ("\\$" "\\\\(" "\\\\)") ("~" texmathp "") ("\\<\\([aeiouwzAEIOUWZ]\\)\\s +" (lambda . . . () (not (texmathp))) "\\1~") "~\\\\cite")) }}} The first two . . .
5K - last updated 2016-01-09 12:59 UTC by Marcin Borkowski
2024-10-14 mrr-replace-mode
I have to admit that this is a bit embarrassing. [[2016-01-09 mrr-auto-replace|A long time ago]] I announced . . . :hint "Differential operator" :test texmathp "\\\\mathrm{d}\\1")) }}} Let’s analyze this. . . . documents (en)|remember]] that the function {{{texmathp}}} returns true if the point is in TeX math . . .
5K - last updated 2024-10-14 11:30 UTC by mbork
4 pages found.