Hi all, Writing examinations I want to tell my students the points of each question and the max points they can reach. I wrote a macro which prints the points at the right side of the question and count the points. % % % ad the points of each question \def\getPunkte[#1]{\advance\summeP by \number#1} % % show the points on the right side \def\showP[#1]{\inright{\hfill(#1 P.)}} % % handle the points \def\pkt[#1]% {% \ifnum\ZeigeP=1 \showP[#1]% \ifnum\addP=1 \getPunkte[#1] \fi \fi% } % Using this macro in normal text like TestQuestion \pkt[5] it works without problems! But when I use this macro in combination with enumeration I run in a problem example: % \defineenumeration[question][location=inmargin,text=,width=fit] % \question\pkt[5] TestQuestion\par nothing ist count in this case! How can I fix this problem? Thanks in advance. Bernd
participants (1)
-
Bernd Militzer