Text Formattinghelp with spanish characters

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
fja
Posts: 24
Joined: Mon Dec 07, 2009 2:10 am

help with spanish characters

Post by fja »

Hi there!
I wrote some work (in spanish, of course), and I had no problem with this. I used:

Code: Select all

\usepackage[spanish,es-lcroman]{babel}
\usepackage[latin1]{inputenc}
And, as I said, it worked fine!!

The problem is when I (or some one else) try to copy the text from the .pdf file. As I said, I wrote in spanish, with ñ and á. If I print the document, it prints well.

If I copy a word with a spanish character and paste it in a text editor, this is the result:
… a ́rea de desempen ̃o …
What can I do??? This is important to me, because the person who receive this work (and who is paying to me) will try to copy some text to do what ever he/she wants, but I don't want to re-type my entire work into a Word (because I hate it) or he/she re-type the text (because I won't be hired again!)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: help with spanish characters

Post by frabjous »

Try adding something like:

\usepackage[T1]{fontenc}

to the preamble and see if that helps.
fja
Posts: 24
Joined: Mon Dec 07, 2009 2:10 am

help with spanish characters

Post by fja »

Thanks frabjous, it works fine!!!
Post Reply