X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=macro.tex;h=bff8918bc46fec18118ca05b62bb24aaa24db7f1;hp=2f4ea86a4cc19f39f452e43c63bc54800b410775;hb=66765a9be9a61085dd00abd92d99a24b23dc844b;hpb=4826742c87d76af810c8a30e5495135fb43b8091 diff --git a/macro.tex b/macro.tex index 2f4ea86..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 @@ -60,20 +63,24 @@ tab.~\thechapter.\theusercount} % % Macro to create a special environment for function prototypes % -\newenvironment{prototype}[1]{ +\newenvironment{prototype}[2]{ \center - \begin{minipage}[c]{14cm} - \par \texttt{#1} \footnotesize + \begin{minipage}[c]{14cm} + \par \texttt{\#include <#1>} +% \par \ + \par \texttt{#2} +% \begin{lstlisting}{} +% #1 +% #2 +% \end{lstlisting} \begin{list}{}{} \item } { \end{list} \par -\normalsize \par \texttt{ } \end{minipage} +\normalsize \par } \newenvironment{errlist}{\begin{description}}{\end{description}} - -