Nuova macro per i prototipi delle funzioni che usa boxedminipage.
[gapil.git] / macro.tex
index c4fd5792318ca023eb27c5440eedb72f9e560a1b..842859c3196879458b2118856203ab829307974f 100644 (file)
--- a/macro.tex
+++ b/macro.tex
@@ -67,7 +67,7 @@ tab.~\thechapter.\theusercount}
 \newenvironment{prototype}[2]
 {% defining what is done by \begin
   \center
-  \begin{minipage}[c]{14cm}
+  \begin{boxedminipage}[c]{14cm}
   \footnotesize
     \begin{description*}{}{} 
     \item \texttt{\#include <#1>}
@@ -81,7 +81,7 @@ tab.~\thechapter.\theusercount}
 %  \end{list} 
 %  \par 
 \end{description*}
-\end{minipage}
+\end{boxedminipage}
 \vspace{6pt}
 \par
 \normalsize 
@@ -95,20 +95,22 @@ tab.~\thechapter.\theusercount}
 %
 \newcommand{\headdecl}[1]{\item\texttt{\#include <#1>}}
 \newcommand{\funcdecl}[1]{\item\texttt{#1}\par}
-\newcommand{\bodydesc}[1]{\par\end{description*}\par #1
-\begin{description*}{}{} \baselineskip=0pt\item} 
+\newcommand{\bodydesc}[1]{\par \end{description*} #1
+ \begin{description*}{}{} \baselineskip=0pt
+ \item \vspace{-4pt}
+} 
 \newenvironment{functions}
 {% defining what is done by \begin
   \center
-    \begin{minipage}[c]{14cm}
+    \begin{boxedminipage}[c]{14cm}
       \footnotesize
     \begin{description*}{}{} 
 }
 {% defining what is done by \end
       \end{description*}
-    \end{minipage}
+    \end{boxedminipage}
     \vspace{6pt}
-    \par
+     \par
     \normalsize 
 %\break
 }