3

I'm writing a report in french, which also contains references to spanish names, containing spanish accents. Including both the french and spanish babel options creates a babel package clash error.

How do I use both languages in my document in a simple way?

Thanks

  • 1
    use \usepackage[spanish,french]{babel} not \usepackage[spanish]{babel}\usepackage[french]{babel} – David Carlisle Jun 10 '14 at 9:06
  • Note that you only need spanish option to enable Spanish hyphenation patterns and to use Spanish words for fixed texts such as "Table of Contents" the letters are available anyway (\~{n} etc). – David Carlisle Jun 10 '14 at 9:08
  • Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – egreg Jun 10 '14 at 9:20
  • You could be interested by csquotes and biblatex packages in order to handle accents for different language in the reference. – ppr Jun 11 '14 at 15:20
2

Use

\PassOptionsToPackage{spanish}{babel}
\documentclass{...}
...

if you cannot do what David suggested.

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.