all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Mass conversion of specific items
@ 2020-09-01 15:04 Sharon Kimble
  2020-09-01 18:34 ` Leo Butler
  0 siblings, 1 reply; 2+ messages in thread
From: Sharon Kimble @ 2020-09-01 15:04 UTC (permalink / raw)
  To: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512


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.
- -- 
Debian 10.5, fluxbox 1.3.7, emacs 27.1, org 9.3.7
-----BEGIN PGP SIGNATURE-----

iQJPBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl9OYwkbHGJvdWRpY2Nh
c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbOkIP/0ErbdqNK6eD0VNSKjrX
/2rdR4RwuvgvwBtJgDFVisUxVq7BTvdtJNKHyim08FNXMLfEFlU2CbgjzT5cM8Vz
jTmKs5fkxd90mMhcNjrbF7faWozU7Gg9gYhu4Lm8ZS7qxXsGJexXjnMHgfTkH7Xq
ZrltD+JNNvUu4uN7BhQz6CM78tNNQOUV4FQZd5iezu4K7ukN0/n8Xo8Yx35b0b0S
+ylPz21XIWUX7tRCSV/3D2AeM5PNJvoM/N6Uu/0yI+PYPJXUxhqb50CLFnjK97tx
/3OAk3+AAtM5IVAPxNO4PqH080k3UgbWgp99Ja/w0LnrJPKljCitQ0yCdLWcxtuc
5rgF4BFUcgFfJ/JypNqq2B73yYPfKmIyJx36zql3t7YjvNU1KQofbjmRM/+d35cI
1J9UkB2098Bo8Dztuj9PFKN3RIWh9AlajSUfPYLPJlIGWEGcHb3sfyb6I4+a1EUy
w/RtwKyhfZHy+kXLUNflt3FDymKKYQ7IyC+xsmWlJsX9K86vERiEmtiorgHa3Lgb
W60RmwHsV/CKk6LVDBrPC6c6cIXxfZkT0tCT9eV18qi/wFOGJB6I7PZzgIVQcOUc
7Q/Psx1HUSjbt51Qq36SiUWrW8LQmXxmt41juF+GcIvrU+asKZFD1cURCQb84dVE
/dX5+Aeqes90+jC+oMiKe3G3
=bjhL
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Mass conversion of specific items
  2020-09-01 15:04 Mass conversion of specific items Sharon Kimble
@ 2020-09-01 18:34 ` Leo Butler
  0 siblings, 0 replies; 2+ messages in thread
From: Leo Butler @ 2020-09-01 18:34 UTC (permalink / raw)
  To: Sharon Kimble; +Cc: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-01 18:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-01 15:04 Mass conversion of specific items Sharon Kimble
2020-09-01 18:34 ` Leo Butler

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.