Skip to content
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

latextomoodle : Error with floating numbers #7

Open
Guillaume-Garrigos opened this issue Apr 6, 2021 · 1 comment
Open

latextomoodle : Error with floating numbers #7

Guillaume-Garrigos opened this issue Apr 6, 2021 · 1 comment

Comments

@Guillaume-Garrigos
Copy link
Owner

A collegue of mine reported the following bug:

When using float numbers like 0.0 or 100.0 in the grades, it returns an error like this one : https://tex.stackexchange.com/questions/471842/missing-inserted-for-ifnum-usepackage

It seems to come from an installation issue, but said collegue says his install is up to date

When using integers (0 or 100) the script works, even though the produced pdf doesn't show the percentage grade.

It is very likely to be related to the the code introduced for the issue #6

@Stivanification
Copy link
Contributor

Hm I can't reproduce this bug. Presumably this is related to the line where it is checked in latextomoodle.sty whether an answer is good or bad, more precisely

\ifthenelse{\lengthtest{#1 pt > 0.0pt}}

Perhaps you can ask your colleague whether

\ifthenelse{\lengthtest{100.0 pt > 0.0pt}}

produces an error on his setup and try also with 100 pt instead of 100.0 pt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants