X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=macro.tex;h=9854b62c9e0dfe7d493364032464ce6007b54fc1;hp=842859c3196879458b2118856203ab829307974f;hb=7b5118a8c6ff15e5fcdc1a70a27ead7fcd35830b;hpb=5004c32d8c64a4911159fa119bbe21cc2eae1ac3 diff --git a/macro.tex b/macro.tex index 842859c..9854b62 100644 --- 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{#1@{\tt {#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