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

KL Tah kl_tah at hotmail.com
Mon Feb 13 18:23:53 EST 2006


Is there then another command I can use to make existing packages work  
with documentstyle?
If there isn't, it looks like the .sty file will need to be written in 
to a .cls format. is this correct?

On Feb 13, 2006, at 3:01 PM, Herbert Schulz wrote:

>
> 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/
>


------------------------- 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 MacOSX-TeX mailing list