Text FormattingApostrophe.

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
mirou
Posts: 18
Joined: Thu Apr 29, 2010 4:36 am

Apostrophe.

Post by mirou »

Hi All,

I am new in the forum :roll: , I am doing my thesis (in French :? ) and decided to use Latex, have spent 2 weeks exploring its capabilities. Have to admit that it is a great tool. Have found many solutions to my questions (I don't like calling them problems)...
However, when I copy from my original Word file into Latex, the apostrophe appears as a question mark. Here are my commands and a simple example. If anybody could tell me how would TexShop recognize these as apostrophe (don't tell me go one by one) re-writing them manually in TexShop cause I have more than 50 pages....)

When I compile on LatexPdf, the apostrophe like in d'information appears as a question mark..

Thanks Latex Friends

Regards
Mirou


%!TEX encoding = IsoLatin
\documentclass[parskip]{scrartcl}
\usepackage[frenchb] {babel}
\usepackage[latin1]{inputenc}
\selectlanguage{frenchb}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\setlength{\parskip}{1.3ex plus 0.2ex minus 0.2ex}
\usepackage{graphicx}
\begin{document}
\title{Proposition de thèse}
\author{Myriam}
\date{Avril 2010}
\maketitle
\textbf{Titre Proposé pour le sujet:}

\begin{center}
STANDARDISATION ET INNOVATIONS DES SYSTÈMES D'INFORMATION
\end{document}

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: Apostrophe.

Post by frabjous »

A few things to try (in order):

(1) Try changing \usepackage[latin1]{inputenc} to \usepackage[utf8]{inputenc}.

(2) Try turning off "smart quotes", and search and replace ' for ' (yes, as silly as that sounds), in Word before copying and pasting.

(3) Save as plain text in Word, and then open the plain text with TeXshop and edit from there.

In the future, please use [ code ] [/ code ] boxes around code, thanks!
mirou
Posts: 18
Joined: Thu Apr 29, 2010 4:36 am

Re: Apostrophe.

Post by mirou »

Waw that was quick
The first {utf8} did not work because it did not recognize special characters.
How can I turn smart quotes off in Word (which menu?)
I did not understand your last comment on using code:
use [ code ] [/ code ] boxes around code an example could help
Thanks
mirou
Posts: 18
Joined: Thu Apr 29, 2010 4:36 am

Re: Apostrophe.

Post by mirou »

OK good news, this has been resolved.
In Word go to tools--> Autocorrect --> quotes and uncheck the smart quotes
Then go to edit replace all " ' " by " ' "
Then copy into your TexShop
All apostrophes will appear as such...
Good day to all Latex community and friends :lol:
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Apostrophe.

Post by frabjous »

Glad you figured out the apostrophe problem. I wouldn't have been able to tell you where to find the place to turn off AutoCorrect for SmartQuotes and apostrophes, so I'm glad you found it on your own.

For the code box, when you're composing a message here at latex-community.org, there's a button above the place where you type your message called "code". If you click on it you get an opening and closing code tags. Anything you type in it will be put in a box that looks like this:

Code: Select all

here is a code box
This is the preferred place to put LaTeX code, since it's nice and neatly separated, and there's a "Select All" link.
mirou
Posts: 18
Joined: Thu Apr 29, 2010 4:36 am

Re: Apostrophe.

Post by mirou »

Thanks for the help frabjous..
Enjoyable experience at the Forum today..

Have a great day.
Post Reply