diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/exframe/exfsamp.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/exframe/exfsamp.tex | 109 |
1 files changed, 100 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/latex/exframe/exfsamp.tex b/Master/texmf-dist/doc/latex/exframe/exfsamp.tex index b837f9b4e33..2709c4c090c 100644 --- a/Master/texmf-dist/doc/latex/exframe/exfsamp.tex +++ b/Master/texmf-dist/doc/latex/exframe/exfsamp.tex @@ -17,7 +17,7 @@ %% version 2005/12/01 or later. %% \NeedsTeXFormat{LaTeX2e}[1996/12/01] -\ProvidesFile{exfsamp.tex}[2020/01/11 v3.31 standalone sample for exframe] +\ProvidesFile{exfsamp.tex}[2020/02/24 v3.4 standalone sample for exframe] \documentclass[12pt]{article} \usepackage{geometry} @@ -29,10 +29,18 @@ \usepackage{amsmath} \usepackage{hyperref} + +\PassOptionsToPackage{loadlang=en|de}{metastr} +\PassOptionsToPackage{course=true}{metastr} +%%\usepackage{metastr} +%%\metasetlang{de} + \usepackage[extstyle]{exframe} -\exercisesetup{solutions=true} -%%\exercisesetup{solutions=false} +%%\exercisesetup{solutions=true} +\exercisesetup{solutions=false} + +\exercisesetup{autolabelproblem=true} \exercisestyle{plainheader} \exerciseconfig{composeheaderbelowright}{\getsheetdata{points}}% @@ -46,13 +54,20 @@ \hspace{-\getexerciseconfig{skipsubprobleminfo}}*}}% {}{}{\getsubproblempoints{}}} +\ifdefined\metaset +\metasetterm[en]{sheet}{Exercise Sheet} +\metasetterm[en]{sheets}{Exercise Sheets} +\metasetterm[de]{sheet}{\"Ubungsblatt} +\metasetterm[de]{sheets}{\"Ubungsbl\"atter} +\else \exerciseconfig{termsheet}{\"Ubungsblatt} \exerciseconfig{termsheets}{\"Ubungsbl\"atter} +\fi \exercisestyle{problempointsat=margin} \reversemarginpar \exerciseconfig{composepointsmargin}[1]{#1p.} -\exerciseconfig{composepointspairmargin}[2]{ +\exerciseconfig{composepointspairmargin}[2]{% \ifdim#2pt=0pt#1p.% \else\ifdim#1pt=0pt+#2p.% \else#1+#2p.% @@ -66,27 +81,65 @@ \exercisestyle{solutionbelow=problem} \exercisestyle{solutionsep} +\exercisesetup{pdfdata=sheet} + +\ifdefined\metaset +\metaset[sep]{subtitle}{, } +\metaset{subtitle}{\ifsolutions\metatranslate[#1]{solutions} \fi% + \metaif[use]{sheettitle} + {\metapick[#1]{sheettitle}} + {\metapick[#1]{material}}} +\metaset{author}{\exerciseifempty{\getsheetdata{author}}% + {\metapick[#1]{instructor}}{\metapick[#1]{sheetauthor}}, + \metapick[#1]{institution}} +\else \exerciseconfig{composemetasheet}[2]{\getexercisedata{course}, + \ifsolutions\getexerciseconfig{termsolutions} \fi% \exerciseifempty{#2}{\getexerciseconfig{termsheet} #1}{#2}} - -\exercisesetup{pdfdata=sheet} \exercisedata{title=% - {\getexercisedata{course}, \getexercisedata{material}}} + {\getexercisedata{course}, + \ifsolutions\getexercisedata{solutions} \fi% + \getexercisedata{material}}} \exercisedata{author=% {\getexercisedata{instructor}, \getexercisedata{institution}}} - +\fi + +\ifdefined\metaset +\metaset{institution}{Katharinen-Volksschule} +\metaset[de]{course}{Mathematik} +\metaset[en]{course}{Mathematics} +\metaset{instructor}{J.\ G.\ B\"uttner} +\metaset{period}{ca.\ 1786} +\metaset[de]{material}{\"Ubungsaufgaben} +\metaset[en]{material}{Exercise Problems} +\else \exercisedata{institution={Katharinen-Volksschule}} \exercisedata{course={Mathematik}} \exercisedata{instructor={J.\ G.\ B\"uttner}} \exercisedata{period={ca.\ 1786}} \exercisedata{material={\"Ubungsaufgaben}} +\fi \begin{document} -\begin{sheet}[number=5] +\begin{sheet}[number=5,label={sheet5}] \begin{problem}[title={Sums},points=99+4] +\exerciseloopstr{\getsubproblemlist{}}{c}% +\hfill\begin{tabular}{c|\exerciseloopret|c} +\exerciseloop{\getsubproblemlist{}} + {&\ref{\getexerciseconfig{labelsubproblem}{#1}}} +&\ref{prob:\problemtag}\\\hline +\getexerciseconfig{termpoints} +\exerciseloop{\getsubproblemlist{}}{&\extractpoints{\getsubproblempoints{#1}}} +&\extractpoints{\getproblempoints{}} +\\ +extra +\exerciseloop{\getsubproblemlist{}}{&\extractpoints*{\getsubproblempoints{#1}}} +&\extractpoints*{\getproblempoints{}} +\end{tabular} + This problem deals with sums and series. \begin{subproblem}[points=2,difficulty=simple,label={\problemtag-simplesum}] @@ -215,6 +268,44 @@ This is beyond the scope of this example. \marginpar{\footnotesize\raggedright does not fit here.\par} \end{solution} +\ifsolutions\else +\textbf{Grading:}\par +\exerciseloopstr{\getproblemlist{}}{|c} +\begin{tabular}{|c|\exerciseloopret||c|}\hline +\getexerciseconfig{termsheet} \ref{sheet5} +\exerciseloop{\getproblemlist{*}} + {&\ref{\getexerciseconfig{labelproblem}{#1}}} +&total +\\\hline +value +\exerciseloop{\getproblemlist{*}} + {&\extractpoints{\getproblempoints{#1}}}% +&\extractpoints{\getsheetpoints{}} +\\\hline +\exerciseloop{\getproblemlist{*}}{&} +&\\\hline +\end{tabular}\qquad +\exerciseloop{\getproblemlist{*}}{ + \exerciseloopstr{\getsubproblemlist{#1}}{|c} + \ifnum\value{exerciseloop}>0\relax + \begin{tabular}{|c|\exerciseloopret||c|}\hline + \getexerciseconfig{termproblem} \ref{\getexerciseconfig{labelproblem}{#1}} + \exerciseloop{\getsubproblemlist{#1}} + {&\ref{\getexerciseconfig{labelsubproblem}{##1}}} + &total + \\\hline + value + \exerciseloop{\getsubproblemlist{#1}} + {&\extractpoints{\getsubproblempoints{##1}}}% + &\extractpoints{\getproblempoints{#1}} + \\\hline + \exerciseloop{\getsubproblemlist{#1}}{&} + &\\\hline + \end{tabular}\quad + \fi +} +\fi + \end{sheet} \end{document} |