3

The french apostrophe is the following ’, when babel french is loaded it automatically turns typed apostrophes ' into ’.

How to preserve the apostrophe ' in some cases (quote for example) but not in all the document ?

\documentclass{report}
\usepackage[francais]{babel}

\begin{document}
l'exemple d'une apostrophe (it's fine here)\\
quote: 'text of the quote' (it's not,' should be preserved)
\end{document}
  • That said, you should use either guillemets, or use \emph. Single quotes are british. – Bernard May 23 '16 at 20:14
  • Are you calling “apostrophe” the “straight quote”? – egreg May 23 '16 at 21:18
  • @egreg i meant by quote citation and not quote the punctuation symbol (“ ”) sorry for confusion. yes exactly the seconde line in the example should be a straight single quote (') instead of a closing single quote (’) – SAM May 23 '16 at 21:25
5

The fact you're using babel-french has nothing to do with the problem.

Straight quotes are very rarely used in typography, so when you type the ' character, you get a curly glyph that serves both as a closing quote and as apostrophe.

If you want a straight quote, you can use the glyph provided by textcomp.

\documentclass{report}
\usepackage[T1]{fontenc} % mandatory for French
\usepackage[francais]{babel}
\usepackage{textcomp}

\begin{document}

l'exemple d'une apostrophe

quote: \textquotesingle text of the quote\textquotesingle

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.