X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=macro.tex;h=bff8918bc46fec18118ca05b62bb24aaa24db7f1;hp=9feadaa9d15e36a1bdb230970d1c28232e7e0118;hb=66765a9be9a61085dd00abd92d99a24b23dc844b;hpb=8f0266fc964bcdf2aa8d7791a24f05a0eda77556 diff --git a/macro.tex b/macro.tex index 9feadaa..bff8918 100644 --- a/macro.tex +++ b/macro.tex @@ -9,14 +9,17 @@ % Figure commands % \newcommand{\curfig}{fig.~\thefigure} + \newcommand{\nfig}{% \setcounter{usercount}{\value{figure}}% \addtocounter{usercount}{1}% fig.~\thechapter.\theusercount} + \newcommand{\pfig}{% \setcounter{usercount}{\value{figure}}% \addtocounter{usercount}{-1}% fig.~\thechapter.\theusercount} + \newcommand{\figref}[1]{fig.~\ref{#1}} % % Tables commands