From ece52c2cf2361f40a788fc16e8a7753e83c53daf Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 29 Jan 2016 00:15:01 +0000 Subject: exsheets (28jan16) git-svn-id: svn://tug.org/texlive/trunk@39499 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/exsheets/README | 8 +- .../texmf-dist/doc/latex/exsheets/exsheets_en.pdf | Bin 685729 -> 677185 bytes .../texmf-dist/doc/latex/exsheets/exsheets_en.tex | 128 ++++++++++----------- Master/texmf-dist/tex/latex/exsheets/exsheets.sty | 70 +++++------ 4 files changed, 97 insertions(+), 109 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/exsheets/README b/Master/texmf-dist/doc/latex/exsheets/README index 4da71db995a..7bc234e602a 100644 --- a/Master/texmf-dist/doc/latex/exsheets/README +++ b/Master/texmf-dist/doc/latex/exsheets/README @@ -1,9 +1,9 @@ -------------------------------------------------------------------------- -EXSHEETS 2016/01/26 +EXSHEETS 2016/01/28 bundled packages: -the EXSHEETS package v0.21 +the EXSHEETS package v0.21a Yet another package for the creation of exercise sheets -the EXSHEETS-LISTINGS package v0.21-beta +the EXSHEETS-LISTINGS package v0.21a Using listings in exsheets -------------------------------------------------------------------------- @@ -11,7 +11,7 @@ Clemens Niederberger Web: http://www.mychemistry.eu/forums/forum/exsheets/ E-Mail: contact@mychemistry.eu -------------------------------------------------------------------------- -Copyright 2011-2015 Clemens Niederberger +Copyright 2011-2016 Clemens Niederberger This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 diff --git a/Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdf b/Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdf index cc0c2a129b3..c36272e267b 100644 Binary files a/Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdf and b/Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdf differ diff --git a/Master/texmf-dist/doc/latex/exsheets/exsheets_en.tex b/Master/texmf-dist/doc/latex/exsheets/exsheets_en.tex index 9907caee71a..61c8b904c31 100644 --- a/Master/texmf-dist/doc/latex/exsheets/exsheets_en.tex +++ b/Master/texmf-dist/doc/latex/exsheets/exsheets_en.tex @@ -311,73 +311,73 @@ used to bundle the packages \pkg{tasks} and \pkg{cntformats}\changedversion{0.15}. They're available now as packages of their own as well. -\section{Installation and Documentation} -If you install \ExSheets\ manually beware to put the files -\begin{itemize} - \item[]\verb+exsheets_headings.def+ - \item[]\verb+exsheets_headings.cfg+ -\end{itemize} -in the same directory as the \code{exsheets.sty} file\footnote{That is, a - directory like \code{texmf-local/tex/latex/exsheets}, probably}. - -As with every manual package installation you need to make sure to put the -files in a directory where \TeX\ can find them and afterwards update the -database. - -\subsection{The \pkg*{tasks} Package} -The \pkg{tasks} package~\cite{pkg:tasks} used to be part of the \ExSheets\ -bundle but is a package of its own now\changedversion{0.15} and released -independently. You can find it as every other package on \ctan\ and in a full -\TeX~Live or \hologo{MiKTeX} installation. - -\subsection{The \pkg*{cntformats} Package} -The \pkg{cntformats} package~\cite{pkg:cntformats} used to be part of the -\ExSheets\ bundle but is a package of its own now\changedversion{0.15} and -released independently. You can find it as every other package on \ctan\ and -in a full \TeX~Live or \hologo{MiKTeX} installation. - -\subsection{The \pkg*{translations} Package} -The \pkg{translations} package~\cite{pkg:translations} used to be part of the -\ExSheets\ bundle but is a package of its own now\changedversion{0.9i} and -released independently. You can find it as every other package on \ctan\ and -in a full \TeX~Live or \hologo{MiKTeX} installation. +% \section{Installation and Documentation} +% If you install \ExSheets\ manually beware to put the files +% \begin{itemize} +% \item[]\verb+exsheets_headings.def+ +% \item[]\verb+exsheets_headings.cfg+ +% \end{itemize} +% in the same directory as the \code{exsheets.sty} file\footnote{That is, a +% directory like \code{texmf-local/tex/latex/exsheets}, probably}. + +% As with every manual package installation you need to make sure to put the +% files in a directory where \TeX\ can find them and afterwards update the +% database. + +% \subsection{The \pkg*{tasks} Package} +% The \pkg{tasks} package~\cite{pkg:tasks} used to be part of the \ExSheets\ +% bundle but is a package of its own now\changedversion{0.15} and released +% independently. You can find it as every other package on \ctan\ and in a full +% \TeX~Live or \hologo{MiKTeX} installation. + +% \subsection{The \pkg*{cntformats} Package} +% The \pkg{cntformats} package~\cite{pkg:cntformats} used to be part of the +% \ExSheets\ bundle but is a package of its own now\changedversion{0.15} and +% released independently. You can find it as every other package on \ctan\ and +% in a full \TeX~Live or \hologo{MiKTeX} installation. + +% \subsection{The \pkg*{translations} Package} +% The \pkg{translations} package~\cite{pkg:translations} used to be part of the +% \ExSheets\ bundle but is a package of its own now\changedversion{0.9i} and +% released independently. You can find it as every other package on \ctan\ and +% in a full \TeX~Live or \hologo{MiKTeX} installation. \section{News} \begin{description} -\item[Version 0.7] - With version~0.7 there has been a potentially breaking change: the - \code{tasks} environment previously provided by \ExSheets\ has been - extracted into a package of its own. This does not change any syntax - \emph{per se}. However, if you used custom settings then you'll probably run - into some problems. The options for the environment are no longer set with - \cs{SetupExSheets} but with \cs{settasks}. Also the object that is used for - the list template and its instances has been renamed from - \code{exsheets-tasks} into \code{tasks}. - - What's probably even more of a breaking change is a syntax difference of the - \code{tasks} environment: the optional argument for the number of columns is - \emph{no longer set in braces but parentheses}. This is deliberate as it - reflects the optional nature of the argument better and is consistent with - the syntax of \cs{NewTasks}, too. - - Additionally the labels of the list got an additional offset of \code{1ex} - from the items which will lead to slightly different output. In some cases - this might actually lead to the most annoying changes. In this case say - \cs{settasks}\Marg{label-offset=0pt} which should cure things again. - - I am very sorry for any inconvenience! I am trying to keep such changes as - minimal and rare as possibly. However, it is not always avoidable when a - package is new and still a child. It will grow up eventually. - - \ExSheets' other packages -- \href{tasks_en.pdf}{\Tasks} and - \href{cntformats_en.pdf}{\cntformats} -- have gotten their own documentation - which are essentially extracted from this very document you're reading now. - This manual contains links to the respective manuals. - -\item[Version v0.9i] - The \pkg{translations} package~\cite{pkg:translations} is no longer part of - the \ExSheets\ bundle. From now on (July~17.\@ 2013) it is provided as a - package of its own. +% \item[Version 0.7] +% With version~0.7 there has been a potentially breaking change: the +% \code{tasks} environment previously provided by \ExSheets\ has been +% extracted into a package of its own. This does not change any syntax +% \emph{per se}. However, if you used custom settings then you'll probably run +% into some problems. The options for the environment are no longer set with +% \cs{SetupExSheets} but with \cs{settasks}. Also the object that is used for +% the list template and its instances has been renamed from +% \code{exsheets-tasks} into \code{tasks}. + +% What's probably even more of a breaking change is a syntax difference of the +% \code{tasks} environment: the optional argument for the number of columns is +% \emph{no longer set in braces but parentheses}. This is deliberate as it +% reflects the optional nature of the argument better and is consistent with +% the syntax of \cs{NewTasks}, too. + +% Additionally the labels of the list got an additional offset of \code{1ex} +% from the items which will lead to slightly different output. In some cases +% this might actually lead to the most annoying changes. In this case say +% \cs{settasks}\Marg{label-offset=0pt} which should cure things again. + +% I am very sorry for any inconvenience! I am trying to keep such changes as +% minimal and rare as possibly. However, it is not always avoidable when a +% package is new and still a child. It will grow up eventually. + +% \ExSheets' other packages -- \href{tasks_en.pdf}{\Tasks} and +% \href{cntformats_en.pdf}{\cntformats} -- have gotten their own documentation +% which are essentially extracted from this very document you're reading now. +% This manual contains links to the respective manuals. + +% \item[Version v0.9i] +% The \pkg{translations} package~\cite{pkg:translations} is no longer part of +% the \ExSheets\ bundle. From now on (July~17.\@ 2013) it is provided as a +% package of its own. \item[Version 0.10] The \ExSheets\ family has got a new member: \ExSheetslistings. This package diff --git a/Master/texmf-dist/tex/latex/exsheets/exsheets.sty b/Master/texmf-dist/tex/latex/exsheets/exsheets.sty index 67ddf52f531..8e2ff302e89 100644 --- a/Master/texmf-dist/tex/latex/exsheets/exsheets.sty +++ b/Master/texmf-dist/tex/latex/exsheets/exsheets.sty @@ -28,8 +28,8 @@ \RequirePackage { expl3 , xparse } \ExplSyntaxOn -\tl_const:Nn \c_exsheets_date_tl {2016/01/26} -\tl_const:Nn \c_exsheets_version_tl {0.21} +\tl_const:Nn \c_exsheets_date_tl {2016/01/28} +\tl_const:Nn \c_exsheets_version_tl {0.21a} \tl_const:Nn \c_exsheets_info_tl {Yet~ another~ package~ for~ the~ creation~ of~ exercise~ sheets~ and~ exams.} @@ -1702,7 +1702,7 @@ \cs_new:Npn \exsheets_get_question_property:nn #1#2 { \prop_if_in:cnTF { g__exsheets_question_property_#1_prop } {#2} - { \prop_get:cn { g__exsheets_question_property_#1_prop } {#2} } + { \prop_item:cn { g__exsheets_question_property_#1_prop } {#2} } { ?? } } \cs_generate_variant:Nn \exsheets_get_question_property:nn { no } @@ -2416,11 +2416,10 @@ { \prop_map_inline:Nn \g_exsheets_question_identification_prop { - \prop_if_in:NnT \g__exsheets_solutions_names_prop {##1} - { - \__exsheets_print_solutions_section:nnn {##1} {##2} - { \arabic{section} } - } + \__exsheets_print_solutions_section:nnn + {##1} + {##2} + { \arabic{section} } } } { @@ -2442,21 +2441,15 @@ { \prop_map_inline:Nn \g_exsheets_question_identification_prop { - \prop_if_in:NnT \g__exsheets_solutions_names_prop {##1} - { - \__exsheets_print_solutions_section:nnn - {##1} {##2} { \l__exsheets_tmpa_int } - } + \__exsheets_print_solutions_section:nnn + {##1} {##2} { \l__exsheets_tmpa_int } } \int_incr:N \l__exsheets_tmpa_int } } { \prop_map_inline:Nn \g_exsheets_question_identification_prop - { - \prop_if_in:NnT \g__exsheets_solutions_names_prop {##1} - { \__exsheets_print_solutions_section:nnn {##1} {##2} {#1} } - } + { \__exsheets_print_solutions_section:nnn {##1} {##2} {#1} } } } @@ -2474,11 +2467,8 @@ { \prop_map_inline:Nn \g_exsheets_question_identification_prop { - \prop_if_in:NnT \g__exsheets_solutions_names_prop {##1} - { - \__exsheets_print_solutions_chapter:nnn {##1} {##2} - { \arabic{chapter} } - } + \__exsheets_print_solutions_chapter:nnn {##1} {##2} + { \arabic{chapter} } } } { @@ -2500,23 +2490,17 @@ { \prop_map_inline:Nn \g_exsheets_question_identification_prop { - \prop_if_in:NnT \g__exsheets_solutions_names_prop {##1} - { - \__exsheets_print_solutions_chapter:nnn - {##1} - {##2} - { \l__exsheets_tmpa_int } - } + \__exsheets_print_solutions_chapter:nnn + {##1} + {##2} + { \l__exsheets_tmpa_int } } \int_incr:N \l__exsheets_tmpa_int } } { \prop_map_inline:Nn \g_exsheets_question_identification_prop - { - \prop_if_in:NnT \g__exsheets_solutions_names_prop {##1} - { \__exsheets_print_solutions_chapter:nnn {##1} {##2} {#1} } - } + { \__exsheets_print_solutions_chapter:nnn {##1} {##2} {#1} } } } @@ -2562,14 +2546,17 @@ % \prop_map_function:NN \g_exsheets_question_identification_prop \cs_new_protected:Npn \exsheets_print_solutions_if:nnn #1#2#3 { - \int_set_eq:NN - \l__exsheets_current_sec_int - \l__exsheets_counter_sec_int - \int_set_eq:NN - \l__exsheets_current_ch_int - \l__exsheets_counter_ch_int - \__exsheets_read_number:w #3 \q_stop - \__exsheets_print_solution_if:nn {#2} {#1} + \prop_if_in:NnT \g__exsheets_solutions_names_prop {#1} + { + \int_set_eq:NN + \l__exsheets_current_sec_int + \l__exsheets_counter_sec_int + \int_set_eq:NN + \l__exsheets_current_ch_int + \l__exsheets_counter_ch_int + \__exsheets_read_number:w #3 \q_stop + \__exsheets_print_solution_if:nn {#2} {#1} + } } % print by ID: @@ -3296,6 +3283,7 @@ HISTORY: \g_exsheets_question_identification_prop - make question properties accessable when question is not printed +2016/01/26 v0.21a - remove deprecated \prop_get:Nn (=> \prop_item:Nn) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % TODO: -- cgit v1.2.3