Skip to content

Commit

Permalink
Fix the select_problems() call
Browse files Browse the repository at this point in the history
  • Loading branch information
kagalenko-m-b committed May 2, 2024
1 parent 7f7a4c9 commit 5683d27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MakeProblemSet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,13 @@ function problemset_latex(
rng_seed::Integer
)
N = length(names)
M = length(problems)
txt = "\\begin{document}\n"
txt_sol = txt
for n in 1:N
txt *= "\\section{$(names[n])}\n"
txt_sol *= "\\section{$(names[n])}\n"
problems_active = select_problems(subsets)
problems_active = select_problems(M, subsets)
for p in problems_active
Random.seed!(rng_seed + n + p)
pr = problems[p]
Expand Down

0 comments on commit 5683d27

Please sign in to comment.