[Tex/LaTex] How to copy text from PDF created by LaTeX

copy/pastelatex-to-word

I'm writing some texts in Brazilian Portuguese using LaTeX. Eventually I have to copy/paste some parts of those texts in Word, but with character problems.

I use the following code:

    \documentclass[12pt,a4paper]{article}
    \usepackage[utf8x]{inputenc}
    \usepackage{ucs}
    \usepackage{amsmath}
    \usepackage{amsfonts}
    \usepackage{amssymb}
    \usepackage{makeidx}
    \usepackage{graphicx}
    \usepackage{times}
    \usepackage[brazil]{babel}
    \begin{document}

 Some text in portuguese with special characters: Coagulação de
partículas à escala microscópica

\end{document}

But when I copy/paste the result is:

Some text in portuguese with special characters: Coagulac¸ ˜ao de
part´ıculas `a escala microsc´opica

Someone knows how to avoid this??

Thanks!!

Best Answer

Try to load \usepackage[T1]{fontenc}

\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc} 
\usepackage[utf8]{inputenc}
\usepackage[portuguese]{babel}

\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{times}
\begin{document}
 Some text in portuguese with special characters: Coagulação de
 partículas à escala microscópica
 \end{document}

here is the result :enter image description here

and also read this fontenc vs inputenc

Related Question