Kattis / problem-package-format

Kattis problem package format specification
https://www.kattis.com/problem-package-format
9 stars 14 forks source link

Specify Markdown statements #239

Open niemela opened 2 months ago

niemela commented 2 months ago

There should be a section specifying Markdown statements (similar to the section specifying LaTeX).

I think the Markdown dialect we want to us is:

Also we should consider equivalents of all the commands defined for LaTeX:

I would suggest using {{ }} syntax for these. E.g. {{nextsample}} for including the next sample.

mzuenni commented 2 months ago

using {{ }} might conflict with Constants?

RagnarGrootKoerkamp commented 2 months ago

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.

mzuenni commented 2 months ago

but then {{problemname}} will work in markdown but not in latex whereas "normal" constant work everywhere? that could be frustrating for users ^^'

Matistjati commented 2 months ago

The reference implementation (so far): https://github.com/Kattis/problemtools/pull/274

Matistjati commented 2 months ago

We have decided that: