diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/exframe/exfserm.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/exframe/exfserm.tex | 143 |
1 files changed, 63 insertions, 80 deletions
diff --git a/Master/texmf-dist/doc/latex/exframe/exfserm.tex b/Master/texmf-dist/doc/latex/exframe/exfserm.tex index aa96b3da0fe..356a36fcf3f 100644 --- a/Master/texmf-dist/doc/latex/exframe/exfserm.tex +++ b/Master/texmf-dist/doc/latex/exframe/exfserm.tex @@ -17,16 +17,17 @@ %% version 2005/12/01 or later. %% \NeedsTeXFormat{LaTeX2e}[1996/12/01] -\ProvidesFile{exfserm.tex}[2020/01/11 v3.31 multipart sample for exframe] +\ProvidesFile{exfserm.tex}[2020/02/24 v3.4 multipart sample for exframe] \input{childdoc.def} \childdocmain{exfserm} -\providecommand{\draftver}{y} \ifchilddoc \providecommand{\printsol}{y} \else \providecommand{\printsol}{n} \fi +\providecommand{\draftver}{y} +\newif\ifdraft\if\draftver y\drafttrue\else\draftfalse\fi \documentclass[12pt]{article} @@ -35,7 +36,14 @@ \PassOptionsToPackage{bookmarks=\ifchilddoc false\else true\fi}{hyperref} \PassOptionsToPackage{bookmarksopen=true}{hyperref} \RequirePackage{hyperref} -\IfFileExists{hyperxmp.sty}{\RequirePackage{hyperxmp}}{} + +\ifdraft +\PassOptionsToPackage{draft}{metastr} +\fi +\IfFileExists{hyperxmp.sty}{}{\PassOptionsToPackage{hyperxmp=false}{metastr}} +\RequirePackage[course]{metastr} +\metaset[aux]{writepdf}{} +\metaset[rights]{writepdf}{} \RequirePackage[extdata,extstyle]{exframe} @@ -45,6 +53,9 @@ \else \exercisesetup{solutions=true} \exercisesetup{twoside=false} +\ifdraft +\exercisesetup{solutionbuf=false} +\fi \fi %%\if\printsol n\else\showprobleminfo{author,source,recycle}\fi @@ -57,6 +68,13 @@ \exercisestyle{solutionbelow={problem}} \ifchilddoc\ifchilddocmanual\else\exercisesetup{pdfdata=sheet}\fi\fi +\metasetlang{en-GB} + +\metasetterm[en]{sheet}{sheet} +\metasetterm[en]{sheets}{sample sheets} +\metasetterm[en]{solution}{Solution} +\metasetterm[en]{solutions}{solutions} + \RequirePackage[a4paper,margin=2.5cm]{geometry} \pagestyle{plain} \setlength\parindent{0pt} @@ -86,9 +104,8 @@ \ifdefined\mpostsetup \mpostsetup{checksum} -\if\draftver y\mpostsetup{now,nowall}\fi +\ifchilddoc\ifdraft\mpostsetup{now,nowall}\fi\fi \ifchilddocmanual\else\mpostsetup{numberwithin={sheet}}\fi -\ifsolutions\else\mpostsetup{warnunused=false}\fi \mpostsetup{globaldef=true} \begin{mposttex} @@ -98,73 +115,52 @@ path paths[]; newinternal numeric xu; xu:=1cm; +def pensize(expr s)=withpen pencircle scaled s enddef; +def fillshape(expr p,c)= + fill p withcolor c; + draw p +enddef; \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}} +\metaset{course}{exframe package samples} +\metaset{instructor}{N.\ Beisert} +\metaset{author}{Niklas Beisert, \metapick[#1]{institution}} +\metaset{institution}{exframe academy} +\metaset{period}{spring 2019} +\metaset{copyrightdate}{2019--2020} -\exercisedata{material={\ifsolutions\getexerciseconfig{termsolutions}% - \else\getexerciseconfig{termsheets}\fi}} +\metaset{material}{\metatranslate[#1]{sheets}} \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 + {\ifsolutions\metaterm{solutions}\else% + \metaterm{sheet}\fi\ #1}% + {\ifsolutions\metaterm{solutions} \fi #2}} -\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.}} +\ifchilddoc +\metaset{partof}{\metatranslate[#1]{sheets} \metapick[#1]{course}} \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}} +\metaset[sep]{draft}{ -- } +\metaset[sep]{subtitle}{, } +\metaset{subtitle}{\ifsolutions\metatranslate[#1]{solutions} \fi% + \metaif[use]{sheettitle}{\metapick[#1]{sheettitle}}{\metapick[#1]{material}}} +\metaset{subject}{Lecture Series, + \metapick[#1]{institution}, \metapick[#1]{period}} + +\metaset{copyrightowner}{\metapick[#1]{author}} +\ifchilddoc +\metacopyright{doc} +\else +\metacopyright{doc-parts} \fi +\metaset{licenseprovider}{of \metapick[#1]{institution}} +\metalicense{consent} + +\ifsolutions\else\ifdraft\else +\metalicensecc{by-sa} +\fi\fi \begin{document} @@ -178,40 +174,27 @@ xu:=1cm; \begingroup\ifchilddoc\else \renewcommand{\thepage}{\arabic{page}} -\pdfbookmark[1]{Title Page}{title} +\pdfbookmark[1]{\metaterm{title}}{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 +\metapick[course]{titletext} \end{center} \vspace*{\fill}\vspace*{\fill} \newpage -\phantomsection\pdfbookmark[1]{Copyright}{copyright} +\phantomsection\pdfbookmark[1]{\metaterm{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 +\begin{center}\begin{minipage}{11cm}\raggedright +\metapick[print]{rightstext} \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} +\phantomsection\pdfbookmark[1]{\metaterm{contents}}{contents} {\parskip0pt\tableofcontents} \exercisecleardoublepage\setcounter{page}{1} |