[OS X TeX] using \usepackage with other .sty files

Peter Dyballa Peter_Dyballa at Web.DE
Tue Feb 14 11:13:59 CET 2006

Am 13.02.2006 um 23:45 schrieb KL Tah:

> I've tried putting the commands
> \usepackage[T1]{fontenc}
> \usepackage{textcomp}
> in either res.sty or in my tex file itself but got the following  
> errors:

I thought in STY or CLS files the loading of external packages goes  
with \RequirePackage ...

> ! LaTeX Error: LaTeX2e command \usepackage in LaTeX 2.09 document.
> See the LaTeX manual or LaTeX Companion for explanation.
> ! LaTeX Error: \usepackage before \documentclass.

As Herb already wrote (one hour before I saw your message): you can't  
start the LaTeX document with the LaTeX 2.09 statement


and then use LaTeX2e syntax like


In LaTeX2e it's not allowed to use


before the first (and only)




War springs from unseen and generally insignificant causes.

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/

More information about the macostex-archives mailing list