wojtask / clrs4e-solutions

Solutions to exercises and problems from "Introduction to Algorithms", Fourth Edition by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein
Creative Commons Attribution 4.0 International
249 stars 39 forks source link

Import chapter files in a loop #1568

Closed wojtask closed 1 year ago

wojtask commented 1 year ago

Instead of importing sections and problems files directly, use loops. Consider implementation using the pgffor package and its \foreach command. Also, consider moving the \exercise, \subproblem etc. away from the specific files to the loop body.

Solution idea: https://tex.stackexchange.com/questions/20841/can-i-automatically-load-chapters-and-sections-based-on-the-filesystem