Fonts & Character Sets(More) missing apostrophies

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
dr8086
Posts: 4
Joined: Thu May 03, 2012 2:39 pm

(More) missing apostrophies

Post by dr8086 »

Hello all

I'm using TexMakerX 2.1 to compile a book, using text copied over from Open Office.
However when I pdfLaTeX the document, all the apostrophies and quotation marks do not appear.
I've seen a couple of forum threads similar to this, which were solved by turning off 'Smart Quotation marks' in Word, but this hasnt worked for me.
Below is a minimal working example, which I hope will demonstrate the problem.

\documentclass{book}
\title{The Dark}
\begin{document}
\maketitle
\chapter{DEEP WATER}

‘Do you realise how serious this is, Joe?’ \par
I can’t look the cop in the eyes. ‘I know it was wrong ... ’\par
He shakes his head. ‘Joe, you must know that driving underage isn’t the half of it. A car that answers the description of yours was at the scene of an accident an hour ago. A lad’s been run over.’\par

\end{document}


Many thanks!
Dave

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

(More) missing apostrophies

Post by Stefan Kottwitz »

Hi Dave,

welcome to the board!

This can be fixed by loading the inputenc package, with the correct encoding option. In my case, with TeXworks, utf8:

Code: Select all

\usepackage[utf8]{inputenc}
When I'm using TeX, I would use TeX's quotes though, even if it means replacing characters (automatically).

Stefan
LaTeX.org admin
dr8086
Posts: 4
Joined: Thu May 03, 2012 2:39 pm

Re: (More) missing apostrophies

Post by dr8086 »

That's fixed it!
Many thanks for speedy response and resolution, that's saved me hours of work!
Best regards
Dave
Post Reply