forked from ozkolonur/Latex-based-business-plan-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_pdf.sh
executable file
·31 lines (26 loc) · 1001 Bytes
/
create_pdf.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
#!/bin/bash
# compiles the latex report in project 6. Run from /latex/project6/ directory.
source src/cli_logging.sh
source src/helper_dir_and_files.sh
source src/helper_eps_to_pdf.sh
source src/helper_dia_to_eps.sh
source src/helper_postprocessing.sh
source src/helper_tex_to_pdf.sh
source src/install_apt.sh
source src/ubuntu_prerequisites.sh
source src/uninstall_apt.sh
## Specify global variables that are used in this script.
REPORT_FILENAME="main"
REL_PATH_CONTAINING_MAIN_TEX="business_plan"
REL_MAIN_TEX_FILEPATH="$REL_PATH_CONTAINING_MAIN_TEX/$REPORT_FILENAME.tex"
OUTPUT_DIR="output"
OUTPUT_PATH="$REL_PATH_CONTAINING_MAIN_TEX/$OUTPUT_DIR"
assert_os_is_supported
install_prerequisites ""
assert_initial_path
convert_dia_files_to_eps "$PWD/$REL_PATH_CONTAINING_MAIN_TEX"
convert_eps_files_to_pdf "$PWD/$REL_PATH_CONTAINING_MAIN_TEX"
prepare_output_dir
compile_latex_into_pdf "false" "true" # Verbose compilation.
#compile_latex_into_pdf "false" "false" # Silent compilation.
postprocess