forked from TUM-LIS/tum-dissertation-latex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrop_place_logos.sh
executable file
·51 lines (40 loc) · 940 Bytes
/
crop_place_logos.sh
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
#!/usr/bin/env bash
if [ -f inc/TUM_Logo_blau_rgb_s ]
then
mv inc/TUM_Logo_blau_rgb_s inc/TUM_Logo_blau_rgb_s.svg
fi
inkscape --export-pdf=inc/TUM.pdf --export-area-drawing inc/TUM_Logo_blau_rgb*
FAK=(inc/FAK_*)
inkscape --export-pdf=inc/FAK.pdf --export-area-drawing $FAK
# fak logo placement
case $FAK in
*"_CH_"* )
echo "Chemistry"
place_file="fak_placement_chemistry.tex"
;;
*"_SP_"* )
echo "Health"
place_file="fak_placement_health.tex"
;;
*"_IN_"* )
echo "Informatics"
place_file="fak_placement_informatics.tex"
;;
*"_MW_"* )
echo "Mechanical Engineering"
place_file="fak_placement_mechanical.tex"
;;
*"_MED_"* )
echo "Medicine"
place_file="fak_placement_medicine.tex"
;;
*"_SOM_"* )
echo "SOM"
place_file="fak_placement_som.tex"
;;
* )
echo "Default quadratic"
place_file="fak_placement_quadratic.tex"
;;
esac
cp "inc/fak_placement/"$place_file "inc/fak_placement.tex"