diff --git a/bin/export.py b/bin/export.py index ef9e0d12..61449c29 100644 --- a/bin/export.py +++ b/bin/export.py @@ -214,6 +214,7 @@ def build_contest_zip(problems, zipfiles, outfile, statement_language): [ 'problems.yaml', 'contest.yaml', + 'problem-slides.pdf', 'samples.zip', ] + glob(Path('.'), f'contest*.{statement_language}.pdf') diff --git a/bin/tools.py b/bin/tools.py index 99ea424e..ed587a5e 100755 --- a/bin/tools.py +++ b/bin/tools.py @@ -1022,11 +1022,14 @@ def run_parsed_arguments(args): contest, problems, tmpdir, statement_language, web=True ) if not config.args.no_solutions: - success &= latex.build_contest_pdfs( - contest, problems, tmpdir, statement_language, solutions=True + success &= latex.build_contest_pdf( + contest, problems, tmpdir, build_type=latex.TYPE_PROBLEM_SLIDE ) - success &= latex.build_contest_pdfs( - contest, problems, tmpdir, statement_language, solutions=True, web=True + success &= latex.build_contest_pdf( + contest, problems, tmpdir, statement_language, build_type=latex.TYPE_SOLUTION + ) + success &= latex.build_contest_pdf( + contest, problems, tmpdir, statement_language, build_type=latex.TYPE_SOLUTION, web=True ) outfile = contest + '.zip'