summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fithesis/style/mu/fithesis-base.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/fithesis/style/mu/fithesis-base.sty')
-rw-r--r--Master/texmf-dist/tex/latex/fithesis/style/mu/fithesis-base.sty56
1 files changed, 39 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/fithesis/style/mu/fithesis-base.sty b/Master/texmf-dist/tex/latex/fithesis/style/mu/fithesis-base.sty
index ccb1c020c46..4d73c932634 100644
--- a/Master/texmf-dist/tex/latex/fithesis/style/mu/fithesis-base.sty
+++ b/Master/texmf-dist/tex/latex/fithesis/style/mu/fithesis-base.sty
@@ -49,7 +49,7 @@
%%
%% The names of the source files used are shown above.
%%
-\ProvidesPackage{fithesis/style/mu/fithesis-base}[2016/04/18]
+\ProvidesPackage{fithesis/style/mu/fithesis-base}[2016/06/06]
\NeedsTeXFormat{LaTeX2e}
\DeclareOption{10pt}{\def\thesis@ptsize{0}}
\DeclareOption{11pt}{\def\thesis@ptsize{1}}
@@ -82,8 +82,13 @@
\newif\ifthesis@cover@
\DeclareOption{nocover}{\thesis@cover@false}
\DeclareOption{cover}{\thesis@cover@true}
-\DeclareOption{digital}{\ExecuteOptions{color,cover}}
-\DeclareOption{printed}{\ExecuteOptions{monochrome,nocover}}
+\newif\ifthesis@digital@
+\DeclareOption{digital}{%
+ \ExecuteOptions{color,cover}%
+ \thesis@digital@true}
+\DeclareOption{printed}{%
+ \ExecuteOptions{monochrome,nocover}%
+ \thesis@digital@false}
\ExecuteOptions{%
printed,12pt,twoside,final,microtype,palatino,oldtable,lot,lof}
\ProcessOptions*
@@ -416,31 +421,47 @@
\par\vfil\null
\end{alwayssingle}}%
\fi}
+\def\thesis@rewind{%
+ \addtocounter{page}{-\ifthesis@twoside@2\else1\fi}}
\newif\ifthesis@blocks@assignment@
\thesis@blocks@assignment@true
+\newif\ifthesis@blocks@assignment@hideIfDigital@
+\thesis@blocks@assignment@hideIfDigital@true
\def\thesis@blocks@assignment{%
\ifthesis@blocks@assignment@
\ifx\thesis@assignmentFiles\undefined
- % Typeset a placeholder page.
+ % Rewind the pages and typeset a placeholder page.
\thesis@blocks@clear
\begin{alwayssingle}%
- \thispagestyle{empty}%
- \addtocounter{page}{-\ifthesis@twoside@2\else1\fi}%
+ \thispagestyle{empty}\thesis@rewind
\noindent\textit{\thesis@@{assignment}}%
\end{alwayssingle}%
\else
{\edef\@pdfList{\thesis@assignmentFiles}%
+ \let\ea\expandafter
+ % Injects the specified PDF documents.
+ \def\@inject##1,{\thesis@blocks@clear
+ \def\@args{##1}\def\@relax{\relax}%
+ \ifx\@args\@relax\else
+ % Trim leading spaces.
+ \edef\@trimmed{\romannumeral-`\.##1}%
+ % Rewind the pages and include the PDF.
+ \thesis@rewind\includepdf[pages=-]\@trimmed
+ \ea\@inject\fi}%
\ifx\@pdfList\empty\else
- \let\ea\expandafter
- % Inject the specified PDF documents.
- \def\@inject##1,{\thesis@blocks@clear
- \def\@args{##1}\def\@relax{\relax}%
- \ifx\@args\@relax\else
- % Trim leading spaces.
- \edef\@trimmed{\romannumeral-`\.##1}%
- \includepdf[pages=-]\@trimmed
- \ea\@inject\fi}%
- \ea\@inject\@pdfList,\relax,%
+ \ifthesis@digital@
+ \ifthesis@blocks@assignment@hideIfDigital@
+ \thesis@blocks@clear
+ \begin{alwayssingle}%
+ \thispagestyle{empty}\thesis@rewind
+ \noindent\textit{\thesis@@{assignment}}%
+ \end{alwayssingle}%
+ \else
+ \ea\@inject\@pdfList,\relax,%
+ \fi
+ \else
+ \ea\@inject\@pdfList,\relax,%
+ \fi
\fi}%
\fi
\fi}
@@ -462,7 +483,8 @@
\ifthesis@bibliography@loaded@
\ifthesis@bibliography@included@\else
\thesis@blocks@clear
- \printbibliography[heading=bibintoc]%
+ {\emergencystretch=3em%
+ \printbibliography[heading=bibintoc]}%
\fi
\fi}
\setcounter{tocdepth}{2}