Commits (4)
......@@ -55,6 +55,8 @@ $(CACHE_DIR):; @mkdir -p $(CACHE_DIR)
%_web.pdf: %.pdf
@ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/$(GS_QUALITY) -dDetectDuplicateImages=true -dFastWebView -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$@ $<
%_bbb.pdf: %.pdf
@ghostscript -dNoOutputFonts -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/$(GS_QUALITY) -dFastWebView -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$@ $<
preview-%: %.tex $(wildcard *.bib) $(PACKAGE_TGT) | $(CACHE_DIR)
@cd $(dir $< ) && $(COMPILE_TEX) $(notdir $<) -pvc -interaction=nonstopmode -view=pdf
......@@ -78,6 +80,7 @@ help::
@echo " [FILE]_1x2.pdf Generate printable version with two slides per page"
@echo " [FILE]_2x2.pdf Generate printable version with four slides per page"
@echo " [FILE]_web.pdf Generate a compressed version for web"
@echo " [FILE]_bbb.pdf Generate a version to be uploaded in BigBlueButton"
@echo
@echo "Concatenation is supported: [FILE]_handout_2x2_web.pdf"
@echo
......
......@@ -124,11 +124,12 @@
\neo@fontsave
}
\newcommand{\neo@fontbook}{
\def\bfseries@sf{mb}
\def\mdseries@sf{sl}
\def\bfseries@sf{medium}
\neo@fontsave
}
\newcommand{\neo@fontregular}{
\def\mdseries@sf{m}
\def\mdseries@sf{sl}
\def\bfseries@sf{sb}
\neo@fontsave
}
......
......@@ -359,9 +359,7 @@
\newlength{\neo@progressonsectionpage@linewidth}
\setlength{\neo@progressonsectionpage@linewidth}{0.4pt}
\setbeamertemplate{progress bar in section page}{
\setlength{\neo@progressonsectionpage}{%
\textwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}%
}%
\pgfmathsetlength{\neo@progressonsectionpage}{\textwidth * min(1,\insertframenumber/\inserttotalframenumber}%
\tikzexternaldisable%
\begin{tikzpicture}
\fill[bg] (0,0) rectangle (\textwidth, \neo@progressonsectionpage@linewidth);
......@@ -370,20 +368,6 @@
\tikzexternalenable%
}
% \end{macrocode}
%
% The above code assumes that |\insertframenumber| is less than or equal to
% |\inserttotalframenumber|. However, this is not true on the first compile;
% in the absence of an |.aux| file, |\inserttotalframenumber| defaults to 1.
% This behaviour could cause fatal errors for long presentations, as
% |\neo@progressonsectionpage| would exceed \TeX's maximum length
% (16383.99999pt, roughly 5.75 metres or 18.9 feet).
% To avoid this, we increase the default value for |\inserttotalframenumber|;
% presentations with over 4000 slides will still break on first compile, but
% users in that situation likely have deeper problems to solve.
%
% \begin{macrocode}
\def\inserttotalframenumber{100}
% \end{macrocode}
% \end{macro}
%
%
......
......@@ -48,6 +48,7 @@
none/.code=\setbeamertemplate{frametitle icon}[none],
i4/.code=\setbeamertemplate{frametitle icon}[i4],
fau/.code=\setbeamertemplate{frametitle icon}[fau],
fau-new/.code=\setbeamertemplate{frametitle icon}[fau-new],
}
% \end{macrocode}
% \end{macro}
......@@ -186,6 +187,7 @@
\defbeamertemplate{frametitle icon}{none}{}
\defbeamertemplate{frametitle icon}{i4}{ \hfill\raisebox{-.25\height}{\includegraphics[height=1.2em]{images/logo-i4-white}}}
\defbeamertemplate{frametitle icon}{fau}{ \hfill\raisebox{-.25\height}{\includegraphics[height=1.2em]{images/logo-fau-white}}}
\defbeamertemplate{frametitle icon}{fau-new}{ \hfill\raisebox{-.25\height}{\includegraphics[height=1.75em]{images/logo-fau-white-new}\kern-0.275em}}
% \end{macrocode}
% \end{macro}
%
......@@ -307,9 +309,7 @@
\setlength{\neo@progressinheadfoot@linewidth}{0.8pt}
\setbeamertemplate{progress bar in head/foot}{
\nointerlineskip
\setlength{\neo@progressinheadfoot}{%
\paperwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}%
}%
\pgfmathsetlength{\neo@progressinheadfoot}{\paperwidth * min(1,\insertframenumber/\inserttotalframenumber}%
\begin{beamercolorbox}[wd=\paperwidth]{progress bar in head/foot}
\tikzexternaldisable%
\begin{tikzpicture}
......