Commit a8365b3d authored by Niklaus Hofer's avatar Niklaus Hofer

Cloned repository from my presentation template

parents
# Created by https://www.gitignore.io/api/vim,latex
### Vim ###
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
*.un~
Session.vim
.netrwhist
*~
### LaTeX ###
*.acn
*.acr
*.alg
*.aux
*.bbl
*.bcf
*.blg
*.dvi
*.fdb_latexmk
*.fls
*.glg
*.glo
*.gls
*.idx
*.ilg
*.ind
*.ist
*.lof
*.log
*.lot
*.maf
*.mtc
*.mtc0
*.nav
*.nlo
*.out
*.pdfsync
*.ps
*.run.xml
*.snm
*.synctex.gz
*.toc
*.vrb
*.xdy
*.tdo
*.lol
*.pdf
!figures/*.pdf
FILE=template
PDFVIEWER := $(shell which evince)
all: $(FILE).pdf
.PHONY: clean
clean:
\rm -f *.aux *.log *.nav *.out *.snm *.toc *.vrb
\rm -f sections/*.aux
.PHONY: distclean
distclean: clean
\rm -f $(FILE).pdf $(FILE).pdfpc
\rm -f handout.pdf handout.pdfpc
.PHONY: view
view: $(FILE).pdf
\$(PDFVIEWER) $(FILE).pdf
.PHONY: handout
handout: handout.pdf
$(FILE).pdf: $(FILE).tex
pdflatex $(FILE)
pdflatex $(FILE)
handout.pdf: $(FILE).tex
pdflatex handout
pdflatex handout
bibtex handout
pdflatex handout
pdflatex handout
Template for my LaTeX presentations. This is a modified version of the Feather theme. Here are some of the modifications I made:
* Make it work better with 16:9 aspect ratio
* Make the progress circle work propperly with beamer overlays
* Make the progress circle work with large presentations
% This is the color theme file of the Feather theme.
% Copyright (c) 2014 by Lilyana Vaskova Vankova <lilqna.v@gmail.com>
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You can find the GNU General Public License at <http://www.gnu.org/licenses/>.
%----------------------------------------------------------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamercolorthemeFeather}[2014/04/08 v1.0.0 The Feather Beamer Theme]
%----------------------------------------------------------------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Theme options and definitions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------------------------------------------------
% beamer specific options
\mode<presentation>%refers to the first four modes (beamer,handout,second and trans). That is, to all modes except the article mode
{
%----------------------------------------------------------------------------------------------------------------------------------
% colors
%% defining colors
\definecolor{beamer@barcolor}{RGB}{194,193,204}% light blue
\definecolor{beamer@normaltextcolor}{RGB}{84,97,110}% gray blue
\definecolor{beamer@headercolor}{rgb}{0,0.41,0.54} % dark blue
%% setting the above deffinitions
\setbeamercolor{structure}{fg=beamer@headercolor}
\setbeamercolor{normal text}{fg=beamer@normaltextcolor}
\setbeamercolor{frametitle}{fg=white,bg=beamer@headercolor}
\setbeamercolor{Feather}{fg=beamer@barcolor,bg=beamer@headercolor}
}
\mode<all>
% This is the inner theme file of the Feather theme.
% Copyright (c) 2014 by Lilyana Vaskova Vankova <lilqna.v@gmail.com>
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You can find the GNU General Public License at <http://www.gnu.org/licenses/>.
%----------------------------------------------------------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerinnerthemeFeather}[2014/04/08 v1.0.0 The Feather Beamer Theme]
%----------------------------------------------------------------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Theme options, definitions and templates.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------------------------------------------------
% beamer specific options
\mode<presentation> %refers to the first four modes (beamer,handout,second and trans). That is, to all modes except the article mode
{
%----------------------------------------------------------------------------------------------------------------------------------
% title page
%% definitions for fonts of the different elements
\setbeamerfont{institute}{family=\sffamily, size = \footnotesize}
\setbeamerfont{title}{family=\sffamily, size = \Large}
\setbeamerfont{subtitle}{family=\sffamily, size = \large}
\setbeamerfont{author}{family=\sffamily, size = \normalsize}
\setbeamerfont{date}{family=\sffamily, size = \footnotesize}
\setbeamertemplate{title page}
{
%% setting the above deffinitions
\begin{minipage}[c][\textheight][c]{\textwidth}
\centering
{\usebeamerfont{institute}\insertinstitute}\vspace*{30pt}
{\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle}\vspace*{10pt}
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}\vspace*{30pt}
{\usebeamerfont{author}\insertauthor}\vspace*{30pt}
{\usebeamerfont{date}\insertdate}\vspace*{\baselineskip}
\end{minipage}
}
%----------------------------------------------------------------------------------------------------------------------------------
% final page
\defbeamertemplate{final page}{text}[1]
{
\begin{minipage}[c][\textheight][c]{\textwidth}
\centering
#1
\end{minipage}
}
\newcommand{\finalpage}[1]
{
\setbeamertemplate{final page}[text]{#1}
\usebeamertemplate{final page}
}
%----------------------------------------------------------------------------------------------------------------------------------
% add the feather to the background of the titlepage and the final page
\newcommand{\1}
{
\setbeamertemplate{background}
{
\includegraphics[width=\paperwidth,height=\paperheight]{figures/1}
\tikz[overlay] \fill[fill opacity=0.75,fill=white] (0,0) rectangle (-\paperwidth,\paperheight);
}
}
%----------------------------------------------------------------------------------------------------------------------------------
% use numbers instead of a picture for the references
\setbeamertemplate{bibliography item}[text]
}
\mode<all>
This diff is collapsed.
% This is the main beamer theme file of the Feather theme.
% Copyright (c) 2014 by Lilyana Vaskova Vankova <lilqna.v@gmail.com>
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You can find the GNU General Public License at <http://www.gnu.org/licenses/>.
%----------------------------------------------------------------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthemeFeather}[2014/04/08 v1.0.0 The Feather Beamer Theme]
%----------------------------------------------------------------------------------------------------------------------------------
% load required packages
\RequirePackage{tikz}
\RequirePackage{calc}
%----------------------------------------------------------------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Theme options and definitions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------------------------------------------------
\DeclareOptionBeamer{progressstyle}{\PassOptionsToPackage{progressstyle=#1}{beamerouterthemeFeather}}
\DeclareOptionBeamer{rotationcw}{\PassOptionsToPackage{rotationcw}{beamerouterthemeFeather}}
\DeclareOptionBeamer{shownavsym}{\PassOptionsToPackage{shownavsym}{beamerouterthemeFeather}}
\ProcessOptionsBeamer
%----------------------------------------------------------------------------------------------------------------------------------
%beamer specific options
\mode<presentation> %refers to the first four modes (beamer, handout, second and trans). That is, to all modes except the article mode
{
\useinnertheme{Feather}
\useoutertheme{Feather}
\usecolortheme{Feather}
}
\mode<all>
File added
File added
\def\handout{foo}
\input template.tex
% This software was created by cebe on Github.
% No copyright notice was published:
% https://github.com/cebe/pdfpc-latex-notes
\ProvidesPackage{pdfpcnotes}
% create a new file handle
\newwrite\pdfpcnotesfile
% open file on \begin{document}
\AtBeginDocument{%
\immediate\openout\pdfpcnotesfile\jobname.pdfpc\relax
\immediate\write\pdfpcnotesfile{[notes]}
}
% define a # http://tex.stackexchange.com/a/37757/10327
\begingroup
\catcode`\#=12
\gdef\hashchar{#}%
\endgroup
\def\lastframenumber{0}
% define command \pnote{} that works like note but
% additionally writes notes to file in pdfpc readable format
\newcommand{\pnote}[1]{%
% keep normal notes working
\note{#1}%
% if frame changed - write a new header
\ifdim\theframenumber pt>\lastframenumber pt
\let\lastframenumber\theframenumber
\begingroup
\let\#\hashchar
\immediate\write\pdfpcnotesfile{\#\#\# \theframenumber}%
\endgroup
\fi
% write note to file
\immediate\write\pdfpcnotesfile{\unexpanded{#1}}%
}
% close file on \begin{document}
\AtEndDocument{%
\immediate\closeout\pdfpcnotesfile
}
@misc{ wiki:Foobar,
author = "Wikipedia",
title = "Foobar --- {W}ikipedia{,} The Free Encyclopedia",
year = "2004",
url = "\url{https://en.wikipedia.org/w/index.php?title=Foobar&oldid=751912490}",
note = "[Online; accessed 2016-12-20]"
}
This diff is collapsed.
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