Friday, June 17, 2011

Creating a LaTex Stylesheet or Package

This turns out to be quite simple:

You create a preamble, complete with \{newcommand}s and \{usepackage}s and \{definecolor}s, then you remove all this premable into a file with the extension .sty, e.g. test.sty. Thereafter, you simply \usepackage{test}.

Why should you do this?

Well, if you're like me, you use the same formatting in paper after paper. Do this to the semantics! Do this to robot names! Do this to natural language input! So if you don't have a customized package, you'll probably end up cutting and pasting from one paper to the next. Cutting and pasting is as bad in paper creation as it is in software creation!

No comments:

Post a Comment