| 1 |
%% |
| 2 |
%% This is file `exframe-ser.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% exframe.dtx (with options: `samplemultimain') |
| 8 |
%% |
| 9 |
%% Copyright (C) 2011-2026 Niklas Beisert |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% https://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 17 |
%% version 2008 or later. |
| 18 |
%% |
| 19 |
\NeedsTeXFormat{LaTeX2e}[1996-12-01] |
| 20 |
\ProvidesFile{exframe-ser.tex}[2026-03-23 v3.5.3 multipart sample for exframe] |
| 21 |
\input{childdoc.def} |
| 22 |
\childdocmain{} |
| 23 |
|
| 24 |
\ifchilddoc |
| 25 |
\providecommand{\printsol}{y} |
| 26 |
\else |
| 27 |
\providecommand{\printsol}{n} |
| 28 |
\fi |
| 29 |
\providecommand{\draftver}{y} |
| 30 |
\newif\ifdraft\if\draftver y\drafttrue\else\draftfalse\fi |
| 31 |
|
| 32 |
\documentclass[12pt]{article} |
| 33 |
|
| 34 |
\RequirePackage{graphicx} |
| 35 |
|
| 36 |
\PassOptionsToPackage{bookmarks=\ifchilddoc false\else true\fi}{hyperref} |
| 37 |
\PassOptionsToPackage{bookmarksopen=true}{hyperref} |
| 38 |
\RequirePackage{hyperref} |
| 39 |
|
| 40 |
\ifdraft |
| 41 |
\PassOptionsToPackage{draft}{metastr} |
| 42 |
\fi |
| 43 |
\IfFileExists{hyperxmp.sty}{}{\PassOptionsToPackage{hyperxmp=false}{metastr}} |
| 44 |
\RequirePackage[course]{metastr} |
| 45 |
\metaset[aux]{writepdf}{} |
| 46 |
\metaset[rights]{writepdf}{} |
| 47 |
|
| 48 |
\RequirePackage[extdata,extstyle]{exframe} |
| 49 |
|
| 50 |
\if\printsol n |
| 51 |
\exercisesetup{solutions=false} |
| 52 |
\exercisesetup{twoside=true} |
| 53 |
\else |
| 54 |
\exercisesetup{solutions=true} |
| 55 |
\exercisesetup{twoside=false} |
| 56 |
\ifdraft |
| 57 |
\exercisesetup{solutionbuf=false} |
| 58 |
\fi |
| 59 |
\fi |
| 60 |
|
| 61 |
%%\if\printsol n\else\showprobleminfo{author,source,recycle}\fi |
| 62 |
|
| 63 |
\exercisesetup{autolabelproblem} |
| 64 |
\exercisestyle{contents,solutionsep} |
| 65 |
\ifchilddocmanual\else |
| 66 |
\exercisestyle{pagebysheet,problembysheet,equationbysheet,sheetequation} |
| 67 |
\fi |
| 68 |
\exercisestyle{solutionbelow={problem}} |
| 69 |
\ifchilddoc\ifchilddocmanual\else\exercisesetup{pdfdata=sheet}\fi\fi |
| 70 |
|
| 71 |
\metasetlang{en-GB} |
| 72 |
|
| 73 |
\metasetterm[en]{sheet}{sheet} |
| 74 |
\metasetterm[en]{sheets}{sample sheets} |
| 75 |
\metasetterm[en]{solution}{Solution} |
| 76 |
\metasetterm[en]{solutions}{solutions} |
| 77 |
|
| 78 |
\RequirePackage[a4paper,margin=2.5cm]{geometry} |
| 79 |
\pagestyle{plain} |
| 80 |
\setlength\parindent{0pt} |
| 81 |
\setlength\parskip{\smallskipamount} |
| 82 |
\setlength\overfullrule{5pt} |
| 83 |
\newcommand{\turnover}{\ifsolutions\else\vfill% |
| 84 |
\hfill{\mathversion{bold}$\longrightarrow$}\newpage\fi} |
| 85 |
|
| 86 |
\exercisestyle{plainheader} |
| 87 |
\exerciseconfig{composeheaderbelowright} |
| 88 |
{\sheetdataempty{editdate}{}{version: \getsheetdata{editdate}}} |
| 89 |
\ifchilddoc\ifsolutions\else |
| 90 |
\exerciseconfig{composeheaderbelowright} |
| 91 |
{\sheetdataempty{due}{}{due: \getsheetdata{due}}} |
| 92 |
\fi\fi |
| 93 |
|
| 94 |
\def\lorem{Lorem ipsum dolor sit amet, consectetur adipisici elit, |
| 95 |
sed eiusmod tempor incidunt ut labore et dolore magna aliqua. |
| 96 |
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris |
| 97 |
nisi ut aliquid ex ea commodi consequat. |
| 98 |
Quis aute iure reprehenderit in voluptate velit esse |
| 99 |
cillum dolore eu fugiat nulla pariatur. |
| 100 |
Excepteur sint obcaecat cupiditat non proident, |
| 101 |
sunt in culpa qui officia deserunt mollit anim id est laborum.\par} |
| 102 |
|
| 103 |
\IfFileExists{mpostinl.sty}{\RequirePackage{mpostinl}}{} |
| 104 |
\ifdefined\mpostsetup |
| 105 |
|
| 106 |
\mpostsetup{checksum} |
| 107 |
\ifchilddoc\ifdraft\mpostsetup{now,nowall}\fi\fi |
| 108 |
\ifchilddocmanual\else\mpostsetup{numberwithin={sheet}}\fi |
| 109 |
|
| 110 |
\mpostsetup{globaldef=true} |
| 111 |
\begin{mposttex} |
| 112 |
\def\figure{figure} |
| 113 |
\end{mposttex} |
| 114 |
\begin{mpostdef} |
| 115 |
path paths[]; |
| 116 |
newinternal numeric xu; |
| 117 |
xu:=1cm; |
| 118 |
def pensize(expr s)=withpen pencircle scaled s enddef; |
| 119 |
def fillshape(expr p,c)= |
| 120 |
fill p withcolor c; |
| 121 |
draw p |
| 122 |
enddef; |
| 123 |
\end{mpostdef} |
| 124 |
\mpostsetup{globaldef=false} |
| 125 |
|
| 126 |
\fi |
| 127 |
|
| 128 |
\metaset{course}{exframe package samples} |
| 129 |
\metaset{instructor}{N.\ Beisert} |
| 130 |
\metaset{author}{Niklas Beisert, \metapick[#1]{institution}} |
| 131 |
\metaset{institution}{exframe academy} |
| 132 |
\metaset{period}{spring 2019} |
| 133 |
\metaset{copyrightdate}{2019--2026} |
| 134 |
|
| 135 |
\ifchilddoc |
| 136 |
\metaset{partof}{\metatranslate[#1]{sheets} \metapick[#1]{course}} |
| 137 |
\fi |
| 138 |
|
| 139 |
\metaset[sep]{draft}{ -- } |
| 140 |
\metaset[sep]{subtitle}{, } |
| 141 |
\metaset{material}{\ifsolutions\metatranslate[#1]{solutions} \fi% |
| 142 |
\metatranslate[#1]{sheets}} |
| 143 |
\exerciseconfig{composetitlesheet}[2]{\exerciseifempty{#2}% |
| 144 |
{\ifsolutions\metaterm{solutions}\else\metaterm{sheet}\fi\ #1}% |
| 145 |
{\ifsolutions\metaterm{solutions} \fi #2}} |
| 146 |
\metaset{sheettitle}{\ifsolutions\metatranslate[#1]{solutions} \fi% |
| 147 |
\exerciseifempty{\getsheetdata{rawtitle}}% |
| 148 |
{\metatranslate[#1]{sheet} \thesheet}% |
| 149 |
{\getsheetdata{rawtitle}}} |
| 150 |
\metaset{subject}{Lecture Series, |
| 151 |
\metapick[#1]{institution}, \metapick[#1]{period}} |
| 152 |
|
| 153 |
\metaset{copyrightowner}{\metapick[#1]{author}} |
| 154 |
\ifchilddoc |
| 155 |
\metacopyright{doc} |
| 156 |
\else |
| 157 |
\metacopyright{doc-parts} |
| 158 |
\fi |
| 159 |
\metaset{licenseprovider}{of \metapick[#1]{institution}} |
| 160 |
\metalicense{consent} |
| 161 |
|
| 162 |
\ifsolutions\else\ifdraft\else |
| 163 |
\metalicensecc{by-sa} |
| 164 |
\fi\fi |
| 165 |
|
| 166 |
\begin{document} |
| 167 |
|
| 168 |
\def\tmp{} |
| 169 |
\ifchilddocmanual |
| 170 |
\def\tmp{\end{document}} |
| 171 |
\input{\childdocname} |
| 172 |
\fi\tmp |
| 173 |
|
| 174 |
\setcounter{section}{-1} |
| 175 |
\begingroup\ifchilddoc\else |
| 176 |
\renewcommand{\thepage}{\arabic{page}} |
| 177 |
|
| 178 |
\pdfbookmark[1]{\metaterm{title}}{title} |
| 179 |
\thispagestyle{empty} |
| 180 |
\vspace*{\fill} |
| 181 |
\begin{center} |
| 182 |
\metapick[course]{titletext} |
| 183 |
\end{center} |
| 184 |
\vspace*{\fill}\vspace*{\fill} |
| 185 |
\newpage |
| 186 |
|
| 187 |
\phantomsection\pdfbookmark[1]{\metaterm{copyright}}{copyright} |
| 188 |
\thispagestyle{empty} |
| 189 |
\vspace*{\fill}\vspace*{\fill} |
| 190 |
\begin{center}\begin{minipage}{11cm}\raggedright |
| 191 |
\metapick[print]{rightstext} |
| 192 |
\end{minipage}\end{center} |
| 193 |
\vspace*{\fill}\vspace*{\fill}\vspace*{\fill} |
| 194 |
\newpage |
| 195 |
|
| 196 |
\makeatletter\renewcommand\@pnumwidth{2.4em}\makeatother |
| 197 |
\setcounter{tocdepth}{2} |
| 198 |
\phantomsection\pdfbookmark[1]{\metaterm{contents}}{contents} |
| 199 |
{\parskip0pt\tableofcontents} |
| 200 |
\exercisecleardoublepage\setcounter{page}{1} |
| 201 |
|
| 202 |
\fi\endgroup |
| 203 |
|
| 204 |
\include{exframe-ser-01} |
| 205 |
\include{exframe-ser-02} |
| 206 |
\include{exframe-ser-03} |
| 207 |
|
| 208 |
\def\jobnameunused{exframe-ser-aa} |
| 209 |
\ifx\childdocname\jobnameunused\include{\jobnameunused}\fi |
| 210 |
|
| 211 |
\end{document} |
| 212 |
\endinput |
| 213 |
%% |
| 214 |
%% End of file `exframe-ser.tex'. |