Skip to content

Commit

Permalink
add \setmaxdifficulty{}, make score stars red on snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Rdeisenroth committed Oct 17, 2023
1 parent a0e4843 commit 496a8f5
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tex/algoexercise.cls
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,10 @@


\fp_gzero_new:c {l_algo_ex_vue_max_difficulty_fp}
\fp_gset:Nn \l_algo_ex_vue_max_difficulty_fp {5}
\newcommand*{\setmaxdifficulty}[1]{
\fp_gset:Nn \l_algo_ex_vue_max_difficulty_fp {#1}
}
\setmaxdifficulty{5}
\DeclareDocumentCommand{\vue}{m}{
\nextTaskGroup{V}
\fp_gset:Nn \l_algo_ex_vue_max_difficulty_fp {#1}
Expand Down Expand Up @@ -725,6 +728,17 @@
\box_use:N \l_entwurf_box
}
}
% Make stars red
\tikzset{
scorestar/.style={
draw=red,
star,
star~points=5,
star~point~ratio=2.25,
inner~sep=1.3pt,
anchor=outer~point~3,
},
}
}
}

Expand Down

0 comments on commit 496a8f5

Please sign in to comment.