Skip to content

atomic_patch_code_expert

hgratten requested to merge atomic_patch_code_expert into master

This merge request integrates @ppanchal's labels_to_nos.py script into the CodeExpert tool: From now on, the internal \LaTeX \ref{...} can be used in Assignments to refer to the problems in the npdeflipped repository. The conversion step is done in the export step, thus considered fully automatic. The students will only see the problem numbers.

Example: in Assignments/PolishedCodes/Introduction/MatrixBlocks/template/MatrixBlocks.hpp:31 we write

  // TODO: \ref{prb:mb:sp:1} Set the entries of row number p and column number q to zero.
  // Hint: We can access rows and columns of Anew by Anew.row() and Anew.col().

Running the tool with CodeExpert/tool/export.sh Introduction/MatrixBlocks --keep then yields in the export

  // TODO: (0-2.a) Set the entries of row number p and column number q to zero.
  // Hint: We can access rows and columns of Anew by Anew.row() and Anew.col().

The tool works by using the NCSEFL_Prbrefs.aux file generated by the npdeflipped repository, see readme. This feature helps to eliminate the tedious manual labour of adjusting the problem numbers every time they change.

Merge request reports