When using copy paste from the PDF generated from my Latex document, the text comes out garbled. What could be causing this?
This is an example of the original text:
At last, and taking the risk a being too abstract, I should point out that evolutionary algorithms are inspired by nature's evolutionary process. This is a good opportunity to gain some insight how deeply can that metaphor hold. Specially since life itself is less a phenomena of optimising functionality but more of getting good results with what you already have while not becoming too sensitive to internal and external variation. This last aspect must not stand in the way of obtaining phenotypes with biological interest but is relevant nonetheless.
And this is the garbled copy-paste:
❆t ❧❛st✱ ❛♥❞ t❛❦✐♥❣ t❤❡ r✐s❦ ❛ ❜❡✐♥❣ t♦♦ ❛❜str❛❝t✱ ■ s❤♦✉❧❞ ♣♦✐♥t ♦✉t t❤❛t ❡✈♦❧✉t✐♦♥❛r2 ❛❧❣♦r✐t❤♠s ❛r❡ ✐♥s♣✐r❡❞ ❜2 ♥❛t✉r❡✬s ❡✈♦❧✉t✐♦♥❛r2 ♣r♦❝❡ss✳ ❚❤✐s ✐s ❛ ❣♦♦❞ ♦♣♣♦rt✉♥✐t2 t♦ ❣❛✐♥ s♦♠❡ ✐♥s✐❣❤t ❤♦✇ ❞❡❡♣❧2 ❝❛♥ t❤❛t ♠❡t❛♣❤♦r ❤♦❧❞✳ ❙♣❡❝✐❛❧❧2 s✐♥❝❡ ❧✐❢❡ ✐ts❡❧❢ ✐s ❧❡ss ❛ ♣❤❡♥♦♠❡♥❛ ♦❢ ♦♣t✐♠✐s✐♥❣ ❢✉♥❝t✐♦♥❛❧✐t2 ❜✉t ♠♦r❡ ♦❢ ❣❡tt✐♥❣ ❣♦♦❞ r❡s✉❧ts ✇✐t❤ ✇❤❛t 2♦✉ ❛❧r❡❛❞2 ❤❛✈❡ ✇❤✐❧❡ ♥♦t ❜❡❝♦♠✐♥❣ t♦♦ s❡♥s✐t✐✈❡ t♦ ✐♥t❡r♥❛❧ ❛♥❞ ❡1t❡r♥❛❧ ✈❛r✐❛t✐♦♥✳ ❚❤✐s ❧❛st ❛s♣❡❝t ♠✉st ♥♦t st❛♥❞ ✐♥ t❤❡ ✇❛2 ♦❢ ♦❜t❛✐♥✐♥❣ ♣❤❡♥♦t2♣❡s ✇✐t❤ ❜✐♦❧♦❣✐❝❛❧ ✐♥t❡r❡st ❜✉t ✐s r❡❧❡✈❛♥t ♥♦♥❡t❤❡❧❡ss✳
The commands I run to generate the pdf are:
pdflatex thesis.tex
bibtex thesis
pdflatex thesis.tex
pdflatex thesis.tex
I am using the debian packages from debian wheezy.
This is the minimum example with the problem.
\documentclass{article}
% The Unicode character encoding UTF8 includes several special characters and characters with accents.
% The following code specifies that the encoding of the LaTeX document source file is UTF8.
% Font encoding is specified as T1, because it supports the encoding of extended character sets in fonts.
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\title{A optimisation tool for the functional improvement\\ of Biological Models}
\begin{document}
Some garbled text with an accented à.
Some garbled text.
\end{document}
fontencpackage; for example,\usepackage[T1]{fontenc}? – Gonzalo Medina Sep 17 '12 at 13:51fontenc,cmap, and your used font. Also maybe your pdf reader. – Juri Robl Sep 17 '12 at 13:52fontenc. See here – Juri Robl Sep 17 '12 at 14:09fontencin the test). – Juri Robl Sep 17 '12 at 14:12