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

Decimal argument for Problem numbers. #2

Open
mcoimbra opened this issue Jul 7, 2016 · 2 comments
Open

Decimal argument for Problem numbers. #2

mcoimbra opened this issue Jul 7, 2016 · 2 comments

Comments

@mcoimbra
Copy link

mcoimbra commented Jul 7, 2016

First off, this template looks very neat, good job!

Question: from what I understood in your LaTeX code, the section count automatically increments. The counter is used for the numbering, but it is also possible to specify the number by argument when beginning a new problem. How hard would it be to enable this:

\begin{homeworkProblem}[2.2] % I AM STARTING PROBLEM 2.2 !!!
    Give an appropriate positive constant \(c\) such that \(f(n) \leq c \cdot
    ....
\end{homeworkProblem}
@jdavis
Copy link
Owner

jdavis commented Jul 8, 2016

Thank you!

That might be covered. Does this section cover what you want? https://github.com/jdavis/latex-homework-template/blob/master/homework.tex#L517-L539

You can see it in action here: https://github.com/jdavis/latex-homework-template#adjustable-problem-numbers

@mcoimbra
Copy link
Author

mcoimbra commented Jul 8, 2016

Well, that is the thing: it does not compile if the argument is a decimal number.


! Missing = inserted for \ifnum.
<to be read again> 
                   .
l.167 \begin{homeworkProblem}[3.3]

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