Skip to content

Commit

Permalink
Create presentation structure
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianCassayre committed Jul 10, 2022
1 parent 7fa1118 commit 370478a
Show file tree
Hide file tree
Showing 15 changed files with 172 additions and 12 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build thesis PDF
uses: xu-cheng/latex-action@v2
with:
Expand All @@ -40,3 +38,21 @@ jobs:
with:
name: thesis
path: thesis/report/thesis.pdf
presentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build presentation PDF (slides only)
uses: xu-cheng/latex-action@v2
with:
working_directory: thesis/presentation
root_file: presentation.tex
args: -pdf -file-line-error -halt-on-error -interaction=nonstopmode -shell-escape
extra_system_packages: inkscape
env:
BEAMERMODE: slides-only
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: presentation
path: thesis/presentation/presentation.pdf
1 change: 1 addition & 0 deletions thesis/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ svg-inkscape
*.out
*.snm
*.lol
*.vrb
33 changes: 29 additions & 4 deletions thesis/presentation/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,35 @@
LATEXCMD = pdflatex --shell-escape presentation.tex
LATEXCMD = pdflatex --shell-escape

define generate_thumbnail
pdftoppm -f $(1) -l $(1) -r 50 ../report/thesis.pdf -png thumbnail
optipng -o7 thumbnail-$(1).png
mv thumbnail-$(1).png figures/
endef

define make_presentation_fast
BEAMERMODE=$(1) $(LATEXCMD) -jobname=presentation-$(1) presentation.tex
endef

define make_presentation
$(call make_presentation_fast,$(1))
$(call make_presentation_fast,$(1))
endef

thesis:
$(LATEXCMD) && $(LATEXCMD)
$(call make_presentation,slides-only)
$(call make_presentation,slides-notes-interlaced)
$(call make_presentation,slides-notes-dual)

fast:
$(LATEXCMD)
$(call make_presentation_fast,slides-only)

generate-thumbnails:
cd ../report && $(MAKE) && cd ../presentation
$(call generate_thumbnail,01)
$(call generate_thumbnail,08)
$(call generate_thumbnail,10)
$(call generate_thumbnail,29)
$(call generate_thumbnail,39)

clean:
rm -rf *.aux *.bbl *.bcf *.blg *.lof *.log *.lot *.toc *.xml svg-inkscape *.pdf *.nav *.out *.snm
rm -rf *.aux *.bbl *.bcf *.blg *.lof *.log *.lot *.toc *.xml svg-inkscape *.pdf *.nav *.out *.snm *.vrb
12 changes: 12 additions & 0 deletions thesis/presentation/chapters/0-outline.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
\begin{frame}{Outline}

\setcounter{tocdepth}{1}
\tableofcontents

\end{frame}

% Notes should appear after the frame

\note{
Notes here
}
1 change: 1 addition & 0 deletions thesis/presentation/chapters/1-lisa.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\section{LISA}
1 change: 1 addition & 0 deletions thesis/presentation/chapters/2-proofs.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\section{Proofs}
1 change: 1 addition & 0 deletions thesis/presentation/chapters/3-matching.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\section{Matching}
1 change: 1 addition & 0 deletions thesis/presentation/chapters/4-dsl.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\section{DSL features}
1 change: 1 addition & 0 deletions thesis/presentation/chapters/5-conclusion.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\section{Conclusion}
Binary file added thesis/presentation/figures/thumbnail-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added thesis/presentation/figures/thumbnail-08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added thesis/presentation/figures/thumbnail-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added thesis/presentation/figures/thumbnail-29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added thesis/presentation/figures/thumbnail-39.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 changes: 107 additions & 6 deletions thesis/presentation/presentation.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,47 @@
\documentclass{beamer}

\usepackage{ifthen}
\usepackage{xparse}
\ExplSyntaxOn
\NewDocumentCommand{\getenv}{om}
{
\sys_get_shell:nnN { kpsewhich ~ --var-value ~ #2 } { } \l_tmpa_tl
\tl_trim_spaces:N \l_tmpa_tl
\IfNoValueTF { #1 }
{\tl_use:N \l_tmpa_tl}
{\tl_set_eq:NN #1 \l_tmpa_tl}
}
\NewExpandableDocumentCommand{\ifstringsequalTF}{mmmm}
{
\str_if_eq:eeTF { #1 } { #2 } { #3 } { #4 }
}
\ExplSyntaxOff

% Available mode: slides-only, notes-only, slides-notes-interlaced, slides-notes-dual (default)
\getenv[\BEAMERMODE]{BEAMERMODE}
\ifstringsequalTF{\BEAMERMODE}{slides-only}
{}
{
\ifstringsequalTF{\BEAMERMODE}{notes-only}
{\setbeameroption{show only notes}}
{
\ifstringsequalTF{\BEAMERMODE}{slides-notes-interlaced}
{\setbeameroption{show notes}}
{\setbeameroption{show notes on second screen=right}} % Default
}
}

\usetheme{CambridgeUS}

\usepackage{svg}
\usepackage{amsmath}
\usepackage{listings}
\usepackage{ebproof}
\usepackage{hyperref}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{shadows.blur}
\usetikzlibrary{shapes.symbols}
\usepackage[utf8]{inputenc}

% Source: https://www.epfl.ch/about/overview/wp-content/uploads/2020/06/EPFL-brand-guidelines.pdf
Expand All @@ -17,22 +57,83 @@
\setbeamercolor*{palette tertiary}{bg=epfl-groseille, fg=white}
%\setbeamercolor*{palette quaternary}{bg=blue, fg=green}

\title[Master Thesis]{A front-end for LISA}
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered] % (unused)

% Adapted from https://tex.stackexchange.com/a/4199
\makeatletter
\newcommand*\idstyle{%
\expandafter\id@style\the\lst@token\relax
}
\def\id@style#1#2\relax{%
\ifcat#1\relax\else
\ifnum`#1=\uccode`#1%
\color{epfl-canard}
\fi
\fi
}
\makeatother

\lstset{
language=Scala,
showstringspaces=false,
%xleftmargin=0.75cm,
basicstyle=\ttfamily,
captionpos=b,
commentstyle=\color{epfl-perle}\textit,
stringstyle=\color{epfl-groseille},
keywordstyle=\color{epfl-rouge},
identifierstyle=\color{epfl-taupe}\idstyle,%\color{epfl-leman},
}

\newcommand{\code}{\texttt}


\title[Master Thesis]{A front-end for the LISA proof assistant}
\subtitle{Master Thesis}
\author{Florian Cassayre}
\date{June 2022}

\institute[EPFL]{École polytechnique fédérale de Lausanne}
\date{2022-07-21}
\titlegraphic{\leavevmode\smash{\raisebox{5.9cm}{\includesvg[width=3cm]{figures/epfl-logo}}}}
\titlegraphic{
\leavevmode\smash{\raisebox{5.75cm}{\includesvg[width=3cm]{figures/epfl-logo}}}
%\leavevmode\smash{Laboratory for Automated Reasoning and Analysis}
}

\begin{document}

\frame{\titlepage}

\begin{frame}
\frametitle{My title}
My text on the first slide.
\maketitle

\begin{columns}[onlytextwidth]
\begin{column}{0.3333333\textwidth}
\scriptsize Supervisor \\
\small Prof. Viktor Kunčak
\end{column}
\begin{column}{0.3333333\textwidth}
\scriptsize Assistant \\
\small Simon Guilloud
\end{column}
\begin{column}{0.3333333\textwidth}
\scriptsize External expert \\
\small Prof. Jasmin Blanchette
\end{column}
\end{columns}

\end{frame}

%\frame{\titlepage}

\note{
Introduction notes
}

\input{chapters/0-outline}
\input{chapters/1-lisa}
\input{chapters/2-proofs}
\input{chapters/3-matching}
\input{chapters/4-dsl}
\input{chapters/5-conclusion}

\end{document}

0 comments on commit 370478a

Please sign in to comment.