summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/xsim
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-04-11 22:52:28 +0000
committerKarl Berry <karl@freefriends.org>2020-04-11 22:52:28 +0000
commit904335818c50eecd9c5daa93a43089c78154d187 (patch)
tree627299ab3a07406807127306a3c2c708fe82e03d /Master/texmf-dist/tex/latex/xsim
parent4156d74723a587b3d3684bc631262c948911eba4 (diff)
xsim (4apr20)
git-svn-id: svn://tug.org/texlive/trunk@54681 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/xsim')
-rw-r--r--Master/texmf-dist/tex/latex/xsim/xsim-manual.cls34
-rw-r--r--Master/texmf-dist/tex/latex/xsim/xsim.base.code.tex8
-rw-r--r--Master/texmf-dist/tex/latex/xsim/xsim.blanks.code.tex2
-rw-r--r--Master/texmf-dist/tex/latex/xsim/xsim.exercises.code.tex1
-rw-r--r--Master/texmf-dist/tex/latex/xsim/xsim.sty4
-rw-r--r--Master/texmf-dist/tex/latex/xsim/xsim.templates.code.tex2
6 files changed, 36 insertions, 15 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..c1d198ab04d 100644
--- a/Master/texmf-dist/tex/latex/xsim/xsim-manual.cls
+++ b/Master/texmf-dist/tex/latex/xsim/xsim-manual.cls
@@ -29,7 +29,7 @@
% please ignore the contents of this file -- it is not a good example for
% coding...
%
-\ProvidesClass{xsim-manual}[2020/02/23]
+\ProvidesClass{xsim-manual}[2020/04/04]
\LoadClass[load-preamble,add-index]{cnltx-doc}
\RequirePackage{imakeidx}
@@ -38,8 +38,10 @@
\RequirePackage{geometry}
\geometry{
- left = 3.8cm ,
- right = 2.8cm
+ left = 3.5cm ,
+ right = 3cm ,
+ marginparwidth = 3cm ,
+ marginparsep = 2mm
}
\setcnltx{
@@ -247,19 +249,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
@@ -814,6 +817,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 +855,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
@@ -928,7 +940,8 @@
\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,6 +984,7 @@
\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}
% ----------------------------------------------------------------------------
\newrobustcmd*\xsimauxfileinfo{%
diff --git a/Master/texmf-dist/tex/latex/xsim/xsim.base.code.tex b/Master/texmf-dist/tex/latex/xsim/xsim.base.code.tex
index 3bcfb21d36a..fd478455f6a 100644
--- a/Master/texmf-dist/tex/latex/xsim/xsim.base.code.tex
+++ b/Master/texmf-dist/tex/latex/xsim/xsim.base.code.tex
@@ -216,7 +216,11 @@
% #2: item
% #3: value
\cs_new_protected:Npn \xsim_attribute_set:nnn #1#2#3
- { \cs_gset:cpx {____xsim_attribute_ \tl_to_str:n {#1::#2} :} { \exp_not:n {#3} } }
+ {
+ \cs_gset:cpx
+ {____xsim_attribute_ \tl_to_str:n {#1::#2} :}
+ { \exp_not:n { \exp_not:n {#3} } }
+ }
\cs_generate_variant:Nn \xsim_attribute_set:nnn {nnx}
% #1: attribute
@@ -279,3 +283,5 @@
% ----------------------------------------------------------------------------
\file_input_stop:
2020/03/15 - alternative to property lists for performance optimizations
+2020/03/22 - fix bug in new attribute mechanism which was a problem when
+ `no-files` has been used
diff --git a/Master/texmf-dist/tex/latex/xsim/xsim.blanks.code.tex b/Master/texmf-dist/tex/latex/xsim/xsim.blanks.code.tex
index e2cc6c584ce..6cb2f3b252f 100644
--- a/Master/texmf-dist/tex/latex/xsim/xsim.blanks.code.tex
+++ b/Master/texmf-dist/tex/latex/xsim/xsim.blanks.code.tex
@@ -127,7 +127,7 @@
{ \skip_horizontal:N \l__xsim_blank_line_minimum_length_dim }
}
}
-\cs_generate_variant:Nn \__xsim_blank_skip:n { V }
+\cs_generate_variant:Nn \__xsim_blank_skip:n {V}
% ----------------------------------------------------------------------------
\file_input_stop:
diff --git a/Master/texmf-dist/tex/latex/xsim/xsim.exercises.code.tex b/Master/texmf-dist/tex/latex/xsim/xsim.exercises.code.tex
index 9ba49c68033..5314369ffad 100644
--- a/Master/texmf-dist/tex/latex/xsim/xsim.exercises.code.tex
+++ b/Master/texmf-dist/tex/latex/xsim/xsim.exercises.code.tex
@@ -41,6 +41,7 @@
\int_gzero_new:N \g_xsim_max_id_int
\tl_new:N \l_xsim_current_id_tl
\tl_new:N \g_xsim_exercise_id_tl
+\tl_new:N \g_xsim_exercise_type_tl
\tl_new:N \ExerciseID
\tl_new:N \ExerciseType
\bool_new:N \l____xsim_print_bool
diff --git a/Master/texmf-dist/tex/latex/xsim/xsim.sty b/Master/texmf-dist/tex/latex/xsim/xsim.sty
index 9ab9d386802..cc30ae90528 100644
--- a/Master/texmf-dist/tex/latex/xsim/xsim.sty
+++ b/Master/texmf-dist/tex/latex/xsim/xsim.sty
@@ -29,10 +29,10 @@
\ExplSyntaxOn
-\tl_const:Nn \c_xsim_date_tl {2020/03/19}
+\tl_const:Nn \c_xsim_date_tl {2020/04/04}
\tl_const:Nn \c_xsim_version_major_number_tl {0}
\tl_const:Nn \c_xsim_version_minor_number_tl {19}
-\tl_const:Nn \c_xsim_version_subrelease_tl {a}
+\tl_const:Nn \c_xsim_version_subrelease_tl {b}
\tl_const:Nx \c_xsim_version_number_tl
{
\c_xsim_version_major_number_tl .
diff --git a/Master/texmf-dist/tex/latex/xsim/xsim.templates.code.tex b/Master/texmf-dist/tex/latex/xsim/xsim.templates.code.tex
index 35bd173bba9..f14d7fc87e3 100644
--- a/Master/texmf-dist/tex/latex/xsim/xsim.templates.code.tex
+++ b/Master/texmf-dist/tex/latex/xsim/xsim.templates.code.tex
@@ -25,7 +25,7 @@
% If you have any ideas, questions, suggestions or bugs to report, please
% feel free to contact me.
% ----------------------------------------------------------------------------
-\XSIMmodule{templates}{properties of exercises}
+\XSIMmodule{templates}{templates for typesetting exercises}
\xsim_load_modules:n {base}