This repo is intended to make it easy to share the same latex setup on multiple machines.
The current setup takes care of the kulemt
class provided by the faculty.
It uses docker to accomplish this.
You have installed:
- Docker
sudo apt-get install docker docker.io
Clone the project:
git clone [email protected]:warreee/firw-thesis-latex.git
Build docker:
docker build -t compile .
Add yourself to the dockergroup:
sudo usermod -aG docker $USER
Make sure that the following files are executable:
- compile.sh
- latexmk.sh
- pdflatex.sh
Optional: add a alias for the compile command by adding the following line to .bashrc
alias compile='/path/to/file/compile.sh'
You can now compile any correct Latex file with:
/path/to/file/compile.sh file.tex
Or if you added the alias:
compile file.tex
You can test the compilation of the thesis template in the thesis folder:
compile thesis.tex
You can use the introduced commands with Atom. Here I describe a possible setup, but there are of course other possible ways.
- Install your favorite highlighting package in Atom for latex. (They might complain that you need to setup latex, just ignore that as we use an own builder.)
- Install the save-commands package.
- Add the following file to the root directory of your latex project:
{
"commands": [
"**/*.tex : /path/to/compile.sh {relPath}{filename}"
]
}
The repo from blang was a very good example, and was an inspiration for this repository.