diff options
Diffstat (limited to 'macros/latex/contrib/xsim/doc')
-rw-r--r-- | macros/latex/contrib/xsim/doc/examples/xsim.texsx-350028.pdf | bin | 95065 -> 130569 bytes | |||
-rw-r--r-- | macros/latex/contrib/xsim/doc/examples/xsim.texsx-350028.tex | 3 | ||||
-rw-r--r-- | macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.pdf | bin | 46008 -> 46008 bytes | |||
-rw-r--r-- | macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.tex | 6 | ||||
-rw-r--r-- | macros/latex/contrib/xsim/doc/xsim-manual.cls | 34 | ||||
-rw-r--r-- | macros/latex/contrib/xsim/doc/xsim.history | 4 | ||||
-rw-r--r-- | macros/latex/contrib/xsim/doc/xsim_manual.pdf | bin | 1233842 -> 1269638 bytes | |||
-rw-r--r-- | macros/latex/contrib/xsim/doc/xsim_manual.tex | 28 |
8 files changed, 55 insertions, 20 deletions
diff --git a/macros/latex/contrib/xsim/doc/examples/xsim.texsx-350028.pdf b/macros/latex/contrib/xsim/doc/examples/xsim.texsx-350028.pdf Binary files differindex ef781218a8..36645464fc 100644 --- a/macros/latex/contrib/xsim/doc/examples/xsim.texsx-350028.pdf +++ b/macros/latex/contrib/xsim/doc/examples/xsim.texsx-350028.pdf diff --git a/macros/latex/contrib/xsim/doc/examples/xsim.texsx-350028.tex b/macros/latex/contrib/xsim/doc/examples/xsim.texsx-350028.tex index ebe090413c..8f49a92f60 100644 --- a/macros/latex/contrib/xsim/doc/examples/xsim.texsx-350028.tex +++ b/macros/latex/contrib/xsim/doc/examples/xsim.texsx-350028.tex @@ -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} diff --git a/macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.pdf b/macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.pdf Binary files differindex 726cbcddb4..e9816a9793 100644 --- a/macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.pdf +++ b/macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.pdf diff --git a/macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.tex b/macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.tex index e967f7f826..bf205bb7fb 100644 --- a/macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.tex +++ b/macros/latex/contrib/xsim/doc/examples/xsim.texwelt-23968.tex @@ -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: diff --git a/macros/latex/contrib/xsim/doc/xsim-manual.cls b/macros/latex/contrib/xsim/doc/xsim-manual.cls index c3353f6c4e..c1d198ab04 100644 --- a/macros/latex/contrib/xsim/doc/xsim-manual.cls +++ b/macros/latex/contrib/xsim/doc/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/macros/latex/contrib/xsim/doc/xsim.history b/macros/latex/contrib/xsim/doc/xsim.history index b72b43baa5..f1b0f860f7 100644 --- a/macros/latex/contrib/xsim/doc/xsim.history +++ b/macros/latex/contrib/xsim/doc/xsim.history @@ -153,4 +153,6 @@ HISTORY: 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 diff --git a/macros/latex/contrib/xsim/doc/xsim_manual.pdf b/macros/latex/contrib/xsim/doc/xsim_manual.pdf Binary files differindex 9f8ec3ae69..dad403c26a 100644 --- a/macros/latex/contrib/xsim/doc/xsim_manual.pdf +++ b/macros/latex/contrib/xsim/doc/xsim_manual.pdf diff --git a/macros/latex/contrib/xsim/doc/xsim_manual.tex b/macros/latex/contrib/xsim/doc/xsim_manual.tex index d3adf284d9..7b1df9ed5d 100644 --- a/macros/latex/contrib/xsim/doc/xsim_manual.tex +++ b/macros/latex/contrib/xsim/doc/xsim_manual.tex @@ -73,7 +73,17 @@ using an up to date \TeX\ distribution, anyway. 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 @@ -916,11 +926,11 @@ If you know type and \property{id} of an exercise you can (re-)insert every 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 @@ existing exercise, \ie, every exercise whose external file exists. \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 @@ yourself in order to achieve certain layouts\footnote{I plan to incorporate \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 |