On 02/12/2012 18:31, Andrey Klebanov wrote:
> Dear all, 
> 
> since my very recent update to the new tex distribution (tex 2012) I'm facing 
> a problem with setting values of counter using mathematic formulas as 2-1.
> a minimal example looks like this:
> 
> \documentclass{memoir}
> \begin{document}
> \newcounter{b}
> \setcounter{b}{2-1}
> \theb
> \end{document}
> 
> which in my case sets the \value{b} to 2 and prints -1 (s. the attached 
> file), instead of setting the \value{b} to 1. (I need it in order to set a 
> connection between 2 counters like \setcounter{b}{\thea-2} etc.)
> I would be extremely thankful for any support, since this issue completely 
> destroys my workflow.
> 
> thanks in advance 
> Andrey

You need to load the calc package: perhaps memoir was in earlier versions?
-- 
Joseph Wright


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex

Reply via email to