diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/exframe')
-rw-r--r-- | Master/texmf-dist/doc/latex/exframe/README.txt | 17 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/exframe/exframe.pdf | bin | 346998 -> 373878 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/exframe/exfsamp.tex (renamed from Master/texmf-dist/doc/latex/exframe/exfsmp1.tex) | 33 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/exframe/exfser01.tex | 97 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/exframe/exfser02.tex | 95 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/exframe/exfser03.tex | 32 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/exframe/exfseraa.tex | 95 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/exframe/exfserm.tex | 231 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/exframe/exfsermk.mak | 48 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/exframe/exfsermk.sh | 101 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/exframe/exfserpe.tex | 69 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/exframe/exfserpf.tex | 44 |
12 files changed, 846 insertions, 16 deletions
diff --git a/Master/texmf-dist/doc/latex/exframe/README.txt b/Master/texmf-dist/doc/latex/exframe/README.txt index eeab14b5caf..87216ec1a6f 100644 --- a/Master/texmf-dist/doc/latex/exframe/README.txt +++ b/Master/texmf-dist/doc/latex/exframe/README.txt @@ -1,4 +1,4 @@ -exframe v3.1 +exframe v3.2 Copyright 2011-2019 Niklas Beisert exframe is a LaTeX2e package which provides a general purpose @@ -16,7 +16,16 @@ The package consists of the files exframe.ins installation file exframe.dtx source file exframe.sty package file - exfsmp1.tex sample latex file + exfsamp.tex standalone sample latex file + exfserm.tex multipart sample main file + exfser01.tex multipart sample sheet 1 + exfser02.tex multipart sample sheet 2 + exfser03.tex multipart sample sheet 3 + exfseraa.tex multipart sample unused problems + exfserpe.tex multipart sample problem E + exfserpf.tex multipart sample problem F + exfsermk.sh multipart sample compile script + exfsermk.mak multipart sample makefile exframe.pdf manual The distribution consists of the files @@ -25,7 +34,9 @@ README.txt, exframe.ins and exframe.dtx. Run "(pdf)latex exframe.dtx" to compile the manual exframe.pdf. Run "latex exframe.ins" to create the package exframe.sty -and the sample exfsmp1.tex. +and the samples consisting of exfsamp.tex, exfserm.tex, +exfser01.tex, exfser02.tex, exfser03.tex, exfseraa.tex, +exfserpe.tex, exfserpf.tex, exfsermk.sh, exfsermk.mak. Copy the file exframe.sty to an appropriate directory of your LaTeX distribution, e.g. texmf-root/tex/latex/exframe. diff --git a/Master/texmf-dist/doc/latex/exframe/exframe.pdf b/Master/texmf-dist/doc/latex/exframe/exframe.pdf Binary files differindex d6ea6502f41..0c8ecda358e 100644 --- a/Master/texmf-dist/doc/latex/exframe/exframe.pdf +++ b/Master/texmf-dist/doc/latex/exframe/exframe.pdf diff --git a/Master/texmf-dist/doc/latex/exframe/exfsmp1.tex b/Master/texmf-dist/doc/latex/exframe/exfsamp.tex index 015ed7fbc24..f1f59d5d908 100644 --- a/Master/texmf-dist/doc/latex/exframe/exfsmp1.tex +++ b/Master/texmf-dist/doc/latex/exframe/exfsamp.tex @@ -1,10 +1,10 @@ %% -%% This is file `exfsmp1.tex', +%% This is file `exfsamp.tex', %% generated with the docstrip utility. %% %% The original source files were: %% -%% exframe.dtx (with options: `sample1') +%% exframe.dtx (with options: `samplesingle') %% %% Copyright (C) 2011-2019 Niklas Beisert %% @@ -17,7 +17,7 @@ %% version 2005/12/01 or later. %% \NeedsTeXFormat{LaTeX2e}[1996/12/01] -\ProvidesFile{exfsmp1.tex}[2019/01/21 v3.1 sample 1 for exframe] +\ProvidesFile{exfsamp.tex}[2019/05/01 v3.2 standalone sample for exframe] \documentclass[12pt]{article} \usepackage{geometry} @@ -47,6 +47,11 @@ \exercisestyle{pointsat=margin} \reversemarginpar \exerciseconfig{composepointsmargin}[1]{#1p.} +\exerciseconfig{composepointspairmargin}[2]{ + \ifdim#2pt=0pt#1p.% + \else\ifdim#1pt=0pt+#2p.% + \else#1+#2p.% + \fi\fi} \exerciseconfig{styletitle}{\sffamily\bfseries} @@ -75,7 +80,7 @@ \begin{sheet}[number=5] -\begin{problem}[title={Sums}] +\begin{problem}[title={Sums},points=99+4] This problem deals with sums and series. @@ -95,7 +100,7 @@ The result is \end{subproblem} -\begin{subproblem}[points=97,difficulty=lengthy] +\begin{subproblem}[points=97+0.5,difficulty=lengthy] Compute the sum \begin{equation} 1+2+3+\ldots+98+99+100. @@ -107,7 +112,7 @@ Keep calm and calculate! \begin{solution}[author={C.\ F.\ Gau\ss}] We use the result $1+2+3=6$ from part \ref{\problemtag-simplesum} to jumpstart the calculation. The remaining sums yield -\awardpoints[1 for each remaining sum]{97} +\awardpoints*[1 for each remaining sum]{97} \begin{equation} 6+4+5+\ldots+99+100=5050. \end{equation} @@ -124,19 +129,21 @@ Therefore the sum equals \begin{equation} 1+2+\ldots+99+100=50\cdot 101=5050. \end{equation} -\textit{Ligget se!} \awardpoints*{97} +\textit{Ligget se!} \awardpoints{97+0.5} \end{solution} You may give the final part a try: -\begin{subproblem}[optional={optional}, difficulty={requires inspiration}] +\begin{subproblem}[optional={optional}, + difficulty={requires inspiration},points={+3.5}] Compute the series +\showpoints \begin{equation} 1+2+3+\ldots \end{equation} \begin{solution} -The series is divergent, so the result is $\infty$ \awardpoints*{1}. +The series is divergent, so the result is $\infty$ \awardpoints{+1}. \par However, after subtracting the divergent part, the result clearly is @@ -149,7 +156,7 @@ where the zeta-function $\zeta(s)$ is defined by \end{equation} This definition holds only for $s>1$ where the sum is convergent, but one can continue the complex analytic function to $s<0$ -\awardpoints*{1.5}. +\awardpoints{+1.5}. \par Another way of understanding the result is to use the indefinite summation formula @@ -166,7 +173,7 @@ but with the wrong sign (in fact, the constant term of an indefinite sum is ambiguous; for the claim we merely set $j=0$ in the expression which holds for others values of $j$) -\awardpoints*{0.5}. +\awardpoints{+0.5}. In order to understand the sign, we propose that the above formula describes the regularised result for the sum with limits $+\infty$ and $n$ @@ -177,7 +184,7 @@ for the sum with limits $+\infty$ and $n$ \end{equation} Then we flip the summation limits of the desired sum to bring it into the above form -\awardpoints*{0.5} +\awardpoints{+0.5} \begin{equation} \sum_{k=1}^\infty k^s = -\sum_{k=\infty}^0 k^s @@ -208,4 +215,4 @@ This is beyond the scope of this example. \end{document} \endinput %% -%% End of file `exfsmp1.tex'. +%% End of file `exfsamp.tex'. diff --git a/Master/texmf-dist/doc/latex/exframe/exfser01.tex b/Master/texmf-dist/doc/latex/exframe/exfser01.tex new file mode 100644 index 00000000000..ceeb75023c6 --- /dev/null +++ b/Master/texmf-dist/doc/latex/exframe/exfser01.tex @@ -0,0 +1,97 @@ +%% +%% This is file `exfser01.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% exframe.dtx (with options: `samplemultisheet1') +%% +%% Copyright (C) 2011-2019 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. +%% +%%\providecommand{\printsol}{n} +\input{childdoc.def} +\childdocof{exfserm} + +\begin{sheet}[due={2019-04-29}] + +\begin{problem}[title={Sample A}] + +\ifdefined\mpostuse +\begin{mpostfig}[label={\problemtag-fig}] +interim xu:=1.5cm; +paths[1]:=fullcircle scaled 1xu; +fill paths[1] withgreyscale 0.7; +draw paths[1] withpen pencircle scaled 1pt; +label(btex \figure etex, center(paths[1])); +\end{mpostfig} +\fi + +\lorem + +\begin{subproblem} +\lorem +\begin{center} +\ifdefined\mpostuse\mpostuse{\problemtag-fig}\else figure\fi +\end{center} +\lorem +\end{subproblem} + +\begin{solution} +\lorem +\end{solution} + +\begin{subproblem} +\lorem +\end{subproblem} + +\begin{solution} +\lorem +\end{solution} + +\lorem + +\begin{subproblem} +\lorem +\end{subproblem} + +\begin{solution} +\lorem +\end{solution} + +\end{problem} + +\turnover + +\begin{problem}[title={Sample B}] + +\lorem + +\begin{subproblem} +\lorem +\begin{solution} +\lorem +\end{solution} +\end{subproblem} + +\begin{subproblem} +\lorem +\begin{solution} +\lorem +\end{solution} +\end{subproblem} + +\end{problem} + +\end{sheet} + +\endinput +%% +%% End of file `exfser01.tex'. diff --git a/Master/texmf-dist/doc/latex/exframe/exfser02.tex b/Master/texmf-dist/doc/latex/exframe/exfser02.tex new file mode 100644 index 00000000000..e6f9ad15624 --- /dev/null +++ b/Master/texmf-dist/doc/latex/exframe/exfser02.tex @@ -0,0 +1,95 @@ +%% +%% This is file `exfser02.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% exframe.dtx (with options: `samplemultisheet2') +%% +%% Copyright (C) 2011-2019 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. +%% +%%\providecommand{\printsol}{n} +\input{childdoc.def} +\childdocof{exfserm} +\begin{sheet}[due={2019-05-06}] +\begin{problem}[title={Sample C}] + +\ifdefined\mpostuse +\begin{mpostfig}[label={\problemtag-fig}] +interim xu:=1.5cm; +paths[1]:=fullcircle scaled 1xu; +fill paths[1] withgreyscale 0.7; +draw paths[1] withpen pencircle scaled 1pt; +label(btex \figure etex, center(paths[1])); +\end{mpostfig} +\fi + +\lorem + +\begin{subproblem} +\lorem +\begin{center} +\ifdefined\mpostuse\mpostuse{\problemtag-fig}\else figure\fi +\end{center} +\lorem +\end{subproblem} + +\begin{solution} +\lorem +\end{solution} + +\begin{subproblem} +\lorem +\end{subproblem} + +\begin{solution} +\lorem +\end{solution} + +\lorem + +\begin{subproblem} +\lorem +\end{subproblem} + +\begin{solution} +\lorem +\end{solution} + +\end{problem} + +\turnover + +\begin{problem}[title={Sample D}] + +\lorem + +\begin{subproblem} +\lorem +\begin{solution} +\lorem +\end{solution} +\end{subproblem} + +\begin{subproblem} +\lorem +\begin{solution} +\lorem +\end{solution} +\end{subproblem} + +\end{problem} + +\end{sheet} + +\endinput +%% +%% End of file `exfser02.tex'. diff --git a/Master/texmf-dist/doc/latex/exframe/exfser03.tex b/Master/texmf-dist/doc/latex/exframe/exfser03.tex new file mode 100644 index 00000000000..1cb46859cbc --- /dev/null +++ b/Master/texmf-dist/doc/latex/exframe/exfser03.tex @@ -0,0 +1,32 @@ +%% +%% This is file `exfser03.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% exframe.dtx (with options: `samplemultisheet3') +%% +%% Copyright (C) 2011-2019 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. +%% +%%\providecommand{\printsol}{n} +\input{childdoc.def} +\childdocof{exfserm} +\begin{sheet}[due={2019-05-13}] +\input{exfserpe} + +\turnover + +\input{exfserpf} +\end{sheet} + +\endinput +%% +%% End of file `exfser03.tex'. diff --git a/Master/texmf-dist/doc/latex/exframe/exfseraa.tex b/Master/texmf-dist/doc/latex/exframe/exfseraa.tex new file mode 100644 index 00000000000..238fbd825ac --- /dev/null +++ b/Master/texmf-dist/doc/latex/exframe/exfseraa.tex @@ -0,0 +1,95 @@ +%% +%% This is file `exfseraa.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% exframe.dtx (with options: `samplemultisheeta') +%% +%% Copyright (C) 2011-2019 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. +%% +%%\providecommand{\printsol}{n} +\input{childdoc.def} +\childdocof{exfserm} +\begin{sheet}[title={unused problems}] +\begin{problem}[title={Sample X}] + +\ifdefined\mpostuse +\begin{mpostfig}[label={\problemtag-fig}] +interim xu:=1.5cm; +paths[1]:=fullcircle scaled 1xu; +fill paths[1] withgreyscale 0.7; +draw paths[1] withpen pencircle scaled 1pt; +label(btex \figure etex, center(paths[1])); +\end{mpostfig} +\fi + +\lorem + +\begin{subproblem} +\lorem +\begin{center} +\ifdefined\mpostuse\mpostuse{\problemtag-fig}\else figure\fi +\end{center} +\lorem +\end{subproblem} + +\begin{solution} +\lorem +\end{solution} + +\begin{subproblem} +\lorem +\end{subproblem} + +\begin{solution} +\lorem +\end{solution} + +\lorem + +\begin{subproblem} +\lorem +\end{subproblem} + +\begin{solution} +\lorem +\end{solution} + +\end{problem} + +\turnover + +\begin{problem}[title={Sample Y}] + +\lorem + +\begin{subproblem} +\lorem +\begin{solution} +\lorem +\end{solution} +\end{subproblem} + +\begin{subproblem} +\lorem +\begin{solution} +\lorem +\end{solution} +\end{subproblem} + +\end{problem} + +\end{sheet} + +\endinput +%% +%% End of file `exfseraa.tex'. diff --git a/Master/texmf-dist/doc/latex/exframe/exfserm.tex b/Master/texmf-dist/doc/latex/exframe/exfserm.tex new file mode 100644 index 00000000000..7311a023b5e --- /dev/null +++ b/Master/texmf-dist/doc/latex/exframe/exfserm.tex @@ -0,0 +1,231 @@ +%% +%% This is file `exfserm.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% exframe.dtx (with options: `samplemultimain') +%% +%% Copyright (C) 2011-2019 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}[2019/05/01 v3.2 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 +\ifdefined\XMPLangAlt +\hypersetup{pdfsource={}} +\XMPLangAlt{en}{pdfcopyright={Copyright \getexercisedata{date} + \getexercisedata{author}. \copyrightmessage{} \licensemessage}} +\fi +\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'. diff --git a/Master/texmf-dist/doc/latex/exframe/exfsermk.mak b/Master/texmf-dist/doc/latex/exframe/exfsermk.mak new file mode 100644 index 00000000000..af8b29063e4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/exframe/exfsermk.mak @@ -0,0 +1,48 @@ +MAIN = exfserm +SOURCE = exfser +PROBLEM = exfserp +SCRIPT = exfsermk.sh +MAKEFILE = exfsermk.mak +TARGETLIST = Problems Solutions +SHEETNUM = 01 02 03 aa +PREREQS = $(MAIN).tex +SOURCES = $(SHEETNUM:%=$(SOURCE)%.tex) +SHEETS = $(foreach trg,$(TARGETLIST),$(trg).pdf $(SHEETNUM:%=$(trg)%.pdf)) +TARGETS = $(foreach trg,$(TARGETLIST),$(trg).pdf) +GENFILES = $(foreach trg,$(TARGETLIST),$(trg).tex $(SHEETNUM:%=$(trg)%.tex)) +BAKFILES = $(SOURCES) $(MAIN).tex $(MAKEFILE) $(SCRIPT) $(PROBLEM)* + +default: sheets ; +sheets: $(SHEETS) ; +main: $(TARGETS) ; +sheet%: $(foreach trg,$(TARGETLIST),$(trg)%.pdf) ; +all: main sheets ; +sources: $(GENFILES) ; + +$(TARGETS): $(SOURCES) $(PREREQS) + bash ./$(SCRIPT) $@ +$(word 1,$(TARGETLIST))%.pdf: $(SOURCE)%.tex $(PREREQS) + bash ./$(SCRIPT) $@ +$(word 2,$(TARGETLIST))%.pdf: $(SOURCE)%.tex $(PREREQS) + bash ./$(SCRIPT) $@ +$(GENFILES): + bash ./$(SCRIPT) $@ + +touch: + touch $(MAIN).tex +clean: + rm -f $(SHEETNUM:%=$(SOURCE)%.aux) + rm -f $(SHEETNUM:%=$(SOURCE)%.log) + rm -f $(foreach trg,$(TARGETLIST),$(SHEETNUM:%=$(trg)%.log) $(trg).log) + rm -f $(patsubst %,$(MAIN)%,.aux .log .out .toc) + rm -f $(patsubst %,$(MAIN)%,.mp .mpx -*.mps -tmp.log -tmp.mp -tmp.mpx) + rm -f mpxerr.tex mpxerr.log mpxerr.dvi texput.log + rm -f $(patsubst %,$(PROBLEM)*%,.aux .log .mp .mpx -*.mps) + rm -f $(patsubst %,$(PROBLEM)*%,-tmp.log -tmp.mp -tmp.mpx) +clean-bak: + rm -f $(BAKFILES:%=%~) $(BAKFILES:%=%.bak) +clean-all: clean + rm -f $(SHEETS) $(TARGETS) + rm -f $(SHEETNUM:%=$(SOURCE)%.pdf) $(MAIN).pdf + rm -f $(foreach trg,$(TARGETLIST),$(SHEETNUM:%=$(trg)%.tex) $(trg).tex) + rm -f $(PROBLEM)*.pdf diff --git a/Master/texmf-dist/doc/latex/exframe/exfsermk.sh b/Master/texmf-dist/doc/latex/exframe/exfsermk.sh new file mode 100644 index 00000000000..1003fa32522 --- /dev/null +++ b/Master/texmf-dist/doc/latex/exframe/exfsermk.sh @@ -0,0 +1,101 @@ +#!/bin/bash + +if [ -z $1 ] +then + echo "Usage: + $0 number [version] + number: number of sheet, 0 for combined document + version: 1 for problems, 2 for solutions + $0 filename + filename: target file to be compiled" + exit 1 +fi + +num="$1" +ver="$2" +main="exfserm" +source="exfser" +target1="Problems" +target2="Solutions" +sheets="01 02 03 aa" +nl=$'\n' +sheetokay="" +make=".pdf" + +for v in $target1 $target2 +do + if [[ $num =~ ^$v ]] + then + ver=$v + num=${num#$v} + if [[ $num =~ ^.*\.tex$ ]]; then make=".tex"; fi + num=${num%%.*} + fi +done + +if [[ $num =~ ^[0-9]$ ]]; then num="0$num"; fi +if [[ $num == "00" ]]; then num=""; fi + +if [[ -z $num ]]; then sheetokay="okay"; fi +for v in $sheets +do + if [[ "$num" == "$v" ]]; then sheetokay="okay"; fi +done + +if [[ -z $sheetokay ]] +then + echo "error: unknown sheet" + exit 1 +fi + +function docompile +{ + if [[ -z $num ]]; then job=$main; else job=$source$num; fi + for par in -draftmode "" + do + body="\\def\\jobname{$job}\\def\\draftver{n}\\def\\printsol{$sol}" + body="$body\\input{childdoc.def}" + if [[ -z $num ]] + then + body="$body\\childdocforward{$main}" + else + body="$body\\childdocforward[$main]{$source$num}" + fi + drop="This is|entering extended mode|\\write18" + drop="$drop|Preloading the plain mem file|mpost\.mp|plain\.mp" + pdflatex -shell-escape -interaction=batchmode $par \ + -jobname "$target$num" "$body" | grep -vE "$drop" + done + grep -E "Warning|Error|Undefined|Overfull|Underfull" "$target$num.log" +} + +function writesource +{ + body="\\def\\draftver{n}$nl\\def\\printsol{$sol}$nl" + body="$body\\input{childdoc.def}$nl" + if [[ -z $num ]] + then + body="$body\\childdocforward{$main}" + else + body="$body\\childdocforwardprefix[$main]{$target}{$source}" + fi + echo "$body" > $target$num.tex +} + +function process +{ + target=$1 + sol=$2 + if [[ "$make" == ".pdf" ]]; then docompile; else writesource; fi +} + +if [[ -z $ver || "$ver" == "$target1" || $ver = 1 ]] +then + process $target1 n +fi +if [[ -z $ver || "$ver" == "$target2" || $ver = 2 ]] +then + process $target2 y +fi + +echo diff --git a/Master/texmf-dist/doc/latex/exframe/exfserpe.tex b/Master/texmf-dist/doc/latex/exframe/exfserpe.tex new file mode 100644 index 00000000000..0a1867f2ef5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/exframe/exfserpe.tex @@ -0,0 +1,69 @@ +%% +%% This is file `exfserpe.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% exframe.dtx (with options: `samplemultiprobleme') +%% +%% Copyright (C) 2011-2019 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. +%% +%%\providecommand{\printsol}{n} +\input{childdoc.def} +\childdocby{exfserm} +\begin{problem}[title={Sample E}] + +\ifdefined\mpostuse +\begin{mpostfig}[label={\problemtag-fig}] +interim xu:=1.5cm; +paths[1]:=fullcircle scaled 1xu; +fill paths[1] withgreyscale 0.7; +draw paths[1] withpen pencircle scaled 1pt; +label(btex \figure etex, center(paths[1])); +\end{mpostfig} +\fi + +\lorem + +\begin{subproblem} +\lorem +\begin{center} +\ifdefined\mpostuse\mpostuse{\problemtag-fig}\else figure\fi +\end{center} +\lorem +\end{subproblem} + +\begin{solution} +\lorem +\end{solution} + +\begin{subproblem} +\lorem +\end{subproblem} + +\begin{solution} +\lorem +\end{solution} + +\lorem + +\begin{subproblem} +\lorem +\end{subproblem} + +\begin{solution} +\lorem +\end{solution} + +\end{problem} +\endinput +%% +%% End of file `exfserpe.tex'. diff --git a/Master/texmf-dist/doc/latex/exframe/exfserpf.tex b/Master/texmf-dist/doc/latex/exframe/exfserpf.tex new file mode 100644 index 00000000000..efb298501a2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/exframe/exfserpf.tex @@ -0,0 +1,44 @@ +%% +%% This is file `exfserpf.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% exframe.dtx (with options: `samplemultiproblemf') +%% +%% Copyright (C) 2011-2019 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. +%% +%%\providecommand{\printsol}{n} +\input{childdoc.def} +\childdocby{exfserm} +\begin{problem}[title={Sample F}] + +\lorem + +\begin{subproblem} +\lorem +\begin{solution} +\lorem +\end{solution} +\end{subproblem} + +\begin{subproblem} +\lorem +\begin{solution} +\lorem +\end{solution} +\end{subproblem} + +\end{problem} + +\endinput +%% +%% End of file `exfserpf.tex'. |