Skip to content

bkc39/tex-swag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tex-swag

LaTeX stuntin'. This is my collection of LaTeX things I use on the regular.

Files

  • maketex.sh: A makefile for building and viewing LaTeX documents
  • bkc.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.

Installation

To install maketex.sh on a Mac just move it into your bin.

$ cp path-to-repository/maketex.sh /usr/local/bin
On a Linux machine, you will have to slightly modify the script. On line 30 of maketex.sh replace the line

open $1.pdf
with
application-name $1.pdf
Where

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

Usage of maketex.sh is straightforward. At the command line type

 $ maketex filename 
To build a file named 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.

Contributors

  • Ben Carriel

About

LaTeX stuntin'

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published