-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Points question xsim package precision decimal #114
Comments
By applying a zero filling number format ( \xsimsetup{
goal-print={\pgfmathprintnumber[fixed zerofill,precision=1]{#1}}
} If in the future
Full example (the missing \documentclass{article}
\usepackage{tikz}
\usepackage{needspace}
\usepackage[no-files]{xsim}
\xsimsetup{
goal-print={\pgfmathprintnumber[fixed zerofill,precision=1]{#1}}
}
\newcommand*\circled[2]{\tikz[baseline=(char.base)]{
\node[shape=circle,fill,inner sep=2pt, text=white] (char) {#1};}}
%%%%%-Custom Xsim exercises %%%%%
\DeclareExerciseEnvironmentTemplate{custom}
{%\item[\GetExerciseProperty{counter}]
\Needspace*{0\baselineskip}
\noindent
\circled{\XSIMmixedcase{\GetExerciseProperty{counter}}}~~~%
\noindent
\IfInsideSolutionF{%
\GetExercisePropertyT{points}{ % notice the space
(%
\printgoal{\PropertyValue}
\IfExerciseGoalSingularTF{points}
{\XSIMtranslate{point}}
{\XSIMtranslate{points}}%
)%
}
}}
{\vspace{\baselineskip}}
\xsimsetup{
collect = false,
exercise/within = section,
exercise/template = custom,
exercise/the-counter = \arabic{exercise},
}
\begin{document}
\begin{exercise}[points=1.0]
Example 1
\end{exercise}
%\begin{exercise}[points=1.001]
% Example 1
%\end{exercise}
\begin{exercise}[points=2.0]
Example 2
\end{exercise}
\begin{exercise}[points=1.5]
Example 3
\end{exercise}
\end{document} |
Perfect thanks very much |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can I customize the score accurately as a 1.0 is not able to recognize.
Look in MWE
I like show points 1.0 and 2.0, if points is major 1.001 show in points questions, how change this
The text was updated successfully, but these errors were encountered: