On 2009-11-19, Steve Litt wrote:

> What's the difference between \RequirePackage and \usepackage?

see clsguide.pdf (in the LaTeX base-doc)::

  LaTEX has three types of command.
  
  There are the author commands, such as \section, \emph and \times: most
  of these have short names, all in lower case.
  
  There are also the class and package writer commands: most of these
  have long mixed-case names such as the following.

      \InputIfFileExists     \RequirePackage  \PassOptionsToClass
  
  Finally, there are the internal commands used in the LaTEX
  implementation, such as \...@tempcnta, \...@ifnextchar and \...@eha: most of
  these commands contain @ in their name, which means they cannot be used
  in documents, only in class and package files.


> So, when would I need to use \RequirePackage?

no need, but the convention is to use \RequirePackage in a package or
class and \usepackage in a document.

Günter

Reply via email to