Open niemela opened 2 months ago
using {{ }}
might conflict with Constants?
I think it's nice to actually have the same syntax; both are some kinda of problem-package owned templating, and {{unknown}}
is left alone by variable substitution.
but then {{problemname}}
will work in markdown but not in latex whereas "normal" constant work everywhere? that could be frustrating for users ^^'
The reference implementation (so far): https://github.com/Kattis/problemtools/pull/274
We have decided that:
{{problemname}}
. You should use problem.yaml, and we will automatically add the problem name to the top of the statement. This needs to be specced (maybe it already is?){{includegraphics}}
, as the commonmark syntax for images is simpler.{{nextsample}}
and {{remainingsamples}}
will be supported
There should be a section specifying Markdown statements (similar to the section specifying LaTeX).
I think the Markdown dialect we want to us is:
$
and$$
for mathAlso we should consider equivalents of all the commands defined for LaTeX:
\problemname
\illustration
\nextsample
\remainingsamples
We might not need all of them, but definitely the sample ones.I would suggest using
{{ }}
syntax for these. E.g.{{nextsample}}
for including the next sample.