[Tex/LaTex] Copying italics text from Word to LaTeX

italicmsword

I'm copying text from Microsoft Word and pasting it into my LaTeX editor. I've been manually replacing all instances of italics with \emph{}, but is there a way to do it faster?

The process would need to be able to find all chunks of italics text (both isolated words and strings of multiple words), then add an \emph{ to the beginning and a } to the end.

(I realize this may not be a TeX question directly, but I'm sure other TeX users will find it helpful.)

Best Answer

We start by first making a dummy document and hoping that the italics are made by that button that lives between the bold and the underline buttons.

So a dummy text

enter image description here

Then if you can find the %$#&%#?@! Find & Replace button on that ever changing menu like thingy, click Replace

First click in the text box of Find and click Format button and then font. Only click Italics and nothing else. Then OK. OK?

Now click in the Replace box and type \emph{^&}, then click format and font again and select Regular and nothing else.

The result should look like

enter image description here

Then keep your expectations low and click Replace All, I got this

enter image description here

Back in the day, we had to record macros and other kind of VBA nonsense. At least it supports it out of the box. I'm gonna wash my hands now, happy recording :)