Skip to content

Commit 48f86dd

Browse files
committed
fix
1 parent 59fdb4c commit 48f86dd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin/latex.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,10 @@ def build_contest_pdf(
499499
).read_text()
500500

501501
for prob in problems:
502-
prepare_problem(prob, language)
503-
if build_type != PdfType.PROBLEM: # i.e. for SOLUTION and PROBLEM_SLIDE
502+
if build_type == PdfType.PROBLEM:
503+
prepare_problem(prob, language)
504+
else: # i.e. for SOLUTION and PROBLEM_SLIDE
505+
create_constants_file(prob, language)
504506
tex_no_lang = prob.path / "problem_statement" / f"{build_type.value}.tex"
505507
tex_with_lang = prob.path / "problem_statement" / f"{build_type.value}.{language}.tex"
506508
if tex_with_lang.is_file():

0 commit comments

Comments
 (0)