This repository contains files I use for LaTeX and beamer styling, as well as simple document templates.
For use with a simple documents, simply place the .sty
files you need in
the same folder as your .tex
document
For general use on Linux, place the .sty
files in ~/texmf/tex/latex/
or any subdirectory thereof.
To install the script, add an alias texmgr='path/to/texmgr'
to your ~/.bashrc
.
Color theme:
- styles/beamercolorthemeeye.sty: The eye color theme for beamer metropolis (dark blue, dark red, dark green, yellow or cyan). See previews for sample pdf ouputs.
Style files:
- styles/my-preamble.sty: common imports and some useful functions
- styles/my-math.sty: math shortcut definitions, theorems and operators
- styles/my-metropolis.sty: configures beamer metropolis to add section pages
Templates: simple prefilled document to avoid retyping common things
Scripts:
-
scripts/texmgr.py: python script to compile/initialize and clean texfiles.
-
scripts/texmgr: executable that calls the
texmgr.py
script'smain
Usage: texmgr [--flags] [file list] Compiles all files in the file list (defaut, all *.tex files in current working directory). Compiles once, runs bibtex, then compiles twice. Flags: -n --no-clean don't remove build files after compiling -i --init doesn't compile, creates files in file list -b --init-beamer same as --init, but uses the beamer template to create files -t --open-tex doesn't compile, opens tex files in editor (can run with -i/-b) -p --open-pdf compiles and opens PDF files in viewer -w --watch watches the tex file and recompiles when it is changed -l --clean-last only clean build files when watcher is stopped -f --find-deps print dependencies (\input{...}) of a LaTeX file -c --clean doesn't compile, removes build files Files removed match a .tex file in the list and have the following extensions: aux, bak, bbl, blg, fdb_latexmk, fls, log, nav, out, snm, synctex.gz, synctez.gz, toc, vrb, vtc -v --verbose print the commands called -s --silent don't show info messages (keeps tex output and error messages) -d --dry-run print the commands but don't run them --version show version number -h --help show this help
Old scripts:
- scripts/old/newtex: bash script to generate a new tex file from template and open texmaker
- scripts/old/texcleanup: bash script to remove tex build files in a build directory