Wiki

Clone wiki

texit / Home

What is it?

texit simply is a bash script that executes build scripts for LaTeX files.

It's initially based on build scripts for Texpad. It can be used without Texpad -- it doesn't matter how the variables are called. So just try it out.

I only tried it on OS X -- so feel free to comment if it's compatible to whatever system you use.

Installation

Just clone the repository and execute the script. You may want to create an alias or put a symbolic link into one of your locations in the $PATH environment variable. For example do the following:

#!shell
ln -s /path/to/your/clone/texit.sh /usr/local/bin/texit

How to use

Well actually it's quite simple. Assume you have a file called thesis.tex and a custom build script for it called thesis.tpbuild then you can do the following:

#!shell
cd /path/to/your/texfiles
texit thesis
texit doesn't care if you write the name with or without the extension. It doesn't even care if the file is in the working directory. You can even omit passing an argument at all then texit will search for all *.tex files recursively relative to your current working directory and execute the *.tpbuild scripts if they exist.

How to setup a custom build file

Just use one of the examples as template, copy them or create a symbolic link, like:

#!shell
ln -s /path/to/your/clone/bibtex+glossaries.tpbuild /path/to/your/texfile.tpbuild
chmod +x /path/to/your/texfile.tpbuild
It's important that the the tpbuild file and the tex file have the same base name.

Use it with other applications

Updated