Text Formattingswedish characters behave strange in .pdf

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
aspegren
Posts: 1
Joined: Tue Feb 09, 2021 11:48 am

swedish characters behave strange in .pdf

Post by aspegren »

Hi!

I'm writing documents in Latex and saves them as pdf. The swedish characters "åäö" looks fine and all is good. But, when you start to copy text from your pdf the "åäö" often gets lost in the copy/paste process.

Escpecially now, I have a huge document (140 p.) which I'm going to make som changes in (in Overleaf), but I want to track all my changes, therefor I'm using the Adobe Acrobat Comapare .pdf function. But it marks almost all of the "åäö", even if it isn't changed because Latex seems to treat "åäö" very bad.

Is anyone having a solution for this problem?

Example if I copy/paste from .pdf:
Copy: "högskolan utvärderar"
Paste: "h¨ogskolan utv¨arderar"

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

Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

swedish characters behave strange in .pdf

Post by Ijon Tichy »

This depends on the TeX engine, the input encoding and the font encoding you are using. So more information, i.e. a Infominimal working example, would be needed to give a definite suggestion. Nevertheless, with pdfLaTeX you could try to use package cmap to improve the character mapping in the PDF.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply