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 55Exemple 5 : Espacem<strong>en</strong>t, traits et boîtes 33\xmpheader 5/{Espacem<strong>en</strong>t, traits et bo\^\i tes}% voir p. 23Voici un exemple de ‘‘liste descriptive’’. En pratique vousferiez mieux de creer une macro <strong>pour</strong> avoir des constructions r\’ep\’etitiveset \^etre s\^ur que la largeur des sous-titres soit suffisam<strong>en</strong>t grande~:\bigskip% Call the ind<strong>en</strong>tation for descriptions \descind<strong>en</strong>t% and set it to 8 picas.\newdim<strong>en</strong>\descind<strong>en</strong>t \descind<strong>en</strong>t = 9pc% Ind<strong>en</strong>t paragraphs by \descind<strong>en</strong>t.% Skip an additional half line betwe<strong>en</strong> paragraphs.{\noind<strong>en</strong>t \leftskip = \descind<strong>en</strong>t \parskip = .5\baselineskip% Move the description to the left of the paragraph.\llap{\hbox to \descind<strong>en</strong>t{\bf La reine de C\oe ur\hfil}}%Une femme \‘a moiti\’e folle, prompte a d\’eclarer ‘‘coupez-luila t\^ete~!’’\ \‘a la moindre provocation.\par\noind<strong>en</strong>t\llap{\hbox to \descind<strong>en</strong>t{\bf Le chat de Cheshire\hfil}}%Un chat avec un \’<strong>en</strong>orme sourire qu’Alice trouvedans un arbre.\par\noind<strong>en</strong>t\llap{\hbox to \descind<strong>en</strong>t{\bf La tortue Mock\hfil}}%une cr\’eature larmoyante, un peu m<strong>en</strong>teuse, qui \’etait uncompagnon du Gryphon. R\’eput\’e \^etre l’ingr\’edi<strong>en</strong>t principalde la soupe de tortue Mock.\par}\bigskip\hrule\bigskip % A line with vertical space around it.Voici un exemple de mots dans une bo\^\i te trac\’ee, commeLewis Carroll l’a \’ecrite~:\bigskip% Put 8pt of space betwe<strong>en</strong> the text and the surrounding rules.\hbox{\vrule\vbox{\hrule\hbox spread 8pt{\hfil\vbox spread 8pt{\vfil\hbox{Who would not give all else for twop}%\hbox{<strong>en</strong>nyworth only of Beautiful Soup?}%\vfil}\hfil}\hrule}\vrule}%\bigskip\line{\hfil\hbox to 3in{\leaders\hbox{ * }\hfil}\hfil}\bigskip\line{\hskip -4pt\vrule\hfil\vbox{Ici, nous obt<strong>en</strong>ons l’effet d’une barre de r\’evision sur le textede ce paragraphe. La barre de r\’evision indique un changem<strong>en</strong>t.}}\bye % <strong>en</strong>d the docum<strong>en</strong>t

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

Saved successfully!

Ooh no, something went wrong!