%%
%% This is file `exfserm.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% exframe.dtx  (with options: `samplemultimain')
%% 
%% Copyright (C) 2011-2020 Niklas Beisert
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%% 
\NeedsTeXFormat{LaTeX2e}[1996/12/01]
\ProvidesFile{exfserm.tex}[2020/01/11 v3.31 multipart sample for exframe]
\input{childdoc.def}
\childdocmain{exfserm}

\providecommand{\draftver}{y}
\ifchilddoc
\providecommand{\printsol}{y}
\else
\providecommand{\printsol}{n}
\fi

\documentclass[12pt]{article}

\RequirePackage{graphicx}

\PassOptionsToPackage{bookmarks=\ifchilddoc false\else true\fi}{hyperref}
\PassOptionsToPackage{bookmarksopen=true}{hyperref}
\RequirePackage{hyperref}
\IfFileExists{hyperxmp.sty}{\RequirePackage{hyperxmp}}{}

\RequirePackage[extdata,extstyle]{exframe}

\if\printsol n
\exercisesetup{solutions=false}
\exercisesetup{twoside=true}
\else
\exercisesetup{solutions=true}
\exercisesetup{twoside=false}
\fi

%%\if\printsol n\else\showprobleminfo{author,source,recycle}\fi

\exercisesetup{autolabelproblem}
\exercisestyle{contents,solutionsep}
\ifchilddocmanual\else
\exercisestyle{pagebysheet,problembysheet,equationbysheet,sheetequation}
\fi
\exercisestyle{solutionbelow={problem}}
\ifchilddoc\ifchilddocmanual\else\exercisesetup{pdfdata=sheet}\fi\fi

\RequirePackage[a4paper,margin=2.5cm]{geometry}
\pagestyle{plain}
\setlength\parindent{0pt}
\setlength\parskip{\smallskipamount}
\setlength\overfullrule{5pt}
\newcommand{\turnover}{\ifsolutions\else\vfill%
  \hfill{\mathversion{bold}$\longrightarrow$}\newpage\fi}

\exercisestyle{plainheader}
\exerciseconfig{composeheaderbelowright}
 {\sheetdataempty{editdate}{}{version: \getsheetdata{editdate}}}
\ifchilddoc\ifsolutions\else
 \exerciseconfig{composeheaderbelowright}
  {\sheetdataempty{due}{}{due: \getsheetdata{due}}}
\fi\fi

\def\lorem{Lorem ipsum dolor sit amet, consectetur adipisici elit,
  sed eiusmod tempor incidunt ut labore et dolore magna aliqua.
  Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
  nisi ut aliquid ex ea commodi consequat.
  Quis aute iure reprehenderit in voluptate velit esse
  cillum dolore eu fugiat nulla pariatur.
  Excepteur sint obcaecat cupiditat non proident,
  sunt in culpa qui officia deserunt mollit anim id est laborum.\par}

\IfFileExists{mpostinl.sty}{\RequirePackage{mpostinl}}{}
\ifdefined\mpostsetup

\mpostsetup{checksum}
\if\draftver y\mpostsetup{now,nowall}\fi
\ifchilddocmanual\else\mpostsetup{numberwithin={sheet}}\fi
\ifsolutions\else\mpostsetup{warnunused=false}\fi

\mpostsetup{globaldef=true}
\begin{mposttex}
\def\figure{figure}
\end{mposttex}
\begin{mpostdef}
path paths[];
newinternal numeric xu;
xu:=1cm;
\end{mpostdef}
\mpostsetup{globaldef=false}

\fi

\exercisedata{course={exframe package samples}}
\exercisedata{instructor={N.\ Beisert}}
\exercisedata{institution={exframe academy}}
\exercisedata{period={spring 2019}}
\exercisedata{date={2019}}

\exercisedata{material={\ifsolutions\getexerciseconfig{termsolutions}%
  \else\getexerciseconfig{termsheets}\fi}}
\exerciseconfig{composetitlesheet}[2]{\exerciseifempty{#2}%
  {\ifsolutions\getexerciseconfig{termsolutions}\else%
   \getexerciseconfig{termsheet}\fi\ #1}%
  {\ifsolutions\getexerciseconfig{termsolutions}\fi\ #2}}
\exerciseconfig{composemetasheet}[2]{\if\draftver yDRAFT: \fi%
  \getexercisedata{course},
  \getexerciseconfig{composetitlesheet}{#1}{#2}}

\exercisedata{title={\if\draftver yDRAFT: \fi%
  \getexercisedata{course}, \getexercisedata{material}}}
\exercisedata{author={Niklas Beisert, \getexercisedata{institution}}}
\exercisedata{subject={lecture series at \getexercisedata{institution},
  \getexercisedata{period}}}

\exerciseconfig{termsheet}{sheet}
\exerciseconfig{termsheets}{sample sheets}
\exerciseconfig{termsolution}{Solution}
\exerciseconfig{termsolutions}{solutions}

\def\copyrightmessage
  {This document as well as its parts is protected by copyright.}
\def\licensemessage
  {Reproduction of any part of this work in any form
  without prior written consent of \getexercisedata{institution}
  is not permissible.}

\ifsolutions\else\if\draftver y\else
\def\licensecctype{by-sa}
\def\licenseccname{Attribution-ShareAlike \licenseccver{} International}
\fi\fi

\ifdefined\licensecctype
\ifdefined\licenseccver\else\def\licenseccver{4.0}\fi
\def\licenseurl
  {https://creativecommons.org/licenses/\licensecctype/\licenseccver}
\def\licensemessage{\texorpdfstring
  {This work is licensed under the Creative Commons ``\licenseccname'' License
  (CC \MakeUppercase{\licensecctype} \licenseccver).\par
  \IfFileExists{doclicense.sty}{
   \begin{center}\includegraphics{doclicense-CC-\licensecctype}\end{center}}{}
  To view a copy of this license, visit: \url{\licenseurl}}
  {This work is licensed under the Creative Commons \licenseccname{} License.}}
\fi

\ifdefined\xmptilde
\hypersetup{pdfcopyright={Copyright \getexercisedata{date}
  \getexercisedata{author}. \copyrightmessage{} \licensemessage}}
\ifdefined\sourceurl\hypersetup{pdflicenseurl={\sourceurl}}\else
\ifdefined\licenseurl\hypersetup{pdflicenseurl={\licenseurl}}\fi\fi
\hypersetup{keeppdfinfo=true}
\hypersetup{pdfsource={}}
\XMPLangAlt{en}{pdfcopyright={Copyright \getexercisedata{date}
  \getexercisedata{author}. \copyrightmessage{} \licensemessage}}
\fi

\begin{document}

\def\tmp{}
\ifchilddocmanual
\def\tmp{\end{document}}
\input{\childdocname}
\fi\tmp

\setcounter{section}{-1}
\begingroup\ifchilddoc\else
\renewcommand{\thepage}{\arabic{page}}

\pdfbookmark[1]{Title Page}{title}
\thispagestyle{empty}
\vspace*{\fill}
\begin{center}
\begingroup\bfseries\LARGE\getexercisedata{course}\par\endgroup
\vspace{0.5cm}
\begingroup\large\getexercisedata{material}\par\endgroup
\vspace{0.5cm}
\begingroup\large\getexercisedata{institution},
  \getexercisedata{period}\par\endgroup
\vspace{2cm}
\begingroup\scshape\Large\getexercisedata{instructor}\par\endgroup
\end{center}
\vspace*{\fill}\vspace*{\fill}
\newpage

\phantomsection\pdfbookmark[1]{Copyright}{copyright}
\thispagestyle{empty}
\vspace*{\fill}\vspace*{\fill}
\begin{center}
\begin{minipage}{11cm}\raggedright
{\copyright} \getexercisedata{date} \getexercisedata{author}
\par\medskip
\copyrightmessage{}
\licensemessage
\ifdefined\sourcemessage\par\medskip\sourcemessage\fi
\ifdefined\attributionmessage\par\medskip\attributionmessage\fi
\end{minipage}\end{center}
\vspace*{\fill}\vspace*{\fill}\vspace*{\fill}
\newpage

\makeatletter\renewcommand\@pnumwidth{2.4em}\makeatother
\setcounter{tocdepth}{2}
\phantomsection\pdfbookmark[1]{Contents}{contents}
{\parskip0pt\tableofcontents}
\exercisecleardoublepage\setcounter{page}{1}

\fi\endgroup

\include{exfser01}
\include{exfser02}
\include{exfser03}

\def\jobnameunused{exfseraa}
\ifx\childdocname\jobnameunused\include{\jobnameunused}\fi

\end{document}
\endinput
%%
%% End of file `exfserm.tex'.
