]> git.lyx.org Git - lyx.git/blob - lib/examples/fr_multicol.lyx
Add Jean-Pierre Chr��tien to our list of contributers
[lyx.git] / lib / examples / fr_multicol.lyx
1 #LyX 1.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 221
3 \textclass article
4 \begin_preamble
5 \usepackage{multicol}
6 \end_preamble
7 \language frenchb
8 \inputencoding latin1
9 \fontscheme default
10 \graphics default
11 \paperfontsize default
12 \spacing single
13 \papersize a4paper
14 \paperpackage a4
15 \use_geometry 0
16 \use_amsmath 0
17 \use_natbib 0
18 \use_numerical_citations 0
19 \paperorientation portrait
20 \secnumdepth 3
21 \tocdepth 3
22 \paragraph_separation indent
23 \defskip medskip
24 \quotes_language french
25 \quotes_times 2
26 \papercolumns 1
27 \papersides 1
28 \paperpagestyle default
29
30 \layout Title
31
32 MultiColonnes
33 \begin_inset Note
34 collapsed true
35
36 \layout Standard
37
38 Informations de révision :
39 \layout Standard
40
41 Traduction : Mise à jour Date : 22/03/2002
42 \layout Standard
43
44 Original : Révision : 1.3, Date : 21/03/2002
45 \end_inset 
46
47
48 \layout Author
49
50 par 
51 \noun on 
52 Lars Gullik Bjønnes
53 \begin_inset Foot
54 collapsed true
55
56 \layout Standard
57
58 Traduction par Adrien 
59 \noun on 
60 Rebollo
61 \noun default 
62  
63 \family typewriter 
64 <Adrien.Rebollo@gmx.fr>
65 \family default 
66 .
67 \end_inset 
68
69
70 \layout Section
71
72 Objectif
73 \layout Standard
74
75 Le but de ce chapitre est de montrer comment utiliser le paquetage LaTeX
76  
77 \family typewriter 
78 multicol
79 \family default 
80  dans un document LyX.
81  Comme LyX ne le supporte pas encore d'origine, il faut utiliser quelques
82  trucs, qui devraient vous paraître clairs quand vous aurez lu cette section.
83 \layout Subsection
84
85 Limitations 
86 \layout Standard
87
88 Le paquetage 
89 \family typewriter 
90 multicol
91 \family default 
92  permet de basculer dans une même page entre le format sur une colonne et
93  sur plusieurs.
94  Les notes de bas de page sont gérées correctement (pour la plus grande
95  part), mais seront placées en bas de la page et non en bas de chaque colonne.
96  Le mécanisme de gestion des flottants de LaTeX, cependant, est partiellement
97  désactivé dans l'implémentation actuelle.
98  Aujourd'hui seuls des flottants couvrant en largeur toute la page peuvent
99  être utilisés au sein de l'environnement.
100 \layout Subsection
101
102 Exemples
103 \layout Subsubsection
104
105 Deux Colonnes
106 \layout Standard
107
108 Si vous voulez avoir deux colonnes dans votre texte, il faut pour insérer
109  
110 \family typewriter 
111
112 \backslash 
113 begin{multicols}{2}
114 \family default 
115  en mode LaTeX à l'endroit où vous voulez démarrer la disposition en deux
116  colonnes, et 
117 \family typewriter 
118
119 \backslash 
120 end{multicols}
121 \family default 
122  là où vous voulez qu'elle se termine.
123  Comme ceci :
124 \layout Standard
125
126
127 \begin_inset ERT
128 status Collapsed
129
130 \layout Standard
131
132 \backslash 
133 begin{multicols}{2}
134 \end_inset 
135
136
137 \layout Standard
138 \noindent 
139
140 \series bold 
141 \size small 
142 The Adventure of the Empty House
143 \begin_inset Foot
144 collapsed true
145
146 \layout Standard
147
148 NdT : Ne pensant pas être à la hauteur d'une traduction littéraire de 
149 \noun on 
150 Conan Doyle
151 \noun default 
152 , et ne voyant pas de nécessité impérieuse d'insérer du texte français à
153  la place, j'ai préféré le laisser tel quel.
154  -- ar
155 \end_inset 
156
157
158 \newline 
159 by 
160 \noun on 
161 Sir Arthur Conan Doyle
162 \layout Standard
163
164
165 \size small 
166 It was in the spring of the year 1894 that all London was interested, and
167  the fashionable world dismayed, by the murder of the Honourable Ronald
168  Adair under most unusual and inexplicable circumstances.
169  The public has already learned those particulars of the crime which came
170  out in the police investigation, but a good deal was suppressed upon that
171  occasion, since the case for the prosecution was so overwhelmingly strong
172  that it was not necessary to bring forward all the facts.
173  Only now, at the end of nearly ten years, am I allowed to supply those
174  missing links which make up the whole of that remarkable chain.
175  The crime was of interest in itself, but that interest was as nothing to
176  me compared to the inconceivable sequel, which afforded me the greatest
177  shock and surprise of any event in my adventurous life.
178  Even now, after this long interval, I find myself thrilling as I think
179  of it, and feeling once more that sudden flood of joy, amazement, and increduli
180 ty which utterly submerged my mind.
181  Let me say to that public, which has shown some interest in those glimpses
182  which I have occasionally given them of the thoughts and actions of a very
183  remarkable man, that they are not to blame me if I have not shared my knowledge
184  with them, for I should have considered it my first duty to do so, had
185  I not been barred by a positive prohibition from his own lips, which was
186  only withdrawn upon the third of last month.
187 \layout Standard
188
189
190 \begin_inset ERT
191 status Collapsed
192
193 \layout Standard
194
195 \backslash 
196 end{multicols}
197 \end_inset 
198
199
200 \layout Subsubsection
201
202 Colonnes Multiples
203 \layout Standard
204
205 Le même schéma s'applique si vous voulez plus de deux colonnes.
206  (Vous pouvez avoir plus de 3 colonnes si vous voulez, mais ça risque de
207  ne pas être très agréable à regarder.)
208 \layout Standard
209
210
211 \begin_inset ERT
212 status Collapsed
213
214 \layout Standard
215
216 \backslash 
217 begin{multicols}{3}
218 \end_inset 
219
220
221 \layout Standard
222
223
224 \size footnotesize 
225 It can be imagined that my close intimacy with Sherlock Holmes had interested
226  me deeply in crime, and that after his disappearance I never failed to
227  read with care the various problems which came before the public.
228  And I even attempted, more than once, for my own private satisfaction,
229  to employ his methods in their solution, though with indifferent success.
230  There was none, however, which appealed to me like this tragedy of Ronald
231  Adair.
232  As I read the evidence at the inquest, which led up to a verdict of willful
233  murder against some person or persons unknown, I realized more clearly
234  than I had ever done the loss which the community had sustained by the
235  death of Sherlock Holmes.
236  There were points about this strange business which would, I was sure,
237  have specially appealed to him, and the efforts of the police would have
238  been supplemented, or more probably anticipated, by the trained observation
239  and the alert mind of the first criminal agent in Europe.
240  All day, as I drove upon my round, I turned over the case in my mind and
241  found no explanation which appeared to me to be adequate.
242  At the risk of telling a twice-told tale, I will recapitulate the facts
243  as they were known to the public at the conclusion of the inquest.
244 \layout Standard
245
246
247 \begin_inset ERT
248 status Collapsed
249
250 \layout Standard
251
252 \backslash 
253 end{multicols}
254 \end_inset 
255
256
257 \layout Subsubsection
258
259 Des colonnes dans une Colonne
260 \layout Standard
261
262 Vous pouvez même avoir des colonnes dans une colonne :
263 \layout Standard
264
265
266 \begin_inset ERT
267 status Collapsed
268
269 \layout Standard
270
271 \backslash 
272 begin{multicols}{2}
273 \end_inset 
274
275
276 \layout Standard
277
278
279 \size footnotesize 
280 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
281  at that time governor of one of the Australian colonies.
282  Adair's mother had returned from Australia to undergo the operation for
283  cataract, and she, her son Ronald, and her daughter Hilda were living together
284  at 427 Park Lane.
285 \layout Standard
286
287
288 \begin_inset ERT
289 status Collapsed
290
291 \layout Standard
292
293 \backslash 
294 begin{multicols}{2}
295 \end_inset 
296
297
298 \layout Standard
299
300
301 \size footnotesize 
302 The youth moved in the best society--had, so far as was known, no enemies
303  and no particular vices.
304  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
305  had been broken off by mutual consent some months before, and there was
306  no sign that it had left any very profound feeling behind it.
307  For the rest {sic} the man's life moved in a narrow and conventional circle,
308  for his habits were quiet and his nature unemotional.
309  Yet it was upon this easy-going young aristocrat that death came, in most
310  strange and unexpected form, between the hours of ten and eleven-twenty
311  on the night of March 30, 1894.
312 \layout Standard
313
314
315 \begin_inset ERT
316 status Collapsed
317
318 \layout Standard
319
320 \backslash 
321 end{multicols}
322 \end_inset 
323
324
325 \layout Standard
326
327
328 \size footnotesize 
329 Ronald Adair was fond of cards--playing continually, but never for such
330  stakes as would hurt him.
331  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
332  It was shown that, after dinner on the day of his death, he had played
333  a rubber of whist at the latter club.
334  He had also played there in the afternoon.
335
336 \size default 
337  
338 \size footnotesize 
339 The evidence of those who had played with him-- Mr.
340  Murray, Sir John Hardy, and Colonel Moran--showed that the game was whist,
341  and that there was a fairly equal fall of the cards.
342  Adair might have lost five pounds, but not more.
343  His fortune was a considerable one, and such a loss could not in any way
344  affect him.
345  He had played nearly every day at one club or other, but he was a cautious
346  player, and usually rose a winner.
347  It came out in evidence that, in partnership with Colonel Moran, he had
348  actually won as much as four hundred and twenty pounds in a sitting, some
349  weeks before, from Godfrey Milner and Lord Balmoral.
350  So much for his recent history as it came out at the inquest.
351 \layout Standard
352
353
354 \begin_inset ERT
355 status Collapsed
356
357 \layout Standard
358
359 \backslash 
360 end{multicols}
361 \end_inset 
362
363
364 \layout Subsection
365
366 Exemples complexes
367 \layout Standard
368
369 Comme vous le savez sans doute 
370 \family typewriter 
371 multicol
372 \family default 
373  a plusieurs variables de personnalisation.
374  Les exemples suivants montrent comment elles peuvent être utilisées depuis
375  LyX.
376 \layout Subsubsection
377
378 Préface et Saut de page
379 \layout Standard
380
381 S'il reste moins de 5\SpecialChar ~
382 cm sur la page, un saut de page sera inséré avant ce
383  morceau, avec un texte de préface au-dessus des deux colonnes :
384 \layout Standard
385
386
387 \begin_inset ERT
388 status Collapsed
389
390 \layout Standard
391
392 \backslash 
393 begin{multicols}{2}[Et l'histoire continue et continue et continue et continue...][5cm]
394 \end_inset 
395
396
397 \layout Standard
398
399
400 \size small 
401 On the evening of the crime, he returned from the club exactly at ten.
402  His mother and sister were out spending the evening with a relation.
403  The servant deposed that she heard him enter the front room on the second
404  floor, generally used as his sitting-room.
405  She had lit a fire there, and as it smoked she had opened the window.
406  No sound was heard from the room until eleven-twenty, the hour of the return
407  of Lady Maynooth and her daughter.
408  Desiring to say good-night, she attempted to enter her son's room.
409  The door was locked on the inside, and no answer could be got to their
410  cries and knocking.
411  Help was obtained, and the door forced.
412  The unfortunate young man was found lying near the table.
413  His head had been horribly mutilated by an expanding revolver bullet, but
414  no weapon of any sort was to be found in the room.
415  On the table lay two bank notes for ten pounds each and seventeen pounds
416  ten in silver and gold, the money arranged in little piles of varying amount.
417  There were some figures also upon a sheet of paper, with the names of some
418  club friends opposite to them, from which it was conjectured that before
419  his death he was endeavouring to make out his losses or winnings at cards.
420 \layout Standard
421
422
423 \begin_inset ERT
424 status Collapsed
425
426 \layout Standard
427
428 \backslash 
429 end{multicols}
430 \end_inset 
431
432
433 \layout Subsubsection
434
435 Préface et Sections
436 \layout Standard
437
438 Comment faire si vous voulez que la préface soit un en-tête de section ?
439  Vous pouvez le faire, mais seulement par l'intermédiaire de commandes LaTeX
440  à l'intérieur des paramètres de la commande 
441 \family typewriter 
442 multicols
443 \family default 
444 .
445  Pour cette raison, la commande ne peut pas être fournie par LyX :
446 \layout Standard
447
448
449 \begin_inset ERT
450 status Collapsed
451
452 \layout Standard
453
454 \backslash 
455 begin{multicols}{2}[
456 \backslash 
457 subsubsection{C'est la commande de section en préface}][5cm]
458 \end_inset 
459
460
461 \layout Standard
462
463
464 \size small 
465 A minute examination of the circumstances served only to make the case more
466  complex.
467  In the first place, no reason could be given why the young man should have
468  fastened the door upon the inside.
469  There was the possibility that the murderer had done this, and had afterwards
470  escaped by the window.
471  The drop was at least twenty feet, however, and a bed of crocuses in full
472  bloom lay beneath.
473  Neither the flowers nor the earth showed any sign of having been disturbed,
474  nor were there any marks upon the narrow strip of grass which separated
475  the house from the road.
476  Apparently, therefore, it was the young man himself who had fastened the
477  door.
478  But how did he come by his death? No one could have climbed up to the window
479  without leaving traces.
480  Suppose a man had fired through the window, he would indeed be a remarkable
481  shot who could with a revolver inflict so deadly a wound.
482  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
483  a hundred yards of the house.
484  No one had heard a shot.
485  And yet there was the dead man and there the revolver bullet, which had
486  mushroomed out, as soft-nosed bullets will, and so inflicted a wound which
487  must have caused instantaneous death.
488  Such were the circumstances of the Park Lane Mystery, which were further
489  complicated by entire absence of motive, since, as I have said, young Adair
490  was not known to have any enemy, and no attempt had been made to remove
491  the money or valuables in the room.
492 \layout Standard
493
494
495 \begin_inset ERT
496 status Collapsed
497
498 \layout Standard
499
500 \backslash 
501 end{multicols}
502 \end_inset 
503
504
505 \layout Subsubsection
506
507 Espace Libre
508 \layout Standard
509
510 Le paquetage 
511 \family typewriter 
512 multicol
513 \family default 
514  nécessite une certaine quantité d'espace libre disponible avant et après
515  chaque section en multi-colonnes.
516  En plus 
517 \family typewriter 
518 multicol
519 \family default 
520  insère de l'espace avant et après la section multi-colonnes.
521  Pour changer ce comportement par défaut il faut insérer des commandes juste
522  avant le
523 \family typewriter 
524  
525 \backslash 
526 begin{multicols}
527 \family default 
528 .
529  Dans cet exemple, on place 3\SpecialChar ~
530 cm d'espace avant et après le texte en multi-colonn
531 es :
532 \layout Standard
533
534
535 \begin_inset ERT
536 status Collapsed
537
538 \layout Standard
539
540 \backslash 
541 setlength{
542 \backslash 
543 multicolsep}{3cm}
544 \backslash 
545 begin{multicols}{2}
546 \end_inset 
547
548
549 \layout Standard
550
551
552 \size small 
553 All day I turned these facts over in my mind, endeavouring to hit upon some
554  theory which could reconcile them all, and to find that line of least resistanc
555 e which my poor friend had declared to be the starting-point of every investigat
556 ion.
557  I confess that I made little progress.
558  In the evening I strolled across the Park, and found myself about six o'clock
559  at the Oxford Street end of Park Lane.
560  A group of loafers upon the pavements, all staring up at a particular window,
561  directed me to the house which I had come to see.
562  A tall, thin man with coloured glasses, whom I strongly suspected of being
563  a plain-clothes detective, was pointing out some theory of his own, while
564  the others crowded round to listen to what he said.
565  I got as near him as I could, but his observations seemed to me to be absurd,
566  so I withdrew again in some disgust.
567  As I did so I struck against an elderly, deformed man, who had been behind
568  me, and I knocked down several books which he was carrying.
569  I remember that as I picked them up, I observed the title of one of them,
570  THE ORIGIN OF TREE WORSHIP, and it struck me that the fellow must be some
571  poor bibliophile, who, either as a trade or as a hobby, was a collector
572  of obscure volumes.
573  I endeavoured to apologize for the accident, but it was evident that these
574  books which I had so unfortunately maltreated were very precious objects
575  in the eyes of their owner.
576  With a snarl of contempt he turned upon his heel, and I saw his curved
577  back and white side-whiskers disappear among the throng.
578 \layout Standard
579
580
581 \begin_inset ERT
582 status Collapsed
583
584 \layout Standard
585
586 \backslash 
587 end{multicols}
588 \end_inset 
589
590
591 \layout Paragraph
592
593 Remarque :
594 \layout Standard
595
596 Les valeurs que vous fixez avec 
597 \family typewriter 
598
599 \backslash 
600 setlength
601 \family default 
602  doivent être réinitialisées, sinon vous garderez les valeurs modifiées
603  tout au long de votre document.
604 \layout Standard
605
606
607 \begin_inset ERT
608 status Collapsed
609
610 \layout Standard
611
612 \backslash 
613 setlength{
614 \backslash 
615 multicolsep}{13pt}
616 \end_inset 
617
618
619 \layout Subsubsection
620
621 Largeur de Colonne et Séparation
622 \layout Standard
623
624 La largeur des colonnes dans un environnement 
625 \family sans 
626 multicols
627 \family default 
628  est calculée automatiquement, mais vous pouvez modifier explicitement l'espace
629  entre deux colonnes.
630  Dans l'exemple suivant, l'espace entre les deux colonnes est de 3\SpecialChar ~
631 cm :
632 \layout Standard
633
634
635 \begin_inset ERT
636 status Collapsed
637
638 \layout Standard
639
640 \backslash 
641 setlength{
642 \backslash 
643 columnsep}{3cm}
644 \backslash 
645 begin{multicols}{2}
646 \end_inset 
647
648
649 \layout Standard
650
651
652 \size small 
653 My observations of No.
654  427 Park Lane did little to clear up the problem in which I was interested.
655  The house was separated from the street by a low wall and railing, the
656  whole not more than five feet high.
657  It was perfectly easy, therefore, for anyone to get into the garden, but
658  the window was entirely inaccessible, since there was no water pipe or
659  anything which could help the most active man to climb it.
660  More puzzled than ever, I retraced my steps to Kensington.
661  I had not been in my study five minutes when the maid entered to say that
662  a person desired to see me.
663  To my astonishment it was none other than my strange old book collector,
664  his sharp, wizened face peering out from a frame of white hair, and his
665  precious volumes, a dozen of them at least, wedged under his right arm.
666 \layout Standard
667
668
669 \begin_inset ERT
670 status Collapsed
671
672 \layout Standard
673
674 \backslash 
675 end{multicols}
676 \end_inset 
677
678
679 \layout Standard
680
681 Une fois de plus, il faut réinitialiser la valeur pour éviter de l'utiliser
682  dans le reste du document.
683 \layout Standard
684
685
686 \begin_inset ERT
687 status Collapsed
688
689 \layout Standard
690
691 \backslash 
692 setlength{
693 \backslash 
694 columnsep}{10pt}
695 \end_inset 
696
697
698 \layout Subsubsection
699
700 Lignes Verticales
701 \layout Standard
702
703 Entre deux colonnes, il y a un trait de largeur 
704 \family typewriter 
705
706 \backslash 
707 columnseprule
708 \family default 
709 .
710  Si cette largeur est fixée à 0\SpecialChar ~
711 pt, le trait est supprimé.
712  Dans l'exemple suivant, la ligne séparant les deux colonnes fait 2\SpecialChar ~
713 pt d'épaisseu
714 r.
715 \layout Standard
716
717
718 \begin_inset ERT
719 status Collapsed
720
721 \layout Standard
722
723 \backslash 
724 setlength{
725 \backslash 
726 columnseprule}{2pt}
727 \backslash 
728 begin{multicols}{2}
729 \end_inset 
730
731
732 \layout Standard
733
734
735 \size small 
736
737 \begin_inset Quotes eld
738 \end_inset 
739
740 You're surprised to see me, sir,
741 \begin_inset Quotes erd
742 \end_inset 
743
744  said he, in a strange, croaking voice.
745 \layout Standard
746
747
748 \size small 
749 I acknowledged that I was.
750 \layout Standard
751
752
753 \size small 
754
755 \begin_inset Quotes eld
756 \end_inset 
757
758 Well, I've a conscience, sir, and when I chanced to see you go into this
759  house, as I came hobbling after you, I thought to myself, I'll just step
760  in and see that kind gentleman, and tell him that if I was a bit gruff
761  in my manner there was not any harm meant, and that I am much obliged to
762  him for picking up my books.
763 \begin_inset Quotes erd
764 \end_inset 
765
766
767 \layout Standard
768
769
770 \size small 
771
772 \begin_inset Quotes eld
773 \end_inset 
774
775 You make too much of a trifle,
776 \begin_inset Quotes erd
777 \end_inset 
778
779  said I.
780  
781 \begin_inset Quotes eld
782 \end_inset 
783
784 May I ask how you knew who I was?
785 \begin_inset Quotes erd
786 \end_inset 
787
788
789 \layout Standard
790
791
792 \size small 
793
794 \begin_inset Quotes eld
795 \end_inset 
796
797 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
798  you'll find my little bookshop at the corner of Church Street, and very
799  happy to see you, I am sure.
800  Maybe you collect yourself, sir.
801  Here's 
802 \noun on 
803 British\SpecialChar ~
804 Birds
805 \noun default 
806 , and 
807 \noun on 
808 Catullus
809 \noun default 
810 , and 
811 \noun on 
812 The Holy War
813 \noun default 
814 --a bargain, every one of them.
815  With five volumes you could just fill that gap on that second shelf.
816  It looks untidy, does it not, sir?
817 \begin_inset Quotes erd
818 \end_inset 
819
820
821 \layout Standard
822
823
824 \begin_inset ERT
825 status Collapsed
826
827 \layout Standard
828
829 \backslash 
830 end{multicols}
831 \end_inset 
832
833
834 \layout Standard
835
836 Comme d'habitude, on réinitialise la valeur après usage.
837 \layout Standard
838
839
840 \begin_inset ERT
841 status Collapsed
842
843 \layout Standard
844
845 \backslash 
846 setlength{
847 \backslash 
848 columnseprule}{0pt}
849 \end_inset 
850
851
852 \layout Standard
853
854 Pour lire le reste de l'histoire, il faudra que vous alliez à la bibliothèque...
855 \begin_inset Foot
856 collapsed true
857
858 \layout Standard
859
860 ...ou trichez comme nous et allez la trouver dans le projet Gutenberg quelque
861  part sur le réseau.
862 \end_inset 
863
864
865 \the_end