Correzioni ortografiche
[gapil.git] / macro.tex
index 842859c3196879458b2118856203ab829307974f..7045267550ab6719ded827abc0565514e6824f6d 100644 (file)
--- a/macro.tex
+++ b/macro.tex
@@ -119,7 +119,10 @@ tab.~\thechapter.\theusercount}
 % variables, macros,  and everything can be useul, 
 %
 \newcommand{\cmd}[1]{\texttt{#1}}     % shell command
-\newcommand{\func}[1]{\texttt{#1}}    % library function (or system call)
+\newcommand{\code}[1]{\texttt{#1}}    % for simple code
+\newcommand{\func}[1]{%
+\index{\texttt{#1}}\texttt{#1}%
+}                                     % library function (or system call)
 \newcommand{\macro}[1]{\texttt{#1}}   % macro constant
 \newcommand{\var}[1]{\texttt{#1}}     % variable 
 \newcommand{\file}[1]{\texttt{#1}}    % file name