texlive[54681] Master/texmf-dist: xsim (4apr20)
commits+karl at tug.org
commits+karl at tug.org
Sun Apr 12 00:52:28 CEST 2020
Revision: 54681
http://tug.org/svn/texlive?view=revision&revision=54681
Author: karl
Date: 2020-04-12 00:52:28 +0200 (Sun, 12 Apr 2020)
Log Message:
-----------
xsim (4apr20)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/xsim/README
trunk/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-350028.pdf
trunk/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-350028.tex
trunk/Master/texmf-dist/doc/latex/xsim/examples/xsim.texwelt-23968.pdf
trunk/Master/texmf-dist/doc/latex/xsim/examples/xsim.texwelt-23968.tex
trunk/Master/texmf-dist/doc/latex/xsim/xsim.history
trunk/Master/texmf-dist/doc/latex/xsim/xsim_manual.pdf
trunk/Master/texmf-dist/doc/latex/xsim/xsim_manual.tex
trunk/Master/texmf-dist/tex/latex/xsim/xsim-manual.cls
trunk/Master/texmf-dist/tex/latex/xsim/xsim.base.code.tex
trunk/Master/texmf-dist/tex/latex/xsim/xsim.blanks.code.tex
trunk/Master/texmf-dist/tex/latex/xsim/xsim.exercises.code.tex
trunk/Master/texmf-dist/tex/latex/xsim/xsim.sty
trunk/Master/texmf-dist/tex/latex/xsim/xsim.templates.code.tex
Modified: trunk/Master/texmf-dist/doc/latex/xsim/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xsim/README 2020-04-11 22:52:02 UTC (rev 54680)
+++ trunk/Master/texmf-dist/doc/latex/xsim/README 2020-04-11 22:52:28 UTC (rev 54681)
@@ -1,5 +1,5 @@
--------------------------------------------------------------------------
-XSIM 2020/03/19 v0.19a
+XSIM 2020/04/04 v0.19b
XSIMVERB 2019/12/29 v0.1a
eXercise Sheets IMproved
Modified: trunk/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-350028.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-350028.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-350028.tex 2020-04-11 22:52:02 UTC (rev 54680)
+++ trunk/Master/texmf-dist/doc/latex/xsim/examples/xsim.texsx-350028.tex 2020-04-11 22:52:28 UTC (rev 54681)
@@ -1,7 +1,6 @@
% http://tex.stackexchange.com/q/350028/
\documentclass{book}
-
-\usepackage{xsimverb}
+\usepackage[T1]{fontenc}
\usepackage{xsim}
\usepackage[most]{tcolorbox}
\tcbuselibrary{skins,breakable}
Modified: trunk/Master/texmf-dist/doc/latex/xsim/examples/xsim.texwelt-23968.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/xsim/examples/xsim.texwelt-23968.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xsim/examples/xsim.texwelt-23968.tex 2020-04-11 22:52:02 UTC (rev 54680)
+++ trunk/Master/texmf-dist/doc/latex/xsim/examples/xsim.texwelt-23968.tex 2020-04-11 22:52:28 UTC (rev 54681)
@@ -7,7 +7,11 @@
% new environment:
\NewDocumentEnvironment{shortsolution}{+b}
- {\SetExerciseProperty{shortsolution}{#1}}
+ {%
+ \edef\ExerciseType{\csname g_xsim_exercise_type_tl\endcsname}%
+ \edef\ExerciseID{\csname g_xsim_exercise_id_tl\endcsname}%
+ \SetExerciseProperty{shortsolution}{#1}%
+ }
{}
% we'll use a description list for the list of short solutions:
Modified: trunk/Master/texmf-dist/doc/latex/xsim/xsim.history
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xsim/xsim.history 2020-04-11 22:52:02 UTC (rev 54680)
+++ trunk/Master/texmf-dist/doc/latex/xsim/xsim.history 2020-04-11 22:52:28 UTC (rev 54681)
@@ -153,4 +153,6 @@
correct values when exercises (of different types) are
nested
- new load-time option `debug' - only for development
- v0.19a 2020/03/18 - fix missing-variant-bug introduced with the last update
+ v0.19a 2020/03/19 - fix missing-variant-bug introduced with the last update
+ v0.19b 2020/04/04 - fix bug in new attribute mechanism which was a problem
+ when `no-files` has been used
Modified: trunk/Master/texmf-dist/doc/latex/xsim/xsim_manual.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/xsim/xsim_manual.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xsim/xsim_manual.tex 2020-04-11 22:52:02 UTC (rev 54680)
+++ trunk/Master/texmf-dist/doc/latex/xsim/xsim_manual.tex 2020-04-11 22:52:28 UTC (rev 54681)
@@ -73,8 +73,18 @@
still change. However, I will try my best to keep the interface stable.
\end{bewareofthedog}
-\section{Motivation and Background}
+I'm currently thinking to make the option \option{no-files} the default
+behavior of \xsim. There is a poll and discussion regarding this question on
+\xsim's github page if you like to give your opinion on this.
+\begin{bewareofthedog}
+ The whole collection mechanism is likely to change completely in the
+ not-so-far future (let's say sometime in the six months from April~2020 or
+ so).
+\end{bewareofthedog}
+
+\section{Motivation, Background}
+
It has been quite a while since I first published
\pkg{exsheets}~\cite{pkg:exsheets} in June 2012. Since then it has gained a
user base and a little bit of popularity as the number of questions on tex.sx
@@ -916,11 +926,11 @@
existing exercise, \ie, every exercise whose external file exists.
\begin{commands}
\command{printexercise}[\marg{type}\marg{csv of ids}]
- \changedversion{0.17a}Inserts the exercise or exercises of type
+ \changedversion{0.17}Inserts the exercise or exercises of type
\meta{type} with the \property{id}s or \property{ID}s given in \meta{csv
of ids}.
\command{xprintexercise}[\marg{type}\marg{csv of ids}]
- \sincechanged{0.16}{0.17a}The same as \cs{printexercise} but expands
+ \sincechanged{0.16}{0.17}The same as \cs{printexercise} but expands
\meta{type} and the items of \meta{csv of ids} before it uses them.
\end{commands}
\begin{example}
@@ -929,6 +939,12 @@
\section{Collecting Exercises}\label{sec:collecting-exercises}
+\begin{bewareofthedog}
+ The whole collection mechanism is likely to change completely in the
+ not-so-far future (let's say sometime in the six months from April~2020 or
+ so).
+\end{bewareofthedog}
+
\subsection{Background}
\xsim\ knows the concept of \enquote{exercise collections}. A collection of
exercises can be useful when you want to print a certain group of exercises
@@ -1555,11 +1571,11 @@
\item \code{\#6}: the \property{bonus-points} property of the exercise
\end{itemize}
\command{XSIMprint}[\Marg{exercise|solution}\marg{type}\marg{id}]
- \sincechanged{0.16}{0.17a}Inserts the either the exercise or the solution
+ \sincechanged{0.16}{0.17}Inserts the either the exercise or the solution
of type \meta{type} with the \property{id} or \property{ID} \meta{id}.
\command{XSIMxprint}[\Marg{exercise|solution}\marg{type}\marg{id}]
- \sincechanged{0.16}{0.17a}The same as \cs{XSIMprint} but expands
- \meta{type} and \meta{id} before it uses them.
+ The same as \cs{XSIMprint} but expands \meta{type} and \meta{id} before it
+ uses them.\sincechanged{0.16}{0.17}
\expandable\command{XSIMtranslate}[\marg{keyword}]
Delivers the translation of \meta{keyword} according to the current
document language (in the meaning of a \pkg{babel}~\cite{pkg:babel} or
Modified: trunk/Master/texmf-dist/tex/latex/xsim/xsim-manual.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xsim/xsim-manual.cls 2020-04-11 22:52:02 UTC (rev 54680)
+++ trunk/Master/texmf-dist/tex/latex/xsim/xsim-manual.cls 2020-04-11 22:52:28 UTC (rev 54681)
@@ -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 at add@version[2]{\csdef{xsimversion#1}{\DTMdate{#2}}}
\renewrobustcmd*\sinceversion[1]{%
- \cnltx at version@note{\GetTranslation{cnltx-introduced}~#1 (\csuse{xsimversion#1})}%
+ \cnltx at version@note{\GetTranslation{cnltx-introduced} #1 (\csuse{xsimversion#1})}%
}
\renewrobustcmd*\changedversion[1]{%
- \cnltx at version@note{\GetTranslation{cnltx-changed}~#1 (\csuse{xsimversion#1})}%
+ \cnltx at 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 at example@title{##1}%
]
\bookmark[level=2,dest=examplefile.\arabic{examplefile}]{\xsim at example@bookmark{##1}}%
- \lstinputlisting[style=cnltx,firstline=7,lastline=15,firstnumber=7]{\xsim at example@texfile at path{##1}}
+ \lstinputlisting[
+ style=cnltx,firstline=7,lastline=15,firstnumber=7]{\xsim at example@texfile at path{##1}}%
\tcblower
\fbox{%
\href
@@ -928,7 +940,8 @@
\xsim at add@example{texwelt-23968}{Long and short solutions}
\xsim at add@example{golatex-80640}{Different versions for students and teachers}
\xsim at add@example{golatex-91339}{Another custom layout with rules}
-
+\xsim at add@example{issues-49}{Different ideas for exams}
+
% ----------------------------------------------------------------------------
% layouts:
@@ -971,6 +984,7 @@
\xsim at add@version{0.18} {2020-02-23}
\xsim at add@version{0.19} {2020-03-16}
\xsim at add@version{0.19a} {2020-03-19}
+\xsim at add@version{0.19b} {2020-04-04}
% ----------------------------------------------------------------------------
\newrobustcmd*\xsimauxfileinfo{%
Modified: trunk/Master/texmf-dist/tex/latex/xsim/xsim.base.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xsim/xsim.base.code.tex 2020-04-11 22:52:02 UTC (rev 54680)
+++ trunk/Master/texmf-dist/tex/latex/xsim/xsim.base.code.tex 2020-04-11 22:52:28 UTC (rev 54681)
@@ -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
Modified: trunk/Master/texmf-dist/tex/latex/xsim/xsim.blanks.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xsim/xsim.blanks.code.tex 2020-04-11 22:52:02 UTC (rev 54680)
+++ trunk/Master/texmf-dist/tex/latex/xsim/xsim.blanks.code.tex 2020-04-11 22:52:28 UTC (rev 54681)
@@ -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:
Modified: trunk/Master/texmf-dist/tex/latex/xsim/xsim.exercises.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xsim/xsim.exercises.code.tex 2020-04-11 22:52:02 UTC (rev 54680)
+++ trunk/Master/texmf-dist/tex/latex/xsim/xsim.exercises.code.tex 2020-04-11 22:52:28 UTC (rev 54681)
@@ -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
Modified: trunk/Master/texmf-dist/tex/latex/xsim/xsim.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xsim/xsim.sty 2020-04-11 22:52:02 UTC (rev 54680)
+++ trunk/Master/texmf-dist/tex/latex/xsim/xsim.sty 2020-04-11 22:52:28 UTC (rev 54681)
@@ -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 .
Modified: trunk/Master/texmf-dist/tex/latex/xsim/xsim.templates.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xsim/xsim.templates.code.tex 2020-04-11 22:52:02 UTC (rev 54680)
+++ trunk/Master/texmf-dist/tex/latex/xsim/xsim.templates.code.tex 2020-04-11 22:52:28 UTC (rev 54681)
@@ -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}
More information about the tex-live-commits
mailing list.