0

I notice a lot of answers on the site involve importing packages for singular problems. Are there any drawbacks to having 10 different imported packages in your code?

yolo
  • 169
  • 4
    It depends on the packages. To load 10 packages is quite normal, but packages can clash if they try to affect the same code. If you would e.g. load 10 packages which all change e.g. the math font setup you would get problems. – Ulrike Fischer Jan 21 '22 at 18:10
  • 1
    Welcome! Load packages as you recognize your need for them; copying a long list of packages from someone else’s documents may lead to the kind of situation Ulrike mentions. And see https://tex.stackexchange.com/q/3910/ on obsolete packages. – Thérèse Jan 21 '22 at 19:08
  • 4
    10 is fine if you use them what is bad is people who copy preamble from document to document building up preambles of hundreds of lines with no thought why any of them are there (which often shows up here as preambles with the same package loaded three or four times) every package has the possibility of conflicting and makes debugging harder. – David Carlisle Jan 21 '22 at 19:29
  • 4
    The golden rule is: as many packages as necessary, and as few packages as possible. – Fran Jan 21 '22 at 19:41

0 Answers0