auctex
[Top][All Lists]
Advanced

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

[AUCTeX] Re: query-replace in math mode


From: Plamen Tanovski
Subject: [AUCTeX] Re: query-replace in math mode
Date: Mon, 17 Dec 2007 15:25:20 +0100
User-agent: Mutt/1.5.14 (2007-02-12)

> Please, can you explain in more detail how to use texmathp during a
> query-replace session?

Here is a simple wrapper to query-replace. Please test use it
carefully, I am an absolute beginner in elisp.

(defun LaTeX-math-query-replace (from-string to-string)
"math query replace"
(interactive "sFrom: \nsTo: ")
(while
    (search-forward from-string)
  (if (texmathp)
    (query-replace from-string to-string nil 
 (point) (1+ (match-end 0))))))

Best regards,

-- 
Plamen Tanovski
Prager Str. 125
04317 Leipzig
Tel. (03 41) 3 08 57 60




reply via email to

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