Setting up a new quiz

One dialog prepares the complete structure: all folders, a score file with formulas, and for every round a round file with the right name. So you never type names by hand that the linking depends on.

The dialog for a new quiz
Opened with the button at the top right or with Ctrl+N.

What you fill in

FieldWhat it does
LocationThe folder the new quiz folder goes in.
Name of the quizBecomes the folder name, and appears above the standings.
Number of teamsThat many rows in the score file, with placeholder names you overwrite.
Number of roundsOrdinary rounds: R1, R2, ...
Number of table roundsRounds on paper: T1, T2, ...
Questions per roundThat many empty question blocks are prepared in every round file. Fifteen by default.
Questions per table roundThe same for the table rounds. Default fifteen.

The table rounds are spread evenly between the ordinary rounds. With eight rounds and four table rounds that becomes R1, R2, T1, R3, R4, T2, R5, R6, T3, R7, R8, T4.

And then: the editor

You fill in the rounds with the editor: per question the title, the answer, the photos and clips, with the slide as preview. The layout - where the title goes, how big the text is, which font - lives once in the template next to the questions and applies to all rounds together; the table rounds have their own. The answers repeat nothing: each answer file points to its questions, and the app shows the same slides with the answer added. The first question of round 1 is filled in as an example.

What gets created

PartContents
Scorebord_<name>.xlsxRounds as rows, teams as columns, with formulas for total and percentage.
settings.yamlThe folder names, each seen from the root.
1_Questionstemplate.yaml plus one round file per ordinary round; the first question of round 1 is filled in as an example.
2_Questions_tableIts own template.yaml (without logos and with a wider middle band, so a large picture may reach the corners) plus one round file per table round, with the requested number of questions.
3_AnswersOne per round, numbered consecutively across everything; each points to its questions file.
the media foldersWith a _LEESMIJ.txt that explains what belongs there; 6_Images holds the chalkboard and two logos to replace.

The teams are first called Ploeg 1, Ploeg 2, and so on. Those names are deliberately not left empty: with an empty name the app stops reading, and then it could not open its own score file.

From the command line

cargo run --bin maaktemplate -- "C:\path\New Quiz" <teams> <rounds> <table rounds> [questions]

The same result, handy to check the naming without clicking.