all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ^L character?
@ 2006-11-08  2:02 Peter
  2006-11-08  2:40 ` Dan Sommers
  2006-11-08  4:44 ` B. T. Raven
  0 siblings, 2 replies; 3+ messages in thread
From: Peter @ 2006-11-08  2:02 UTC (permalink / raw)


I'm trying to work with a file that I pasted-as-text from Acroread, in
Windows XP.  I'd like to replace all of the ^L characters that show up
in this document with either nothing, or a \newline (for LaTeX). How
do I go about replacing a character like that using Emacs?

Thank you.

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

* Re: ^L character?
  2006-11-08  2:02 ^L character? Peter
@ 2006-11-08  2:40 ` Dan Sommers
  2006-11-08  4:44 ` B. T. Raven
  1 sibling, 0 replies; 3+ messages in thread
From: Dan Sommers @ 2006-11-08  2:40 UTC (permalink / raw)


On Tue, 07 Nov 2006 20:02:37 -0600,
Peter <facetious_nickname@hotmail.com> wrote:

> I'm trying to work with a file that I pasted-as-text from Acroread, in
> Windows XP.  I'd like to replace all of the ^L characters that show up
> in this document with either nothing, or a \newline (for LaTeX). How
> do I go about replacing a character like that using Emacs?

You can enter control characters into emacs by prefacing them by C-q; so
to replace ^L's with \newline:

    M-% C-q C-l RET \newline RET

Assuming you haven't hacked your key mappings too much, you can get help
on C-q with:

    C-h C-k C-q

HTH,
Dan

-- 
Dan Sommers
<http://www.tombstonezero.net/dan/>
"I wish people would die in alphabetical order." -- My wife, the genealogist

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

* Re: ^L character?
  2006-11-08  2:02 ^L character? Peter
  2006-11-08  2:40 ` Dan Sommers
@ 2006-11-08  4:44 ` B. T. Raven
  1 sibling, 0 replies; 3+ messages in thread
From: B. T. Raven @ 2006-11-08  4:44 UTC (permalink / raw)



"Peter" <facetious_nickname@hotmail.com> wrote in message
news:uzmb2r8zm.fsf@hotmail.com...
> I'm trying to work with a file that I pasted-as-text from Acroread, in
> Windows XP.  I'd like to replace all of the ^L characters that show up
> in this document with either nothing, or a \newline (for LaTeX). How
> do I go about replacing a character like that using Emacs?
>
> Thank you.

To replace ^L with nothing (delete):

M-% C-q C-l RET RET

spacebar....

then after seeing it work on a few, press ! to replace all.



To replace ^L with a newline:

M-% C-q C-l RET C-q C-j RET
for an actual newline char 10
or
.... \newline if that's what LaTeX wants.

M stands for Meta (mapped to Alt on common keyboards). M-% (Alt-Shift-%)
and C-q C-L C-j are keychords: While holding down the first, press the
second.

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

end of thread, other threads:[~2006-11-08  4:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-08  2:02 ^L character? Peter
2006-11-08  2:40 ` Dan Sommers
2006-11-08  4:44 ` B. T. Raven

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.