2

For example, I want to replace the all variable "c" in all math equations of this paragraph by "x". It seems an ordinary task, but I find it very difficult to do so. I am not sure, but the normal replace dialog seems not supporting this.

enter image description here

Thank you!

2
  • I'm afraid your only option is to do it manually. Sep 22, 2016 at 14:17
  • @MátéJuhász One possible work-around is to unzip the .docx file and edit the word/document.xml file. (An advanced text editor is probably needed to facilitate editing. )
    – xzczd
    Mar 3, 2022 at 5:10

2 Answers 2

4

To make a substitution in math zones, you have to work with Unicode codes that represent characters in those zones. Here's how to do that:

  1. Place the cursor at the right of the character you want to replace, then press Alt+X to see the code.

  2. Copy or type the code in the Find area of the Find & replace window. Press Alt+X again.

  3. Do the same with the character you want to use (you may need to temporary type it in a math zone to see its corresponding code).

  4. Copy or type this other code in the Replace area of the Find & replace window. Press Alt+X again.

  5. Click on Replace button.

Note: Combination Alt+X shows the Unicode encoding; pressing again the keys Alt+X gives you back the character.

-1

1- Write the variable x then take a copy of it 2- Select the variable c and use find and replace tool "ctrl+h" + esc 4- Select the whole paragraph in which you want to replace the variable c with x 5- ctrl+h again (you will see the variable c in find what) + select find + select find in + the current selection + esc 6- now you will see all c variable selected in the paragraph 7- replace by the x that you are already has copied :) Done

you may also use find in the main document and replace through the whole document

1
  • 1
    This answer seems incomplete. It also lacks formatting.
    – Ramhound
    Nov 9, 2016 at 21:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .