will be tremendous. But
I would like to know what the "most common" counters are called, for
example the ones that control the different structural units (chapter,
section...) or the elements of a structured list, etc.
I have tried to apply \incrementcounter or \decrementcounter to some
ommon" counters are called, for
example the ones that control the different structural units (chapter,
section...) or the elements of a structured list, etc.
I have tried to apply \incrementcounter or \decrementcounter to some
counters that also exist in TeX as, for example, chapter, sect
note]%
\incrementcounter[authornote]\decrementcounter[authornote]% <-- authornote
is incremented and decremented to force the reset by page
>\setcounter[footnote][{\rawcountervalue[authornote]}]%
>\setupnotation[footnote][numberconversion=set 1]%
>\foot
nt one for labels but increment is the same as next
so that one is gone
\incrementcounter[video]
\decrementcounter[video]
are of course also there
Hans
-
Hans Hagen |
rried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit,before={\incrementcounter[resposta]}]
>>>
>>> % Answers
>>> \defineenumeration[resposta][headstyle=\ss,text={Solucions de l
{.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit,before={\incrementcounter[resposta]}]
> >
> > % Answers
> > \defineenumeration[resposta][headstyle=\ss,text={Solucions de l'exercici
> > \getnumber[exercici]},width=fit,alternati
adstyle=\ss,distance=0.25em,width=fit,before={\incrementcounter[resposta]}]
>
> % Answers
> \defineenumeration[resposta][headstyle=\ss,text={Solucions de l'exercici
> \getnumber[exercici]},width=fit,alternative=serried,before={\decrementcounter[resposta]},number=no]
>
]}]
% Answers
\defineenumeration[resposta][headstyle=\ss,text={Solucions de l'exercici
\getnumber[exercici]},width=fit,alternative=serried,before={\decrementcounter[resposta]},number=no]
\defineblock[resposta]
\hideblocks[resposta]
% Exercises
\startexercici Bla...
\beginresposta
\resposta (Solu
,headstyle=\ss,distance=0.25em,width=fit,before={\incrementcounter[answer]}]
\defineenumeration[resposta][headstyle=\ss,text={Solucions},width=fit,alternative=serried,before={\decrementcounter[resposta]}]
\defineblock[resposta]
\hideblocks[resposta]
@Thomas: thank you very much for the link. Ev
ddtocounter#1#2% #1 name #2 value
>[EMAIL PROTECTED]
> \protect
>
> % To Hans and Taco: Should the above macro be added to syst-ext?
>
i've added:
\def\incrementcounter#1#2% #1 name #2 value
{\setxvalue{#1}{\the\numexpr\csname#1\endcsname+#2\relax}}
\def\decrement
10 matches
Mail list logo