X-Git-Url: https://gapil.gnulinux.it/gitweb/?a=blobdiff_plain;f=macro.tex;h=bff8918bc46fec18118ca05b62bb24aaa24db7f1;hb=b4611e5ee9458ce9b06b2cd35b661331b687ba78;hp=9feadaa9d15e36a1bdb230970d1c28232e7e0118;hpb=ae0f5a752ec86bf15b78031f4b33664a8c0b515b;p=gapil.git 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