X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=macro.tex;h=2f4ea86a4cc19f39f452e43c63bc54800b410775;hp=93f35631caa7e6e47ecec7ffe091ac4e5ad5c39e;hb=4826742c87d76af810c8a30e5495135fb43b8091;hpb=caa4d2b308da07b9522599555d07db6f67351601 diff --git a/macro.tex b/macro.tex index 93f3563..2f4ea86 100644 --- a/macro.tex +++ b/macro.tex @@ -56,13 +56,24 @@ tab.~\thechapter.\theusercount} % Command for section and chapters % \newcommand{\capref}[1]{cap.~\ref{#1}} -\newcommand{\sezref}[1]{sez.~\ref{#1}} - +\newcommand{\secref}[1]{sez.~\ref{#1}} % % Macro to create a special environment for function prototypes % -\newenvironment{prototype}[1]{\begin{itemize} - \item \texttt{#1}}{\end{itemize}} -\newenvironment{errlist}{\begin{itemize}}{\end{itemize}} +\newenvironment{prototype}[1]{ + \center + \begin{minipage}[c]{14cm} + \par \texttt{#1} + \footnotesize + \begin{list}{}{} + \item } +{ \end{list} + \par +\normalsize +\par \texttt{ } +\end{minipage} +\par +} +\newenvironment{errlist}{\begin{description}}{\end{description}}