masters-thesis

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 5139d2433de8fbb5c39ee90012db7bbc12e4560a
parent c59d0d4628a09e1d0787468bba952ce168609859
Author: Silas Brack <s174433@student.dtu.dk>
Date:   Mon,  2 Jan 2023 19:33:48 +0100

Using latexmk for everything, updated latexmkrc.

Diffstat:
DMakefile | 26--------------------------
Dcompileall.sh | 26--------------------------
Mlatexmkrc | 24+++++++++++++++++-------
3 files changed, 17 insertions(+), 59 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,25 +0,0 @@ -root = main -dist = pdflatex -latexmkopts = -$(dist) -shell-escape - -all: $(root).pdf -.PHONY: $(root).pdf - -$(root).pdf: $(root).tex - latexmk $(latexmkopts) $(root) - -clean: - rm -rf `biber --cache` - rm -rf _minted-$(root) - latexmk -CA - find . -name \*.aux -type f -delete - rm -f $(root).run.xml $(root).nlg $(root).nlo $(root).nls $(root).glo $(root).loa $(root).mw $(root).xdy indent.log - -watch: clean - latexmk $(latexmkopts) -pvc $(root) - -quick: clean - $(dist) -shell-escape $(root) - -view: - open $(root).pdf -\ No newline at end of file diff --git a/compileall.sh b/compileall.sh @@ -1,26 +0,0 @@ -#!/bin/bash - -latexmk - -# -------------------------------------------------- - -# # Compile document -# pdflatex -interaction=nonstopmode main - -# # Compile nomenclature -# makeindex main.nlo -s nomencl.ist -o main.nls - -# # Compile index -# makeindex main - -# # Compile bibliography -# biber main - -# # Compile document -# pdflatex main - -# # Compile glossary -# makeglossaries main - -# # Compile document -# pdflatex main diff --git a/latexmkrc b/latexmkrc @@ -1,12 +1,22 @@ -# By default compile only the file called 'main.tex' -@default_files = ('main.tex'); +# For more information see: +# http://www.ctan.org/pkg/latexmk +# https://texdoc.org/serve/latexmk/0 + +# By default compile only the file called "main.tex" +@default_files = ("main.tex"); $pdf_mode = 1; +# $out_dir = "logs/"; $pdflatex = "pdflatex --shell-escape %O %S"; -# Compile the glossary and acronyms list (package 'glossaries') -add_cus_dep( 'acn', 'acr', 0, 'makeglossaries' ); -add_cus_dep( 'glo', 'gls', 0, 'makeglossaries' ); +$clean_ext .= "loa mw nlo nls run.xml xdy"; +$clean_full_ext .= "bbl synctex.gz"; + +$bibtex_use = 1.5; + +# Compile the glossary and acronyms list (package "glossaries") +add_cus_dep( "acn", "acr", 0, "makeglossaries" ); +add_cus_dep( "glo", "gls", 0, "makeglossaries" ); $clean_ext .= " acr acn alg glo gls glg"; sub makeglossaries { my ($base_name, $path) = fileparse( $_[0] ); @@ -16,8 +26,8 @@ sub makeglossaries { return $return; } -# Compile the nomenclature (package 'nomencl') -add_cus_dep( 'nlo', 'nls', 0, 'makenlo2nls' ); +# Compile the nomenclature (package "nomencl") +add_cus_dep( "nlo", "nls", 0, "makenlo2nls" ); sub makenlo2nls { system("makeindex -s nomencl.ist -o \"$_[0].nls\" \"$_[0].nlo\""); }