transpose footnote/endnote reference and punctuation

  • Thread starter Amanda Redmond-Neal
  • Start date
A

Amanda Redmond-Neal

hi. i have a doc wherein almost all of the endnote references were inserted
before the periods and commas. for publication, i need to make sure all
references come after the punctuation instead. i have read a lot about
find-and-replace expressions in my search for a solution, and learned a lot
of new things in the process, but not found anything that worked.
is anyone aware of a way i can do this other than manually?
 
S

Stefan Blom

Perform a wildcard search as follows:

"Find what": (^2)([\?\!\.\,\;])

"Replace with": \2\1

Click Replace All.

The characters listed in the brackets are those that should be replaced (you
can add and remove characters as desired). The backslash is used as an
escape character; it allows special characters to be found. (It is not
necessarily required for all of the characters entered in the search above;
I included it to avoid unexpected results.)

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 
A

Amanda Redmond-Neal

thank you so much stefan. i never thought i'd figure it out.
after dealing with the footnotes, i attempted to use a string similar to
your "find what" suggestion below to transpose quotation marks and
punctuation, unsuccessfully.
i tried three versions:
(\")([\?\!\.\,\;]) ,
(")([\?\!\.\,\;]) , and
"([\?\!\.\,\;]) .
however, word didn't find any of the instance of ". or ", based on the
wildcard expression. can you tell me what i should be doing instead
certainly, i could simply not use wildcards, find ". and replace with ." but
now i want to learn more about how the wildcards work in various situations.
 
S

Stefan Blom

Did you remember to enter *typographical* quotation marks in the Find &
Replace dialog box? On your keyboard, activate NUMLOCK, and then use
Alt+0148 (type the numbers on the numeric keypad) to insert ” (the right
paragraph mark in US English text). To get the left paragraph mark, use
Alt+0147. You don't need an escape character for that (of this I'm sure
:) ). So you would use this:

(”)([\?\!\.\;])

for "Find what."

But I'm not sure if a wildcard search would be that useful in this case...
For example, a question mark is not necessarily part of quoted text.

--
Stefan Blom
Microsoft Word MVP


in message
thank you so much stefan. i never thought i'd figure it out.
after dealing with the footnotes, i attempted to use a string similar to
your "find what" suggestion below to transpose quotation marks and
punctuation, unsuccessfully.
i tried three versions:
(\")([\?\!\.\,\;]) ,
(")([\?\!\.\,\;]) , and
"([\?\!\.\,\;]) .
however, word didn't find any of the instance of ". or ", based on the
wildcard expression. can you tell me what i should be doing instead
certainly, i could simply not use wildcards, find ". and replace with ."
but
now i want to learn more about how the wildcards work in various
situations.

Stefan Blom said:
Perform a wildcard search as follows:

"Find what": (^2)([\?\!\.\,\;])

"Replace with": \2\1

Click Replace All.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top