Skip to content

Commit e648597

Browse files
committed
Clarify usage of \problemname
1 parent 5cc1eb3 commit e648597

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/2023-07-draft.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,10 @@ It is the judging system's responsibility to wrap this text in an appropriate La
439439
The LaTeX class shall provide the convenience environments `Input`, `Output`, and `Interaction` for delineating sections of the problem statement.
440440
It shall also provide the following commands:
441441
442-
- `\problemname`, which must be the first line of the problem statement and places the `name` value matching the problem statement's language from `problem.yaml` into the problem statement header.
442+
- `\problemname{name}`, which should typically be the first line of the problem statement and places the problem name into the problem statement header.
443+
The argument `name` is optional.
444+
If it is missing, the `name` value from `problem.yaml` matching the problem statement's language is used.
445+
If it is present, it is used instead, and must be a LaTeX-formatted version of the `name` value from `problem.yaml` matching the problem statement's language.
443446
In some cases, the problem name might contain math formulas or other text that should be typeset specially.
444447
In this case, the `\problemname{name}` command should be used instead and overrides the name in the header with `name`, a LaTeX-formatted version of the problem name.
445448
- `\illustration{width}{filename}{caption}`, a convenience command for adding a figure to the problem statement.

0 commit comments

Comments
 (0)