-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlatexmkrc
67 lines (54 loc) · 1.96 KB
/
latexmkrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#-----------------------------------------------------------------
# LaTeX template for a internship report front page
# Written By: Pierre-Louis GAUTIER
# Date Updated: January 05, 2022 (v1.2.5)
#-----------------------------------------------------------------
# Set default TeX file
@default_files = ("document.tex");
# The first parameter is the name of one of the system's environment variables for search paths.
# The remaining parameters are values that should be in the variable
ensure_path("TEXINPUTS", "./param//:", "./figures//", , "./schemas//:");
# Build directory
$out_dir = ".temp";
# Whether to show CPU time used.
$show_time = 4;
# Whether to run silently.
$silent = 1;
# Default PDF viewer -- system dependent setting
$pdf_previewer = "start xdg-open %S";
# use pdflatex command
$pdf_mode = 1;
# Increase the number of rules, required by the use of pgfgantt, so the compilation succeeded at the
# first attempt
$max_repeat = 10;
# Argument passed to all *latex commands
set_tex_cmds("-file-line-error -interaction=nonstopmode -shell-escape %O %S");
# GLO to GLS conversion hook
add_cus_dep("glo", "gls", 0, "makeglo2gls");
sub makeglo2gls {
my ($base_name, $path) = fileparse( $_[0] );
pushd $path;
my $return = system "makeglossaries", $base_name;
popd;
return $return;
}
#
# Extension not cleaned by default:
#
# for latexmk -c
$clean_ext = "bbl lol synctex.gz run.xml glg glo gls ist out aux dvi log tex~ glo-abr out.ps ac, acr alg acn fdb_latexmk";
# for latexmk -C
$clean_full_ext = "bin/* synctex.gz";
# Create the build folder before the start of the compilation
system("mkdir -p .temp/epstopdf");
#
# Post process hooks
#
# at the start of compilation
$compiling_cmd = "make eps";
# at the end of an unsuccessful compilation
# $failure_cmd = "";
# t the of an otherwise successful compilation that gives warnings
# $ warning_cmd = "";
# at the end of a completely successful compilation
$success_cmd = "mkdir -p bin && mv .temp/*.pdf bin/"; # Move PDF