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 214192 Commandes <strong>pour</strong> les modes horizontaux et verticaux \ §7Exemple :\tabskip = 25pt\halign{%\hfil\it#\hfil&\hfil#\hfil&#&\hfil\$#\crUnited States&\hidewidth Washington&dollar&1.00\crFrance&Paris&franc&0.174\crIsrael&Jerusalem&shekel&0.507\crJapan&Tokyo&y<strong>en</strong>&0.0829\cr}produit :United States Washington dollar $1.00France Paris franc $0.174Israel Jerusalem shekel $0.507Japan Tokyo y<strong>en</strong> $0.0829\everycr [ 〈liste de tok<strong>en</strong>〉 paramètre ]<strong>TEX</strong> développe 〈tok<strong>en</strong> list〉 à chaque fois qu’il exécute un \cr—à la fin dechaque préambule, à la fin de chaque rangée d’un a<strong>ligne</strong>m<strong>en</strong>t horizontalet à la fin de chaque colonne d’un a<strong>ligne</strong>m<strong>en</strong>t vertical. La commande\everycr est développée juste après le \cr. Ainsi vous pouvez demanderà <strong>TEX</strong> d’exécuter certaines commandes à la fin d’un préambule, d’unerangée ou d’une colonne <strong>en</strong> assignant une liste de commandes à \everycr.Les tok<strong>en</strong>s \everycr ne doiv<strong>en</strong>t pas inclure d’autres commandes que\noalign. Ceci parce que les tok<strong>en</strong>s \everycr réapparaîtront après ledernier \cr de l’a<strong>ligne</strong>m<strong>en</strong>t. Une commande autre qu’un \noalign ferap<strong>en</strong>ser à <strong>TEX</strong> qu’il comm<strong>en</strong>ce une nouvelle rangée ou colonne. <strong>TEX</strong>se plaindra d’un \cr manquant, insèrera un \cr, insèrera les tok<strong>en</strong>s\everycr à nouveau et répètera ces actions indéfinim<strong>en</strong>t.Exemple :\everycr={\noalign{\smallskip\hrule\smallskip}}\halign{#\tabskip = 11pt&\hfil#\hfil&\hfil#\hfil\tabskip = 0pt\cr$1$&one&first\cr$2$&two&second\cr$3$&three&third\cr}produit :1 one first2 two second3 three third

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

Saved successfully!

Ooh no, something went wrong!