diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/xsim/examples')
10 files changed, 78 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-16824.pdf b/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-80640.pdf Binary files differindex 76cf1617cbd..76cf1617cbd 100644 --- a/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-16824.pdf +++ b/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-80640.pdf diff --git a/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-16824.tex b/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-80640.tex index 3a324d4221f..5ccdff63a45 100644 --- a/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-16824.tex +++ b/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-80640.tex @@ -1,4 +1,4 @@ -% http://golatex.de/schueler-und-lehrerloesung-im-gleichen-texfile-t16824.html +% http://golatex.de/viewtopic,p,80640.html \documentclass[fontsize=12pt,parskip=half]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} diff --git a/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-18844.pdf b/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-91339.pdf Binary files differindex 97cb4659e06..97cb4659e06 100644 --- a/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-18844.pdf +++ b/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-91339.pdf diff --git a/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-18844.tex b/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-91339.tex index aa49dd64e1b..8ae03971c56 100644 --- a/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-18844.tex +++ b/Master/texmf-dist/doc/latex/xsim/examples/xsim.golatex-91339.tex @@ -1,4 +1,4 @@ -% http://golatex.de/aufgabe-loesungs-umgebung-t18844.html +% http://golatex.de/viewtopic,p,91339.html \documentclass[18pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} diff --git a/Master/texmf-dist/doc/latex/xsim/examples/xsim.hints.pdf b/Master/texmf-dist/doc/latex/xsim/examples/xsim.hints.pdf Binary files differindex 6a6dab99cca..a34fbd8f79c 100644 --- a/Master/texmf-dist/doc/latex/xsim/examples/xsim.hints.pdf +++ b/Master/texmf-dist/doc/latex/xsim/examples/xsim.hints.pdf diff --git a/Master/texmf-dist/doc/latex/xsim/examples/xsim.hints.tex b/Master/texmf-dist/doc/latex/xsim/examples/xsim.hints.tex index 5fa3ed4ec8f..10a0bffed9e 100644 --- a/Master/texmf-dist/doc/latex/xsim/examples/xsim.hints.tex +++ b/Master/texmf-dist/doc/latex/xsim/examples/xsim.hints.tex @@ -21,7 +21,7 @@ \end{description} } -\newcommand\hint[1]{\SetExerciseProperty{\ExerciseType}{\ExerciseID}{hint}{#1}} +\newcommand\hint[1]{\SetExerciseProperty{hint}{#1}} \begin{document} diff --git a/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-391530.tex b/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-391530.tex index 48bf94cd6eb..1deafe5fb00 100644 --- a/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-391530.tex +++ b/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-391530.tex @@ -1,3 +1,4 @@ +% https://tex.stackexchange.com/q/391530 \documentclass{article} \usepackage{xsim} diff --git a/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-395273.pdf b/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-395273.pdf Binary files differnew file mode 100644 index 00000000000..c3796c8ee0c --- /dev/null +++ b/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-395273.pdf diff --git a/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-395273.tex b/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-395273.tex new file mode 100644 index 00000000000..fe6152ed961 --- /dev/null +++ b/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-395273.tex @@ -0,0 +1,74 @@ +\documentclass{article} +\usepackage{xsim,tcolorbox,needspace} + +% declare a boolean property: +\DeclareExerciseProperty*{short} +% declare a tag like property: +\DeclareExerciseTagging{level} + +% declare a template which typesets exercises differently according to given +% properties: +\DeclareExerciseEnvironmentTemplate{exercise} + {% + \renewcommand*\theenumi{\theexercise.\arabic{enumi}}% + \par\addvspace{\baselineskip} + \Needspace*{2\baselineskip} + \noindent + \GetExercisePropertyT{level}{\marginpar{\sffamily Level: #1}}% + \textbf{\XSIMmixedcase{\GetExerciseName}~\GetExerciseProperty{counter}.} % + \GetExercisePropertyT{subtitle}{\textit{#1}}% + \IfExerciseBooleanPropertyF{short}{\par\noindent}% + } + {} + +% declare a tcolorbox template for the solutions: +\DeclareExerciseEnvironmentTemplate{solution} + {\tcolorbox[colback=yellow,colframe=red]} + {\endtcolorbox} + +% declare a user command for short answers: +\NewDocumentCommand\answer{m}{% + \IfSolutionPrintT{% + \UseExerciseTemplate{begin}{solution}% + #1% + \UseExerciseTemplate{end}{solution}% + }{}% +} + +% setup exercises and solutions: +\SetExerciseParameters{exercise}{ + exercise-template = exercise , + solution-template = solution +} + +% remove this option to hide the answers: +\xsimsetup{solution/print=true} + +\usepackage{lipsum} + +\begin{document} + +\begin{exercise}[level=hard,short] + Just a short exercise +\end{exercise} +\begin{solution} + The somewhat longer solution to the short exercise. \lipsum[1] +\end{solution} + +\begin{exercise}[subtitle=This one has a title,level=easy] + Answer the following questions. + \begin{enumerate} + \item question \answer{answer} + \item question \answer{answer} + \end{enumerate} +\end{exercise} + +\begin{exercise} + A long exercise. \lipsum[4]\answer{The answer} +\end{exercise} + +\begin{exercise}[level=medium,short] + Another short exercise.\answer{The answer} +\end{exercise} + +\end{document} diff --git a/Master/texmf-dist/doc/latex/xsim/examples/xsim.various.pdf b/Master/texmf-dist/doc/latex/xsim/examples/xsim.various.pdf Binary files differindex b8f033c7599..d0406e830ce 100644 --- a/Master/texmf-dist/doc/latex/xsim/examples/xsim.various.pdf +++ b/Master/texmf-dist/doc/latex/xsim/examples/xsim.various.pdf |