With a few school mates, we have written a report in Word/Google Drive. I would like to format it in LaTeX. However, when I copy paste I see that certain characters are not as usual and trigger errors. Besides, I am writing in French, which means there are many characters with accents. I tried using \usepackage[tipa,combine]{ucs}
I was able to compile the document but all the accents are gone. The other solution I have is to Find/Replace the accents but I would rather be able to copy/paste it properly. Is there some shortcuts or another package that would allow that?
Preamble:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8x]{inputenc}
\usepackage[francais]{babel}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
Sample of text that trigger errors:
Pour répondre à cette problématique, deux axes majeurs ont été
abordés. D'une part, l'analyse du profil des consommateurs a été
réalisée en déployant une étude quantitative au niveau régional.
D'autre part, le changement de packaging – au stade de la veille de
son lancement au moment de la clôture de l'analyse quantitative – a
été analysé en soumettant le nouveau packaging aux consommateurs lors
d'une table ronde.
Error log:
! Package ucs Error: Please activate option 'combine'. See the ucs
package documentation for explanation. Type H for immediate
help. … l.34 …�, car la fermentation spontanée du moû t de
céréales par des le… Composed characters can only be rendered
correctly, when the option 'combine' i s activated
Best Answer
I'd avoid
utf8x
and certainly not use thecombine
option forucs
. Useutf8
and you'll be on the right track. Of course the input file should be saved as UTF-8.I added also
microtype
that allows for better line breakings. Note that wrong input must be corrected: I'm referring to the dashes, because a hyphen can never be used as a dash.