]> git.lyx.org Git - wiki-uploads.git/blob - FAQ/scaling-tables.lyx
Add sources for building lyx 1.5.7 and corresponding deb package
[wiki-uploads.git] / FAQ / scaling-tables.lyx
1 #LyX 1.4.4 created this file. For more info see http://www.lyx.org/
2 \lyxformat 245
3 \begin_document
4 \begin_header
5 \textclass article
6 \begin_preamble
7 \usepackage{booktabs}
8 \usepackage{graphicx}
9 \end_preamble
10 \language british
11 \inputencoding auto
12 \fontscheme default
13 \graphics default
14 \paperfontsize default
15 \spacing single
16 \papersize default
17 \use_geometry false
18 \use_amsmath 1
19 \cite_engine basic
20 \use_bibtopic false
21 \paperorientation portrait
22 \secnumdepth 3
23 \tocdepth 3
24 \paragraph_separation skip
25 \defskip medskip
26 \quotes_language english
27 \papercolumns 1
28 \papersides 1
29 \paperpagestyle default
30 \tracking_changes false
31 \output_changes false
32 \end_header
33
34 \begin_body
35
36 \begin_layout Standard
37 nice text nice text nice text nice text nice text nice text nice text nice
38  text nice text nice text nice text nice text nice text nice text nice text
39  nice text nice text nice text nice text nice text nice text nice text nice
40  text nice text nice text nice text nice text nice text nice text nice text
41  nice text nice text
42 \end_layout
43
44 \begin_layout Standard
45 This table is scaled to the textwidth:
46 \end_layout
47
48 \begin_layout Standard
49 \begin_inset ERT
50 status open
51
52 \begin_layout Standard
53
54
55 \backslash
56 resizebox{
57 \backslash
58 textwidth}{!}{%
59 \end_layout
60
61 \end_inset
62
63
64 \end_layout
65
66 \begin_layout Standard
67 \begin_inset Tabular
68 <lyxtabular version="3" rows="5" columns="5">
69 <features>
70 <column alignment="center" valignment="top" width="0">
71 <column alignment="center" valignment="top" width="0">
72 <column alignment="center" valignment="top" width="0">
73 <column alignment="center" valignment="top" width="0">
74 <column alignment="center" valignment="top" width="3cm">
75 <row>
76 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
77 \begin_inset Text
78
79 \begin_layout Standard
80 \begin_inset ERT
81 status collapsed
82
83 \begin_layout Standard
84
85
86 \backslash
87 toprule{}
88 \end_layout
89
90 \end_inset
91
92 foo foo
93 \end_layout
94
95 \end_inset
96 </cell>
97 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
98 \begin_inset Text
99
100 \begin_layout Standard
101 foo foo
102 \end_layout
103
104 \end_inset
105 </cell>
106 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
107 \begin_inset Text
108
109 \begin_layout Standard
110 foo foo
111 \end_layout
112
113 \end_inset
114 </cell>
115 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
116 \begin_inset Text
117
118 \begin_layout Standard
119 foo foo
120 \end_layout
121
122 \end_inset
123 </cell>
124 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
125 \begin_inset Text
126
127 \begin_layout Standard
128 This is set to width = 3 cm
129 \end_layout
130
131 \end_inset
132 </cell>
133 </row>
134 <row>
135 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
136 \begin_inset Text
137
138 \begin_layout Standard
139 foo foo
140 \end_layout
141
142 \end_inset
143 </cell>
144 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
145 \begin_inset Text
146
147 \begin_layout Standard
148 foo foo
149 \end_layout
150
151 \end_inset
152 </cell>
153 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
154 \begin_inset Text
155
156 \begin_layout Standard
157 foo foo
158 \end_layout
159
160 \end_inset
161 </cell>
162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
163 \begin_inset Text
164
165 \begin_layout Standard
166 foo foo
167 \end_layout
168
169 \end_inset
170 </cell>
171 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
172 \begin_inset Text
173
174 \begin_layout Standard
175 foo foo
176 \end_layout
177
178 \end_inset
179 </cell>
180 </row>
181 <row>
182 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
183 \begin_inset Text
184
185 \begin_layout Standard
186
187 \end_layout
188
189 \end_inset
190 </cell>
191 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
192 \begin_inset Text
193
194 \begin_layout Standard
195 foo foo
196 \end_layout
197
198 \end_inset
199 </cell>
200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
201 \begin_inset Text
202
203 \begin_layout Standard
204
205 \end_layout
206
207 \end_inset
208 </cell>
209 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
210 \begin_inset Text
211
212 \begin_layout Standard
213
214 \end_layout
215
216 \end_inset
217 </cell>
218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
219 \begin_inset Text
220
221 \begin_layout Standard
222
223 \end_layout
224
225 \end_inset
226 </cell>
227 </row>
228 <row>
229 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
230 \begin_inset Text
231
232 \begin_layout Standard
233
234 \end_layout
235
236 \end_inset
237 </cell>
238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
239 \begin_inset Text
240
241 \begin_layout Standard
242 foo foo
243 \end_layout
244
245 \end_inset
246 </cell>
247 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
248 \begin_inset Text
249
250 \begin_layout Standard
251 foo foo
252 \end_layout
253
254 \end_inset
255 </cell>
256 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
257 \begin_inset Text
258
259 \begin_layout Standard
260
261 \end_layout
262
263 \end_inset
264 </cell>
265 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
266 \begin_inset Text
267
268 \begin_layout Standard
269
270 \end_layout
271
272 \end_inset
273 </cell>
274 </row>
275 <row>
276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
277 \begin_inset Text
278
279 \begin_layout Standard
280 \begin_inset ERT
281 status collapsed
282
283 \begin_layout Standard
284
285
286 \backslash
287 midrule
288 \end_layout
289
290 \end_inset
291
292
293 \end_layout
294
295 \end_inset
296 </cell>
297 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
298 \begin_inset Text
299
300 \begin_layout Standard
301
302 \end_layout
303
304 \end_inset
305 </cell>
306 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
307 \begin_inset Text
308
309 \begin_layout Standard
310
311 \end_layout
312
313 \end_inset
314 </cell>
315 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
316 \begin_inset Text
317
318 \begin_layout Standard
319
320 \end_layout
321
322 \end_inset
323 </cell>
324 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
325 \begin_inset Text
326
327 \begin_layout Standard
328 foo foo
329 \begin_inset ERT
330 status collapsed
331
332 \begin_layout Standard
333
334
335 \backslash
336 tabularnewline
337 \backslash
338 bottomrule%
339 \end_layout
340
341 \end_inset
342
343
344 \end_layout
345
346 \end_inset
347 </cell>
348 </row>
349 </lyxtabular>
350
351 \end_inset
352
353
354 \begin_inset ERT
355 status open
356
357 \begin_layout Standard
358
359 }
360 \end_layout
361
362 \end_inset
363
364
365 \end_layout
366
367 \begin_layout Standard
368 nice text nice text nice text nice text nice text nice text nice text nice
369  text nice text nice text nice text nice text nice text nice text nice text
370  nice text nice text nice text nice text nice text nice text nice text nice
371  text nice text nice text nice text nice text nice text nice text nice text
372  nice text nice text nice text nice text nice text 
373 \end_layout
374
375 \begin_layout Standard
376 This table is scaled to 50% of the textwidth:
377 \end_layout
378
379 \begin_layout Standard
380 \begin_inset ERT
381 status open
382
383 \begin_layout Standard
384
385
386 \backslash
387 resizebox{0.5
388 \backslash
389 textwidth}{!}{%
390 \end_layout
391
392 \end_inset
393
394
395 \end_layout
396
397 \begin_layout Standard
398 \begin_inset Tabular
399 <lyxtabular version="3" rows="5" columns="5">
400 <features>
401 <column alignment="center" valignment="top" width="0">
402 <column alignment="center" valignment="top" width="0">
403 <column alignment="center" valignment="top" width="0">
404 <column alignment="center" valignment="top" width="0">
405 <column alignment="center" valignment="top" width="3cm">
406 <row>
407 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
408 \begin_inset Text
409
410 \begin_layout Standard
411 \begin_inset ERT
412 status collapsed
413
414 \begin_layout Standard
415
416
417 \backslash
418 toprule{}
419 \end_layout
420
421 \end_inset
422
423 foo foo
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 foo foo
433 \end_layout
434
435 \end_inset
436 </cell>
437 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
438 \begin_inset Text
439
440 \begin_layout Standard
441 foo foo
442 \end_layout
443
444 \end_inset
445 </cell>
446 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
447 \begin_inset Text
448
449 \begin_layout Standard
450 foo foo
451 \end_layout
452
453 \end_inset
454 </cell>
455 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
456 \begin_inset Text
457
458 \begin_layout Standard
459 This is set to width = 3 cm
460 \end_layout
461
462 \end_inset
463 </cell>
464 </row>
465 <row>
466 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
467 \begin_inset Text
468
469 \begin_layout Standard
470 foo foo
471 \end_layout
472
473 \end_inset
474 </cell>
475 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
476 \begin_inset Text
477
478 \begin_layout Standard
479 foo foo
480 \end_layout
481
482 \end_inset
483 </cell>
484 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
485 \begin_inset Text
486
487 \begin_layout Standard
488 foo foo
489 \end_layout
490
491 \end_inset
492 </cell>
493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
494 \begin_inset Text
495
496 \begin_layout Standard
497 foo foo
498 \end_layout
499
500 \end_inset
501 </cell>
502 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
503 \begin_inset Text
504
505 \begin_layout Standard
506 foo foo
507 \end_layout
508
509 \end_inset
510 </cell>
511 </row>
512 <row>
513 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
514 \begin_inset Text
515
516 \begin_layout Standard
517
518 \end_layout
519
520 \end_inset
521 </cell>
522 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
523 \begin_inset Text
524
525 \begin_layout Standard
526 foo foo
527 \end_layout
528
529 \end_inset
530 </cell>
531 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
532 \begin_inset Text
533
534 \begin_layout Standard
535
536 \end_layout
537
538 \end_inset
539 </cell>
540 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
541 \begin_inset Text
542
543 \begin_layout Standard
544
545 \end_layout
546
547 \end_inset
548 </cell>
549 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
550 \begin_inset Text
551
552 \begin_layout Standard
553
554 \end_layout
555
556 \end_inset
557 </cell>
558 </row>
559 <row>
560 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
561 \begin_inset Text
562
563 \begin_layout Standard
564
565 \end_layout
566
567 \end_inset
568 </cell>
569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
570 \begin_inset Text
571
572 \begin_layout Standard
573 foo foo
574 \end_layout
575
576 \end_inset
577 </cell>
578 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
579 \begin_inset Text
580
581 \begin_layout Standard
582 foo foo
583 \end_layout
584
585 \end_inset
586 </cell>
587 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
588 \begin_inset Text
589
590 \begin_layout Standard
591
592 \end_layout
593
594 \end_inset
595 </cell>
596 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
597 \begin_inset Text
598
599 \begin_layout Standard
600
601 \end_layout
602
603 \end_inset
604 </cell>
605 </row>
606 <row>
607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
608 \begin_inset Text
609
610 \begin_layout Standard
611 \begin_inset ERT
612 status collapsed
613
614 \begin_layout Standard
615
616
617 \backslash
618 midrule
619 \end_layout
620
621 \end_inset
622
623
624 \end_layout
625
626 \end_inset
627 </cell>
628 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
629 \begin_inset Text
630
631 \begin_layout Standard
632
633 \end_layout
634
635 \end_inset
636 </cell>
637 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
638 \begin_inset Text
639
640 \begin_layout Standard
641
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 \end_layout
652
653 \end_inset
654 </cell>
655 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
656 \begin_inset Text
657
658 \begin_layout Standard
659 foo foo
660 \begin_inset ERT
661 status open
662
663 \begin_layout Standard
664
665
666 \backslash
667 tabularnewline
668 \backslash
669 bottomrule%
670 \end_layout
671
672 \end_inset
673
674
675 \end_layout
676
677 \end_inset
678 </cell>
679 </row>
680 </lyxtabular>
681
682 \end_inset
683
684
685 \begin_inset ERT
686 status open
687
688 \begin_layout Standard
689
690 }
691 \end_layout
692
693 \end_inset
694
695
696 \end_layout
697
698 \begin_layout Standard
699 nice text nice text nice text nice text nice text nice text nice text nice
700  text nice text nice text nice text nice text nice text nice text nice text
701  nice text nice text nice text nice text nice text nice text nice text nice
702  text nice text nice text nice text nice text nice text nice text nice text
703  nice text nice text nice text nice text nice text 
704 \end_layout
705
706 \begin_layout Standard
707 \begin_inset Float table
708 wide false
709 sideways false
710 status open
711
712 \begin_layout Caption
713 This is a scaled table, centered, inside a table float:
714 \end_layout
715
716 \begin_layout Standard
717 \begin_inset ERT
718 status open
719
720 \begin_layout Standard
721
722
723 \backslash
724 begin{center}
725 \end_layout
726
727 \begin_layout Standard
728
729
730 \backslash
731 resizebox{0.7
732 \backslash
733 textwidth}{!}{%
734 \end_layout
735
736 \end_inset
737
738
739 \end_layout
740
741 \begin_layout Standard
742 \begin_inset Tabular
743 <lyxtabular version="3" rows="5" columns="5">
744 <features>
745 <column alignment="center" valignment="top" width="0">
746 <column alignment="center" valignment="top" width="0">
747 <column alignment="center" valignment="top" width="0">
748 <column alignment="center" valignment="top" width="0">
749 <column alignment="center" valignment="top" width="3cm">
750 <row>
751 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
752 \begin_inset Text
753
754 \begin_layout Standard
755 \begin_inset ERT
756 status collapsed
757
758 \begin_layout Standard
759
760
761 \backslash
762 toprule{}
763 \end_layout
764
765 \end_inset
766
767 foo foo
768 \end_layout
769
770 \end_inset
771 </cell>
772 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
773 \begin_inset Text
774
775 \begin_layout Standard
776 foo foo
777 \end_layout
778
779 \end_inset
780 </cell>
781 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
782 \begin_inset Text
783
784 \begin_layout Standard
785 foo foo
786 \end_layout
787
788 \end_inset
789 </cell>
790 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
791 \begin_inset Text
792
793 \begin_layout Standard
794 foo foo
795 \end_layout
796
797 \end_inset
798 </cell>
799 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
800 \begin_inset Text
801
802 \begin_layout Standard
803 This is set to width = 3 cm
804 \end_layout
805
806 \end_inset
807 </cell>
808 </row>
809 <row>
810 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
811 \begin_inset Text
812
813 \begin_layout Standard
814 foo foo
815 \end_layout
816
817 \end_inset
818 </cell>
819 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
820 \begin_inset Text
821
822 \begin_layout Standard
823 foo foo
824 \end_layout
825
826 \end_inset
827 </cell>
828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
829 \begin_inset Text
830
831 \begin_layout Standard
832 foo foo
833 \end_layout
834
835 \end_inset
836 </cell>
837 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
838 \begin_inset Text
839
840 \begin_layout Standard
841 foo foo
842 \end_layout
843
844 \end_inset
845 </cell>
846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
847 \begin_inset Text
848
849 \begin_layout Standard
850 foo foo
851 \end_layout
852
853 \end_inset
854 </cell>
855 </row>
856 <row>
857 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
858 \begin_inset Text
859
860 \begin_layout Standard
861
862 \end_layout
863
864 \end_inset
865 </cell>
866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
867 \begin_inset Text
868
869 \begin_layout Standard
870 foo foo
871 \end_layout
872
873 \end_inset
874 </cell>
875 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
876 \begin_inset Text
877
878 \begin_layout Standard
879
880 \end_layout
881
882 \end_inset
883 </cell>
884 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
885 \begin_inset Text
886
887 \begin_layout Standard
888
889 \end_layout
890
891 \end_inset
892 </cell>
893 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
894 \begin_inset Text
895
896 \begin_layout Standard
897
898 \end_layout
899
900 \end_inset
901 </cell>
902 </row>
903 <row>
904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
905 \begin_inset Text
906
907 \begin_layout Standard
908
909 \end_layout
910
911 \end_inset
912 </cell>
913 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
914 \begin_inset Text
915
916 \begin_layout Standard
917 foo foo
918 \end_layout
919
920 \end_inset
921 </cell>
922 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
923 \begin_inset Text
924
925 \begin_layout Standard
926 foo foo
927 \end_layout
928
929 \end_inset
930 </cell>
931 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
932 \begin_inset Text
933
934 \begin_layout Standard
935
936 \end_layout
937
938 \end_inset
939 </cell>
940 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
941 \begin_inset Text
942
943 \begin_layout Standard
944
945 \end_layout
946
947 \end_inset
948 </cell>
949 </row>
950 <row>
951 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
952 \begin_inset Text
953
954 \begin_layout Standard
955 \begin_inset ERT
956 status collapsed
957
958 \begin_layout Standard
959
960
961 \backslash
962 midrule
963 \end_layout
964
965 \end_inset
966
967
968 \end_layout
969
970 \end_inset
971 </cell>
972 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
973 \begin_inset Text
974
975 \begin_layout Standard
976
977 \end_layout
978
979 \end_inset
980 </cell>
981 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
982 \begin_inset Text
983
984 \begin_layout Standard
985
986 \end_layout
987
988 \end_inset
989 </cell>
990 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
991 \begin_inset Text
992
993 \begin_layout Standard
994
995 \end_layout
996
997 \end_inset
998 </cell>
999 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1000 \begin_inset Text
1001
1002 \begin_layout Standard
1003 foo foo
1004 \begin_inset ERT
1005 status open
1006
1007 \begin_layout Standard
1008
1009
1010 \backslash
1011 tabularnewline
1012 \backslash
1013 bottomrule%
1014 \end_layout
1015
1016 \end_inset
1017
1018
1019 \end_layout
1020
1021 \end_inset
1022 </cell>
1023 </row>
1024 </lyxtabular>
1025
1026 \end_inset
1027
1028
1029 \begin_inset ERT
1030 status open
1031
1032 \begin_layout Standard
1033
1034 }
1035 \end_layout
1036
1037 \begin_layout Standard
1038
1039
1040 \backslash
1041 end{center}
1042 \end_layout
1043
1044 \end_inset
1045
1046
1047 \end_layout
1048
1049 \end_inset
1050
1051
1052 \end_layout
1053
1054 \end_body
1055 \end_document