12.07.2015 Views

TEX pour l'Impatient - Apprendre en ligne.net

TEX pour l'Impatient - Apprendre en ligne.net

TEX pour l'Impatient - Apprendre en ligne.net

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24 Sep 2004 2:48 p.m.<strong>TEX</strong> <strong>pour</strong> l’Impati<strong>en</strong>t N o 258236 Commandes <strong>pour</strong> des opérations générales \ §9termine cette construction. Vous ne pouvez pas définir de telles macros<strong>en</strong> utilisant des accolades ordinaires—si vous essayez, vos définitions demacro conti<strong>en</strong>dront des accolades non appairées et seront de ce fait inacceptablespar <strong>TEX</strong>. Normalem<strong>en</strong>t vous ne devez utilisez ces commandesque quand vous ne pouvez utiliser d’accolades ordinaires.Exemple :Braces define the {\it boundaries\/} of a group.produit :Braces define the boundaries of a group.Exemple :\def\a{One \vbox\bgroup}% You couldn’t use { instead of \bgroup here because% TeX would not recognize the <strong>en</strong>d of the macro\def\<strong>en</strong>da#1{{#1\egroup} two}% This one is a little tricky, since the \egroup actually% matches a left brace and the following right brace% matches the \bgroup. But it works!\a \<strong>en</strong>da{\hrule width 1in}produit :O<strong>net</strong>wo\globalCette commande r<strong>en</strong>d la définition ou l’assignem<strong>en</strong>t suivant global (voir“global”, p. 70) <strong>pour</strong> qu’il devi<strong>en</strong>ne effectif indép<strong>en</strong>damm<strong>en</strong>t des frontièresdu groupe. Vous pouvez appliquer un préfix \global à toute sorte dedéfinition ou assignem<strong>en</strong>t, <strong>en</strong> incluant une définition de macro ou unassignem<strong>en</strong>t de registre.Exemple :{\global\let\la = \leftarrow}$a \la b$produit :a ← b\globaldefs [ 〈nombre〉 paramètre ]Ce paramètre contrôle si <strong>TEX</strong> pr<strong>en</strong>d ou non des définitions et autresassignem<strong>en</strong>ts comme étant globaux :Si \globaldefs est à zéro (comme il l’est par défaut), une définitionest globale si et seulem<strong>en</strong>t si il est précédé par \global soit explicitem<strong>en</strong>tsoit implicitem<strong>en</strong>t. (Les commandes \gdef et \xdef (p. 239)ont un préfixe \global implicite).Si \globaldefs est supérieur à zéro, tout assignem<strong>en</strong>t et définitionest implicitem<strong>en</strong>t préfixé par \global.Si \globaldefs est inférieur à zéro, tout préfixe \global est ignoré.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!