summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/exsheets
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-11-22 00:04:35 +0000
committerKarl Berry <karl@freefriends.org>2013-11-22 00:04:35 +0000
commit9dd6af228b319f176777f85b0b551eda0df6cfbe (patch)
tree796ced742f82bbc992f2c3ef2ee0106b8bfde4f4 /Master/texmf-dist/doc/latex/exsheets
parent7e261e1a8dfc2d4a4f821b843dbbd9c20fd19baa (diff)
exsheets (20nov13)
git-svn-id: svn://tug.org/texlive/trunk@32203 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/exsheets')
-rw-r--r--Master/texmf-dist/doc/latex/exsheets/README4
-rw-r--r--Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdfbin690202 -> 693812 bytes
-rw-r--r--Master/texmf-dist/doc/latex/exsheets/exsheets_en.tex33
3 files changed, 35 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/exsheets/README b/Master/texmf-dist/doc/latex/exsheets/README
index 8869c5c2001..faed4849294 100644
--- a/Master/texmf-dist/doc/latex/exsheets/README
+++ b/Master/texmf-dist/doc/latex/exsheets/README
@@ -1,7 +1,7 @@
--------------------------------------------------------------------------
-EXSHEETS 2013/10/24
+EXSHEETS 2013/11/20
bundled packages:
-the EXSHEETS package v0.10
+the EXSHEETS package v0.11
Yet another package for the creation of exercise sheets
the EXSHEETS-LISTINGS package v0.2
Using listings in exsheets
diff --git a/Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdf b/Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdf
index ac91edfbcfc..3b54dfb80f5 100644
--- a/Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdf
+++ b/Master/texmf-dist/doc/latex/exsheets/exsheets_en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/exsheets/exsheets_en.tex b/Master/texmf-dist/doc/latex/exsheets/exsheets_en.tex
index 547d7257865..54c8e2196c1 100644
--- a/Master/texmf-dist/doc/latex/exsheets/exsheets_en.tex
+++ b/Master/texmf-dist/doc/latex/exsheets/exsheets_en.tex
@@ -70,6 +70,7 @@
examspace,
exlabel,
ForEachQuestion,
+ GetQuestionClass,
GetQuestionProperty,
grade,
includequestions,iflastquestion,
@@ -78,6 +79,7 @@
numberofquestions,
points,pointssum,
PrintIfIncludeActiveF,PrintIfIncludeActiveT,PrintIfIncludeActiveTF,
+ PrintQuestionClassF,PrintQuestionClassT,PrintQuestionClassTF,
printsolutions,
PrintSolutionsF,PrintSolutionsTF,PrintSolutionsT,
questionsincludedlast,QuestionNumber,RenewQuSolPair,
@@ -392,6 +394,10 @@ proposes a solution for the problem of using verbatim material in \ExSheets'
\env{question} and \env{solution} environments. It is presented in
part~\ref{part:listings}.
+\subsection{Version 0.11}
+The commands \cs{GetQuestionClass} and \cs{PrintQuestionClassTF} have been
+added. They're explained in section~\ref{sec:retr-class-value}.
+
\section{Thanks}
I need to thank the many users who gave me feedback so far! For one thing
this shows me that \ExSheets\ is useful to people. It also led to many
@@ -1113,6 +1119,33 @@ now do something like the following:
\end{question}
\end{example}
+\subsection{Retrieving the Class Value in a Question}\label{sec:retr-class-value}
+Sometimes it may be desirable to retrieve the value of a class defined by
+\cs{DeclareQuestionClass} that a question has in order to be able to print,
+say. This is possible with the following commands:
+\begin{commands}
+ \expandable\command{GetQuestionClass}[\marg{class}]
+ Prints the value of \meta{class} a question has. The command is
+ expandable. If the class does not exist or the value is empty the command
+ expands to nothing.
+ \command{PrintQuestionClassTF}[\marg{class}\marg{true}\marg{false}]
+ Test if a question has a non-empty value for class \meta{class} and either
+ leaves \meta{true} or \meta{false} in the input stream. In the
+ \meta{true} argument you can refer to the value with \code{\#1} where you
+ want it printed.
+ \command{PrintQuestionClassT}[\marg{class}\marg{true}]
+ Like \cs{PrintQuestionClassTF} but only has the \meta{true} branch.
+ \command{PrintQuestionClassF}[\marg{class}\marg{false}]
+ Like \cs{PrintQuestionClassTF} but only has the \meta{false} branch.
+\end{commands}
+
+\begin{example}
+ \begin{question}[difficulty=hard]
+ This question has the difficulty level
+ ``\PrintQuestionClassTF{difficulty}{#1}{??}''.
+ \end{question}
+\end{example}
+
\ExplSyntaxOn
\bool_set_false:N \g__exsheets_use_difficulties_bool
\ExplSyntaxOff