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