Please consider the following MWE:
\documentclass{article}
\usepackage[spanish]{babel}
\selectlanguage{spanish}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
Works: áéà
Does not work: \(\pmod1\)
\end{document}
The áéà
text is copied correctly, but if I try to copy (mód 1)
it says: (m´od 1)
.
Does anyone know why this happens? How is it solved?
Thanks!
pdflatex
(all packages updated yesterday) and got good copy text with SumatraPDF, but Adobe Reader gave me(mod 1)
, Firefox, Chrome and Edge all said(m ́od 1)
. (Of course this still shows that something is off, the consensus between viewers here is the wrong paste text, which is not good.)spanish.ldf
is the file read bybabel
that provides support for the Spanish language. This redefines\pmod
to dom\es@op@ac od
and\es@op@ac o
basically does\acute{o}
, which will not use a precomposed character, whence the issue you have.