projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fatta una bella passata di spell su tutto quanto ...
[gapil.git]
/
macro.tex
diff --git
a/macro.tex
b/macro.tex
index 2f4ea86a4cc19f39f452e43c63bc54800b410775..bff8918bc46fec18118ca05b62bb24aaa24db7f1 100644
(file)
--- a/
macro.tex
+++ b/
macro.tex
@@
-9,14
+9,17
@@
% Figure commands
%
\newcommand{\curfig}{fig.~\thefigure}
% Figure commands
%
\newcommand{\curfig}{fig.~\thefigure}
+
\newcommand{\nfig}{%
\setcounter{usercount}{\value{figure}}%
\addtocounter{usercount}{1}%
fig.~\thechapter.\theusercount}
\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{\pfig}{%
\setcounter{usercount}{\value{figure}}%
\addtocounter{usercount}{-1}%
fig.~\thechapter.\theusercount}
+
\newcommand{\figref}[1]{fig.~\ref{#1}}
%
% Tables commands
\newcommand{\figref}[1]{fig.~\ref{#1}}
%
% Tables commands
@@
-60,20
+63,24
@@
tab.~\thechapter.\theusercount}
%
% Macro to create a special environment for function prototypes
%
%
% Macro to create a special environment for function prototypes
%
-\newenvironment{prototype}[
1
]{
+\newenvironment{prototype}[
2
]{
\center
\center
- \begin{minipage}[c]{14cm}
- \par \texttt{#1}
\footnotesize
\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
\begin{list}{}{}
\item }
{ \end{list}
\par
-\normalsize
\par \texttt{ }
\end{minipage}
\par \texttt{ }
\end{minipage}
+\normalsize
\par
}
\newenvironment{errlist}{\begin{description}}{\end{description}}
\par
}
\newenvironment{errlist}{\begin{description}}{\end{description}}
-
-