-
Notifications
You must be signed in to change notification settings - Fork 18
Clarify difference between \problemname
and \problemname{}
#350
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
Comments
Some editors warn on stuff like |
I also expect In fact, my favourite definition would be this:
|
and
Does that mean that Then why:
? Also, should we allow an empty title? Why? |
That would be the consequence of viewing Since the semantics is unclear, I would expect a tool (such as The user either meant “Just put the problemname from |
Can this 'complete lack of \problemname implies the yaml one' be implemented nicely purely in latex? Currently we pretty much require With the new suggestion, if there is no \problemname, we will either have to inject it from python, or do some latex magic where we render the |
Hm… I am no longer the LaTeX expert I once was, but my honest answer is “not sure”. I no longer know what to think about this and retract any claim I ever made about this issue. Since overriding the \renewcommand{\problemyamlname}{H$_2$O}
\problemname This adds no overhead to the specification and leaves LaTeX shenanigans to be solved with established LaTeX solutions. But since there are now also |
This last suggestion SGTM. So we require that @niemela does that work with the way kattis/problemtools builds the statements? |
That's a very good point. I.e. if it can't be implemented nicely in LaTeX, maybe we should require it to always be present? (if the title should be rendered, I guess?)
Agreed, but isn't |
I don't see why it wouldn't work. But I really don't see the benefit of (re-)introducing My original question was about the difference between This sounds good to me. ... ...but to dig even further into the weeds. Maybe we shouldn't require |
Ah! So that brings us back to my suggestion at the start here (#350 (comment)).
And indeed, |
Indeed. :) |
If it is a warning, how can I get rid of the warning? |
That seems outside the scope of the spec to me? I.e. that's an implementation detail of any system using the spec.
Agreed. |
If I understand LaTeX correctly, (and our spec),
\problemname
should mean "Insert problem name here", and\problemname{}
should mean "set name to empty string (and insert it here)".Do we want that? An empty name should be an error anyway? Would it be better is
\problemname{}
was specified to mean\problemname
or to be an error?The text was updated successfully, but these errors were encountered: