TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to write a class based on the book class (a thesis class for my department).

My question is: is it bad for some reason (or, is it considered bad) to use packages in the class files instead of more primitive TeX / LaTeX commands? For example, should I use the geometry package or the relevant primitive commands?

share|improve this question
up vote 17 down vote accepted

In my opinion it is very good style to include packages. Developing an own class and loading packages via \RequirePackage may hide a lot of stuff irrelevant to users, especially to newbies.

It makes no sense to include the plain macros from style files. Any change or bugfix in the underlying style would need to be included manually in your class as well, so it could be a lot of work.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.