diff options
author | Karl Berry <karl@freefriends.org> | 2021-02-22 22:20:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-02-22 22:20:48 +0000 |
commit | 1f8a99f91f89d808a685fb90434693017786a8a6 (patch) | |
tree | c0adb02e7b8fd39fc9335d04d8dcd020fb37b570 /Master/texmf-dist/tex/latex/xsim/xsim-manual.cls | |
parent | 4220324e99226b427519e0380034f951f67a011f (diff) | |
parent | d9e54ef03db8d244f5386fc89efffccb3d483a5e (diff) |
sync with trunk 57841 to continue testing
git-svn-id: svn://tug.org/texlive/branches/branch2020@57848 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/xsim/xsim-manual.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/xsim/xsim-manual.cls | 72 |
1 files changed, 50 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/latex/xsim/xsim-manual.cls b/Master/texmf-dist/tex/latex/xsim/xsim-manual.cls index c3353f6c4eb..6d09782c370 100644 --- a/Master/texmf-dist/tex/latex/xsim/xsim-manual.cls +++ b/Master/texmf-dist/tex/latex/xsim/xsim-manual.cls @@ -8,15 +8,15 @@ % 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'. % @@ -29,17 +29,18 @@ % please ignore the contents of this file -- it is not a good example for % coding... % -\ProvidesClass{xsim-manual}[2020/02/23] +\ProvidesClass{xsim-manual}[2021/01/31] \LoadClass[load-preamble,add-index]{cnltx-doc} \RequirePackage{imakeidx} -\RequirePackage[utf8]{inputenc} -\RequirePackage{xsim,xsimverb} +\RequirePackage[use-files]{xsim} \RequirePackage{geometry} \geometry{ - left = 3.8cm , - right = 2.8cm + left = 4cm , + right = 2.5cm , + marginparwidth = 3.3cm , + marginparsep = 5mm } \setcnltx{ @@ -54,6 +55,7 @@ quote-format = \small\biolinumLF , add-cmds = { blank , + activatecollection , addbonus , addpoints , AddtoExerciseGoal , @@ -64,6 +66,7 @@ collectexercises , collectexercisestype , collectexercisesstop , + deactivatecollection , DeclareExerciseCollection , DeclareExerciseEnvironmentTemplate , DeclareExerciseGoal , @@ -202,11 +205,14 @@ @percentchar , bottomrule , breite , + captionsetup , choice , + correct , cs , DeclareFloatingEnvironment , enddescription , endtcolorbox , + ex , hint , hoehe , iflist , @@ -219,9 +225,11 @@ Needspace , NewDocumentCommand , NewDocumentEnvironment , + NewTasksEnvironment , newlist , numberofcolumns , numberofproblems , + option , pkg , pointsandbonus , printA, printC, printE , @@ -234,6 +242,7 @@ tcolorbox , thechapter , thesection , + thetask , toprule , whileboolexpr , xsim @@ -247,19 +256,20 @@ module-sep = {\texttt{/}}% } - +\renewcommand*\versionnoteformat{\tiny\sffamily\RaggedRight} \RequirePackage[en-US]{datetime2} \DTMlangsetup[en-US]{abbr} \newrobustcmd*\xsim@add@version[2]{\csdef{xsimversion#1}{\DTMdate{#2}}} \renewrobustcmd*\sinceversion[1]{% - \cnltx@version@note{\GetTranslation{cnltx-introduced}~#1 (\csuse{xsimversion#1})}% + \cnltx@version@note{\GetTranslation{cnltx-introduced} #1 (\csuse{xsimversion#1})}% } \renewrobustcmd*\changedversion[1]{% - \cnltx@version@note{\GetTranslation{cnltx-changed}~#1 (\csuse{xsimversion#1})}% + \cnltx@version@note{\GetTranslation{cnltx-changed} #1 (\csuse{xsimversion#1})}% } -\newnote*\sincechanged[2]{\GetTranslation{cnltx-introduced}~#1 - (\csuse{xsimversion#1}), changed with version~#2 (\csuse{xsimversion#2})} +\newnote*\sincechanged[2]{% + \GetTranslation{cnltx-introduced} #1, + changed with version #2 (\csuse{xsimversion#2})} \RequirePackage{xsimverb} \ExplSyntaxOn @@ -688,14 +698,13 @@ \RequirePackage{varioref} \RequirePackage{bookmark} +\DeclareExerciseCollection{foo} +\DeclareExerciseCollection{layouts} \xsimsetup{ % clear-aux , path = exercises } -\DeclareExerciseCollection{foo} -\DeclareExerciseCollection{layouts} - \newrobustcmd*\TF{% \colorlet{outside}{.}% \textcolor{red}{\underline{\textcolor{outside}{TF}}}% @@ -814,6 +823,14 @@ { http \c_colon_str //golatex.de/viewtopic,p, \l_tmpa_tl .html } { \color {white} [forum] } } + \tl_if_in:nnT {#1} {issues} + { + \tl_set:Nn \l_tmpa_tl {#1} + \tl_replace_once:Nnn \l_tmpa_tl {-} {/} + \space \href + { https \c_colon_str //github.com/cgnieder/ \l_tmpa_tl } + { \color {white} [github] } + } } \ExplSyntaxOff @@ -844,7 +861,8 @@ title=\xsim@example@title{##1}% ] \bookmark[level=2,dest=examplefile.\arabic{examplefile}]{\xsim@example@bookmark{##1}}% - \lstinputlisting[style=cnltx,firstline=7,lastline=15,firstnumber=7]{\xsim@example@texfile@path{##1}} + \lstinputlisting[ + style=cnltx,firstline=7,lastline=15,firstnumber=7]{\xsim@example@texfile@path{##1}}% \tcblower \fbox{% \href @@ -922,13 +940,18 @@ \xsim@add@example{texsx-370642}{Minimalistic layout} \xsim@add@example{texsx-391530}{Exercises and sub-exercises} \xsim@add@example{texsx-395273}{Different aspects of exercises, highlighted solutions} -\xsim@add@example{texsx-498299}{Multiple choice questions with automated solutions} +\xsim@add@example{texsx-466584}{Flushright Solutions} +\xsim@add@example{texsx-498299}{Multiple choice questions with automated solutions (1)} +\xsim@add@example{texsx-549540}{Multiple choice questions with automated solutions (2)} +\xsim@add@example{texsx-576998}{Exercises at the end of section and sectionwise solutions} +\xsim@add@example{texsx-580636}{Multiple hints per exercise with backlinks} \xsim@add@example{texwelt-6698}{Custom list of exercises} \xsim@add@example{texwelt-15093}{Indicate difficulty level} \xsim@add@example{texwelt-23968}{Long and short solutions} \xsim@add@example{golatex-80640}{Different versions for students and teachers} \xsim@add@example{golatex-91339}{Another custom layout with rules} - +\xsim@add@example{issues-49}{Different ideas for exams} + % ---------------------------------------------------------------------------- % layouts: @@ -971,12 +994,17 @@ \xsim@add@version{0.18} {2020-02-23} \xsim@add@version{0.19} {2020-03-16} \xsim@add@version{0.19a} {2020-03-19} +\xsim@add@version{0.19b} {2020-04-04} +\xsim@add@version{0.20} {2021-01-31} +\xsim@add@version{0.20a} {2021-02-01} +\xsim@add@version{0.20b} {2021-02-02} +\xsim@add@version{0.20c} {2021-02-03} % ---------------------------------------------------------------------------- \newrobustcmd*\xsimauxfileinfo{% \xsim\ writes a lot of stuff to an auxiliary file called - \cs*{jobname}\code{.xsim} (or the common \cs*{jobname}\code{.aux} if you use - option \option{use-aux}) for re-using information on subsequent + \meta{file name}\code{.xsim} (or the common \meta{file name}\code{.aux} if + you use option \option{use-aux}) for re-using information on subsequent compilations. If you add exercises, change properties \etc\ it might happen that wrong information is staying in the auxiliary file and is wrongly used by \xsim. In such cases deleting the auxiliary file and doing a few fresh |