
Hi all! what is wong? % % % 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]% {% \showP[#1]% \getPunkte[#1] } % Using this macro in normal text like TestQuestion \pkt[5] it works!!! 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! Thanks for any help. Bernd

Hi all!
what is wong? % % % 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]% {% \showP[#1]% \getPunkte[#1] } % Using this macro in normal text like TestQuestion \pkt[5] it works!!! [...]
I'm not sure but consider TestQuestion \pkt[5] {TestQuestion \pkt[5]} TestQuestion \pkt[5] That will probably produce not what you need. Meybe You should use \global\advance\summeP by \number#1 in \getPunkte definition? Let me know if I'm right. Regards, Pawe/l
participants (2)
-
Bernd Militzer
-
Pawel Jackowski na Onet