Macroistruzioni con argomenti delimitati
(Claudio Beccari)
Sommario
Il pacchetto di macroistruzioni comunemente definito LaTeX non tratta mai delle macro con argomenti delimitati; esso stesso ne mette a disposizione del compositore un numero minimo. Con i comandi primitivi dell’interprete TeX è possibile definire macro con argomenti delimitati che si possono usare anche con LaTeX. Queste macro possono risultare estremamente comode in certe circostanze, specialmente quando si creano file di classe o pacchetti di estensione, dove permettono di identificare con maggiore facilità il significato di ogni argomento. L’esposizione viene eseguita servendosi di un problema concreto: il Registro delle Lezioni.
Abstract
The macro package commonly known as LaTeX does not describe any means for defining macros with delimited arguments; furthermore it offers a very small number of them to the user. By means of the primitive commands of the TeX interpreter it is easy to define macros with delimited arguments that may be used also while using the other LaTeX macros. This kind of macros may be very useful in some instances, particularly when writing class or package files, where they make it easy to identify the function that any argument plays in the macro expansion. The subject is described with the aid of a practical problem: the Lecture Log.
Leggi l'articolo