]> git.lyx.org Git - lyx.git/blob - lib/examples/Minipage.lyx
powerdot-example.lyx: transform ERT box to listings inset
[lyx.git] / lib / examples / Minipage.lyx
1 #LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
2 \lyxformat 245
3 \begin_document
4 \begin_header
5 \textclass article
6 \language english
7 \inputencoding latin1
8 \fontscheme default
9 \graphics default
10 \paperfontsize default
11 \spacing single
12 \papersize default
13 \use_geometry false
14 \use_amsmath 0
15 \cite_engine basic
16 \use_bibtopic false
17 \paperorientation portrait
18 \secnumdepth 3
19 \tocdepth 3
20 \paragraph_separation skip
21 \defskip medskip
22 \quotes_language danish
23 \papercolumns 1
24 \papersides 1
25 \paperpagestyle default
26 \tracking_changes false
27 \output_changes true
28 \end_header
29
30 \begin_body
31
32 \begin_layout Standard
33 \align center
34
35 \series bold
36 \size largest
37 Some examples of how to use minipages
38 \end_layout
39
40 \begin_layout Standard
41 \align center
42
43 \series bold
44 \size largest
45 in LyX 
46 \end_layout
47
48 \begin_layout Standard
49 \align center
50
51 \series bold
52 \size largest
53 by Jürgen Vigna (jug@sad.it)
54 \end_layout
55
56 \begin_layout Standard
57
58
59 \begin_inset VSpace bigskip
60 \end_inset
61
62
63 \end_layout
64
65
66 \begin_layout Standard
67
68
69 \begin_inset Box Frameless
70 position "t"
71 hor_pos "c"
72 has_inner_box 1
73 inner_pos "c"
74 use_parbox 0
75 width "45text%"
76 special "none"
77 height "1pt"
78 height_special "totalheight"
79 status open
80
81
82 \begin_layout Standard
83
84
85 \begin_inset VSpace 0.3cm
86 \end_inset
87
88
89 \end_layout
90
91 \begin_layout Standard
92 \align center
93
94 \begin_inset  Tabular
95 <lyxtabular version="3" rows="5" columns="5">
96 <features>
97 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
98 <column alignment="center" valignment="top" leftline="true" width="0pt">
99 <column alignment="center" valignment="top" leftline="true" width="0pt">
100 <column alignment="center" valignment="top" leftline="true" width="0pt">
101 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
102 <row topline="true" bottomline="true">
103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
104 \begin_inset Text
105
106 \begin_layout Standard
107
108 1
109 \end_layout
110
111 \end_inset
112 </cell>
113 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
114 \begin_inset Text
115
116 \begin_layout Standard
117
118 2
119 \end_layout
120
121 \end_inset
122 </cell>
123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
124 \begin_inset Text
125
126 \begin_layout Standard
127
128 3
129 \end_layout
130
131 \end_inset
132 </cell>
133 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
134 \begin_inset Text
135
136 \begin_layout Standard
137
138 4
139 \end_layout
140
141 \end_inset
142 </cell>
143 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
144 \begin_inset Text
145
146 \begin_layout Standard
147
148 5
149 \end_layout
150
151 \end_inset
152 </cell>
153 </row>
154 <row topline="true">
155 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
156 \begin_inset Text
157
158 \begin_layout Standard
159
160 2
161 \end_layout
162
163 \end_inset
164 </cell>
165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
166 \begin_inset Text
167
168 \begin_layout Standard
169
170 a
171 \end_layout
172
173 \end_inset
174 </cell>
175 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
176 \begin_inset Text
177
178 \begin_layout Standard
179
180 b
181 \end_layout
182
183 \end_inset
184 </cell>
185 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
186 \begin_inset Text
187
188 \begin_layout Standard
189
190 c
191 \end_layout
192
193 \end_inset
194 </cell>
195 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
196 \begin_inset Text
197
198 \begin_layout Standard
199
200 d
201 \end_layout
202
203 \end_inset
204 </cell>
205 </row>
206 <row topline="true">
207 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
208 \begin_inset Text
209
210 \begin_layout Standard
211
212 3
213 \end_layout
214
215 \end_inset
216 </cell>
217 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
218 \begin_inset Text
219
220 \begin_layout Standard
221
222 e
223 \end_layout
224
225 \end_inset
226 </cell>
227 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
228 \begin_inset Text
229
230 \begin_layout Standard
231
232 f
233 \end_layout
234
235 \end_inset
236 </cell>
237 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
238 \begin_inset Text
239
240 \begin_layout Standard
241
242 g
243 \end_layout
244
245 \end_inset
246 </cell>
247 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
248 \begin_inset Text
249
250 \begin_layout Standard
251
252 h
253 \end_layout
254
255 \end_inset
256 </cell>
257 </row>
258 <row topline="true">
259 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
260 \begin_inset Text
261
262 \begin_layout Standard
263
264 4
265 \end_layout
266
267 \end_inset
268 </cell>
269 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
270 \begin_inset Text
271
272 \begin_layout Standard
273
274 i
275 \end_layout
276
277 \end_inset
278 </cell>
279 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
280 \begin_inset Text
281
282 \begin_layout Standard
283
284 j
285 \end_layout
286
287 \end_inset
288 </cell>
289 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
290 \begin_inset Text
291
292 \begin_layout Standard
293
294 k
295 \end_layout
296
297 \end_inset
298 </cell>
299 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
300 \begin_inset Text
301
302 \begin_layout Standard
303
304 l
305 \end_layout
306
307 \end_inset
308 </cell>
309 </row>
310 <row topline="true" bottomline="true">
311 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
312 \begin_inset Text
313
314 \begin_layout Standard
315
316 5
317 \end_layout
318
319 \end_inset
320 </cell>
321 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
322 \begin_inset Text
323
324 \begin_layout Standard
325
326 m
327 \end_layout
328
329 \end_inset
330 </cell>
331 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
332 \begin_inset Text
333
334 \begin_layout Standard
335
336 n
337 \end_layout
338
339 \end_inset
340 </cell>
341 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
342 \begin_inset Text
343
344 \begin_layout Standard
345
346 o
347 \end_layout
348
349 \end_inset
350 </cell>
351 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
352 \begin_inset Text
353
354 \begin_layout Standard
355
356 p
357 \end_layout
358
359 \end_inset
360 </cell>
361 </row>
362 </lyxtabular>
363
364 \end_inset
365
366
367 \end_layout
368
369 \begin_layout Standard
370
371
372 \begin_inset VSpace 0.3cm
373 \end_inset
374
375
376 \end_layout
377
378
379 \end_inset
380
381
382 \hfill
383
384 \begin_inset Box Frameless
385 position "t"
386 hor_pos "c"
387 has_inner_box 1
388 inner_pos "c"
389 use_parbox 0
390 width "45text%"
391 special "none"
392 height "1pt"
393 height_special "totalheight"
394 status open
395
396
397 \begin_layout Standard
398
399
400 \begin_inset VSpace 0.3cm
401 \end_inset
402
403
404 \end_layout
405
406 \begin_layout Standard
407 \align center
408
409 \begin_inset  Tabular
410 <lyxtabular version="3" rows="5" columns="5">
411 <features>
412 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
413 <column alignment="center" valignment="top" leftline="true" width="0pt">
414 <column alignment="center" valignment="top" leftline="true" width="0pt">
415 <column alignment="center" valignment="top" leftline="true" width="0pt">
416 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
417 <row topline="true" bottomline="true">
418 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
419 \begin_inset Text
420
421 \begin_layout Standard
422
423 1
424 \end_layout
425
426 \end_inset
427 </cell>
428 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
429 \begin_inset Text
430
431 \begin_layout Standard
432
433 2
434 \end_layout
435
436 \end_inset
437 </cell>
438 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
439 \begin_inset Text
440
441 \begin_layout Standard
442
443 3
444 \end_layout
445
446 \end_inset
447 </cell>
448 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
449 \begin_inset Text
450
451 \begin_layout Standard
452
453 4
454 \end_layout
455
456 \end_inset
457 </cell>
458 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
459 \begin_inset Text
460
461 \begin_layout Standard
462
463 5
464 \end_layout
465
466 \end_inset
467 </cell>
468 </row>
469 <row topline="true">
470 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
471 \begin_inset Text
472
473 \begin_layout Standard
474
475 2
476 \end_layout
477
478 \end_inset
479 </cell>
480 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
481 \begin_inset Text
482
483 \begin_layout Standard
484
485 a
486 \end_layout
487
488 \end_inset
489 </cell>
490 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
491 \begin_inset Text
492
493 \begin_layout Standard
494
495 b
496 \end_layout
497
498 \end_inset
499 </cell>
500 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
501 \begin_inset Text
502
503 \begin_layout Standard
504
505 c
506 \end_layout
507
508 \end_inset
509 </cell>
510 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
511 \begin_inset Text
512
513 \begin_layout Standard
514
515 d
516 \end_layout
517
518 \end_inset
519 </cell>
520 </row>
521 <row topline="true">
522 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
523 \begin_inset Text
524
525 \begin_layout Standard
526
527 3
528 \end_layout
529
530 \end_inset
531 </cell>
532 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
533 \begin_inset Text
534
535 \begin_layout Standard
536
537 e
538 \end_layout
539
540 \end_inset
541 </cell>
542 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
543 \begin_inset Text
544
545 \begin_layout Standard
546
547 f
548 \end_layout
549
550 \end_inset
551 </cell>
552 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
553 \begin_inset Text
554
555 \begin_layout Standard
556
557 g
558 \end_layout
559
560 \end_inset
561 </cell>
562 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
563 \begin_inset Text
564
565 \begin_layout Standard
566
567 h
568 \end_layout
569
570 \end_inset
571 </cell>
572 </row>
573 <row topline="true">
574 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
575 \begin_inset Text
576
577 \begin_layout Standard
578
579 4
580 \end_layout
581
582 \end_inset
583 </cell>
584 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
585 \begin_inset Text
586
587 \begin_layout Standard
588
589 i
590 \end_layout
591
592 \end_inset
593 </cell>
594 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
595 \begin_inset Text
596
597 \begin_layout Standard
598
599 j
600 \end_layout
601
602 \end_inset
603 </cell>
604 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
605 \begin_inset Text
606
607 \begin_layout Standard
608
609 k
610 \end_layout
611
612 \end_inset
613 </cell>
614 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
615 \begin_inset Text
616
617 \begin_layout Standard
618
619 l
620 \end_layout
621
622 \end_inset
623 </cell>
624 </row>
625 <row topline="true" bottomline="true">
626 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
627 \begin_inset Text
628
629 \begin_layout Standard
630
631 5
632 \end_layout
633
634 \end_inset
635 </cell>
636 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
637 \begin_inset Text
638
639 \begin_layout Standard
640
641 m
642 \end_layout
643
644 \end_inset
645 </cell>
646 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
647 \begin_inset Text
648
649 \begin_layout Standard
650
651 n
652 \end_layout
653
654 \end_inset
655 </cell>
656 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
657 \begin_inset Text
658
659 \begin_layout Standard
660
661 o
662 \end_layout
663
664 \end_inset
665 </cell>
666 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
667 \begin_inset Text
668
669 \begin_layout Standard
670
671 p
672 \end_layout
673
674 \end_inset
675 </cell>
676 </row>
677 </lyxtabular>
678
679 \end_inset
680
681
682 \end_layout
683
684 \begin_layout Standard
685
686
687 \begin_inset VSpace 0.3cm
688 \end_inset
689
690
691 \end_layout
692
693
694 \end_inset
695
696
697 \end_layout
698
699 \begin_layout Standard
700
701
702 \begin_inset Box Frameless
703 position "t"
704 hor_pos "c"
705 has_inner_box 1
706 inner_pos "c"
707 use_parbox 0
708 width "45text%"
709 special "none"
710 height "1pt"
711 height_special "totalheight"
712 status open
713
714 \begin_layout Standard
715 \align center
716 This is Table 1
717 \end_layout
718
719 \end_inset
720
721
722 \hfill
723
724 \begin_inset Box Frameless
725 position "t"
726 hor_pos "c"
727 has_inner_box 1
728 inner_pos "c"
729 use_parbox 0
730 width "45text%"
731 special "none"
732 height "1pt"
733 height_special "totalheight"
734 status open
735
736 \begin_layout Standard
737 \align center
738 This is Table 2
739 \end_layout
740
741 \end_inset
742
743
744 \end_layout
745
746 \begin_layout Subsection*
747
748 I use the following when I have to write bilingual text (I live in a region
749  in Italy where about 60% of the people speak german and so you have to
750  write letters in german and italian in two columns as the following text
751  shows):
752 \end_layout
753
754 \begin_layout Standard
755
756
757 \hfill
758
759 \begin_inset Box Frameless
760 position "t"
761 hor_pos "c"
762 has_inner_box 1
763 inner_pos "c"
764 use_parbox 0
765 width "45text%"
766 special "none"
767 height "1pt"
768 height_special "totalheight"
769 status open
770
771 \begin_layout Standard
772
773
774 \lang german
775 Dies ist ein deutscher Text.
776  Dies ist ein deutscher Text.
777  Dies ist ein deutscher Text.
778  Dies ist ein deutscher Text.
779  Dies ist ein deutscher Text.
780  Dies ist ein deutscher Text.
781  Dies ist ein deutscher Text.
782  Dies ist ein deutscher Text.
783  Dies ist ein deutscher Text.
784  Dies ist ein deutscher Text.
785  Dies ist ein deutscher Text.
786  Dies ist ein deutscher Text.
787  Dies ist ein deutscher Text
788 \begin_inset Foot
789 status collapsed
790
791 \begin_layout Standard
792
793
794 \lang german
795 Dies ist eine Fußnote
796 \end_layout
797
798 \end_inset
799
800 .
801  Dies ist ein deutscher Text.
802  Dies ist ein deutscher Text.
803 \end_layout
804
805 \end_inset
806
807
808 \hfill
809
810 \begin_inset Box Frameless
811 position "t"
812 hor_pos "c"
813 has_inner_box 1
814 inner_pos "c"
815 use_parbox 0
816 width "45text%"
817 special "none"
818 height "1pt"
819 height_special "totalheight"
820 status open
821
822 \begin_layout Standard
823
824 This is an english Text.
825  This is an english Text.
826  This is an english Text.
827  This is an english Text.
828  This is an english Text.
829  This is an english Text.
830  This is an english Text.
831  This is an english Text.
832  This is an english Text.
833  This is an english Text.
834  This is an english Text.
835  This is an english Text.
836  This is an english Text.
837  This is an english Text.
838  This is an english Text.
839  This is an english Text.
840 \begin_inset Foot
841 status collapsed
842
843 \begin_layout Standard
844
845 This is a footnote
846 \end_layout
847
848 \end_inset
849
850  This is an english Text.
851  
852 \end_layout
853
854 \end_inset
855
856
857 \end_layout
858
859 \begin_layout Standard
860
861 I hope this helps understand for what f.ex.
862  you can use minipages!
863 \end_layout
864
865 \begin_layout Subsection*
866
867 Greets Jürgen
868 \end_layout
869
870 \end_body
871 \end_document