ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* countproblem
@ 2003-11-11 16:57 Bernd Militzer
  2003-11-11 23:17 ` countproblem Pawel Jackowski na Onet
  0 siblings, 1 reply; 3+ messages in thread
From: Bernd Militzer @ 2003-11-11 16:57 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: countproblem
  2003-11-11 16:57 countproblem Bernd Militzer
@ 2003-11-11 23:17 ` Pawel Jackowski na Onet
  2003-11-12  6:52   ` countproblem Bernd Militzer
  0 siblings, 1 reply; 3+ messages in thread
From: Pawel Jackowski na Onet @ 2003-11-11 23:17 UTC (permalink / raw)




> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: countproblem
  2003-11-11 23:17 ` countproblem Pawel Jackowski na Onet
@ 2003-11-12  6:52   ` Bernd Militzer
  0 siblings, 0 replies; 3+ messages in thread
From: Bernd Militzer @ 2003-11-12  6:52 UTC (permalink / raw)


Hi  Pawel !


> 
>     \global\advance\summeP by \number#1
> 
> in \getPunkte definition? Let me know if I'm right.
> 

Thanks now the macro works perfect!!

Regards, Bernd

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-11-12  6:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-11 16:57 countproblem Bernd Militzer
2003-11-11 23:17 ` countproblem Pawel Jackowski na Onet
2003-11-12  6:52   ` countproblem Bernd Militzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).