File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ def run_latexmk(stdout, stderr):
361
361
362
362
# 1. Copy the latex/problem.tex file to tmpdir/<problem>/latex/<language>/problem.tex,
363
363
# substituting variables.
364
- # 2. Create tmpdir/<problem>/latex/<language>/samples.tex.
364
+ # 2. Create tmpdir/<problem>/latex/<language>/{ samples,constants} .tex.
365
365
# 3. Run latexmk and link the resulting <build_type>.<language>.pdf into the problem directory.
366
366
def build_problem_pdf (
367
367
problem : "problem.Problem" , language : str , build_type = PdfType .PROBLEM , web = False
@@ -499,9 +499,8 @@ def build_contest_pdf(
499
499
).read_text ()
500
500
501
501
for prob in problems :
502
- if build_type == PdfType .PROBLEM :
503
- prepare_problem (prob , language )
504
- else : # i.e. for SOLUTION and PROBLEM_SLIDE
502
+ prepare_problem (prob , language )
503
+ if build_type != PdfType .PROBLEM : # i.e. for SOLUTION and PROBLEM_SLIDE
505
504
tex_no_lang = prob .path / "problem_statement" / f"{ build_type .value } .tex"
506
505
tex_with_lang = prob .path / "problem_statement" / f"{ build_type .value } .{ language } .tex"
507
506
if tex_with_lang .is_file ():
You can’t perform that action at this time.
0 commit comments