diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/xsim')
-rw-r--r-- | Master/texmf-dist/doc/latex/xsim/HISTORY | 10 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/xsim/README | 6 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-549540.pdf | bin | 0 -> 60853 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-549540.tex | 153 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/xsim/xsim-manual.pdf | bin | 1308757 -> 1353979 bytes |
5 files changed, 163 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/latex/xsim/HISTORY b/Master/texmf-dist/doc/latex/xsim/HISTORY index 0d3f7d417a1..c898ca033c0 100644 --- a/Master/texmf-dist/doc/latex/xsim/HISTORY +++ b/Master/texmf-dist/doc/latex/xsim/HISTORY @@ -7,15 +7,15 @@ Clemens Niederberger Web: https://github.com/cgnieder/xsim E-Mail: contact@mychemistry.eu -------------------------------------------------------------------------- -Copyright 2017--2020 Clemens Niederberger +Copyright 2017--2021 Clemens Niederberger This work may be distributed and/or modified under the -conditions of the LaTeX Project Public License, either version 1.3 +conditions of the LaTeX Project Public License, either version 1.3c 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. +and version 1.3c or later is part of all distributions of LaTeX +version 2008/05/04 or later. This work has the LPPL maintenance status `maintained'. @@ -176,3 +176,5 @@ HISTORY: - make `no-files' the default - new examples - various small fixes + v0.20a 2021/02/01 - re-add missing `layouts' style + - add example texsx-549540 diff --git a/Master/texmf-dist/doc/latex/xsim/README b/Master/texmf-dist/doc/latex/xsim/README index 3407220a293..82ac42689c0 100644 --- a/Master/texmf-dist/doc/latex/xsim/README +++ b/Master/texmf-dist/doc/latex/xsim/README @@ -1,5 +1,5 @@ -------------------------------------------------------------------------- -XSIM 2021/01/31 v0.20 +XSIM 2021/02/01 v0.20a XSIMVERB 2021/01/31 v0.3 eXercise Sheets IMproved @@ -26,9 +26,10 @@ The Current Maintainer of this work is Clemens Niederberger. The xsim package consists of the code files: xsim.sty xsimverb.sty + xsim.style.layouts.code.tex -------------------------------------------------------------------------- The xsim package consists of the documentation files: - README HISTORY + README, HISTORY xsim-manual.tex, xsim-manual.pdf xsim-manual.cls -------------------------------------------------------------------------- @@ -66,6 +67,7 @@ The xsim package consists of the example files: xsim.texsx-395273.tex, xsim.texsx-395273.pdf xsim.texsx-466584.tex, xsim.texsx-466584.pdf xsim.texsx-498299.tex, xsim.texsx-498299.pdf + xsim.texsx-549540.tex, xsim.texsx-549540.pdf xsim.texsx-576998.tex, xsim.texsx-576998.pdf xsim.texsx-580636.tex, xsim.texsx-580636.pdf xsim.texwelt-6698.tex, xsim.texwelt-6698.pdf diff --git a/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-549540.pdf b/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-549540.pdf Binary files differnew file mode 100644 index 00000000000..3dbe7bb7165 --- /dev/null +++ b/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-549540.pdf diff --git a/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-549540.tex b/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-549540.tex new file mode 100644 index 00000000000..332e3d99209 --- /dev/null +++ b/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-549540.tex @@ -0,0 +1,153 @@ +% https://tex.stackexchange.com/q/549540/ +\documentclass[12pt]{article} +\usepackage[T1]{fontenc} + +\usepackage{parskip} +\usepackage{geometry} +\geometry{ a4paper, left=5mm, right=5mm, top=15mm } + +\usepackage{amsmath,amssymb} + +\usepackage{multicol} +\setlength{\columnsep}{1mm} +\setlength{\columnseprule}{0.2pt} + +\usepackage[most]{tcolorbox} + +\usepackage{siunitx} +\usepackage{xsim} +\usepackage{tasks} + +\makeatletter +\newtcolorbox{examtitle}[2][]{ + halign=flush center, + colframe=gray!70!black, + fonttitle=\Large, + enhanced, + breakable, + colback=white, + attach boxed title to top right={yshift=-2pt}, title={#2}, + boxed title size=standard, + boxrule=0pt, + boxed title style={ + sharp corners, + rounded corners=northeast, + colback=tcbcolframe, + boxrule=0pt}, + sharp corners=north, + overlay unbroken={ + \path[fill=tcbcolback] + ([xshift=2pt]title.south west) + to[out=180, in=0] ([xshift=-1.5cm]title.west)-- + (title.west-|frame.west) |- + ([xshift=2pt]title.south west)--cycle; + \path[fill=tcbcolframe] (title.south west) + to[out=180, in=0] ([xshift=-1.5cm]title.west)-- + (title.west-|frame.west) + [rounded corners=\kvtcb@arc] |- + (title.north-|frame.north) + [sharp corners] -| (title.south west); + \draw[line width=.5mm, rounded corners=\kvtcb@arc, + tcbcolframe] + (title.north east) rectangle + (frame.south west); + }, + overlay first={ + \path[fill=tcbcolback] + ([xshift=2pt]title.south west) + to[out=180, in=0] ([xshift=-1.5cm]title.west)-- + (title.west-|frame.west) |- + ([xshift=2pt]title.south west)--cycle; + \path[fill=tcbcolframe] (title.south west) + to[out=180, in=0] ([xshift=-1.5cm]title.west)-- + (title.west-|frame.west) + [rounded corners=\kvtcb@arc] |- + (title.north-|frame.north) + [sharp corners] -| (title.south west); + \draw[line width=.5mm, rounded corners=\kvtcb@arc, + tcbcolframe] + (frame.south west) |- (title.north) -| + (frame.south east); + }, + overlay middle={ + \draw[line width=.5mm, tcbcolframe] + (frame.north west)--(frame.south west) + (frame.north east)--(frame.south east); + }, + overlay last={ + \draw[line width=.5mm, rounded corners=\kvtcb@arc, + tcbcolframe] + (frame.north west) |- (frame.south) -| + (frame.north east); + }, + #1 +} +\makeatother + +\xsimsetup{ + load-style = layouts , + exercise/template = minimal , + exercise/the-counter = \arabic{exercise}. , + exercise/end-hook = \vspace{\baselineskip} +} + +\NewTasksEnvironment[ + label = (\Alph*) , + label-format = \bfseries , + label-width = 21pt +]{choices}[\choice] + +\DeclareExerciseProperty{answer} +\newcommand*\answer[1]{% + \SetExpandedExerciseProperty{answer}{ \thetask\ \unexpanded{#1}}% + #1% +} + +\newcommand*\getanswers{% + \def\betweenanswers{\def\betweenanswers{\hspace{2em}}}% + \ForEachUsedExerciseByID{% + \betweenanswers##3\ExercisePropertyGet{##1}{##2}{answer}% + }% +} + +\begin{document} + +\begin{examtitle}{Test 1} + Angles in parallel lines +\end{examtitle} + +\begin{multicols*}{2} +\begin{exercise} + If the ratio of two supplementary angles is $\frac{4}{11}$, what is the + measure of the small angle? + \begin{choices}(5) + \choice \ang{36} + \choice \ang{44} + \choice \answer{\ang{48}} + \choice \ang{52} + \choice \ang{60} + \end{choices} + \end{exercise} + \begin{exercise} + Is this really a question? + \begin{choices}(4) + \choice \answer{yes} + \choice no + \choice maybe + \choice no idea + \end{choices} + \end{exercise} + \begin{exercise} + This really is a question! + \begin{choices}(4) + \choice yes + \choice \answer{no} + \choice maybe + \choice no idea + \end{choices} + \end{exercise} + \subsection*{Answers} + \getanswers +\end{multicols*} + +\end{document} diff --git a/Master/texmf-dist/doc/latex/xsim/xsim-manual.pdf b/Master/texmf-dist/doc/latex/xsim/xsim-manual.pdf Binary files differindex 93245d124d2..f78f19be587 100644 --- a/Master/texmf-dist/doc/latex/xsim/xsim-manual.pdf +++ b/Master/texmf-dist/doc/latex/xsim/xsim-manual.pdf |