Skip to content

Commit

Permalink
Adds beamer-didactic
Browse files Browse the repository at this point in the history
  • Loading branch information
dbosk committed Feb 23, 2020
1 parent c4cdc51 commit b8f2762
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 52 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
path = drmlab
url = https://github.com/OpenSecEd/drmlab.git
branch = master
[submodule "beamer-didactic"]
path = beamer-didactic
url = https://github.com/dbosk/beamer-didactic.git
1 change: 1 addition & 0 deletions beamer-didactic
Submodule beamer-didactic added at 4dad61
4 changes: 4 additions & 0 deletions drm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ all: slides.pdf README.md
SRC= slides.tex abstract.tex preamble.tex bibliography.bib
SRC+= contents.tex

DEPENDS= beamer-didactic.sty

slides.pdf: ${SRC}


Expand All @@ -28,3 +30,5 @@ clean:
INCLUDE_MAKEFILES=../makefiles
include ${INCLUDE_MAKEFILES}/tex.mk
include ${INCLUDE_MAKEFILES}/doc.mk
INCLUDE_BEAMERDIDACTIC=../beamer-didactic
include ${INCLUDE_BEAMERDIDACTIC}/beamer-didactic.mk
28 changes: 1 addition & 27 deletions drm/preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,9 @@
\usepackage{listings}
\usepackage{csquotes}

\usepackage{xparse}
\ProvideDocumentEnvironment{exercise}{o}{%
\setbeamercolor{block body}{bg=yellow!30,fg=black}
\setbeamercolor{block title}{bg=yellow,fg=black}
\IfValueTF{#1}{%
\begin{block}{Exercise: #1}
}{%
\begin{block}{Exercise}
}
}{%
\end{block}
}

\usepackage[natbib,style=alphabetic,maxbibnames=99]{biblatex}
\addbibresource{bibliography.bib}

\newenvironment{axiom}[1]{\begin{block}{Axiom (#1)}}{\end{block}}

\DeclareMathOperator{\U}{\mathcal{U}}
\DeclareMathOperator{\T}{\mathcal{T}}
\DeclareMathOperator{\V}{\mathcal{V}}
Expand All @@ -46,15 +31,4 @@

\renewcommand{\qedsymbol}{Q.E.D.}

\DeclareMathOperator{\hmac}{HMAC}
\DeclareMathOperator{\concat}{||}

\DeclareMathOperator{\believes}{|\!\!\!\equiv}
\DeclareMathOperator{\said}{|\!\!\!\sim}
\DeclareMathOperator{\controls}{\Mapsto}
\DeclareMathOperator{\sees}{\lhd}
\newcommand{\fresh}[1]{\#(#1)}
\newcommand{\encrypt}[2]{\{#1\}_{#2}}
\newcommand{\share}[1]{\stackrel{#1}{\leftrightarrow}}
\newcommand{\pubkey}[1]{\stackrel{#1}{\mapsto}}

\usepackage{beamer-didactic}
1 change: 1 addition & 0 deletions overview/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
slides.pdf
abstract.md
beamer-didactic.sty
6 changes: 5 additions & 1 deletion overview/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ all: slides.pdf
SRC= slides.tex abstract.tex preamble.tex bibliography.bib
SRC+= contents.tex

slides.pdf: ${SRC}
DEPENDS= beamer-didactic.sty

slides.pdf: ${SRC} ${DEPENDS}


TEX2MDFLAGS= -s --bibliography bibliography.bib -t markdown_strict
Expand All @@ -28,3 +30,5 @@ clean:
INCLUDE_MAKEFILES=../makefiles
include ${INCLUDE_MAKEFILES}/tex.mk
include ${INCLUDE_MAKEFILES}/doc.mk
INCLUDE_BEAMERDIDACTIC=../beamer-didactic
include ${INCLUDE_BEAMERDIDACTIC}/beamer-didactic.mk
25 changes: 1 addition & 24 deletions overview/preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,9 @@
\usepackage{listings}
\usepackage{csquotes}

\usepackage{xparse}
\ProvideDocumentEnvironment{exercise}{o}{%
\setbeamercolor{block body}{bg=yellow!30,fg=black}
\setbeamercolor{block title}{bg=yellow,fg=black}
\IfValueTF{#1}{%
\begin{block}{Exercise: #1}
}{%
\begin{block}{Exercise}
}
}{%
\end{block}
}

\usepackage[natbib,style=alphabetic,maxbibnames=99]{biblatex}
\addbibresource{bibliography.bib}

\newenvironment{axiom}[1]{\begin{block}{Axiom (#1)}}{\end{block}}

\DeclareMathOperator{\U}{\mathcal{U}}
\DeclareMathOperator{\T}{\mathcal{T}}
\DeclareMathOperator{\V}{\mathcal{V}}
Expand All @@ -49,12 +34,4 @@
\DeclareMathOperator{\hmac}{HMAC}
\DeclareMathOperator{\concat}{||}

\DeclareMathOperator{\believes}{|\!\!\!\equiv}
\DeclareMathOperator{\said}{|\!\!\!\sim}
\DeclareMathOperator{\controls}{\Mapsto}
\DeclareMathOperator{\sees}{\lhd}
\newcommand{\fresh}[1]{\#(#1)}
\newcommand{\encrypt}[2]{\{#1\}_{#2}}
\newcommand{\share}[1]{\stackrel{#1}{\leftrightarrow}}
\newcommand{\pubkey}[1]{\stackrel{#1}{\mapsto}}

\usepackage{beamer-didactic}

0 comments on commit b8f2762

Please sign in to comment.