From: "Andrea Vettorello" <andrea.vettorello@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Capitalize letter after brace
Date: Wed, 15 Oct 2008 07:28:16 +0200 [thread overview]
Message-ID: <7d5440240810142228x4350a155t8af02cc70ad68117@mail.gmail.com> (raw)
In-Reply-To: <87vdvuh2mv.fsf@rosslaird.info>
On Wed, Oct 15, 2008 at 7:02 AM, Ross A. Laird <ross@rosslaird.info> wrote:
> This is the type of thing that would take me a day to figure out on my
> own (though, probably, I could eventually figure it out), but most
> readers of this group can probably throw me a line in a few seconds:
>
> I have some index entries in my tex file that are capitalized
> \index{Capitalized} and others that are not \index{not}. I want to make
> all entries consistently capitalized. This means a search for the first
> character after the opening index brace and a change of its case. What's
> the magic formula (please...).
>
Not tested, probably needs some escaping (I'm not sure if the opening
brace should be escaped), anyway something like:
M-x replace-regexp Enter
Replace regexp: index{\(w\) Enter
with: index{\,(capitalize \1) Enter
The above should capitalize the first word after every "index{" in
your tex file.
--
Andrea
next prev parent reply other threads:[~2008-10-15 5:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-15 5:02 Capitalize letter after brace Ross A. Laird
2008-10-15 5:28 ` Andrea Vettorello [this message]
2008-10-15 5:44 ` Ross A. Laird
[not found] <mailman.1086.1224046973.25473.help-gnu-emacs@gnu.org>
2008-10-15 5:29 ` Niels Giesen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7d5440240810142228x4350a155t8af02cc70ad68117@mail.gmail.com \
--to=andrea.vettorello@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).