olimpiadi-informatica/task-maker-rust

Strange statement generation if statement.tex is used and not a language specific .tex

Opened this issue · 0 comments

Minimal reproducible example: task-maker-rust-buggy-statement.zip

Output of task-maker-rust

The problem, if I understood correctly the relevant sections of the code, is that the template gets generated correctly, but it's overwritten here (on line 145):
https://github.com/edomora97/task-maker-rust/blob/ea0716f28dc7a2dbef1272bbbb66dbdeea3fc66c/task-maker-format/src/ioi/statement/booklet.rs#L143-L146
(so the "naked" tex gets \subimport-ed, without the \begin{problem}... stuff)

I don't exactly know if it's a bug or not, but it's certainly a strange behavior. I believe there shouldn't be any errors for this statement. The best behavior would be to generate the statement the same way if it was named like the (long version) of primary_language in task.yaml.