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

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

Open
mraron opened this issue Mar 27, 2024 · 0 comments

Comments

@mraron
Copy link
Contributor

mraron commented Mar 27, 2024

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.

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

1 participant