[OS X TeX] [OT] *.sty files included in manuscript.tex?
Wendy McKay
wgm at cds.caltech.edu
Wed Oct 24 21:17:22 CEST 2007
On Wed, 24 Oct 2007, Christian Heine wrote:
> Quoting William Adams <will.adams at frycomm.com>:
>>> Does someone else ever had this problem or is it possible to
>>> include *.sty
>>> files in the preamble of a *.tex file?
>>
>> Yes you can. They need to be wrapped in \makeatletter and \makeatother.
>
> Thanks William - 2 questions though:
> 1 ) do I still need to call the different packages with the \usepackage
> commands if I include the style files in the main tex file?
> 2) And is there a specific place where the included style files wrapped in
> \makeat* have to go?
>
> Thanks,
> Christian
>
> ----------------------------------------------------------------
I think you can use:
\begin{filecontents}{stylefilename.sty}
% put style file here
\end{filecontents}
\documentclass{...}
\usepackage{stylefilename}
% preamble here
\begin{document}
% text here
\end{document}
Then when you typeset the file
and the file stylefilename.sty
will appear in your folder as a separate file
automagically.
You don't have to change your document.
Hope this works.
It's been quite a while since I used this.
~wendy
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the macostex-archives
mailing list