0

I am currently writing my Ph.D. thesis in French and English. Following the procedure that I found here Changing babel package inside a single chapter, I have divided the document into two parts, one for the French one and one for the English one. It seemed to work fine when uploading the first French chapter. However, starting from the second Chapter LateX goes crazy looking like this:

enter image description here

I am using the following packages:

\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{eurosym}
\usepackage[french,english]{babel}

while the code concerning the French part looks like this:

\begin{otherlanguage}{french}
     \input{Chapter1_FR/Chapter1_FR}
     \input{Chapter2_FR/Chapter2_FR}
\end{otherlanguage}

I have tried to run the code with Chapter 2 only but it still gives the same output. What do you think could be the problem and how can I solve it? Thank you a lot in advance!

P.S. at the moment there are no issues concerning the switch to English.

  • Quite likely, your input files are UTF-8 coded, not Latin-1. Use the same encoding for all files, UTF-8 is recommended. – egreg Sep 13 '20 at 15:01
  • The reason why I was using Latin1 was that I was getting as error: ! Package inputenc Error: Invalid UTF-8 byte sequence. However, running with UTF-8 solves the issue with Chapter 2. Is there a way to run both Chapters without facing errors? – letoppina Sep 13 '20 at 15:09
  • That's why using the same encoding for all files helps. Check that all of them are saved as UTF-8. How to do it depends on the editor or front-end you use. – egreg Sep 13 '20 at 15:18
  • Ok I have found out one of the file is not saved as UTF-8, how can I convert it into this format? – letoppina Sep 13 '20 at 18:14
  • Which editor or front-end do you use? – Mico Sep 14 '20 at 05:21

0 Answers0