X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=macro.tex;h=7045267550ab6719ded827abc0565514e6824f6d;hp=842859c3196879458b2118856203ab829307974f;hb=ba007b78543f53433b49aba62109a90848dccf0f;hpb=5004c32d8c64a4911159fa119bbe21cc2eae1ac3 diff --git a/macro.tex b/macro.tex index 842859c..7045267 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{\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