Commit 7261f3ba authored by Alija Sabic's avatar Alija Sabic
Browse files

Create makefile for slides, handout, and notes

parent 317c8910
*.aux
*.bbl
*.blg
*.fdb_latexmk
*.fls
*.log
*.nav
*.out
*.pdf.deps
*.snm
*.synctex.gz
*.toc
\ No newline at end of file
BASENAME = demo
BUILDDIR = build
TARGETS = $(BASENAME)-presentation.pdf $(BASENAME)-handout.pdf $(BASENAME)-notes.pdf
LATEX_CMD = pdflatex %O -synctex=1 -interaction=nonstopmode -file-line-error -recorder
FORCE_LATEXMK := $(if $(findstring -B,$(firstword -$(MAKEFLAGS))),-g)
LATEXMK = latexmk -f -outdir=$(BUILDDIR) -bibtex -pdf -use-make -deps-out=$(BUILDDIR)/$1.deps -jobname="$(basename $1)" -pdflatex='$(LATEX_CMD) "\PassOptionsToClass{$2}{beamer}\input{%S}"' $(FORCE_LATEXMK) "$(BASENAME)"
all: build/ $(TARGETS)
# Slides
slides: build/ $(BASENAME)-presentation.pdf
$(BASENAME)-presentation.pdf: .FORCE | $(BUILDDIR)
$(call LATEXMK,$@,presentation)
# mv $(BUILDDIR)/$@ $@
# Handout
handout: build/ $(BASENAME)-handout.pdf
$(BASENAME)-handout.pdf: .FORCE | $(BUILDDIR)
$(call LATEXMK,$@,handout)
# mv $(BUILDDIR)/$@ $@
# Notes
notes: build/ $(BASENAME)-notes.pdf
$(BASENAME)-notes.pdf: .FORCE | $(BUILDDIR)
$(call LATEXMK,$@,notes)
# mv $(BUILDDIR)/$@ $@
# Clean
clean:
find $(BUILDDIR) -type f -not -name '*.pdf' -delete
# $(foreach t,$(TARGETS),cd $(BUILDDIR); latexmk -c -jobname=$(basename $(t));)
distclean:
rm -rf $(BUILDDIR)
%/:
mkdir -p $@
.PHONY: all slides handout notes clean distclean .FORCE
# Disable implicit suffix and built-in rules (for performance and profit)
.SUFFIXES:
MAKEFLAGS += --no-builtin-rules
% Generated by IEEEtranSN.bst, version: 1.14 (2015/08/26)
\begin{thebibliography}{8}
\providecommand{\natexlab}[1]{#1}
\providecommand{\url}[1]{#1}
\csname url@samestyle\endcsname
\providecommand{\newblock}{\relax}
\providecommand{\bibinfo}[2]{#2}
\providecommand{\BIBentrySTDinterwordspacing}{\spaceskip=0pt\relax}
\providecommand{\BIBentryALTinterwordstretchfactor}{4}
\providecommand{\BIBentryALTinterwordspacing}{\spaceskip=\fontdimen2\font plus
\BIBentryALTinterwordstretchfactor\fontdimen3\font minus
\fontdimen4\font\relax}
\providecommand{\BIBforeignlanguage}[2]{{%
\expandafter\ifx\csname l@#1\endcsname\relax
\typeout{** WARNING: IEEEtranSN.bst: No hyphenation pattern has been}%
\typeout{** loaded for the language `#1'. Using the pattern for}%
\typeout{** the default language instead.}%
\else
\language=\csname l@#1\endcsname
\fi
#2}}
\providecommand{\BIBdecl}{\relax}
\BIBdecl
\bibitem[Adams(1993)]{article}
P.~Adams, ``The title of the work,'' \emph{The name of the journal}, vol.~4,
no.~2, pp. 201--213, 7 1993, an optional note.
\bibitem[Babington(1993)]{book}
P.~Babington, \emph{The title of the work}, 3rd~ed., ser. 10.\hskip 1em plus
0.5em minus 0.4em\relax The address: The name of the publisher, 7 1993,
vol.~4, an optional note.
\bibitem[Caxton(1993)]{booklet}
P.~Caxton, ``The title of the work,'' How it was published, The address of the
publisher, 7 1993, an optional note.
\bibitem[Daniel(1998)]{daniel1998}
\BIBentryALTinterwordspacing
H.~Daniel, \emph{Physik III: Optik, Thermodynamik, Quanten}.\hskip 1em plus
0.5em minus 0.4em\relax DE GRUYTER, jan 1998. [Online]. Available:
\url{https://doi.org/10.1515/9783110807066}
\BIBentrySTDinterwordspacing
\bibitem[Einstein(1905)]{einstein1905}
\BIBentryALTinterwordspacing
A.~Einstein, ``Zur elektrodynamik bewegter k{\"o}rper,'' \emph{Annalen der
Physik}, vol. 322, no.~10, pp. 891--921, 1905. [Online]. Available:
\url{https://doi.org/10.1002/andp.19053221004}
\BIBentrySTDinterwordspacing
\bibitem[Goossens et~al.(1993)Goossens, Mittelbach, and
Samarin]{latexcompanion}
M.~Goossens, F.~Mittelbach, and A.~Samarin, \emph{The \LaTeX\ Companion}.\hskip
1em plus 0.5em minus 0.4em\relax Reading, Massachusetts: Addison-Wesley,
1993.
\bibitem[Knuth()]{knuthwebsite}
\BIBentryALTinterwordspacing
D.~Knuth, ``Knuth: Computers and typesetting.'' [Online]. Available:
\url{http://www-cs-faculty.stanford.edu/~knuth/abcde.html}
\BIBentrySTDinterwordspacing
\bibitem[Pentz(2004)]{pentz2004}
\BIBentryALTinterwordspacing
E.~Pentz, ``Crossref monthly newsletter,'' \emph{CrossRef}, 2004. [Online].
Available: \url{https://doi.org/10.5555/monthly_newsletter}
\BIBentrySTDinterwordspacing
\end{thebibliography}
This is BibTeX, Version 0.99d (TeX Live 2017/Debian)
Capacity: max_strings=100000, hash_size=100000, hash_prime=85009
The top-level auxiliary file: build/presentation.aux
The style file: ./IEEEtranSNC.bst
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Reallocated wiz_functions (elt_size=4) to 6000 items from 3000.
Reallocated singl_function (elt_size=4) to 100 items from 50.
Database file #1: references.bib
-- IEEEtranSN.bst version 1.14 (2015/08/26) by Michael Shell.
-- http://www.michaelshell.org/tex/ieeetran/bibtex/
-- See the "IEEEtran_bst_HOWTO.pdf" manual for usage information.
** Sorting Natbib version - not for normal IEEE work.
Reallocated glb_str_ptr (elt_size=4) to 20 items from 10.
Reallocated global_strs (elt_size=20001) to 20 items from 10.
Reallocated glb_str_end (elt_size=4) to 20 items from 10.
Done.
You've used 8 entries,
5264 wiz_defined-function locations,
1054 strings with 9576 characters,
and the built_in function-call counts, 5682 in all, are:
= -- 543
> -- 119
< -- 31
+ -- 52
- -- 30
* -- 293
:= -- 981
add.period$ -- 16
call.type$ -- 8
change.case$ -- 27
chr.to.int$ -- 59
cite$ -- 16
duplicate$ -- 376
empty$ -- 425
format.name$ -- 39
if$ -- 1234
int.to.chr$ -- 1
int.to.str$ -- 1
missing$ -- 59
newline$ -- 56
num.names$ -- 32
pop$ -- 151
preamble$ -- 1
purify$ -- 18
quote$ -- 2
skip$ -- 421
stack$ -- 0
substring$ -- 139
swap$ -- 236
text.length$ -- 7
text.prefix$ -- 0
top$ -- 6
type$ -- 149
warning$ -- 0
while$ -- 32
width$ -- 0
write$ -- 122
\documentclass{beamer}
% \usepackage[texcoord,grid,gridunit=mm,gridcolor=red!10,subgridcolor=green!10]{eso-pic}
\usepackage{pgfpages} % multi screen mode
% Enable two-screen mode only for notes
\makeatletter
\@ifclasswith{beamer}{notes}{\setbeameroption{show notes on second screen=right}}{}
\makeatother
% ----------------------------------------------------------------------------------------------------------------------------
% Bibliography/References
% ----------------------------------------------------------------------------------------------------------------------------
\usepackage[square,numbers,sort]{natbib}
\usepackage{usebib}
\bibinput{references}
\setlength{\bibsep}{1em}
\bibliographystyle{./../IEEEtranSNC}
\interfootnotelinepenalty=10000
% ----------------------------------------------------------------------------------------------------------------------------
% Languagues
% ----------------------------------------------------------------------------------------------------------------------------
\usepackage[french,german,english]{babel}
% ----------------------------------------------------------------------------------------------------------------------------
% Styles & Packages
% ----------------------------------------------------------------------------------------------------------------------------
\usepackage{fhtw}
\usepackage{custom}
\usepackage{lipsum}
\usepackage{adjustbox}
\usepackage{appendixnumberbeamer}
\usepackage[french,german,english]{babel}
% ----------------------------------------------------------------------------------------------------------------------------
% Customization
% ----------------------------------------------------------------------------------------------------------------------------
......@@ -65,17 +90,6 @@
\acsetup{first-long-format=\itshape}
\input{acronyms}
% ----------------------------------------------------------------------------------------------------------------------------
% Bibliography/References
% ----------------------------------------------------------------------------------------------------------------------------
\usepackage[square,numbers,sort]{natbib}
\usepackage{usebib}
\bibinput{references}
\setlength{\bibsep}{1em}
\bibliographystyle{./IEEEtranSNC}
\interfootnotelinepenalty=10000
% ----------------------------------------------------------------------------------------------------------------------------
% ----------------------------------------------------------------------------------------------------------------------------
......@@ -109,6 +123,16 @@
\ac{ES}-style beamer template of \acs{UAS} Technikum Wien.
\end{frame}
\note{
Introduction
\begin{itemize}
\item Issue 1
\item Issue 2
\item Issue 3
\end{itemize}
}
% ----------------------------------------------------------------------------------------------------------------------------
% Main Content
% ----------------------------------------------------------------------------------------------------------------------------
......@@ -192,9 +216,12 @@
\begin{frame}{Demonstration}{Figures}
\begin{figure}
\centering
\includegraphics<1>[width=0.4\textwidth]{resources/images/dilbert1.pdf}%
\includegraphics<2>[width=0.4\textwidth]{resources/images/dilbert2.pdf}%
\includegraphics<3>[width=0.4\textwidth]{resources/images/dilbert3.pdf}%
\includegraphics<1|handout:0>[width=0.4\textwidth]{resources/images/dilbert1.pdf}%
\includegraphics<2|handout:0>[width=0.4\textwidth]{resources/images/dilbert2.pdf}%
\includegraphics<3|handout:0>[width=0.4\textwidth]{resources/images/dilbert3.pdf}%
\includegraphics<handout>[width=0.3\textwidth]{resources/images/dilbert1.pdf}%
\includegraphics<handout>[width=0.3\textwidth]{resources/images/dilbert2.pdf}%
\includegraphics<handout>[width=0.3\textwidth]{resources/images/dilbert3.pdf}%
\caption{\textcopyright~2018 Scott Adams, \url{dilbert.com}}
\label{fig:figure1}
\end{figure}
......
......@@ -94,6 +94,10 @@
\setbeamercolor{palette sidebar secondary}{fg=\primarycolor}
\setbeamercolor{palette sidebar tertiary}{fg=\primarycolor}
\setbeamercolor{note page}{bg=\accentcolor!10}
\setbeamercolor{note title}{bg=\accentcolor!30}
\setbeamercolor{note date}{fg=\secondarycolor}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Font theme
......@@ -109,6 +113,8 @@
% Font of the frame titles
\setbeamerfont{frametitle}{size = \Large}
\setbeamerfont{author in sidebar}{size=\fontsize{6}{8}\selectfont}
\setbeamerfont{title in sidebar}{size=\fontsize{6}{8}\selectfont}
\setbeamerfont{section in sidebar}{size=\fontsize{6}{8}\selectfont}
\setbeamerfont{subsection in sidebar}{size=\fontsize{6}{8}\selectfont}
\setbeamerfont{subsubsection in sidebar}{size=\fontsize{6}{8}\selectfont}
......@@ -213,6 +219,7 @@
\vskip 0.7cm \hskip 0.50cm
\includegraphics[height=15pt]{resources/images/fhtw-logo.pdf}
%FIXME: Place via tikz environment
\vskip 0.75cm
{
\usebeamercolor[fg]{author in sidebar}
......@@ -226,7 +233,7 @@
}
\vskip 0.50cm
{ \centering
{
\insertverticalnavigation{\sidebarwidth}
}
......
push @generated_exts, 'bbl', 'blg', 'cut', 'nav', 'snm', 'vrb';
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment