[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Then how to replace all my $$ ... $$ to \[ \] through search and rep
From: |
Nikos Apostolakis |
Subject: |
Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace? |
Date: |
Fri, 15 Aug 2008 21:18:28 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Reiner Steib <reinersteib+gmane@imap.cc> writes:
> On Fri, Aug 15 2008, Ralf Angeli wrote:
>
>> * Phil Carmody (2008-08-15) writes:
>>> $$ What about this $1,000,000 example? $$
>> C-M-% \$\$ <RET> \,(if (zerop (mod \# 2)) "\\[" "\\]") <RET>
>
> (replace-string "$$" '("\\\[" "\\\]"))
>
This is great!
Is this an undocumented feature of replace-string? I can't find it in
the help string or the info manual.
Nikos
- Then how to replace all my $$ ... $$ to \[ \] through search and replace?, xiaopeng hu, 2008/08/15
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Tassilo Horn, 2008/08/15
- Message not available
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Ralf Angeli, 2008/08/15
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Tassilo Horn, 2008/08/15
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Thierry Volpiatto, 2008/08/15
- Message not available
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Phil Carmody, 2008/08/15
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Ralf Angeli, 2008/08/15
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Reiner Steib, 2008/08/15
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?,
Nikos Apostolakis <=
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Reiner Steib, 2008/08/16
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, harven, 2008/08/16
- Re: Then how to replace all my $$ ... $$ to \[ \] through search and replace?, Reiner Steib, 2008/08/16