all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Butler <leo.butler@umanitoba.ca>
To: Sharon Kimble <boudiccas@skimble.plus.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Mass conversion of specific items
Date: Tue, 01 Sep 2020 13:34:24 -0500	[thread overview]
Message-ID: <86y2ltxs5r.fsf@x201.butler.org> (raw)
In-Reply-To: <871rjlmtc0.fsf@skimble.plus.com> (Sharon Kimble's message of "Tue, 01 Sep 2020 16:04:31 +0100")

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> ********************************************************
> Caution: This message was sent from outside the University of Manitoba.
> ********************************************************
>
>
> I'm hoping that someone can help with this problem I have.
>
> I have several org-mode files which have some specific formatting in
> individual items, specifically -
>
> --8<---------------cut here---------------start------------->8---
> \uuline{foo}
> --8<---------------cut here---------------end--------------->8---
>
> This gives a double-underling of 'foo' when exported to latex and built
> into a pdf file.
>
> I'm now in the situation when the double underlining also needs to be
> italicised, and in org-mode its showing as -
>
> --8<---------------cut here---------------start------------->8---
> /\uuline{foo}/
> --8<---------------cut here---------------end--------------->8---
>   
> This gives a double-underling and italicised of 'foo' when exported to
> latex and built into a pdf file.
>
> I would like to change about 150+ 'foos' and possibly using
> 'replace-string' to do it. Also, 'foo' is lots of different words which
> includes spaces between some of them. So how can I do it please?
>
> Thanks  
>   Sharon.

Sharon,

M-x regexp-builder RET

will give you a window that let's you build a regular expression
(regexp) interactively. When I enter

\\\\uuline{[^}]+}

it finds both strings in your email (I'm using Gnus). Alternatively, you
can use

M-x search-forward-regexp RET

to find the occurences of your regexp.

You don't make precise what you want to change, so I cannot say if it is
worth trying to craft a regexp replacement and use

M-x query-replace-regexp

HTH,
Leo



      reply	other threads:[~2020-09-01 18:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-01 15:04 Mass conversion of specific items Sharon Kimble
2020-09-01 18:34 ` Leo Butler [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86y2ltxs5r.fsf@x201.butler.org \
    --to=leo.butler@umanitoba.ca \
    --cc=boudiccas@skimble.plus.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.