0

My editor (TexMaker) is using utf-8 by default and when i try to use it in my preamble instead of latin it gives me errors! and right now i'm using latin and it dosen't decode properly my document! Any help is much appreciated...

This is the preamble for my document :

\documentclass[11pt]{report}
\usepackage{graphicx}
\usepackage[french]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{hyperref}
\begin{document}
\include{Couverture}
\include{Corps}
\include{Bibliographie}
\end{document}

Output And for reference here is the output it gives me to give you an idea of the issue.

  • 2
    What error do you get with utf8? – Ulrike Fischer Jun 5 at 11:35
  • 1
    you are turning off utf-8 support with \usepackage[latin1]{inputenc} just delete that line (or for older latex change it to \usepackage[utf8]{inputenc} – David Carlisle Jun 5 at 11:41
  • When i use \usepackage[utf8]{inputenc} and delete \usepackage[latin1]{inputenc} It gives me Undefined control sequence.<argument> and package inputenc error Invalid UTF-8 byte sequence – Jack Bauer Jun 5 at 12:08
  • 1
    then presumably one of your input files is not UTF-8, the error message does show where exactly tex had reached but if you do not show any code or the full error it is hard to say. The undefined command error message also says which command is undefined. You need to look in the log not your editors "summary" of the errors. – David Carlisle Jun 5 at 12:11
  • I solved the issue by changing the input encoding of some of my documents because Some used latin while others unicoding which completely slipped out of my mind lol – Jack Bauer Jun 5 at 13:31

Your Answer

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

Browse other questions tagged or ask your own question.