-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathcompile.sh
executable file
·33 lines (29 loc) · 1.16 KB
/
compile.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
#!/bin/bash
#======================================================
# This file is part of
# "AMCOS_booklet"
# Version 1.1 (04/07/2019)
# A LaTeX template for conference books of abstracts
#
# This template is available at:
# https://github.com/maximelucas/AMCOS_booklet
#
# License: GNU General Public License v3.0
#
# Authors:
# Maxime Lucas ([email protected])
# Pau Clusella
#=======================================================
# need two compilations each: if not, the vertical side color lines get messed up
# todo: check if can be made cleaner with latexmk
# compile for online version
pdflatex -synctex=1 -interaction=nonstopmode "\newif\ifOnline \Onlinetrue \input{MAIN.tex}"
pdflatex -synctex=1 -interaction=nonstopmode "\newif\ifOnline \Onlinetrue \input{MAIN.tex}"
mv MAIN.pdf booklet_online.pdf
# compile for printed version
pdflatex -synctex=1 -interaction=nonstopmode "\newif\ifOnline \Onlinefalse \input{MAIN.tex}"
pdflatex -synctex=1 -interaction=nonstopmode "\newif\ifOnline \Onlinefalse \input{MAIN.tex}"
# extract timetable pages
#pdftk main.pdf cat 5-9 output timetable.pdf
#pdftk main.pdf cat 32-36 output list_posters.pdf
mv MAIN.pdf booklet_printed.pdf