Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

If I am writing a pdf with LaTeX, I would like to use commands from different packages for figures or tables or what so ever ... and I just use all the packages i need, could this lead to a contradiction or errors while compilation ?

For example:

\usepackage[german]{babel}
\usepackage[english]{babel}
\usepackage[dutch]{babel}

or

\usepackage{booktabs}
\usepackage{array}
\usepackage{tabularx}

?

share|improve this question

migrated from stackoverflow.com Oct 22 '12 at 15:45

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

Some packages are "fragile" in that they need to be loaded before/after others. So, in that sense, yes, just "loading a bunch of packages" could be problematic. More specifically, the load order is important. Most notably, the hyperref package requires some loading finesse. See Which packages should be loaded after hyperref instead of before?

Some packages cannot be loaded more than once with different options, otherwise it may cause an "option clash." This can be fixed sometimes using \PassOptionsToPackage{<option>}{<package>}, which passes specific options to packages when it is loaded by another package, possibly avoid conflicts.

share|improve this answer
1  
"Some packages" is a bit strange: no package can be loaded more than once with different options, with the only exception of fontenc. ;-) –  egreg Oct 22 '12 at 16:20
add comment

yes it could, because you are using babel with different option sets

maybe you should use:

\usepackage[ngerman, english, dutch]{babel} 

instead.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.