Hello Steven, LaTeX .sty files are special. They are not meant to be included in a .tex file. See https://tex.stackexchange.com/questions/91167/why-use-sty-files for more information.
Omid Sent from my Emacs On 06/01/2014 02:57 AM, Steven Arntson wrote: > I've been learning to export from org to latex (to pdf), and have had > great success. There's a simplification to the process I'd like to make, > though, if it's possible. > > Right now I use files: file.org and filestyle.sty. The .sty gives > the latex-specific instruction, and I point to it from file.org with a > line of #+LATEX_HEADER: \usepackage{filestyle}. This works great, but > I'd love to have just one file, not two, to keep things simple. > > So I tried putting the contents of filestyle.sty near the top of file.org > inside of #+BEGIN_latex and #+END_latex, but it doesn't quite work. It > incompletely works, which is perplexing... > > I'd appreciate any ideas about this--can it be done? > > Thank you! > Steven > >