Skip to content

Commit

Permalink
docs: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
muzimuzhi committed Oct 18, 2023
1 parent 06e3dba commit 4c59fe5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions doc/xsim-manual.tex
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ \section{New Exercise Types}\label{sec:new-exercise-types}
Declaring a new exercise type will also define a new command:
\begin{commands}
\command{numberof\meta{exercise-env}s}
These commands hold the absolut number of used exercises of type
These commands hold the absolute number of used exercises of type
\meta{type}. The meaning of \meta{exercise-env} will become clear below
when the exercise parameters are explained. It is always the same as the
exercise environment name.
Expand Down Expand Up @@ -470,7 +470,7 @@ \section{New Exercise Types}\label{sec:new-exercise-types}
\end{commands}
If you try to set an already set but fixed parameter like
\parameter{exercise-env} a warning will be written to the log file. For all
parameters that can be changed also options exist wich can be set via
parameters that can be changed also options exist which can be set via
\cs{xsimsetup}. They are explained in
section~\vref{sec:environment-options-hooks}.

Expand Down Expand Up @@ -962,7 +962,7 @@ \subsection{Background}
\item When you want to print a certain group of exercises several times. In
this case you add the exercise to a collection while also using it in the
running text. Somewhere later (or earlier actually) in the document you
can the reprint the collection\footnote{There is another way to do that,
can reprint the collection\footnote{There is another way to do that,
but\dots}.
\item If you only want to print exercises which have certain tags. Maybe
you have some kind of exercise library in an external which you include
Expand All @@ -989,7 +989,7 @@ \subsubsection{Declaring collections}
collection.
\end{commands}
You\sinceversion{0.21} have a choice whether \emph{any} or \emph{all} of the
tags sould match. So \Oarg{topics=algebra,level=1} should probably match
tags should match. So \Oarg{topics=algebra,level=1} should probably match
\emph{all} conditions but the choice is up to you. For each defined collection
an option exists:
\begin{options}
Expand All @@ -1001,7 +1001,7 @@ \subsubsection{Declaring collections}
\end{options}

\subsubsection{Activating collections}
If a collection is not activated per default in can be activated (or
If a collection is not activated per default it can be activated (or
deactivated in the opposite case) with these commands:
\begin{commands}
\command{activatecollection}[\marg{collection name}]
Expand All @@ -1017,7 +1017,7 @@ \subsubsection{Activating collections}
to collections.
\begin{commands}
\command{collectexercises}[\marg{collection name}]
Activates the collectiocollectexercisesn \meta{collection name} which now collects all
Activates the collection \meta{collection name} which now collects all
exercises until the collection is deactivated, starts a group with
\cs*{begingroup} and sets the option \option{collect}, see below.
\command{collectexercisesstop}[\marg{collection name}]
Expand Down Expand Up @@ -1394,11 +1394,11 @@ \subsubsection{Goals}
\cs{IfExerciseGoalTF}\marg{goal}\Marg{=1}\marg{true}\marg{false}.
\command{IfExerciseTypeGoalsSum\TF}[\marg{type}\marg{list of
goals}\marg{relation and value}\marg{true}\marg{false}]
Ckecks the sum of all goals in \meta{list of goals} for the exercises of
Checks the sum of all goals in \meta{list of goals} for the exercises of
type \meta{type} against \meta{relation and value}.
\command{IfExerciseGoalsSum\TF}[\marg{type}\marg{list of
goals}\marg{relation and value}\marg{true}\marg{false}]
Ckecks the sum of all goals in \meta{list of goals} for all exercises of
Checks the sum of all goals in \meta{list of goals} for all exercises of
all types against \meta{relation and value}.
\command{TotalExerciseTypeGoal}[\marg{goal}\marg{type}\marg{singular}\marg{plural}]
Print the sum of goal \meta{goal} for the exercises of type \meta{type}
Expand Down Expand Up @@ -1625,7 +1625,7 @@ \subsubsection{Further Commands for Usage in Template Definitions}
\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
Loops over each \emph{printed} exercise ordered by the exercise id. Inside
\meta{code} you can refer to several properties of the corresponding
exercise:
\begin{itemize}
Expand All @@ -1637,7 +1637,7 @@ \subsubsection{Further Commands for Usage in Template Definitions}
\item \code{\#6}: the \property{bonus-points} property of the exercise
\end{itemize}
\command{ForEachUsedExerciseByID}[\marg{code}]
Loops over each \emph{used} exercise order by the exercise id. Inside
Loops over each \emph{used} exercise ordered by the exercise id. Inside
\meta{code} you can refer to several properties of the corresponding
exercise:
\begin{itemize}
Expand All @@ -1649,7 +1649,7 @@ \subsubsection{Further Commands for Usage in Template Definitions}
\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.17}Inserts the either the exercise or the solution
\sincechanged{0.16}{0.17}Inserts 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}]
The same as \cs{XSIMprint} but expands \meta{type} and \meta{id} before it
Expand Down

0 comments on commit 4c59fe5

Please sign in to comment.