[OS X TeX] using \usepackage with other .sty files
Herbert Schulz
herbs at wideopenwest.com
Tue Feb 14 00:01:05 CET 2006
On Feb 13, 2006, at 4:45 PM, KL Tah wrote:
> Hi All,
>
> I've been having problems including packages with ready-made .sty
> files I found in ctan.
> For example, I'm trying to generate a resume with the res.sty
> package such that it uses some nice fonts.
> 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:
>
>
>
> ! LaTeX Error: LaTeX2e command \usepackage in LaTeX 2.09 document.
>
> See the LaTeX manual or LaTeX Companion for explanation.
>
> ! LaTeX Error: \usepackage before \documentclass.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H <return> for immediate help.
> ...
>
> l.21 \usepackage[T1]{
> fontenc}
> ?
>
>
>
> any ideas on how I might fix this?
>
> Cheers,
> KL
>
>
>
> KL Tah,
Howdy,
sounds like you've got a document that starts with a \documentstyle
{...} command rather than \documentclass{...}. LaTeX then tries to
act like LaTeX 2.09 and doesn't understand \usepackage.
Good Luck,
Herb Schulz
(herbs at wideopenwest.com)
------------------------- 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