Skip to content

Commit

Permalink
update manual
Browse files Browse the repository at this point in the history
  • Loading branch information
cgnieder committed Feb 12, 2022
1 parent 9829f95 commit b298281
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
1 change: 0 additions & 1 deletion code/xsim.sty
Original file line number Diff line number Diff line change
Expand Up @@ -3183,7 +3183,6 @@
\xsim_set_property:nVnn {#1} \g_xsim_exercise_id_tl {(printed)} {true}
\xsim_set_property:nVnn {#1} \g_xsim_exercise_id_tl {printed} {true}
}
% TODO: add to some type of order list, cf. issue #85
\xsim_exercise_if_use:nVT {#1} \g_xsim_exercise_id_tl
{
\xsim_add_to_list:nV {order} \g_xsim_exercise_id_tl
Expand Down
10 changes: 6 additions & 4 deletions doc/xsim-manual.cls
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@
\begin{cnltxcode}[
step and label={examplefile}{example:##1} ,
sidebyside align=top seam,sidebyside,
righthand width=.3\linewidth,
righthand width=5.2cm,
sidebyside gap=1em,
lower separated=false,
bottom=1mm,
Expand All @@ -874,9 +874,11 @@
type=pdf,
ext=.##1.pdf,
read=.##1.pdf,
pagebox=cropbox,
viewport=4.5cm 18.6cm 8.7cm 23cm,
clip]{\xsim@example@pdffile@path}%
% pagebox=cropbox,
% viewport=4.5cm 18.6cm 8.7cm 23cm,
% clip
width=5cm
]{\xsim@example@pdffile@path}%
}%
}%
\end{cnltxcode}
Expand Down
Binary file modified doc/xsim-manual.pdf
Binary file not shown.
17 changes: 15 additions & 2 deletions doc/xsim-manual.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% !arara: pdflatex: { interaction: nonstopmode }
% !arara: biber
% arara: pdflatex: { interaction: nonstopmode }
% arara: biber
% arara: pdflatex: { interaction: nonstopmode }
% arara: pdflatex: { interaction: nonstopmode }
% !arara: pdflatex: { interaction: nonstopmode }
Expand Down Expand Up @@ -1594,6 +1594,19 @@ \subsubsection{Further Commands for Usage in Template Definitions}
\item \code{\#5}: the \property{points} property of the exercise
\item \code{\#6}: the \property{bonus-points} property of the exercise
\end{itemize}
\command{ForEachUsedExerciseByOrder}[\marg{code}]
Loops\sinceversion{0.21} over each \emph{used} exercise ordered by the
exercise types and within each type by the order they have been used in
the document. Inside \meta{code} you can refer to several properties of
the corresponding exercise:
\begin{itemize}
\item \code{\#1}: the type of the exercise
\item \code{\#2}: the id of the exercise
\item \code{\#3}: the \property{counter} property of the exercise
\item \code{\#4}: the \property{subtitle} property of the exercise
\item \code{\#5}: the \property{points} property of the exercise
\item \code{\#6}: the \property{bonus-points} property of the exercise
\end{itemize}
\command{ForEachPrintedExerciseByID}[\marg{code}]
Loops over each \emph{printed} exercise order by the exercise id. Inside
\meta{code} you can refer to several properties of the corresponding
Expand Down

0 comments on commit b298281

Please sign in to comment.