Skip to content
Snippets Groups Projects
Commit b3c8232a authored by witiko's avatar witiko
Browse files

The `assignment` key now accepts a list of PDF files.

Also deleting the `base.pdf` files, as they are makeable.
parent 7ebcd32d
No related branches found
No related tags found
No related merge requests found
...@@ -793,18 +793,20 @@ ...@@ -793,18 +793,20 @@
\long\def\thesis@thanks{#1}} \long\def\thesis@thanks{#1}}
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% \begin{macro}{\thesis@assignmentPDF} % \begin{macro}{\thesis@assignmentFiles}
% \subsubsection{The \texttt{assignment} key} % \subsubsection{The \texttt{assignment} key}
% The \marg{\texttt{assignment}=path} pair sets the path to the pdf % The \marg{\texttt{assignment}=list} pair sets the comma-separated
% file containing the thesis assignment to \textit{path}. The % list of paths (and optional page spec specifiers, see the
% \textit{path} is stored within the private % \textsf{pdfpages} package |\includepdfmerge| command
% |\thesis@assignmentPDF| macro, whose implicit value is % documentation) to the pdf files containing the thesis assignment
% |\undefined|. When defined, the PDF file is injected into the % to \textit{list}. The \textit{list} is stored within the private
% |\thesis@assignmentFiles| macro, whose implicit value is
% |\undefined|. When defined, the PDF files are injected into the
% resulting document instead of the placeholder % resulting document instead of the placeholder
% |\thesis@assignment| string. % |\thesis@assignment| string.
% \begin{macrocode} % \begin{macrocode}
\define@key{thesis}{assignment}{% \define@key{thesis}{assignment}{%
\def\thesis@assignmentPDF{#1}} \def\thesis@assignmentFiles{#1}}
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% \begin{macro}{\ifthesis@auto} % \begin{macro}{\ifthesis@auto}
......
File deleted
File deleted
...@@ -277,14 +277,15 @@ ...@@ -277,14 +277,15 @@
\def\thesis@blocks@assignment{% \def\thesis@blocks@assignment{%
\ifx\thesis@type\thesis@rigorous\else% \ifx\thesis@type\thesis@rigorous\else%
\thesis@blocks@clear% \thesis@blocks@clear%
\ifx\thesis@assignmentPDF\undefined% \ifx\thesis@assignmentFiles\undefined%
\begin{alwayssingle}% \begin{alwayssingle}%
\thispagestyle{empty} \thispagestyle{empty}
\addtocounter{page}{-\ifthesis@twoside2\else1\fi} \addtocounter{page}{-\ifthesis@twoside2\else1\fi}
\noindent\textit{\thesis@assignment}% \noindent\textit{\thesis@assignment}%
\end{alwayssingle}% \end{alwayssingle}%
\else% \else%
\includepdf[pages=-]{\thesis@assignmentPDF}% {\edef\@pdfList{\thesis@assignmentFiles}%
\expandafter\includepdfmerge\expandafter{\@pdfList}}%
\fi% \fi%
\thesis@blocks@clear \thesis@blocks@clear
\fi} \fi}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment