This repository has been archived on 2024-07-01. You can view files and clone it, but cannot push or open issues or pull requests.
Praxisbericht-Template/.latexmkrc

64 lines
1.9 KiB
Plaintext
Raw Normal View History

2023-09-15 14:01:33 +00:00
# =====================================================================
# Custom latex make file to bew used with TexLive and Latexmk
# _ _ __ __ _ ______ ____
# | | __ _| |_ _____ _| \/ | |/ / _ \ / ___|
# | |/ _` | __/ _ \ \/ / |\/| | ' /| |_) | |
# | | (_| | || __/> <| | | | . \| _ <| |___
# |_|\__,_|\__\___/_/\_\_| |_|_|\_\_| \_\\____|
# main file to compile
# this is the entry point file
2023-09-15 13:30:07 +00:00
@default_files = ('main.tex');
2023-09-15 14:01:33 +00:00
# =====================================================================
# custom folders to store auxilary and build files inside
# so they don't clutter everything
# Move all axuiliary files to a separate directory, so they do not clutter up the project directory
$emulate_aux = 1;
$aux_dir = ".tmp";
# Move the compiled files (and synctex) to a separate directory
$out_dir = '.build';
2023-09-15 14:01:33 +00:00
# command to compile and run
2023-09-15 13:30:07 +00:00
$pdflatex = 'pdflatex %O -interaction=nonstopmode -shell-escape %S';
2023-09-15 14:01:33 +00:00
# =====================================================================
# bibtex
2023-09-15 13:30:07 +00:00
# Specify the bibliography
$bibtex = 'bibtex %O %B';
$makeglossaries = 'makeglossaries %O %B';
# Continuous preview mode
$continuous_mode = 1;
# Set the program used to generate the PDF
# 1: pdflatex
# 2: postscript conversion, don't use this
# 3: dvi conversion, don't use this
# 4: lualatex
# 5: xelatex
2023-09-15 13:30:07 +00:00
$pdf_mode = 1;
# Keep auxiliary files
$clean_ext = " ";
2023-09-15 13:30:07 +00:00
2023-09-15 14:01:33 +00:00
# =====================================================================
# custom dependency handling for glossaries
2023-09-15 13:30:07 +00:00
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] );
my @args = ( "-q", "-d", $path, $base_name );
if ($silent) { unshift @args, "-q"; }
return system "makeglossaries", "-d", $path, $base_name;
}
2023-09-15 14:01:33 +00:00
# =====================================================================
2023-09-15 13:30:07 +00:00
# Silence warnings
$silent = 1;