First I want to apologise in case the question has already been asked, although I failed to find the topic on this site. So here's the thing :
I've recently begun to type my lessons in LaTex using TeXnicCenter. But, as I'm writing in french, I have to use a lot of accentuated characters (e.g. à, é, è, ê, ...).
Thus, I frequently have to use the "find and replace" tool to find those characters and replace them with the corresponding code (e.g. `a, \'e, ...), so that I can read the pdf output document. But as I have to do this for every different character each time I want to take a look at the document I'm working on, it takes me a lot of time...
So I'm looking for a way to automate this task, maybe with a macro instruction (associated to a shortcut if possible), which could find and replace all of these characters with the corresponding code portion. I don't know how to do this on TeXnicCenter...
(Or maybe a simpler way would be to find a package allowing the use of accentuated letters without having to type the corresponding code)
Can someone help me with this? Thank you!
Edit:
As some of you requested, here's an excerpt of what I'm currently working on:
\documentclass[a4paper, twoside]{article}
\usepackage[francais]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{layout}
\usepackage[top=2cm, bottom=2cm, right=2cm, left=2cm]{geometry}
\begin{document}
n'existe qu'\`a l'\'etat macroscopique. L'ensemble de ces variables constitue les \textbf{variables d'\'etat du syst\`eme}.
\end{document}
You can see I already have fontenc and imputenc in my headlines. I don't understand why it still doesn't recognise accents. Could it be my Latex distribution? I'm currently on MiKTeX...
Edit 2:
Ok so thanks everybody for your help, I actually found the solution on this post, thanks to a comment left by fpast on Joachim Wuttke's answer. The thing was my encoding was ANSI, and when I set encoding to UTF-8 it worked right away :) Thank you all!
\documentclass{...}
and ending with\end{document}
. Is easier for us in this way can help you copiyng and running code instead watch a screenshot.\usepackage[utf8]{inputenc}
fontenc
andbabel
(with French of course) if you still usepdflatex
.