LaTeX stuntin'. This is my collection of LaTeX things I use on the regular.
maketex.sh
: A makefile for building and viewing LaTeX documentsbkc.sty
: A custom style class with custom configurations and macros for mathematics, computer science, and problem set related documents.proof.sty
: A package for typesetting inference rules.bkc.sty
is dependent on this package.
To install maketex.sh
on a Mac just move it into your
bin.
$ cp path-to-repository/maketex.sh /usr/local/bin
maketex.sh
replace the line
open $1.pdf
application-name $1.pdf
application-name
is the application you want to use for viewing
.pdf
files.
To install the .sty
and .cls
files on Mac
$ cp *.sty *.cls ~/Library/texmf/tex/latex/
If the directory ~/Library/texmf/
does not exist, you
will have to create it. In Linux or Windows you will want to run
$ export TEXDIR=`kpsewhich -var-value=TEXMFHOME`
$ cp *.sty *.cls $TEXDIR
$ texhash
You may need root access to run the texhash
command.
Usage of maketex.sh
is straightforward. At the command
line type
$ maketex filename
myfile.tex
you would run
$ maketex myfile
Note that you do not include the .tex
file extension.
The main .sty
file is bkc.sty
. To use in a
TeX document just import the package via
\documentclass{article}
\usepackage{bkc}
% rest of preamble
...
\begin{document}
...
\end{document}
I'll post an in depth review of the provided macros soon when I have time.
- Ben Carriel