]> git.lyx.org Git - lyx.git/blob - lib/examples/colored-boxes.lyx
colored-boxes.lyx: some fixes
[lyx.git] / lib / examples / colored-boxes.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 498
3 \begin_document
4 \begin_header
5 \origin unavailable
6 \textclass scrartcl
7 \begin_preamble
8 % if pdflatex is used
9 \usepackage{ifpdf}
10 \ifpdf
11
12 % set fonts for nicer pdf view
13 \IfFileExists{lmodern.sty}
14  {\usepackage{lmodern}}{}
15
16 \fi % end if pdflatex is used
17
18 \@ifpackageloaded{babel}{
19  % increase link area for cross-references and autoname them,
20  \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
21  \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
22  \addto\extrasenglish{%
23   \renewcommand*{\equationautorefname}[1]{}%
24   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
25   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
26   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
27  }
28 }{}
29 \end_preamble
30 \options BCOR8mm, most, usenames, dvipsnames
31 \use_default_options false
32 \begin_modules
33 tcolorbox
34 \end_modules
35 \maintain_unincluded_children false
36 \language english
37 \language_package default
38 \inputencoding auto
39 \fontencoding global
40 \font_roman default
41 \font_sans default
42 \font_typewriter default
43 \font_math auto
44 \font_default_family default
45 \use_non_tex_fonts false
46 \font_sc false
47 \font_osf false
48 \font_sf_scale 100
49 \font_tt_scale 100
50 \graphics default
51 \default_output_format default
52 \output_sync 0
53 \bibtex_command bibtex
54 \index_command default
55 \paperfontsize 12
56 \spacing single
57 \use_hyperref true
58 \pdf_title "Description of the module tcolorbox"
59 \pdf_author "Uwe Stöhr"
60 \pdf_subject "fancy colored boxes"
61 \pdf_keywords "LyX, tcolorbox, colored boxes"
62 \pdf_bookmarks true
63 \pdf_bookmarksnumbered true
64 \pdf_bookmarksopen true
65 \pdf_bookmarksopenlevel 3
66 \pdf_breaklinks false
67 \pdf_pdfborder true
68 \pdf_colorlinks true
69 \pdf_backref false
70 \pdf_pdfusetitle false
71 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, urlbordercolor={1 0 0}"
72 \papersize a4paper
73 \use_geometry false
74 \use_package amsmath 1
75 \use_package amssymb 1
76 \use_package cancel 0
77 \use_package esint 1
78 \use_package mathdots 1
79 \use_package mathtools 1
80 \use_package mhchem 1
81 \use_package stackrel 0
82 \use_package stmaryrd 0
83 \use_package undertilde 0
84 \cite_engine basic
85 \cite_engine_type default
86 \biblio_style plain
87 \use_bibtopic false
88 \use_indices false
89 \paperorientation portrait
90 \suppress_date true
91 \justification true
92 \use_refstyle 0
93 \notefontcolor #0000ff
94 \index Index
95 \shortcut idx
96 \color #008000
97 \end_index
98 \secnumdepth 3
99 \tocdepth 3
100 \paragraph_separation skip
101 \defskip medskip
102 \quotes_language english
103 \papercolumns 1
104 \papersides 1
105 \paperpagestyle default
106 \tracking_changes false
107 \output_changes false
108 \html_math_output 0
109 \html_css_as_file 0
110 \html_be_strict false
111 \end_header
112
113 \begin_body
114
115 \begin_layout Title
116 Description of the module Fancy Colored Boxes
117 \end_layout
118
119 \begin_layout Author
120 Uwe Stöhr
121 \end_layout
122
123 \begin_layout Standard
124 With the module 
125 \emph on
126 Fancy
127 \begin_inset space ~
128 \end_inset
129
130 Colored
131 \begin_inset space ~
132 \end_inset
133
134 Boxes
135 \emph default
136  you have access to a huge variety of colored boxes.
137  They are particularly useful for presentations or educational texts where
138  you might for example highlight results or equations.
139  This document describes how these boxes are used with \SpecialChar LyX
140 .
141 \end_layout
142
143 \begin_layout Standard
144 The fancy boxes are generated by the \SpecialChar LaTeX
145  package 
146 \series bold
147 tcolorbox
148 \series default
149 .
150  This package has so many features that its manual exceeds 400
151 \begin_inset space ~
152 \end_inset
153
154 pages.
155  \SpecialChar LyX
156  can therefore only provide access to its basic features.
157  For more advanced features and examples have a loot at the 
158 \series bold
159 tcolorbox
160 \series default
161  manual, 
162 \begin_inset CommandInset citation
163 LatexCommand cite
164 key "tcolorbox"
165
166 \end_inset
167
168 .
169 \end_layout
170
171 \begin_layout Section
172 Preparation
173 \end_layout
174
175 \begin_layout Standard
176 At first load the module 
177 \family sans
178 Fancy
179 \begin_inset space ~
180 \end_inset
181
182 Colored
183 \begin_inset space ~
184 \end_inset
185
186 Boxes
187 \family default
188  in the document settings of your file.
189 \end_layout
190
191 \begin_layout Standard
192 Add the following options to the document class options in the document
193  settings of your file:
194 \end_layout
195
196 \begin_layout Standard
197
198 \series bold
199 most, usenames, dvipsnames
200 \end_layout
201
202 \begin_layout Standard
203 The option 
204 \series bold
205 most
206 \series default
207  loads most of the libraries of the \SpecialChar LaTeX
208  package 
209 \series bold
210 tcolorbox
211 \series default
212 .
213  The options 
214 \series bold
215 usenames, dvipsnames
216 \series default
217  load additional colors, see Appendix
218 \begin_inset space ~
219 \end_inset
220
221 C of the 
222 \emph on
223 Embedded
224 \begin_inset space ~
225 \end_inset
226
227 Objects
228 \emph default
229  manual for a list.
230 \end_layout
231
232 \begin_layout Section
233 Basics
234 \end_layout
235
236 \begin_layout Subsection
237 Box types
238 \end_layout
239
240 \begin_layout Subsubsection
241 Static (Standard)
242 \end_layout
243
244 \begin_layout Standard
245 A static color box is inserted via the menu 
246 \family sans
247 Insert\SpecialChar menuseparator
248 Custom Insets\SpecialChar menuseparator
249 Color
250 \begin_inset space ~
251 \end_inset
252
253 Box
254 \family default
255 .
256 \end_layout
257
258 \begin_layout Standard
259 This is a static color box: 
260 \begin_inset Flex Color Box
261 status open
262
263 \begin_layout Plain Layout
264 A basic color box.
265 \end_layout
266
267 \end_inset
268
269
270 \end_layout
271
272 \begin_layout Standard
273 It has by default a frame with round corners and consumes the full text
274  width.
275  It can contain several paragraphs and math.
276 \end_layout
277
278 \begin_layout Standard
279 \begin_inset Note Greyedout
280 status open
281
282 \begin_layout Plain Layout
283
284 \series bold
285 Note:
286 \series default
287  The box can contain forced page breaks but they will be ignored.
288  To get breakable boxes, see 
289 \begin_inset CommandInset ref
290 LatexCommand ref
291 reference "sec:Beakable-boxes"
292
293 \end_inset
294
295 .
296 \end_layout
297
298 \end_inset
299
300
301 \end_layout
302
303 \begin_layout Subsubsection
304 Dynamic
305 \end_layout
306
307 \begin_layout Standard
308 A dynamic color box is inserted via inset via the menu 
309 \family sans
310 Insert\SpecialChar menuseparator
311 Custom Insets\SpecialChar menuseparator
312 Dynamic
313 \begin_inset space ~
314 \end_inset
315
316 Color
317 \begin_inset space ~
318 \end_inset
319
320 Box
321 \family default
322 .
323 \end_layout
324
325 \begin_layout Standard
326 This is a dynamic color box: 
327 \begin_inset Flex Dynamic Color Box
328 status open
329
330 \begin_layout Plain Layout
331 A dynamic color box.
332 \end_layout
333
334 \end_inset
335
336
337 \end_layout
338
339 \begin_layout Standard
340 In contrary to static boxes dynamic boxes cannot have parts, see 
341 \begin_inset CommandInset ref
342 LatexCommand ref
343 reference "subsec:Box-parts"
344
345 \end_inset
346
347 , and they cannot made breakable but one can set their vertical placement,
348  see 
349 \begin_inset CommandInset ref
350 LatexCommand ref
351 reference "subsec:Vertical"
352
353 \end_inset
354
355 .
356  Their width is by default the width of the content.
357 \end_layout
358
359 \begin_layout Subsubsection
360 Fit
361 \end_layout
362
363 \begin_layout Standard
364 A fit color box is inserted via the menu 
365 \family sans
366 Insert\SpecialChar menuseparator
367 Custom Insets\SpecialChar menuseparator
368 Fit
369 \begin_inset space ~
370 \end_inset
371
372 Color
373 \begin_inset space ~
374 \end_inset
375
376 Box
377 \family default
378 .
379 \end_layout
380
381 \begin_layout Standard
382 Fit boxes are dynamic boxes but their content is automatically decreased
383  or increased to fit into the specified box width and heigh.
384  How to specify a width and height is described in 
385 \begin_inset CommandInset ref
386 LatexCommand ref
387 reference "subsec:Geometry"
388
389 \end_inset
390
391 .
392  If no width and height is specified the result is a square box consuming
393  the full available width of the page.
394  If only a width is specified, the result is a square box.
395 \end_layout
396
397 \begin_layout Standard
398 These are fit color boxes:
399 \end_layout
400
401 \begin_layout Standard
402 \begin_inset Flex Fit Color Box
403 status open
404
405 \begin_layout Plain Layout
406 \begin_inset Argument 1
407 status open
408
409 \begin_layout Plain Layout
410 width=3cm
411 \end_layout
412
413 \end_inset
414
415 A 3
416 \begin_inset space \thinspace{}
417 \end_inset
418
419 cm wide fit color box with some text.
420  A 3
421 \begin_inset space \thinspace{}
422 \end_inset
423
424 cm wide fit color box with some text.
425  A 3
426 \begin_inset space \thinspace{}
427 \end_inset
428
429 cm wide fit color box with some text.
430 \end_layout
431
432 \end_inset
433
434
435 \end_layout
436
437 \begin_layout Standard
438 \begin_inset Flex Fit Color Box
439 status open
440
441 \begin_layout Plain Layout
442 \begin_inset Argument 1
443 status open
444
445 \begin_layout Plain Layout
446 width=5cm, height=3cm
447 \end_layout
448
449 \end_inset
450
451 A 5
452 \begin_inset space \thinspace{}
453 \end_inset
454
455 cm wide and 3
456 \begin_inset space \thinspace{}
457 \end_inset
458
459 cm high fit color box.
460 \end_layout
461
462 \end_inset
463
464
465 \end_layout
466
467 \begin_layout Standard
468 The examples show that the text will be shrinked to fit into the box but
469  it will not be increased.
470 \end_layout
471
472 \begin_layout Subsubsection
473 Custom
474 \end_layout
475
476 \begin_layout Standard
477 A custom color box is inserted via the menu 
478 \family sans
479 Insert\SpecialChar menuseparator
480 Custom Insets\SpecialChar menuseparator
481 Custom Color
482 \begin_inset space ~
483 \end_inset
484
485 Box
486 \begin_inset space ~
487 \end_inset
488
489 #
490 \family default
491  where # is the number.
492 \end_layout
493
494 \begin_layout Standard
495 How to use and customize custom color boxes, see 
496 \begin_inset CommandInset ref
497 LatexCommand ref
498 reference "subsec:General"
499
500 \end_inset
501
502 .
503 \end_layout
504
505 \begin_layout Subsection
506 Titles
507 \end_layout
508
509 \begin_layout Standard
510 To add a title to a box add an options inset via the menu Insert\SpecialChar menuseparator
511 Color
512 \begin_inset space ~
513 \end_inset
514
515 Box
516 \begin_inset space ~
517 \end_inset
518
519 Options.
520  There write 
521 \series bold
522 title=
523 \series default
524  followed by your title.
525 \end_layout
526
527 \begin_layout Standard
528 This is a titled box: 
529 \begin_inset Flex Color Box
530 status open
531
532 \begin_layout Plain Layout
533 \begin_inset Argument 1
534 status open
535
536 \begin_layout Plain Layout
537 title=A title
538 \end_layout
539
540 \end_inset
541
542 A basic box with a title.
543 \end_layout
544
545 \end_inset
546
547
548 \end_layout
549
550 \begin_layout Standard
551 A subtitle is added with the inset 
552 \family sans
553 Subtitle
554 \family default
555  via the menu 
556 \family sans
557 Insert\SpecialChar menuseparator
558 Custom Insets
559 \family default
560 :
561 \end_layout
562
563 \begin_layout Standard
564 \begin_inset Flex Color Box
565 status open
566
567 \begin_layout Plain Layout
568 \begin_inset Argument 1
569 status open
570
571 \begin_layout Plain Layout
572 title=The title
573 \end_layout
574
575 \end_inset
576
577 A basic box with a subtitle.
578  
579 \begin_inset Flex Subtitle
580 status open
581
582 \begin_layout Plain Layout
583 The subtitle
584 \end_layout
585
586 \end_inset
587
588  The content below the subtitle.
589 \end_layout
590
591 \end_inset
592
593
594 \end_layout
595
596 \begin_layout Standard
597 The title and subtitle text is by default white.
598  How to change its color, see 
599 \begin_inset CommandInset ref
600 LatexCommand ref
601 reference "subsec:Title-text"
602
603 \end_inset
604
605 .
606 \end_layout
607
608 \begin_layout Subsection
609 Box parts
610 \begin_inset CommandInset label
611 LatexCommand label
612 name "subsec:Box-parts"
613
614 \end_inset
615
616
617 \end_layout
618
619 \begin_layout Standard
620 The content of the box can be divided into an upper and a lower part by
621  using the environment 
622 \family sans
623 Color Box Separator
624 \family default
625  in \SpecialChar LyX
626 's environment selection combobox.
627  The idea behind this is that both parts can be treated and customized separatel
628 y.
629  An application would be that the upper part contains a description and
630  the lower part an equation.
631 \end_layout
632
633 \begin_layout Standard
634 This is a box where the content is separated:
635 \end_layout
636
637 \begin_layout Standard
638 \begin_inset Flex Color Box
639 status open
640
641 \begin_layout Plain Layout
642 Upper content
643 \end_layout
644
645 \begin_layout Color Box Separator
646
647 \end_layout
648
649 \begin_layout Plain Layout
650 Lower content
651 \end_layout
652
653 \end_inset
654
655
656 \end_layout
657
658 \begin_layout Standard
659 The separation line can be customized as described in 
660 \begin_inset CommandInset ref
661 LatexCommand ref
662 reference "subsec:Lines"
663
664 \end_inset
665
666 .
667 \end_layout
668
669 \begin_layout Standard
670 The separation can also be made side by side with the box option 
671 \series bold
672 sidebyside
673 \series default
674 .
675 \end_layout
676
677 \begin_layout Standard
678 \begin_inset Flex Color Box
679 status open
680
681 \begin_layout Plain Layout
682 \begin_inset Argument 1
683 status open
684
685 \begin_layout Plain Layout
686 sidebyside
687 \end_layout
688
689 \end_inset
690
691 Upper content at the left
692 \end_layout
693
694 \begin_layout Color Box Separator
695
696 \end_layout
697
698 \begin_layout Plain Layout
699 Lower content at the right
700 \end_layout
701
702 \end_inset
703
704
705 \end_layout
706
707 \begin_layout Standard
708 The separation can be made invisible with the box option 
709 \series bold
710 lower separated=false
711 \series default
712 .
713 \end_layout
714
715 \begin_layout Standard
716 \begin_inset Flex Color Box
717 status open
718
719 \begin_layout Plain Layout
720 \begin_inset Argument 1
721 status open
722
723 \begin_layout Plain Layout
724 sidebyside, lower separated=false
725 \end_layout
726
727 \end_inset
728
729 Upper content invisibly separated
730 \end_layout
731
732 \begin_layout Color Box Separator
733
734 \end_layout
735
736 \begin_layout Plain Layout
737 Lower content at the right
738 \end_layout
739
740 \end_inset
741
742
743 \end_layout
744
745 \begin_layout Standard
746 There are several layout skins available for colored boxes, see 
747 \begin_inset CommandInset ref
748 LatexCommand ref
749 reference "subsec:Beamer"
750
751 \end_inset
752
753 , that affects also the layout of the box parts.
754  For example with the box option 
755 \series bold
756 beamer
757 \series default
758  the box parts are separated this way:
759 \end_layout
760
761 \begin_layout Standard
762 \begin_inset Flex Color Box
763 status open
764
765 \begin_layout Plain Layout
766 \begin_inset Argument 1
767 status open
768
769 \begin_layout Plain Layout
770 beamer
771 \end_layout
772
773 \end_inset
774
775 Upper content
776 \end_layout
777
778 \begin_layout Color Box Separator
779
780 \end_layout
781
782 \begin_layout Plain Layout
783 Lower content
784 \end_layout
785
786 \end_inset
787
788
789 \end_layout
790
791 \begin_layout Subsection
792 Lines
793 \begin_inset CommandInset label
794 LatexCommand label
795 name "subsec:Lines"
796
797 \end_inset
798
799
800 \end_layout
801
802 \begin_layout Standard
803 To draw a line in a box use the environment 
804 \family sans
805 Color Box Line
806 \family default
807 .
808  The line is by default dashed.
809  Note that it is just a line and does not separate box parts!
810 \end_layout
811
812 \begin_layout Standard
813 This is a box with a line:
814 \end_layout
815
816 \begin_layout Standard
817 \begin_inset Flex Color Box
818 status open
819
820 \begin_layout Plain Layout
821 Some text
822 \end_layout
823
824 \begin_layout Color Box Line
825
826 \end_layout
827
828 \begin_layout Plain Layout
829 Some text
830 \end_layout
831
832 \end_inset
833
834
835 \end_layout
836
837 \begin_layout Standard
838 The line style can only be changed if a skin is specified, see 
839 \begin_inset CommandInset ref
840 LatexCommand ref
841 reference "subsec:Enhanced"
842
843 \end_inset
844
845 .
846  Then one can use the box option 
847 \series bold
848 segmentation style={commands}
849 \series default
850  where 
851 \series bold
852 commands
853 \series default
854  are commands to define the style.
855  See section 
856 \family sans
857 Library
858 \begin_inset space ~
859 \end_inset
860
861 skins
862 \family default
863  of the 
864 \series bold
865 tcolorbox
866 \series default
867  manual for possible commands, 
868 \begin_inset CommandInset citation
869 LatexCommand cite
870 key "tcolorbox"
871
872 \end_inset
873
874 .
875 \end_layout
876
877 \begin_layout Standard
878 Here is an example in the 
879 \emph on
880 enhanced
881 \emph default
882  skin with a double blue line:
883 \end_layout
884
885 \begin_layout Standard
886 \begin_inset Flex Color Box
887 status open
888
889 \begin_layout Plain Layout
890 \begin_inset Argument 1
891 status open
892
893 \begin_layout Plain Layout
894 enhanced, segmentation style={double=white,draw=blue,double distance=1pt,solid}
895 \end_layout
896
897 \end_inset
898
899 Some text
900 \end_layout
901
902 \begin_layout Color Box Line
903
904 \end_layout
905
906 \begin_layout Plain Layout
907 Some text
908 \end_layout
909
910 \end_inset
911
912
913 \end_layout
914
915 \begin_layout Standard
916 \begin_inset Newpage newpage
917 \end_inset
918
919
920 \end_layout
921
922 \begin_layout Section
923 Breakable boxes
924 \begin_inset CommandInset label
925 LatexCommand label
926 name "sec:Beakable-boxes"
927
928 \end_inset
929
930
931 \end_layout
932
933 \begin_layout Standard
934 To make a box breakable the option 
935 \series bold
936 breakable
937 \series default
938  is added.
939  If a page break occurs within a box, the box will get broken this way:
940 \end_layout
941
942 \begin_layout Standard
943 \begin_inset Flex Color Box
944 status open
945
946 \begin_layout Plain Layout
947 \begin_inset Argument 1
948 status open
949
950 \begin_layout Plain Layout
951 title=A breakable box, breakable, title after break=continued...
952 \end_layout
953
954 \end_inset
955
956 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
957  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
958  voluptua.
959  At vero eos et accusam et justo duo dolores et ea rebum.
960  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
961  sit amet.
962  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
963  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
964  voluptua.
965  At vero eos et accusam et justo duo dolores et ea rebum.
966  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
967  sit amet.
968  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
969  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
970  voluptua.
971  At vero eos et accusam et justo duo dolores et ea rebum.
972  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
973  sit amet.
974  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
975  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
976  voluptua.
977  At vero eos et accusam et justo duo dolores et ea rebum.
978  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
979  sit amet.
980  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
981  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
982  voluptua.
983  At vero eos et accusam et justo duo dolores et ea rebum.
984  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
985  sit amet.
986  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
987  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
988  voluptua.
989  At vero eos et accusam et justo duo dolores et ea rebum.
990  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
991  sit amet.
992  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
993  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
994  voluptua.
995  At vero eos et accusam et justo duo dolores et ea rebum.
996  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
997  sit amet.
998  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
999  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
1000  voluptua.
1001  At vero eos et accusam et justo duo dolores et ea rebum.
1002  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
1003  sit amet.
1004  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
1005  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
1006  voluptua.
1007  At vero eos et accusam et justo duo dolores et ea rebum.
1008  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
1009  sit amet.
1010  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
1011  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
1012  voluptua.
1013  At vero eos et accusam et justo duo dolores et ea rebum.
1014  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
1015  sit amet.
1016 \end_layout
1017
1018 \end_inset
1019
1020
1021 \end_layout
1022
1023 \begin_layout Standard
1024 In the above example the special title 
1025 \emph on
1026 continued...
1027
1028 \emph default
1029  was added for the second page of the box with the option 
1030 \series bold
1031 title after break
1032 \series default
1033 .
1034 \end_layout
1035
1036 \begin_layout Standard
1037 If boxes are inside boxes, only the outer box can made breakable.
1038 \end_layout
1039
1040 \begin_layout Standard
1041 \begin_inset Note Greyedout
1042 status open
1043
1044 \begin_layout Plain Layout
1045
1046 \series bold
1047 Note:
1048 \series default
1049  Dynamic boxes and fit boxes cannot made breakable!
1050 \end_layout
1051
1052 \end_inset
1053
1054
1055 \end_layout
1056
1057 \begin_layout Section
1058 Customization
1059 \end_layout
1060
1061 \begin_layout Subsection
1062 General
1063 \begin_inset CommandInset label
1064 LatexCommand label
1065 name "subsec:General"
1066
1067 \end_inset
1068
1069
1070 \end_layout
1071
1072 \begin_layout Standard
1073 The following subsections show many possibilities to customize boxes.
1074 \end_layout
1075
1076 \begin_layout Standard
1077 To avoid to write the box commands all the time, you can use the environment
1078  
1079 \family sans
1080 Color
1081 \begin_inset space ~
1082 \end_inset
1083
1084 Box
1085 \begin_inset space ~
1086 \end_inset
1087
1088 Setup
1089 \family default
1090 .
1091  It is inserted via \SpecialChar LyX
1092 's style selection combobox.
1093  There you can write all options that should be applied for 
1094 \emph on
1095 all
1096 \emph default
1097  boxes of the document 
1098 \emph on
1099 following
1100 \emph default
1101  the environment.
1102  For example writing there 
1103 \series bold
1104 width=3cm, height=8cm
1105 \series default
1106  forces all following boxes to have a height of 8
1107 \begin_inset space \thinspace{}
1108 \end_inset
1109
1110 cm and a width of 3
1111 \begin_inset space \thinspace{}
1112 \end_inset
1113
1114 cm.
1115  However, this is not useful if one needs several box types since the changes
1116  would affect 
1117 \emph on
1118 all
1119 \emph default
1120  boxes.
1121 \end_layout
1122
1123 \begin_layout Standard
1124 In most documents one need a few types of boxes and all boxes of a type
1125  should look identical.
1126  To achieve this the module 
1127 \emph on
1128 Fancy
1129 \begin_inset space ~
1130 \end_inset
1131
1132 Colored
1133 \begin_inset space ~
1134 \end_inset
1135
1136 Boxes
1137 \emph default
1138  predefines 5
1139 \begin_inset space ~
1140 \end_inset
1141
1142 different box types which you can customize.
1143  To change their appearance use the environment 
1144 \family sans
1145 New
1146 \begin_inset space ~
1147 \end_inset
1148
1149 Color
1150 \begin_inset space ~
1151 \end_inset
1152
1153 Box
1154 \begin_inset space ~
1155 \end_inset
1156
1157 Type
1158 \family default
1159 .
1160  It is inserted via \SpecialChar LyX
1161 's style selection combobox.
1162 \end_layout
1163
1164 \begin_layout Standard
1165 If you want for example a box type that looks like the fancy colored one
1166  in 
1167 \begin_inset CommandInset ref
1168 LatexCommand ref
1169 reference "subsec:Enhanced"
1170
1171 \end_inset
1172
1173  use these options in the environment:
1174 \end_layout
1175
1176 \begin_layout Standard
1177
1178 \series bold
1179 enhanced, frame style={left color=red!75!black, right color=blue!75!black},
1180  interior style={left color=red!20!white, right color=yellow!50!white}
1181 \end_layout
1182
1183 \begin_layout Standard
1184 Into the 
1185 \family sans
1186 Name
1187 \family default
1188  inset write 
1189 \series bold
1190 cBoxA
1191 \series default
1192  (cBoxA is custom box type
1193 \begin_inset space ~
1194 \end_inset
1195
1196 1, cBoxB type
1197 \begin_inset space ~
1198 \end_inset
1199
1200 2 etc.).
1201  Because you want to customize every box of this type (e.
1202 \begin_inset space \thinspace{}
1203 \end_inset
1204
1205 g.
1206 \begin_inset space \space{}
1207 \end_inset
1208
1209 every box should have its own title), you need one argument.
1210  Therefore add 
1211 \series bold
1212 1
1213 \series default
1214  into the Arguments inset of the environment.
1215 \end_layout
1216
1217 \begin_layout Standard
1218 \begin_inset Note Greyedout
1219 status open
1220
1221 \begin_layout Plain Layout
1222
1223 \series bold
1224 Note:
1225 \series default
1226  If you use an argument, the inset 
1227 \family sans
1228 Default Value
1229 \family default
1230  must also be inserted but left empty!
1231 \end_layout
1232
1233 \end_inset
1234
1235
1236 \end_layout
1237
1238 \begin_layout New Color Box Type
1239 \begin_inset Argument 2
1240 status open
1241
1242 \begin_layout Plain Layout
1243 cBoxA
1244 \end_layout
1245
1246 \end_inset
1247
1248
1249 \begin_inset Argument 3
1250 status open
1251
1252 \begin_layout Plain Layout
1253 1
1254 \end_layout
1255
1256 \end_inset
1257
1258
1259 \begin_inset Argument 4
1260 status open
1261
1262 \begin_layout Plain Layout
1263
1264 \end_layout
1265
1266 \end_inset
1267
1268 enhanced, frame style={left color=red!75!black, right color=blue!75!black},
1269  interior style={left color=red!20!white, right color=yellow!50!white},
1270  #1
1271 \end_layout
1272
1273 \begin_layout Standard
1274 This way you defined the box type 
1275 \family sans
1276 Custom
1277 \begin_inset space ~
1278 \end_inset
1279
1280 Color
1281 \begin_inset space ~
1282 \end_inset
1283
1284 Box
1285 \begin_inset space ~
1286 \end_inset
1287
1288 1
1289 \family default
1290 .
1291  Boxes of this type will look like this:
1292 \end_layout
1293
1294 \begin_layout Standard
1295 \begin_inset Flex Custom Color Box 1
1296 status open
1297
1298 \begin_layout Plain Layout
1299 \begin_inset Argument 1
1300 status open
1301
1302 \begin_layout Plain Layout
1303 title=Custom box
1304 \end_layout
1305
1306 \end_inset
1307
1308 Custom color box 1
1309 \end_layout
1310
1311 \end_inset
1312
1313
1314 \end_layout
1315
1316 \begin_layout Standard
1317 \begin_inset VSpace bigskip
1318 \end_inset
1319
1320 Another example:
1321 \begin_inset Newline newline
1322 \end_inset
1323
1324 Assuming you need a box type that can be numbered, you insert
1325 \end_layout
1326
1327 \begin_layout Standard
1328
1329 \series bold
1330 auto counter, number within=section
1331 \end_layout
1332
1333 \begin_layout Standard
1334 into the 
1335 \family sans
1336 New
1337 \series bold
1338  
1339 \series default
1340 Box Options
1341 \family default
1342  inset of the 
1343 \family sans
1344 New
1345 \begin_inset space ~
1346 \end_inset
1347
1348 Color
1349 \begin_inset space ~
1350 \end_inset
1351
1352 Box
1353 \begin_inset space ~
1354 \end_inset
1355
1356 Type
1357 \family default
1358  environment.
1359  The 
1360 \family sans
1361 Name
1362 \family default
1363  is 
1364 \series bold
1365 cBoxB
1366 \series default
1367
1368 \family sans
1369 Arguments
1370 \family default
1371  is 
1372 \series bold
1373 1
1374 \series default
1375 .
1376  Now write
1377 \end_layout
1378
1379 \begin_layout Standard
1380
1381 \series bold
1382 colback=red!5!white, colframe=red!75!black, title=Example~
1383 \backslash
1384 thetcbcounter : #1
1385 \end_layout
1386
1387 \begin_layout Standard
1388 into the environment.
1389  This predefines a title prefix.
1390  
1391 \series bold
1392
1393 \backslash
1394 tcbcounter
1395 \series default
1396  is hereby the counter of colored boxes.
1397  In your 
1398 \family sans
1399 Custom
1400 \begin_inset space ~
1401 \end_inset
1402
1403 Color
1404 \begin_inset space ~
1405 \end_inset
1406
1407 Box
1408 \begin_inset space ~
1409 \end_inset
1410
1411 2
1412 \family default
1413  you specify the title via the options inset:
1414 \end_layout
1415
1416 \begin_layout New Color Box Type
1417 \begin_inset Argument 1
1418 status open
1419
1420 \begin_layout Plain Layout
1421 auto counter, number within=section
1422 \end_layout
1423
1424 \end_inset
1425
1426
1427 \begin_inset Argument 2
1428 status open
1429
1430 \begin_layout Plain Layout
1431 cBoxB
1432 \end_layout
1433
1434 \end_inset
1435
1436
1437 \begin_inset Argument 3
1438 status open
1439
1440 \begin_layout Plain Layout
1441 1
1442 \end_layout
1443
1444 \end_inset
1445
1446
1447 \begin_inset Argument 4
1448 status open
1449
1450 \begin_layout Plain Layout
1451
1452 \end_layout
1453
1454 \end_inset
1455
1456 colback=red!5!white, colframe=red!75!black, title=Example~
1457 \backslash
1458 thetcbcounter : #1
1459 \end_layout
1460
1461 \begin_layout Standard
1462 \begin_inset Flex Custom Color Box 2
1463 status open
1464
1465 \begin_layout Plain Layout
1466 \begin_inset Argument 1
1467 status open
1468
1469 \begin_layout Plain Layout
1470 Custom numbered title
1471 \end_layout
1472
1473 \end_inset
1474
1475 Custom color box 2
1476 \end_layout
1477
1478 \end_inset
1479
1480
1481 \end_layout
1482
1483 \begin_layout Standard
1484 Note that you must not write 
1485 \series bold
1486 title=
1487 \series default
1488  because this is already done in the definition.
1489 \end_layout
1490
1491 \begin_layout Standard
1492 You can still customize the box by adding options 
1493 \emph on
1494 behind
1495 \emph default
1496  the title:
1497 \end_layout
1498
1499 \begin_layout Standard
1500 \begin_inset Flex Custom Color Box 2
1501 status open
1502
1503 \begin_layout Plain Layout
1504 \begin_inset Argument 1
1505 status open
1506
1507 \begin_layout Plain Layout
1508 Bold numbered title, colback=lime, fonttitle=
1509 \backslash
1510 bfseries
1511 \end_layout
1512
1513 \end_inset
1514
1515 Custom color box 2
1516 \end_layout
1517
1518 \end_inset
1519
1520
1521 \end_layout
1522
1523 \begin_layout Standard
1524 \begin_inset VSpace bigskip
1525 \end_inset
1526
1527 At last a more advanced example:
1528 \begin_inset Newline newline
1529 \end_inset
1530
1531 Assuming you need the type we just defined as 
1532 \family sans
1533 Custom
1534 \begin_inset space ~
1535 \end_inset
1536
1537 Color
1538 \begin_inset space ~
1539 \end_inset
1540
1541 Box
1542 \begin_inset space ~
1543 \end_inset
1544
1545 2
1546 \family default
1547  but want to add more than one option.
1548  This is for example useful for options that require another option before
1549  in the options list.
1550 \begin_inset Newline newline
1551 \end_inset
1552
1553 Like before, add 
1554 \end_layout
1555
1556 \begin_layout Standard
1557
1558 \series bold
1559 auto counter, number within=section
1560 \end_layout
1561
1562 \begin_layout Standard
1563 into the 
1564 \family sans
1565 New
1566 \series bold
1567  
1568 \series default
1569 Box Options
1570 \family default
1571  inset of the 
1572 \family sans
1573 New
1574 \begin_inset space ~
1575 \end_inset
1576
1577 Color
1578 \begin_inset space ~
1579 \end_inset
1580
1581 Box
1582 \begin_inset space ~
1583 \end_inset
1584
1585 Type
1586 \family default
1587  environment.
1588  The 
1589 \family sans
1590 Name
1591 \family default
1592  is 
1593 \series bold
1594 cBoxC
1595 \series default
1596 .
1597  Now we need 2
1598 \begin_inset space ~
1599 \end_inset
1600
1601 Arguments, 
1602 \family sans
1603 Arguments
1604 \family default
1605  is therefore 
1606 \series bold
1607 2
1608 \series default
1609 .
1610  Now write
1611 \end_layout
1612
1613 \begin_layout Standard
1614
1615 \series bold
1616 nobeforeafter, width=#1, square, colframe=orange!50!black, 
1617 \begin_inset Newline newline
1618 \end_inset
1619
1620 title=Example~
1621 \backslash
1622 thetcbcounter : #2
1623 \end_layout
1624
1625 \begin_layout Standard
1626 into the environment.
1627  In your 
1628 \family sans
1629 Custom
1630 \begin_inset space ~
1631 \end_inset
1632
1633 Color
1634 \begin_inset space ~
1635 \end_inset
1636
1637 Box
1638 \begin_inset space ~
1639 \end_inset
1640
1641 3
1642 \family default
1643  you specify the width via the 
1644 \family sans
1645 Color Box Options
1646 \family default
1647  inset and the title (and further options if you like) via the 
1648 \family sans
1649 More Color Box Options
1650 \family default
1651  inset:
1652 \end_layout
1653
1654 \begin_layout New Color Box Type
1655 \begin_inset Argument 1
1656 status open
1657
1658 \begin_layout Plain Layout
1659 auto counter, number within=section
1660 \end_layout
1661
1662 \end_inset
1663
1664
1665 \begin_inset Argument 2
1666 status open
1667
1668 \begin_layout Plain Layout
1669 cBoxC
1670 \end_layout
1671
1672 \end_inset
1673
1674
1675 \begin_inset Argument 3
1676 status open
1677
1678 \begin_layout Plain Layout
1679 2
1680 \end_layout
1681
1682 \end_inset
1683
1684
1685 \begin_inset Argument 4
1686 status open
1687
1688 \begin_layout Plain Layout
1689
1690 \end_layout
1691
1692 \end_inset
1693
1694 nobeforeafter, width=#1, square, colframe=orange!50!black, title=Example~
1695 \backslash
1696 thetcbcounter : #2
1697 \end_layout
1698
1699 \begin_layout Standard
1700 \begin_inset Flex Custom Color Box 3
1701 status open
1702
1703 \begin_layout Plain Layout
1704 \begin_inset Argument 1
1705 status open
1706
1707 \begin_layout Plain Layout
1708 4cm
1709 \end_layout
1710
1711 \end_inset
1712
1713
1714 \begin_inset Argument 2
1715 status open
1716
1717 \begin_layout Plain Layout
1718 The title
1719 \end_layout
1720
1721 \end_inset
1722
1723 4
1724 \begin_inset space \thinspace{}
1725 \end_inset
1726
1727 cm wide custom color box 3
1728 \end_layout
1729
1730 \end_inset
1731
1732
1733 \begin_inset Flex Custom Color Box 3
1734 status open
1735
1736 \begin_layout Plain Layout
1737 \begin_inset Argument 1
1738 status open
1739
1740 \begin_layout Plain Layout
1741 4cm
1742 \end_layout
1743
1744 \end_inset
1745
1746
1747 \begin_inset Argument 2
1748 status open
1749
1750 \begin_layout Plain Layout
1751 The title, beamer
1752 \end_layout
1753
1754 \end_inset
1755
1756 4
1757 \begin_inset space \thinspace{}
1758 \end_inset
1759
1760 cm wide custom color box 3 with the 
1761 \emph on
1762 beamer
1763 \emph default
1764  skin
1765 \end_layout
1766
1767 \end_inset
1768
1769
1770 \end_layout
1771
1772 \begin_layout Subsection
1773 Skins
1774 \end_layout
1775
1776 \begin_layout Standard
1777 The \SpecialChar LaTeX
1778  package 
1779 \series bold
1780 tcolorbox
1781 \series default
1782  provides different skins.
1783  For a full list, see the 
1784 \series bold
1785 tcolorbox
1786 \series default
1787  manual, section 
1788 \family sans
1789 Library
1790 \begin_inset space ~
1791 \end_inset
1792
1793 skins
1794 \family default
1795
1796 \begin_inset CommandInset citation
1797 LatexCommand cite
1798 key "tcolorbox"
1799
1800 \end_inset
1801
1802 .
1803  Only the most important skins are listed in the following.
1804 \end_layout
1805
1806 \begin_layout Subsubsection
1807 Enhanced
1808 \begin_inset CommandInset label
1809 LatexCommand label
1810 name "subsec:Enhanced"
1811
1812 \end_inset
1813
1814
1815 \end_layout
1816
1817 \begin_layout Standard
1818 This skin is enabled by adding the option enhanced.
1819  Without further options it looks like the standard skin.
1820  Its advantage are some extra features like the customization of lines,
1821  see 
1822 \begin_inset CommandInset ref
1823 LatexCommand ref
1824 reference "subsec:Lines"
1825
1826 \end_inset
1827
1828  or the ability to have shadows, see 
1829 \begin_inset CommandInset ref
1830 LatexCommand ref
1831 reference "subsec:Shadows"
1832
1833 \end_inset
1834
1835 .
1836  Another feature is a nicer style of breakable boxes:
1837 \end_layout
1838
1839 \begin_layout Standard
1840 \begin_inset Flex Color Box
1841 status open
1842
1843 \begin_layout Plain Layout
1844 \begin_inset Argument 1
1845 status open
1846
1847 \begin_layout Plain Layout
1848 title=An 
1849 \emph on
1850 enhanced
1851 \emph default
1852  breakable box, breakable, enhanced
1853 \end_layout
1854
1855 \end_inset
1856
1857 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
1858  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
1859  voluptua.
1860  At vero eos et accusam et justo duo dolores et ea rebum.
1861  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
1862  sit amet.
1863  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
1864  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
1865  voluptua.
1866  At vero eos et accusam et justo duo dolores et ea rebum.
1867  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
1868  sit amet.
1869  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
1870  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
1871  voluptua.
1872  At vero eos et accusam et justo duo dolores et ea rebum.
1873  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
1874  sit amet.
1875  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
1876  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
1877  voluptua.
1878  At vero eos et accusam et justo duo dolores et ea rebum.
1879  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
1880  sit amet.
1881  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
1882  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
1883  voluptua.
1884  At vero eos et accusam et justo duo dolores et ea rebum.
1885  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
1886  sit amet.
1887  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
1888  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
1889  voluptua.
1890  At vero eos et accusam et justo duo dolores et ea rebum.
1891  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
1892  sit amet.
1893  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
1894  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
1895  voluptua.
1896  At vero eos et accusam et justo duo dolores et ea rebum.
1897  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
1898  sit amet.
1899  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
1900  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
1901  voluptua.
1902  At vero eos et accusam et justo duo dolores et ea rebum.
1903  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
1904  sit amet.
1905  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
1906  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
1907  voluptua.
1908  At vero eos et accusam et justo duo dolores et ea rebum.
1909  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
1910  sit amet.
1911  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
1912  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
1913  voluptua.
1914  At vero eos et accusam et justo duo dolores et ea rebum.
1915  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
1916  sit amet.
1917 \end_layout
1918
1919 \end_inset
1920
1921
1922 \end_layout
1923
1924 \begin_layout Standard
1925 Another feature you might like is to add color gradients with the options
1926  
1927 \series bold
1928 frame style
1929 \series default
1930  and 
1931 \series bold
1932 interior style
1933 \series default
1934 .
1935  Their syntax is
1936 \begin_inset Newline newline
1937 \end_inset
1938
1939
1940 \series bold
1941 frame style={left color=color, right color=color}
1942 \begin_inset Newline newline
1943 \end_inset
1944
1945
1946 \series default
1947 where 
1948 \series bold
1949 color
1950 \series default
1951  is a color name or definition, see 
1952 \begin_inset CommandInset ref
1953 LatexCommand ref
1954 reference "subsec:Color"
1955
1956 \end_inset
1957
1958 .
1959 \end_layout
1960
1961 \begin_layout Standard
1962 \begin_inset Flex Color Box
1963 status open
1964
1965 \begin_layout Plain Layout
1966 \begin_inset Argument 1
1967 status open
1968
1969 \begin_layout Plain Layout
1970 title=An 
1971 \emph on
1972 enhanced
1973 \emph default
1974  box with a color gradient, enhanced, frame style={left color=red!75!black,
1975  right color=blue!75!black}, interior style={left color=red!20!white, right
1976  color=yellow!50!white}
1977 \end_layout
1978
1979 \end_inset
1980
1981 Upper content
1982 \end_layout
1983
1984 \begin_layout Color Box Separator
1985
1986 \end_layout
1987
1988 \begin_layout Plain Layout
1989 Lower content
1990 \end_layout
1991
1992 \end_inset
1993
1994
1995 \end_layout
1996
1997 \begin_layout Standard
1998 Alternatively one can use a PNG image as background for boxes with the option
1999  
2000 \series bold
2001 frame style image=file name
2002 \series default
2003  where 
2004 \series bold
2005 file
2006 \begin_inset space ~
2007 \end_inset
2008
2009 name
2010 \series default
2011  is the file name of the image.
2012 \end_layout
2013
2014 \begin_layout Subsubsection
2015 Bicolor
2016 \end_layout
2017
2018 \begin_layout Standard
2019 With this skin the lower content gets another background color than the
2020  upper part.
2021 \end_layout
2022
2023 \begin_layout Standard
2024 \begin_inset Flex Color Box
2025 status open
2026
2027 \begin_layout Plain Layout
2028 \begin_inset Argument 1
2029 status open
2030
2031 \begin_layout Plain Layout
2032 title=A box with the skin 
2033 \emph on
2034 bicolor
2035 \emph default
2036 , bicolor
2037 \end_layout
2038
2039 \end_inset
2040
2041 Upper content
2042 \end_layout
2043
2044 \begin_layout Color Box Separator
2045
2046 \end_layout
2047
2048 \begin_layout Plain Layout
2049 Lower content
2050 \end_layout
2051
2052 \end_inset
2053
2054
2055 \end_layout
2056
2057 \begin_layout Standard
2058 The color of the lower part can be changed with the option 
2059 \series bold
2060 colbacklower
2061 \series default
2062 .
2063  See 
2064 \begin_inset CommandInset ref
2065 LatexCommand ref
2066 reference "subsec:Color"
2067
2068 \end_inset
2069
2070  for color customization.
2071 \end_layout
2072
2073 \begin_layout Subsubsection
2074 Beamer
2075 \begin_inset CommandInset label
2076 LatexCommand label
2077 name "subsec:Beamer"
2078
2079 \end_inset
2080
2081
2082 \end_layout
2083
2084 \begin_layout Standard
2085 This is a skin that simulates the appearance of the beamer presentation
2086  document class.
2087  Its appearance can be changed like for the enhanced skin, 
2088 \begin_inset CommandInset ref
2089 LatexCommand ref
2090 reference "subsec:Enhanced"
2091
2092 \end_inset
2093
2094 :
2095 \end_layout
2096
2097 \begin_layout Standard
2098 \begin_inset Flex Color Box
2099 status open
2100
2101 \begin_layout Plain Layout
2102 \begin_inset Argument 1
2103 status open
2104
2105 \begin_layout Plain Layout
2106 title=A 
2107 \emph on
2108 beamer
2109 \emph default
2110  box with a color gradient, beamer, frame style={left color=red!75!black,
2111  right color=blue!75!black}
2112 \end_layout
2113
2114 \end_inset
2115
2116 Upper content
2117 \end_layout
2118
2119 \begin_layout Color Box Separator
2120
2121 \end_layout
2122
2123 \begin_layout Plain Layout
2124 Lower content
2125 \end_layout
2126
2127 \end_inset
2128
2129
2130 \end_layout
2131
2132 \begin_layout Subsubsection
2133 Widget
2134 \end_layout
2135
2136 \begin_layout Standard
2137 This skin is like the standard skin but the background colors are automatically
2138  shaded:
2139 \end_layout
2140
2141 \begin_layout Standard
2142 \begin_inset Flex Color Box
2143 status open
2144
2145 \begin_layout Plain Layout
2146 \begin_inset Argument 1
2147 status open
2148
2149 \begin_layout Plain Layout
2150 title=A 
2151 \emph on
2152 widget
2153 \emph default
2154  box, widget
2155 \end_layout
2156
2157 \end_inset
2158
2159 Upper content
2160 \end_layout
2161
2162 \begin_layout Color Box Separator
2163
2164 \end_layout
2165
2166 \begin_layout Plain Layout
2167 Lower content
2168 \end_layout
2169
2170 \end_inset
2171
2172
2173 \end_layout
2174
2175 \begin_layout Subsubsection
2176 Empty
2177 \end_layout
2178
2179 \begin_layout Standard
2180 This skin has no colors.
2181  To make the title visible (because it is by default white) you have to
2182  change its color, see 
2183 \begin_inset CommandInset ref
2184 LatexCommand ref
2185 reference "subsec:Title-text"
2186
2187 \end_inset
2188
2189 :
2190 \end_layout
2191
2192 \begin_layout Standard
2193 \begin_inset Flex Color Box
2194 status open
2195
2196 \begin_layout Plain Layout
2197 \begin_inset Argument 1
2198 status open
2199
2200 \begin_layout Plain Layout
2201 title=A box with the 
2202 \emph on
2203 empty
2204 \emph default
2205  skin, empty, coltitle=orange
2206 \end_layout
2207
2208 \end_inset
2209
2210 Upper content
2211 \end_layout
2212
2213 \begin_layout Color Box Separator
2214
2215 \end_layout
2216
2217 \begin_layout Plain Layout
2218 Lower content
2219 \end_layout
2220
2221 \end_inset
2222
2223
2224 \end_layout
2225
2226 \begin_layout Subsection
2227 Placement
2228 \end_layout
2229
2230 \begin_layout Subsubsection
2231 Side by side
2232 \end_layout
2233
2234 \begin_layout Standard
2235 Normally the boxes are a paragraph of its own.
2236  They will therefore appear by default one upon another separated by vertical
2237  space.
2238  To change this behavior, to place for example boxes side by side, use the
2239  placement options 
2240 \series bold
2241 before=code
2242 \series default
2243  and 
2244 \series bold
2245 after=code
2246 \series default
2247 .
2248  By default there is a paragraph break before and after the box.
2249  By using the options 
2250 \series bold
2251 before=, after=
2252 \series default
2253  nothing will be added besides the boxes so that they can be places side
2254  by side:
2255 \end_layout
2256
2257 \begin_layout Standard
2258 \begin_inset Flex Color Box
2259 status open
2260
2261 \begin_layout Plain Layout
2262 \begin_inset Argument 1
2263 status open
2264
2265 \begin_layout Plain Layout
2266 width=3cm, square, valign=center, before=, after=
2267 \end_layout
2268
2269 \end_inset
2270
2271 A 3
2272 \begin_inset space \thinspace{}
2273 \end_inset
2274
2275 cm wide, square box.
2276 \end_layout
2277
2278 \end_inset
2279
2280
2281 \begin_inset Flex Color Box
2282 status open
2283
2284 \begin_layout Plain Layout
2285 \begin_inset Argument 1
2286 status open
2287
2288 \begin_layout Plain Layout
2289 width=3cm, square, valign=center, before=, after=
2290 \end_layout
2291
2292 \end_inset
2293
2294 A 3
2295 \begin_inset space \thinspace{}
2296 \end_inset
2297
2298 cm wide, square box.
2299 \end_layout
2300
2301 \end_inset
2302
2303
2304 \begin_inset Flex Color Box
2305 status open
2306
2307 \begin_layout Plain Layout
2308 \begin_inset Argument 1
2309 status open
2310
2311 \begin_layout Plain Layout
2312 width=3cm, square, valign=center, before=, after=
2313 \end_layout
2314
2315 \end_inset
2316
2317 A 3
2318 \begin_inset space \thinspace{}
2319 \end_inset
2320
2321 cm wide, square box.
2322 \end_layout
2323
2324 \end_inset
2325
2326
2327 \end_layout
2328
2329 \begin_layout Standard
2330 The option 
2331 \series bold
2332 nobeforeafter
2333 \series default
2334  is an alternative for 
2335 \series bold
2336 before=, after=
2337 \series default
2338 .
2339 \end_layout
2340
2341 \begin_layout Standard
2342 To separate the boxes one can use the normal \SpecialChar LyX
2343  spacing features like a horizontal
2344  fill:
2345 \end_layout
2346
2347 \begin_layout Standard
2348 \begin_inset space \hfill{}
2349 \end_inset
2350
2351
2352 \begin_inset Flex Color Box
2353 status open
2354
2355 \begin_layout Plain Layout
2356 \begin_inset Argument 1
2357 status open
2358
2359 \begin_layout Plain Layout
2360 width=3cm, square, valign=center, nobeforeafter
2361 \end_layout
2362
2363 \end_inset
2364
2365 A 3
2366 \begin_inset space \thinspace{}
2367 \end_inset
2368
2369 cm wide, square box.
2370 \end_layout
2371
2372 \end_inset
2373
2374
2375 \begin_inset space \hfill{}
2376 \end_inset
2377
2378
2379 \begin_inset Flex Color Box
2380 status open
2381
2382 \begin_layout Plain Layout
2383 \begin_inset Argument 1
2384 status open
2385
2386 \begin_layout Plain Layout
2387 width=3cm, square, valign=center, nobeforeafter
2388 \end_layout
2389
2390 \end_inset
2391
2392 A 3
2393 \begin_inset space \thinspace{}
2394 \end_inset
2395
2396 cm wide, square box.
2397 \end_layout
2398
2399 \end_inset
2400
2401
2402 \begin_inset space \hfill{}
2403 \end_inset
2404
2405
2406 \begin_inset Flex Color Box
2407 status open
2408
2409 \begin_layout Plain Layout
2410 \begin_inset Argument 1
2411 status open
2412
2413 \begin_layout Plain Layout
2414 width=3cm, square, valign=center, nobeforeafter
2415 \end_layout
2416
2417 \end_inset
2418
2419 A 3
2420 \begin_inset space \thinspace{}
2421 \end_inset
2422
2423 cm wide, square box.
2424 \end_layout
2425
2426 \end_inset
2427
2428
2429 \begin_inset space \hfill{}
2430 \end_inset
2431
2432
2433 \end_layout
2434
2435 \begin_layout Standard
2436 If you prefer \SpecialChar TeX
2437  code you can alternatively use the option 
2438 \series bold
2439 after=
2440 \backslash
2441 hfill
2442 \series default
2443  to add a a horizontal fill.
2444 \end_layout
2445
2446 \begin_layout Subsubsection
2447 Floating
2448 \end_layout
2449
2450 \begin_layout Standard
2451 Like for tables and figures in a document it is very helpful if boxes could
2452  float in the text to be placed at the optimal position.
2453  This is achieved by the option 
2454 \series bold
2455 float=options
2456 \series default
2457  where 
2458 \series bold
2459 options
2460 \series default
2461  are the optional \SpecialChar TeX
2462  floating placement options 
2463 \begin_inset Quotes eld
2464 \end_inset
2465
2466
2467 \family sans
2468 h
2469 \family default
2470
2471 \begin_inset Quotes erd
2472 \end_inset
2473
2474
2475 \begin_inset Quotes eld
2476 \end_inset
2477
2478
2479 \family sans
2480 t
2481 \family default
2482
2483 \begin_inset Quotes erd
2484 \end_inset
2485
2486
2487 \begin_inset Quotes eld
2488 \end_inset
2489
2490
2491 \family sans
2492 b
2493 \family default
2494
2495 \begin_inset Quotes erd
2496 \end_inset
2497
2498  and 
2499 \begin_inset Quotes eld
2500 \end_inset
2501
2502
2503 \family sans
2504 p
2505 \family default
2506
2507 \begin_inset Quotes erd
2508 \end_inset
2509
2510 .
2511  They correspond to the float placement options described in section 
2512 \family sans
2513 Float
2514 \begin_inset space ~
2515 \end_inset
2516
2517 Placement
2518 \family default
2519  of the 
2520 \emph on
2521 Embedded
2522 \begin_inset space ~
2523 \end_inset
2524
2525 Objects
2526 \emph default
2527  manual.
2528  The placement options can be mixed and are inserted without any separation,
2529  e.
2530 \begin_inset space \thinspace{}
2531 \end_inset
2532
2533 g.
2534 \begin_inset space \space{}
2535 \end_inset
2536
2537
2538 \begin_inset Quotes eld
2539 \end_inset
2540
2541
2542 \family sans
2543 htbp
2544 \family default
2545
2546 \begin_inset Quotes erd
2547 \end_inset
2548
2549 .
2550 \end_layout
2551
2552 \begin_layout Standard
2553 \begin_inset Flex Color Box
2554 status open
2555
2556 \begin_layout Plain Layout
2557 \begin_inset Argument 1
2558 status open
2559
2560 \begin_layout Plain Layout
2561 title=A floating box, float, width=5cm, valign=center
2562 \end_layout
2563
2564 \end_inset
2565
2566 A 5
2567 \begin_inset space \thinspace{}
2568 \end_inset
2569
2570 cm wide floating box.
2571 \end_layout
2572
2573 \end_inset
2574
2575
2576 \end_layout
2577
2578 \begin_layout Standard
2579 For floating boxes the options 
2580 \series bold
2581 before=code
2582 \series default
2583  and 
2584 \series bold
2585 after=code 
2586 \series default
2587 are ignored.
2588  One can instead insert code with the command 
2589 \series bold
2590 every float=code
2591 \series default
2592  before the box.
2593  If the box is breakable the code is inserted before every part of the break
2594  sequence.
2595  A typical application is to center the floating box with 
2596 \series bold
2597 every float=
2598 \backslash
2599 centering:
2600 \end_layout
2601
2602 \begin_layout Standard
2603 \begin_inset Flex Color Box
2604 status open
2605
2606 \begin_layout Plain Layout
2607 \begin_inset Argument 1
2608 status open
2609
2610 \begin_layout Plain Layout
2611 title=A floating box, float, width=5cm, valign=center, every float=
2612 \backslash
2613 centering
2614 \end_layout
2615
2616 \end_inset
2617
2618 A 5
2619 \begin_inset space \thinspace{}
2620 \end_inset
2621
2622 cm wide floating box.
2623 \end_layout
2624
2625 \end_inset
2626
2627
2628 \end_layout
2629
2630 \begin_layout Subsubsection
2631 Vertical
2632 \begin_inset CommandInset label
2633 LatexCommand label
2634 name "subsec:Vertical"
2635
2636 \end_inset
2637
2638
2639 \end_layout
2640
2641 \begin_layout Standard
2642 The vertical placement of a box in respect to the surrounding text line
2643  can only be set for dynamic boxes.
2644  The option 
2645 \series bold
2646 tcbox raise=length
2647 \series default
2648  raises or lowers the box.
2649  
2650 \series bold
2651 length
2652 \series default
2653  is a value.
2654  The allowed units for values are listed in Appendix
2655 \begin_inset space ~
2656 \end_inset
2657
2658 A of the 
2659 \emph on
2660 Embedded
2661 \begin_inset space ~
2662 \end_inset
2663
2664 Objects
2665 \emph default
2666  manual.
2667  The default width is 
2668 \series bold
2669 tcbox raise=0pt
2670 \series default
2671 .
2672  With the option 
2673 \series bold
2674 tcbox raise base
2675 \series default
2676  the box is lowered so that the base of the box content matches the base
2677  of the surrounding line.
2678 \end_layout
2679
2680 \begin_layout Standard
2681 An example:
2682 \end_layout
2683
2684 \begin_layout Standard
2685 A line......
2686 \begin_inset Flex Dynamic Color Box
2687 status open
2688
2689 \begin_layout Plain Layout
2690 \begin_inset Argument 1
2691 status open
2692
2693 \begin_layout Plain Layout
2694 tcbox raise base, nobeforeafter
2695 \end_layout
2696
2697 \end_inset
2698
2699 Lowered to base
2700 \end_layout
2701
2702 \end_inset
2703
2704 ......
2705 \begin_inset Flex Dynamic Color Box
2706 status open
2707
2708 \begin_layout Plain Layout
2709 \begin_inset Argument 1
2710 status open
2711
2712 \begin_layout Plain Layout
2713 nobeforeafter
2714 \end_layout
2715
2716 \end_inset
2717
2718 Default placement
2719 \end_layout
2720
2721 \end_inset
2722
2723 ......
2724 \begin_inset Flex Dynamic Color Box
2725 status open
2726
2727 \begin_layout Plain Layout
2728 \begin_inset Argument 1
2729 status open
2730
2731 \begin_layout Plain Layout
2732 tcbox raise=1cm, nobeforeafter
2733 \end_layout
2734
2735 \end_inset
2736
2737 Raised 1
2738 \begin_inset space \thinspace{}
2739 \end_inset
2740
2741 cm
2742 \end_layout
2743
2744 \end_inset
2745
2746 ...
2747 \end_layout
2748
2749 \begin_layout Subsubsection
2750 Raster
2751 \end_layout
2752
2753 \begin_layout Standard
2754 The easiest way to place boxes in a table-like raster is to put them into
2755  a raster box.
2756  The 
2757 \family sans
2758 Raster
2759 \begin_inset space ~
2760 \end_inset
2761
2762 Color
2763 \begin_inset space ~
2764 \end_inset
2765
2766 Box
2767 \family default
2768  inset is inserted via the menu 
2769 \family sans
2770 Insert\SpecialChar menuseparator
2771 Custom Insets
2772 \family default
2773 .
2774 \end_layout
2775
2776 \begin_layout Standard
2777 The number of columns is specified with the option 
2778 \series bold
2779 raster columns=number
2780 \series default
2781  where 
2782 \series bold
2783 number
2784 \series default
2785  is the number of columns.
2786  All boxes inserted to the raster box will now automatically be output in
2787  a raster with 3 columns and their width is automatically adjusted.
2788 \end_layout
2789
2790 \begin_layout Standard
2791 \begin_inset Flex Raster Color Box
2792 status open
2793
2794 \begin_layout Plain Layout
2795 \begin_inset Argument 1
2796 status open
2797
2798 \begin_layout Plain Layout
2799 raster columns=3
2800 \end_layout
2801
2802 \end_inset
2803
2804
2805 \end_layout
2806
2807 \begin_layout Plain Layout
2808 \begin_inset Flex Color Box
2809 status open
2810
2811 \begin_layout Plain Layout
2812 \begin_inset Argument 1
2813 status open
2814
2815 \begin_layout Plain Layout
2816 title=A box
2817 \end_layout
2818
2819 \end_inset
2820
2821 A simple box.
2822 \end_layout
2823
2824 \end_inset
2825
2826
2827 \begin_inset Flex Color Box
2828 status open
2829
2830 \begin_layout Plain Layout
2831 \begin_inset Argument 1
2832 status open
2833
2834 \begin_layout Plain Layout
2835 title=A box
2836 \end_layout
2837
2838 \end_inset
2839
2840 A simple box.
2841 \end_layout
2842
2843 \end_inset
2844
2845
2846 \begin_inset Flex Color Box
2847 status open
2848
2849 \begin_layout Plain Layout
2850 \begin_inset Argument 1
2851 status open
2852
2853 \begin_layout Plain Layout
2854 title=A box
2855 \end_layout
2856
2857 \end_inset
2858
2859 A simple box.
2860 \end_layout
2861
2862 \end_inset
2863
2864
2865 \begin_inset Flex Color Box
2866 status open
2867
2868 \begin_layout Plain Layout
2869 \begin_inset Argument 1
2870 status open
2871
2872 \begin_layout Plain Layout
2873 title=A box
2874 \end_layout
2875
2876 \end_inset
2877
2878 A simple box.
2879 \end_layout
2880
2881 \end_inset
2882
2883
2884 \begin_inset Flex Color Box
2885 status open
2886
2887 \begin_layout Plain Layout
2888 \begin_inset Argument 1
2889 status open
2890
2891 \begin_layout Plain Layout
2892 title=A box
2893 \end_layout
2894
2895 \end_inset
2896
2897 A simple box.
2898 \end_layout
2899
2900 \end_inset
2901
2902
2903 \end_layout
2904
2905 \end_inset
2906
2907
2908 \end_layout
2909
2910 \begin_layout Standard
2911 For more info about options of the raster color box, please consult the
2912  
2913 \series bold
2914 tcolorbox
2915 \series default
2916  manual, section 
2917 \family sans
2918 Library
2919 \begin_inset space ~
2920 \end_inset
2921
2922 raster
2923 \family default
2924
2925 \begin_inset CommandInset citation
2926 LatexCommand cite
2927 key "tcolorbox"
2928
2929 \end_inset
2930
2931 .
2932 \end_layout
2933
2934 \begin_layout Subsection
2935 Geometry
2936 \begin_inset CommandInset label
2937 LatexCommand label
2938 name "subsec:Geometry"
2939
2940 \end_inset
2941
2942
2943 \end_layout
2944
2945 \begin_layout Subsubsection
2946 Width
2947 \end_layout
2948
2949 \begin_layout Subsubsection*
2950 Complete box
2951 \end_layout
2952
2953 \begin_layout Standard
2954 The width of the box is changed with the option 
2955 \series bold
2956 width=length
2957 \series default
2958  where 
2959 \series bold
2960 length
2961 \series default
2962  is a value.
2963  The allowed units for values are listed in Appendix
2964 \begin_inset space ~
2965 \end_inset
2966
2967 A of the 
2968 \emph on
2969 Embedded
2970 \begin_inset space ~
2971 \end_inset
2972
2973 Objects
2974 \emph default
2975  manual.
2976  The default width is 
2977 \series bold
2978 width=1
2979 \backslash
2980 linewidth
2981 \series default
2982 .
2983 \end_layout
2984
2985 \begin_layout Standard
2986 \begin_inset Flex Color Box
2987 status open
2988
2989 \begin_layout Plain Layout
2990 \begin_inset Argument 1
2991 status open
2992
2993 \begin_layout Plain Layout
2994 width=6cm
2995 \end_layout
2996
2997 \end_inset
2998
2999 A 6
3000 \begin_inset space \thinspace{}
3001 \end_inset
3002
3003 cm wide box.
3004 \end_layout
3005
3006 \end_inset
3007
3008
3009 \end_layout
3010
3011 \begin_layout Standard
3012 One can also set a width only for the text of the box with the option 
3013 \series bold
3014 text width=length
3015 \series default
3016 .
3017  If the width is shorter than required for the text, new lines will be created
3018  automatically.
3019 \end_layout
3020
3021 \begin_layout Standard
3022 \begin_inset Flex Color Box
3023 status open
3024
3025 \begin_layout Plain Layout
3026 \begin_inset Argument 1
3027 status open
3028
3029 \begin_layout Plain Layout
3030 text width=4cm
3031 \end_layout
3032
3033 \end_inset
3034
3035 Some longer text to fill the box with a width of 4
3036 \begin_inset space \thinspace{}
3037 \end_inset
3038
3039 cm.
3040 \end_layout
3041
3042 \end_inset
3043
3044
3045 \end_layout
3046
3047 \begin_layout Standard
3048 One cannot combine 
3049 \series bold
3050 width
3051 \series default
3052  and 
3053 \series bold
3054 text width
3055 \series default
3056 ; only the last given width option is taken into account.
3057 \end_layout
3058
3059 \begin_layout Standard
3060 To extend the width of the box one must use the 
3061 \series bold
3062 width
3063 \series default
3064  option and can then use the option 
3065 \series bold
3066 add to width=length
3067 \series default
3068 .
3069 \end_layout
3070
3071 \begin_layout Standard
3072 \begin_inset Flex Color Box
3073 status open
3074
3075 \begin_layout Plain Layout
3076 \begin_inset Argument 1
3077 status open
3078
3079 \begin_layout Plain Layout
3080 width=10cm, add to width=2cm
3081 \end_layout
3082
3083 \end_inset
3084
3085 A 10
3086 \begin_inset space \thinspace{}
3087 \end_inset
3088
3089 cm wide box with additional width of 2
3090 \begin_inset space \thinspace{}
3091 \end_inset
3092
3093 cm.
3094 \end_layout
3095
3096 \end_inset
3097
3098
3099 \end_layout
3100
3101 \begin_layout Subsubsection*
3102 Content
3103 \end_layout
3104
3105 \begin_layout Standard
3106 For boxes with parts side by side one can control the width of the box parts
3107  with the options 
3108 \series bold
3109 sidebyside gap
3110 \series default
3111
3112 \series bold
3113 lefthand width
3114 \series default
3115
3116 \series bold
3117 righthand width
3118 \series default
3119
3120 \series bold
3121 lefthand ratio
3122 \series default
3123  and 
3124 \series bold
3125 righthand ratio
3126 \series default
3127 .
3128  The syntax is 
3129 \series bold
3130 sidebyside gap=length
3131 \series default
3132  where 
3133 \series bold
3134 length
3135 \series default
3136  is a value.
3137  The allowed units for the values are listed in Appendix
3138 \begin_inset space ~
3139 \end_inset
3140
3141 A of the 
3142 \emph on
3143 Embedded
3144 \begin_inset space ~
3145 \end_inset
3146
3147 Objects
3148 \emph default
3149  manual.
3150  All options require of course the option 
3151 \series bold
3152 sidebyside
3153 \series default
3154 .
3155 \end_layout
3156
3157 \begin_layout Standard
3158
3159 \series bold
3160 sidebyside gap
3161 \series default
3162  sets the space between the left and the right part:
3163 \end_layout
3164
3165 \begin_layout Standard
3166 \begin_inset Flex Color Box
3167 status open
3168
3169 \begin_layout Plain Layout
3170 \begin_inset Argument 1
3171 status open
3172
3173 \begin_layout Plain Layout
3174 sidebyside, sidebyside gap=2cm
3175 \end_layout
3176
3177 \end_inset
3178
3179 Upper content divided by 2
3180 \begin_inset space \thinspace{}
3181 \end_inset
3182
3183 cm
3184 \end_layout
3185
3186 \begin_layout Color Box Separator
3187
3188 \end_layout
3189
3190 \begin_layout Plain Layout
3191 Lower content
3192 \end_layout
3193
3194 \end_inset
3195
3196
3197 \end_layout
3198
3199 \begin_layout Standard
3200
3201 \series bold
3202 lefthand width
3203 \series default
3204  and 
3205 \series bold
3206 righthand width
3207 \series default
3208  set the absolute width of the left and right part, respectively:
3209 \end_layout
3210
3211 \begin_layout Standard
3212 \begin_inset Flex Color Box
3213 status open
3214
3215 \begin_layout Plain Layout
3216 \begin_inset Argument 1
3217 status open
3218
3219 \begin_layout Plain Layout
3220 sidebyside, lefthand width=3cm
3221 \end_layout
3222
3223 \end_inset
3224
3225 Upper content with a width of 3
3226 \begin_inset space \thinspace{}
3227 \end_inset
3228
3229 cm
3230 \end_layout
3231
3232 \begin_layout Color Box Separator
3233
3234 \end_layout
3235
3236 \begin_layout Plain Layout
3237 Lower content
3238 \end_layout
3239
3240 \end_inset
3241
3242
3243 \end_layout
3244
3245 \begin_layout Standard
3246
3247 \series bold
3248 lefthand ratio
3249 \series default
3250  and 
3251 \series bold
3252 righthand ratio
3253 \series default
3254  set the relative width of the left and right part, respectively:
3255 \end_layout
3256
3257 \begin_layout Standard
3258 \begin_inset Flex Color Box
3259 status open
3260
3261 \begin_layout Plain Layout
3262 \begin_inset Argument 1
3263 status open
3264
3265 \begin_layout Plain Layout
3266 sidebyside, lefthand ratio=0.3
3267 \end_layout
3268
3269 \end_inset
3270
3271 Upper content with a width of 30
3272 \begin_inset space \thinspace{}
3273 \end_inset
3274
3275 % of the box width.
3276 \end_layout
3277
3278 \begin_layout Color Box Separator
3279
3280 \end_layout
3281
3282 \begin_layout Plain Layout
3283 Lower content
3284 \end_layout
3285
3286 \end_inset
3287
3288
3289 \end_layout
3290
3291 \begin_layout Subsubsection
3292 Height
3293 \begin_inset CommandInset label
3294 LatexCommand label
3295 name "subsec:Height"
3296
3297 \end_inset
3298
3299
3300 \end_layout
3301
3302 \begin_layout Subsubsection*
3303 Complete box
3304 \end_layout
3305
3306 \begin_layout Standard
3307 The height of the box is changed with the option 
3308 \series bold
3309 height=length
3310 \series default
3311  where 
3312 \series bold
3313 length
3314 \series default
3315  is a value.
3316  The default height is the height consumed by the box content.
3317 \end_layout
3318
3319 \begin_layout Standard
3320 \begin_inset Flex Color Box
3321 status open
3322
3323 \begin_layout Plain Layout
3324 \begin_inset Argument 1
3325 status open
3326
3327 \begin_layout Plain Layout
3328 height=2cm
3329 \end_layout
3330
3331 \end_inset
3332
3333 A 2
3334 \begin_inset space \thinspace{}
3335 \end_inset
3336
3337 cm high box.
3338 \end_layout
3339
3340 \end_inset
3341
3342
3343 \end_layout
3344
3345 \begin_layout Standard
3346 If the specified height is smaller than the one consumed by the content,
3347  the content will be placed below the box:
3348 \end_layout
3349
3350 \begin_layout Standard
3351 \begin_inset Flex Color Box
3352 status open
3353
3354 \begin_layout Plain Layout
3355 \begin_inset Argument 1
3356 status open
3357
3358 \begin_layout Plain Layout
3359 height=2mm
3360 \end_layout
3361
3362 \end_inset
3363
3364 A 2
3365 \begin_inset space \thinspace{}
3366 \end_inset
3367
3368 mm high box.
3369 \end_layout
3370
3371 \end_inset
3372
3373
3374 \end_layout
3375
3376 \begin_layout Standard
3377 \begin_inset VSpace bigskip
3378 \end_inset
3379
3380 With the option 
3381 \series bold
3382 square
3383 \series default
3384  the height will automatically be set to the same value than the box width.
3385 \end_layout
3386
3387 \begin_layout Standard
3388 \begin_inset Flex Color Box
3389 status open
3390
3391 \begin_layout Plain Layout
3392 \begin_inset Argument 1
3393 status open
3394
3395 \begin_layout Plain Layout
3396 width=3cm, square
3397 \end_layout
3398
3399 \end_inset
3400
3401 A squared box.
3402 \end_layout
3403
3404 \end_inset
3405
3406
3407 \end_layout
3408
3409 \begin_layout Standard
3410 \begin_inset VSpace bigskip
3411 \end_inset
3412
3413 To extend the height of the box in case the content might consume more height
3414  than expected one must use the 
3415 \series bold
3416 height
3417 \series default
3418  option and can then uses the option 
3419 \series bold
3420 height plus=length
3421 \series default
3422 .
3423  An application would be to set a maximal possible height in case you write
3424  a book where the spacing is defined and should not be overwritten by any
3425  value.
3426 \end_layout
3427
3428 \begin_layout Standard
3429 \begin_inset Flex Color Box
3430 status open
3431
3432 \begin_layout Plain Layout
3433 \begin_inset Argument 1
3434 status open
3435
3436 \begin_layout Plain Layout
3437 height=2cm, height plus=2cm
3438 \end_layout
3439
3440 \end_inset
3441
3442 A 2
3443 \begin_inset space \thinspace{}
3444 \end_inset
3445
3446 cm high box with additional height of 2
3447 \begin_inset space \thinspace{}
3448 \end_inset
3449
3450 cm.
3451 \end_layout
3452
3453 \end_inset
3454
3455
3456 \end_layout
3457
3458 \begin_layout Standard
3459 \begin_inset Flex Color Box
3460 status open
3461
3462 \begin_layout Plain Layout
3463 \begin_inset Argument 1
3464 status open
3465
3466 \begin_layout Plain Layout
3467 height=2cm, height plus=2cm
3468 \end_layout
3469
3470 \end_inset
3471
3472 A 2
3473 \begin_inset space \thinspace{}
3474 \end_inset
3475
3476 cm high box with additional height of 2
3477 \begin_inset space \thinspace{}
3478 \end_inset
3479
3480 cm.
3481  Its content consumes 3
3482 \begin_inset space \thinspace{}
3483 \end_inset
3484
3485 cm therefore the box height will also be 3
3486 \begin_inset space \thinspace{}
3487 \end_inset
3488
3489 cm.
3490  A 2
3491 \begin_inset space \thinspace{}
3492 \end_inset
3493
3494 cm high box with additional height of 2
3495 \begin_inset space \thinspace{}
3496 \end_inset
3497
3498 cm.
3499  Its content consumes 3
3500 \begin_inset space \thinspace{}
3501 \end_inset
3502
3503 cm therefore the box height will also be 3
3504 \begin_inset space \thinspace{}
3505 \end_inset
3506
3507 cm.
3508  A 2
3509 \begin_inset space \thinspace{}
3510 \end_inset
3511
3512 cm high box with additional height of 2
3513 \begin_inset space \thinspace{}
3514 \end_inset
3515
3516 cm.
3517  Its content consumes 3
3518 \begin_inset space \thinspace{}
3519 \end_inset
3520
3521 cm therefore the box height will also be 3
3522 \begin_inset space \thinspace{}
3523 \end_inset
3524
3525 cm.
3526 \end_layout
3527
3528 \end_inset
3529
3530
3531 \end_layout
3532
3533 \begin_layout Standard
3534 \begin_inset VSpace bigskip
3535 \end_inset
3536
3537 In some cases it might be useful to specify an allowed range for the height
3538  with the option 
3539 \series bold
3540 height from=min to max
3541 \series default
3542  where 
3543 \series bold
3544 min
3545 \series default
3546  and 
3547 \series bold
3548 max
3549 \series default
3550  are values.
3551  The height will then be at least the given minimal value or the height
3552  consumed by the content.
3553  It does not exceed the maximum, independent of the content:
3554 \end_layout
3555
3556 \begin_layout Standard
3557 \begin_inset Flex Color Box
3558 status open
3559
3560 \begin_layout Plain Layout
3561 \begin_inset Argument 1
3562 status open
3563
3564 \begin_layout Plain Layout
3565 height from=1cm to 3cm
3566 \end_layout
3567
3568 \end_inset
3569
3570 A box with minimal height of 1
3571 \begin_inset space \thinspace{}
3572 \end_inset
3573
3574 cm and maximal height of 3
3575 \begin_inset space \thinspace{}
3576 \end_inset
3577
3578 cm.
3579 \end_layout
3580
3581 \end_inset
3582
3583
3584 \end_layout
3585
3586 \begin_layout Standard
3587 \begin_inset Flex Color Box
3588 status open
3589
3590 \begin_layout Plain Layout
3591 \begin_inset Argument 1
3592 status open
3593
3594 \begin_layout Plain Layout
3595 height from=1cm to 3cm
3596 \end_layout
3597
3598 \end_inset
3599
3600 A box with minimal height of 1
3601 \begin_inset space \thinspace{}
3602 \end_inset
3603
3604 cm and maximal height of 3
3605 \begin_inset space \thinspace{}
3606 \end_inset
3607
3608 cm.
3609  The content consumes more space than 3
3610 \begin_inset space \thinspace{}
3611 \end_inset
3612
3613 cm.
3614  A box with minimal height of 1
3615 \begin_inset space \thinspace{}
3616 \end_inset
3617
3618 cm and maximal height of 3
3619 \begin_inset space \thinspace{}
3620 \end_inset
3621
3622 cm.
3623  The content consumes more space than 3
3624 \begin_inset space \thinspace{}
3625 \end_inset
3626
3627 cm.
3628  A box with minimal height of 1
3629 \begin_inset space \thinspace{}
3630 \end_inset
3631
3632 cm and maximal height of 3
3633 \begin_inset space \thinspace{}
3634 \end_inset
3635
3636 cm.
3637  The content consumes more space than 3
3638 \begin_inset space \thinspace{}
3639 \end_inset
3640
3641 cm.
3642  A box with minimal height of 1
3643 \begin_inset space \thinspace{}
3644 \end_inset
3645
3646 cm and maximal height of 3
3647 \begin_inset space \thinspace{}
3648 \end_inset
3649
3650 cm.
3651  The content consumes more space than 3
3652 \begin_inset space \thinspace{}
3653 \end_inset
3654
3655 cm.
3656 \end_layout
3657
3658 \end_inset
3659
3660
3661 \end_layout
3662
3663 \begin_layout Standard
3664 \begin_inset VSpace bigskip
3665 \end_inset
3666
3667 With the option 
3668 \series bold
3669 add to height=length
3670 \series default
3671  one can add defined height to the box.
3672  To use this the 
3673 \series bold
3674 height
3675 \series default
3676  option must be added 
3677 \emph on
3678 before
3679 \emph default
3680  it.
3681 \end_layout
3682
3683 \begin_layout Standard
3684 \begin_inset Flex Color Box
3685 status open
3686
3687 \begin_layout Plain Layout
3688 \begin_inset Argument 1
3689 status open
3690
3691 \begin_layout Plain Layout
3692 height=1cm, add to height=1cm
3693 \end_layout
3694
3695 \end_inset
3696
3697 A 1
3698 \begin_inset space \thinspace{}
3699 \end_inset
3700
3701 cm high box with 1
3702 \begin_inset space \thinspace{}
3703 \end_inset
3704
3705 cm additional height.
3706 \end_layout
3707
3708 \end_inset
3709
3710
3711 \end_layout
3712
3713 \begin_layout Standard
3714 \begin_inset VSpace bigskip
3715 \end_inset
3716
3717 With the option 
3718 \series bold
3719 height fill=value
3720 \series default
3721  one can force the box to consume the rest of the available height of the
3722  document parts where it is in.
3723  
3724 \series bold
3725 value
3726 \series default
3727  can either be 
3728 \series bold
3729 true
3730 \series default
3731  or 
3732 \series bold
3733 maximum
3734 \series default
3735 .
3736  The latter works like 
3737 \series bold
3738 true
3739 \series default
3740  but compresses the content of the page before the box as much as possible
3741  to maximize the box.
3742 \begin_inset Newline newline
3743 \end_inset
3744
3745 In this example the box is in the main text and therefore consumes the rest
3746  of the current page:
3747 \end_layout
3748
3749 \begin_layout Standard
3750 \begin_inset Flex Color Box
3751 status open
3752
3753 \begin_layout Plain Layout
3754 \begin_inset Argument 1
3755 status open
3756
3757 \begin_layout Plain Layout
3758 height fill=true
3759 \end_layout
3760
3761 \end_inset
3762
3763 A box that fills the remaining height of the current page.
3764 \end_layout
3765
3766 \end_inset
3767
3768
3769 \end_layout
3770
3771 \begin_layout Subsubsection*
3772 Content
3773 \end_layout
3774
3775 \begin_layout Standard
3776 One can set a height only for the text of the box with the option
3777 \begin_inset Newline newline
3778 \end_inset
3779
3780
3781 \series bold
3782 text height=length
3783 \series default
3784 .
3785 \end_layout
3786
3787 \begin_layout Standard
3788 \begin_inset Flex Color Box
3789 status open
3790
3791 \begin_layout Plain Layout
3792 \begin_inset Argument 1
3793 status open
3794
3795 \begin_layout Plain Layout
3796 text height=1.5cm
3797 \end_layout
3798
3799 \end_inset
3800
3801 A box with 1.5
3802 \begin_inset space \thinspace{}
3803 \end_inset
3804
3805 cm high content.
3806  Due to the frame separation and the frame width the box height is larger
3807  than 1.5
3808 \begin_inset space \thinspace{}
3809 \end_inset
3810
3811 cm.
3812 \end_layout
3813
3814 \end_inset
3815
3816
3817 \end_layout
3818
3819 \begin_layout Standard
3820 One cannot combine 
3821 \series bold
3822 height
3823 \series default
3824  and 
3825 \series bold
3826 text height
3827 \series default
3828 ; only the last given width option is taken into account.
3829 \end_layout
3830
3831 \begin_layout Standard
3832 \begin_inset VSpace bigskip
3833 \end_inset
3834
3835 With the options 
3836 \series bold
3837 space=fraction
3838 \series default
3839
3840 \series bold
3841 space to upper
3842 \series default
3843
3844 \series bold
3845 space to lower
3846 \series default
3847
3848 \series bold
3849 space to both
3850 \series default
3851  and 
3852 \series bold
3853 split=fraction
3854 \series default
3855  one can specify how the height should be divided between the upper and
3856  the lower part.
3857  For the 
3858 \series bold
3859 space
3860 \series default
3861  option 
3862 \series bold
3863 fraction
3864 \series default
3865  is the fraction of the additional height (the specified height minus the
3866  height consumed by the content).
3867 \begin_inset Newline newline
3868 \end_inset
3869
3870 For example 
3871 \series bold
3872 space=0.75
3873 \series default
3874  adds 75
3875 \begin_inset space \thinspace{}
3876 \end_inset
3877
3878 % of the additional space to the upper part:
3879 \end_layout
3880
3881 \begin_layout Standard
3882 \begin_inset Flex Color Box
3883 status open
3884
3885 \begin_layout Plain Layout
3886 \begin_inset Argument 1
3887 status open
3888
3889 \begin_layout Plain Layout
3890 height=3cm, space=0.75
3891 \end_layout
3892
3893 \end_inset
3894
3895 A 3
3896 \begin_inset space \thinspace{}
3897 \end_inset
3898
3899 cm high box where 75 % of the additional height is set to the upper content.
3900 \end_layout
3901
3902 \begin_layout Color Box Separator
3903
3904 \end_layout
3905
3906 \begin_layout Plain Layout
3907 Lower content
3908 \end_layout
3909
3910 \end_inset
3911
3912
3913 \end_layout
3914
3915 \begin_layout Standard
3916
3917 \series bold
3918 space to upper
3919 \series default
3920  is equal to 
3921 \series bold
3922 space=1
3923 \series default
3924
3925 \series bold
3926 space to lower
3927 \series default
3928  is equal to 
3929 \series bold
3930 space=0
3931 \series default
3932
3933 \series bold
3934 space to both
3935 \series default
3936  is equal to 
3937 \series bold
3938 space=0
3939 \series default
3940 .5.
3941 \end_layout
3942
3943 \begin_layout Standard
3944 \begin_inset Flex Color Box
3945 status open
3946
3947 \begin_layout Plain Layout
3948 \begin_inset Argument 1
3949 status open
3950
3951 \begin_layout Plain Layout
3952 height=3cm, space to upper
3953 \end_layout
3954
3955 \end_inset
3956
3957 A 3
3958 \begin_inset space \thinspace{}
3959 \end_inset
3960
3961 cm high box where all additional height is set to the upper content.
3962 \end_layout
3963
3964 \begin_layout Color Box Separator
3965
3966 \end_layout
3967
3968 \begin_layout Plain Layout
3969 Lower content
3970 \end_layout
3971
3972 \end_inset
3973
3974
3975 \end_layout
3976
3977 \begin_layout Standard
3978 For the 
3979 \series bold
3980 split
3981 \series default
3982  option 
3983 \series bold
3984 fraction
3985 \series default
3986  is the fraction of the complete height (not the additional height).
3987  Therefore one must be careful if e.
3988 \begin_inset space \thinspace{}
3989 \end_inset
3990
3991 g.
3992 \begin_inset space \space{}
3993 \end_inset
3994
3995 the upper part consumes more height than one set via 
3996 \series bold
3997 split
3998 \series default
3999 :
4000 \end_layout
4001
4002 \begin_layout Standard
4003 \begin_inset Flex Color Box
4004 status open
4005
4006 \begin_layout Plain Layout
4007 \begin_inset Argument 1
4008 status open
4009
4010 \begin_layout Plain Layout
4011 height=3cm, split=0.1
4012 \end_layout
4013
4014 \end_inset
4015
4016 A 3
4017 \begin_inset space \thinspace{}
4018 \end_inset
4019
4020 cm high box where the height is split by 10
4021 \begin_inset space \thinspace{}
4022 \end_inset
4023
4024 %.
4025  A 3
4026 \begin_inset space \thinspace{}
4027 \end_inset
4028
4029 cm high box where the height is split by 10
4030 \begin_inset space \thinspace{}
4031 \end_inset
4032
4033 %.
4034 \end_layout
4035
4036 \begin_layout Color Box Separator
4037
4038 \end_layout
4039
4040 \begin_layout Plain Layout
4041 Lower content
4042 \end_layout
4043
4044 \end_inset
4045
4046
4047 \end_layout
4048
4049 \begin_layout Standard
4050 \begin_inset VSpace bigskip
4051 \end_inset
4052
4053 With the option 
4054 \series bold
4055 equal height group=id
4056 \series default
4057  it is possible to set the same height for all boxes in a group.
4058  
4059 \series bold
4060 id
4061 \series default
4062  is a name to reference the group.
4063  This is for example useful if one has 3
4064 \begin_inset space ~
4065 \end_inset
4066
4067 boxes side by side inside a box:
4068 \end_layout
4069
4070 \begin_layout Standard
4071 \begin_inset Flex Color Box
4072 status open
4073
4074 \begin_layout Plain Layout
4075 \begin_inset Flex Color Box
4076 status open
4077
4078 \begin_layout Plain Layout
4079 \begin_inset Argument 1
4080 status open
4081
4082 \begin_layout Plain Layout
4083 adjusted title=ace, width=0.3
4084 \backslash
4085 columnwidth, nobeforeafter, equal height group=A
4086 \end_layout
4087
4088 \end_inset
4089
4090 A box.
4091 \end_layout
4092
4093 \end_inset
4094
4095
4096 \begin_inset space \hfill{}
4097 \end_inset
4098
4099
4100 \begin_inset Flex Color Box
4101 status open
4102
4103 \begin_layout Plain Layout
4104 \begin_inset Argument 1
4105 status open
4106
4107 \begin_layout Plain Layout
4108 adjusted title=Grapefruit, width=0.3
4109 \backslash
4110 columnwidth, space to upper, nobeforeafter, equal height group=A
4111 \end_layout
4112
4113 \end_inset
4114
4115 A box with parts.
4116 \end_layout
4117
4118 \begin_layout Color Box Separator
4119
4120 \end_layout
4121
4122 \begin_layout Plain Layout
4123 Lower content
4124 \end_layout
4125
4126 \end_inset
4127
4128
4129 \begin_inset space \hfill{}
4130 \end_inset
4131
4132
4133 \begin_inset Flex Color Box
4134 status open
4135
4136 \begin_layout Plain Layout
4137 \begin_inset Argument 1
4138 status open
4139
4140 \begin_layout Plain Layout
4141 adjusted title=, width=0.3
4142 \backslash
4143 columnwidth, nobeforeafter, equal height group=A
4144 \end_layout
4145
4146 \end_inset
4147
4148 A box with longer text.
4149  A box with longer text.
4150  A box with longer text.
4151  A box with longer text.
4152  A box with longer text.
4153 \end_layout
4154
4155 \end_inset
4156
4157
4158 \end_layout
4159
4160 \end_inset
4161
4162
4163 \end_layout
4164
4165 \begin_layout Standard
4166 The above example was typeset by adding the option 
4167 \series bold
4168 equal height group=A
4169 \series default
4170  to all 3
4171 \begin_inset space ~
4172 \end_inset
4173
4174 boxes.
4175  
4176 \series bold
4177 A
4178 \series default
4179  is hereby the name of the group.
4180 \end_layout
4181
4182 \begin_layout Standard
4183 If you have a title that needs only a single line, it is recommended to
4184  use the option 
4185 \series bold
4186 adjusted title
4187 \series default
4188  instead of 
4189 \series bold
4190 title
4191 \series default
4192  for all boxes to assure that the title height will be the same for all
4193  boxes.
4194  Otherwise the height would be different in the above example because 
4195 \begin_inset Quotes eld
4196 \end_inset
4197
4198 Grapefruit
4199 \begin_inset Quotes erd
4200 \end_inset
4201
4202  needs more height than 
4203 \begin_inset Quotes eld
4204 \end_inset
4205
4206 ace
4207 \begin_inset Quotes erd
4208 \end_inset
4209
4210 .
4211 \end_layout
4212
4213 \begin_layout Subsubsection
4214 Frame
4215 \end_layout
4216
4217 \begin_layout Standard
4218 The width of the box frame can be changed with the options 
4219 \series bold
4220 toprule
4221 \series default
4222
4223 \series bold
4224 bottomrule
4225 \series default
4226
4227 \series bold
4228 leftrule
4229 \series default
4230
4231 \series bold
4232 rightrule
4233 \series default
4234  and 
4235 \series bold
4236 titlerule
4237 \series default
4238 .
4239  Each option changes the corresponding part of the frame.
4240  The syntax is 
4241 \series bold
4242 toprule=length
4243 \series default
4244  where 
4245 \series bold
4246 length
4247 \series default
4248  is a value.
4249  The allowed units for the values are listed in Appendix
4250 \begin_inset space ~
4251 \end_inset
4252
4253 A of the 
4254 \emph on
4255 Embedded
4256 \begin_inset space ~
4257 \end_inset
4258
4259 Objects
4260 \emph default
4261  manual.
4262  The default length for all parts is 0.5
4263 \begin_inset space \thinspace{}
4264 \end_inset
4265
4266 mm.
4267  To set all frame parts to the same value use the option 
4268 \series bold
4269 boxrule
4270 \series default
4271 .
4272 \end_layout
4273
4274 \begin_layout Standard
4275 \begin_inset Flex Color Box
4276 status open
4277
4278 \begin_layout Plain Layout
4279 \begin_inset Argument 1
4280 status open
4281
4282 \begin_layout Plain Layout
4283 leftrule=3mm, rightrule=4mm, toprule=2mm, bottomrule=1mm
4284 \end_layout
4285
4286 \end_inset
4287
4288 3
4289 \begin_inset space \thinspace{}
4290 \end_inset
4291
4292 mm wide left rule, 4
4293 \begin_inset space \thinspace{}
4294 \end_inset
4295
4296 mm wide right rule, 2
4297 \begin_inset space \thinspace{}
4298 \end_inset
4299
4300 mm top rule and 1
4301 \begin_inset space \thinspace{}
4302 \end_inset
4303
4304 mm bottom rule.
4305 \end_layout
4306
4307 \end_inset
4308
4309
4310 \end_layout
4311
4312 \begin_layout Standard
4313 \begin_inset Flex Color Box
4314 status open
4315
4316 \begin_layout Plain Layout
4317 \begin_inset Argument 1
4318 status open
4319
4320 \begin_layout Plain Layout
4321 boxrule=6mm
4322 \end_layout
4323
4324 \end_inset
4325
4326 A box with a 6
4327 \begin_inset space \thinspace{}
4328 \end_inset
4329
4330 mm wide frame line.
4331 \end_layout
4332
4333 \end_inset
4334
4335
4336 \end_layout
4337
4338 \begin_layout Standard
4339 The title rule is the separation between the title and the box content.
4340 \end_layout
4341
4342 \begin_layout Standard
4343 \begin_inset Flex Color Box
4344 status open
4345
4346 \begin_layout Plain Layout
4347 \begin_inset Argument 1
4348 status open
4349
4350 \begin_layout Plain Layout
4351 title=A title, titlerule=8mm, colbacktitle=blue
4352 \end_layout
4353
4354 \end_inset
4355
4356 A box with a 8
4357 \begin_inset space \thinspace{}
4358 \end_inset
4359
4360 mm wide title rule.
4361 \end_layout
4362
4363 \end_inset
4364
4365
4366 \end_layout
4367
4368 \begin_layout Subsubsection
4369 Shape
4370 \end_layout
4371
4372 \begin_layout Standard
4373 By default boxes are rectangular with rounded edges.
4374  The radius of the edges can be changed with the option 
4375 \series bold
4376 arc=length
4377 \series default
4378  where 
4379 \series bold
4380 length
4381 \series default
4382  is a value.
4383  The allowed units for the values are listed in Appendix
4384 \begin_inset space ~
4385 \end_inset
4386
4387 A of the 
4388 \emph on
4389 Embedded
4390 \begin_inset space ~
4391 \end_inset
4392
4393 Objects
4394 \emph default
4395  manual.
4396  The default is 
4397 \series bold
4398 arc=1mm
4399 \series default
4400 .
4401 \end_layout
4402
4403 \begin_layout Standard
4404 \begin_inset Flex Color Box
4405 status open
4406
4407 \begin_layout Plain Layout
4408 \begin_inset Argument 1
4409 status open
4410
4411 \begin_layout Plain Layout
4412 arc=0mm
4413 \end_layout
4414
4415 \end_inset
4416
4417 A rectangular box (
4418 \series bold
4419 arc=0
4420 \begin_inset space \thinspace{}
4421 \end_inset
4422
4423 mm
4424 \series default
4425 ).
4426 \end_layout
4427
4428 \end_inset
4429
4430
4431 \end_layout
4432
4433 \begin_layout Standard
4434 With the option 
4435 \series bold
4436 outer arc=length
4437 \series default
4438  one can set the outer radius independently:
4439 \end_layout
4440
4441 \begin_layout Standard
4442 \begin_inset Flex Color Box
4443 status open
4444
4445 \begin_layout Plain Layout
4446 \begin_inset Argument 1
4447 status open
4448
4449 \begin_layout Plain Layout
4450 arc=5mm, outer arc=0mm
4451 \end_layout
4452
4453 \end_inset
4454
4455 A box with 
4456 \series bold
4457 arc=5
4458 \begin_inset space \thinspace{}
4459 \end_inset
4460
4461 mm
4462 \series default
4463  
4464 \series bold
4465 outer arc=0
4466 \begin_inset space \thinspace{}
4467 \end_inset
4468
4469 mm
4470 \series default
4471 .
4472 \end_layout
4473
4474 \end_inset
4475
4476
4477 \end_layout
4478
4479 \begin_layout Standard
4480 \begin_inset Flex Color Box
4481 status open
4482
4483 \begin_layout Plain Layout
4484 \begin_inset Argument 1
4485 status open
4486
4487 \begin_layout Plain Layout
4488 arc=0mm, outer arc=0mm
4489 \end_layout
4490
4491 \end_inset
4492
4493 A really rectangular box (
4494 \series bold
4495 arc
4496 \series default
4497  
4498 \emph on
4499 and
4500 \emph default
4501  
4502 \series bold
4503 outer arc=0
4504 \begin_inset space \thinspace{}
4505 \end_inset
4506
4507 mm
4508 \series default
4509 ).
4510  The same can alternatively be achieved with the option 
4511 \series bold
4512 sharp corners=all
4513 \series default
4514 , see below.
4515 \end_layout
4516
4517 \end_inset
4518
4519
4520 \end_layout
4521
4522 \begin_layout Standard
4523 \begin_inset VSpace bigskip
4524 \end_inset
4525
4526 The general shape can be changed with the options 
4527 \series bold
4528 circular arc
4529 \series default
4530
4531 \series bold
4532 bean arc
4533 \series default
4534  and 
4535 \series bold
4536 octogon arc
4537 \series default
4538 .
4539 \end_layout
4540
4541 \begin_layout Standard
4542 The option 
4543 \series bold
4544 circular arc
4545 \series default
4546  sets the edge radius to half of the box width.
4547  It is therefore required to specify at least the width.
4548 \end_layout
4549
4550 \begin_layout Standard
4551 \begin_inset Flex Color Box
4552 status open
4553
4554 \begin_layout Plain Layout
4555 \begin_inset Argument 1
4556 status open
4557
4558 \begin_layout Plain Layout
4559 width=3.5cm, circular arc
4560 \end_layout
4561
4562 \end_inset
4563
4564 A 3.5
4565 \begin_inset space \thinspace{}
4566 \end_inset
4567
4568 cm wide circular box.
4569 \end_layout
4570
4571 \end_inset
4572
4573
4574 \end_layout
4575
4576 \begin_layout Standard
4577 As you can see circular box looks ugly when the box is wider than high.
4578  It is therefore recommended to add the option 
4579 \series bold
4580 square
4581 \series default
4582 , see 
4583 \begin_inset CommandInset ref
4584 LatexCommand ref
4585 reference "subsec:Height"
4586
4587 \end_inset
4588
4589 , to get the same width and height.
4590  The result is a perfect circle.
4591  The center the text in the box use the text alignment options described
4592  in 
4593 \begin_inset CommandInset ref
4594 LatexCommand ref
4595 reference "subsec:Alignment"
4596
4597 \end_inset
4598
4599 .
4600 \end_layout
4601
4602 \begin_layout Standard
4603 \begin_inset Flex Color Box
4604 status open
4605
4606 \begin_layout Plain Layout
4607 \begin_inset Argument 1
4608 status open
4609
4610 \begin_layout Plain Layout
4611 width=4cm, square, valign=center, circular arc
4612 \end_layout
4613
4614 \end_inset
4615
4616 A 4
4617 \begin_inset space \thinspace{}
4618 \end_inset
4619
4620 cm wide circular box.
4621 \end_layout
4622
4623 \end_inset
4624
4625
4626 \end_layout
4627
4628 \begin_layout Standard
4629 The option 
4630 \series bold
4631 bean arc
4632 \series default
4633  sets the edge radius to half of the minimum of the box width and height.
4634  The result is a semicircle.
4635  
4636 \series bold
4637 bean arc
4638 \series default
4639  requires the options 
4640 \series bold
4641 width
4642 \series default
4643  and 
4644 \series bold
4645 height
4646 \series default
4647  or 
4648 \series bold
4649 square
4650 \series default
4651 .
4652 \end_layout
4653
4654 \begin_layout Standard
4655 \begin_inset Flex Color Box
4656 status open
4657
4658 \begin_layout Plain Layout
4659 \begin_inset Argument 1
4660 status open
4661
4662 \begin_layout Plain Layout
4663 width=3.5cm, height=5cm, bean arc, nobeforeafter, valign=center
4664 \end_layout
4665
4666 \end_inset
4667
4668 A 3.5
4669 \begin_inset space \thinspace{}
4670 \end_inset
4671
4672 cm wide, 5
4673 \begin_inset space \thinspace{}
4674 \end_inset
4675
4676 cm high box with 
4677 \series bold
4678 bean arc
4679 \series default
4680 .
4681 \end_layout
4682
4683 \end_inset
4684
4685
4686 \begin_inset Flex Color Box
4687 status open
4688
4689 \begin_layout Plain Layout
4690 \begin_inset Argument 1
4691 status open
4692
4693 \begin_layout Plain Layout
4694 width=5cm, height=3.5cm, bean arc, nobeforeafter, valign=center
4695 \end_layout
4696
4697 \end_inset
4698
4699 A 5
4700 \begin_inset space \thinspace{}
4701 \end_inset
4702
4703 cm wide, 3.5
4704 \begin_inset space \thinspace{}
4705 \end_inset
4706
4707 cm high box with 
4708 \series bold
4709 bean arc
4710 \series default
4711 .
4712 \end_layout
4713
4714 \end_inset
4715
4716
4717 \end_layout
4718
4719 \begin_layout Standard
4720 Using bean arc for a square box leads to the same result as 
4721 \series bold
4722 circular arc
4723 \series default
4724 :
4725 \end_layout
4726
4727 \begin_layout Standard
4728 \begin_inset Flex Color Box
4729 status open
4730
4731 \begin_layout Plain Layout
4732 \begin_inset Argument 1
4733 status open
4734
4735 \begin_layout Plain Layout
4736 width=4cm, square, bean arc, valign=center
4737 \end_layout
4738
4739 \end_inset
4740
4741 A 4
4742 \begin_inset space \thinspace{}
4743 \end_inset
4744
4745 cm wide, square box as bean arc.
4746 \end_layout
4747
4748 \end_inset
4749
4750
4751 \end_layout
4752
4753 \begin_layout Standard
4754 The option 
4755 \series bold
4756 octogon arc
4757 \series default
4758  is useful to get an octagon.
4759  For an octagon one needs a square box and the options 
4760 \series bold
4761 arc is angular
4762 \series default
4763 .
4764 \end_layout
4765
4766 \begin_layout Standard
4767 \begin_inset Flex Color Box
4768 status open
4769
4770 \begin_layout Plain Layout
4771 \begin_inset Argument 1
4772 status open
4773
4774 \begin_layout Plain Layout
4775 width=4cm, square, octogon arc, valign=center, arc is angular
4776 \end_layout
4777
4778 \end_inset
4779
4780 A 4
4781 \begin_inset space \thinspace{}
4782 \end_inset
4783
4784 cm wide, square box with 
4785 \series bold
4786 octogon arc
4787 \series default
4788 .
4789 \end_layout
4790
4791 \end_inset
4792
4793
4794 \end_layout
4795
4796 \begin_layout Standard
4797 \begin_inset Note Greyedout
4798 status open
4799
4800 \begin_layout Plain Layout
4801
4802 \series bold
4803 Note:
4804 \series default
4805  The option 
4806 \series bold
4807 arc is angular
4808 \series default
4809  is experimental and might cause problems on some \SpecialChar LaTeX
4810  systems.
4811 \end_layout
4812
4813 \end_inset
4814
4815
4816 \end_layout
4817
4818 \begin_layout Standard
4819 \begin_inset VSpace bigskip
4820 \end_inset
4821
4822 It is also possible to change only some of the box edges.
4823  To make an edge a corner there is the option 
4824 \series bold
4825 sharp corners=position
4826 \series default
4827  where 
4828 \series bold
4829 position
4830 \series default
4831  is the position of the edge.
4832  The positions 
4833 \series bold
4834 northwest
4835 \series default
4836
4837 \series bold
4838 northeast
4839 \series default
4840
4841 \series bold
4842 southwest
4843 \series default
4844  and 
4845 \series bold
4846 southeast
4847 \series default
4848  change only the corresponding edge.
4849 \end_layout
4850
4851 \begin_layout Standard
4852 \begin_inset Flex Color Box
4853 status open
4854
4855 \begin_layout Plain Layout
4856 \begin_inset Argument 1
4857 status open
4858
4859 \begin_layout Plain Layout
4860 sharp corners=northeast
4861 \end_layout
4862
4863 \end_inset
4864
4865 A box with a corner at the upper right (
4866 \series bold
4867 northeast
4868 \series default
4869 ).
4870 \end_layout
4871
4872 \end_inset
4873
4874
4875 \end_layout
4876
4877 \begin_layout Standard
4878 The positions 
4879 \series bold
4880 north
4881 \series default
4882
4883 \series bold
4884 south
4885 \series default
4886
4887 \series bold
4888 east
4889 \series default
4890
4891 \series bold
4892 west
4893 \series default
4894
4895 \series bold
4896 downhill
4897 \series default
4898  and 
4899 \series bold
4900 uphill
4901 \series default
4902  change 2
4903 \begin_inset space ~
4904 \end_inset
4905
4906 edges.
4907 \end_layout
4908
4909 \begin_layout Standard
4910 \begin_inset Flex Color Box
4911 status open
4912
4913 \begin_layout Plain Layout
4914 \begin_inset Argument 1
4915 status open
4916
4917 \begin_layout Plain Layout
4918 width=0.4
4919 \backslash
4920 columnwidth,sharp corners=east, nobeforeafter
4921 \end_layout
4922
4923 \end_inset
4924
4925 A box with 2
4926 \begin_inset space ~
4927 \end_inset
4928
4929 corners at the right (
4930 \series bold
4931 east
4932 \series default
4933 ).
4934 \end_layout
4935
4936 \end_inset
4937
4938
4939 \begin_inset space \hfill{}
4940 \end_inset
4941
4942
4943 \begin_inset Flex Color Box
4944 status open
4945
4946 \begin_layout Plain Layout
4947 \begin_inset Argument 1
4948 status open
4949
4950 \begin_layout Plain Layout
4951 width=0.4
4952 \backslash
4953 columnwidth,sharp corners=uphill, nobeforeafter
4954 \end_layout
4955
4956 \end_inset
4957
4958 A box with 2
4959 \begin_inset space ~
4960 \end_inset
4961
4962 corners, one at the lower left, one at the upper right (
4963 \series bold
4964 uphill
4965 \series default
4966 ).
4967 \end_layout
4968
4969 \end_inset
4970
4971
4972 \end_layout
4973
4974 \begin_layout Standard
4975 The position 
4976 \series bold
4977 all
4978 \series default
4979  change all edges.
4980 \end_layout
4981
4982 \begin_layout Subsection
4983 Alignment
4984 \begin_inset CommandInset label
4985 LatexCommand label
4986 name "subsec:Alignment"
4987
4988 \end_inset
4989
4990
4991 \end_layout
4992
4993 \begin_layout Subsubsection
4994 Horizontal
4995 \end_layout
4996
4997 \begin_layout Standard
4998 The option
4999 \series bold
5000  halign=alignment
5001 \series default
5002  sets the alignment for the whole box content if there are not box parts,
5003  otherwise the options 
5004 \series bold
5005 halign upper
5006 \series default
5007  and 
5008 \series bold
5009 halign lower
5010 \series default
5011  can be used.
5012  The 
5013 \series bold
5014 alignment
5015 \series default
5016  is one of the following:
5017 \end_layout
5018
5019 \begin_layout Description
5020 right the content is right-aligned
5021 \begin_inset Flex Color Box
5022 status open
5023
5024 \begin_layout Plain Layout
5025 \begin_inset Argument 1
5026 status open
5027
5028 \begin_layout Plain Layout
5029 halign=right
5030 \end_layout
5031
5032 \end_inset
5033
5034 A right-aligned box.
5035 \end_layout
5036
5037 \end_inset
5038
5039
5040 \end_layout
5041
5042 \begin_layout Description
5043 left the content is left-aligned
5044 \begin_inset Flex Color Box
5045 status open
5046
5047 \begin_layout Plain Layout
5048 \begin_inset Argument 1
5049 status open
5050
5051 \begin_layout Plain Layout
5052 halign=left
5053 \end_layout
5054
5055 \end_inset
5056
5057 A left-aligned box.
5058 \end_layout
5059
5060 \end_inset
5061
5062
5063 \end_layout
5064
5065 \begin_layout Description
5066 center the content is centered
5067 \begin_inset Flex Color Box
5068 status open
5069
5070 \begin_layout Plain Layout
5071 \begin_inset Argument 1
5072 status open
5073
5074 \begin_layout Plain Layout
5075 halign=center
5076 \end_layout
5077
5078 \end_inset
5079
5080 A horizontally centered box.
5081 \end_layout
5082
5083 \end_inset
5084
5085
5086 \end_layout
5087
5088 \begin_layout Description
5089 justify the content is justified (is the default value)
5090 \begin_inset Flex Color Box
5091 status open
5092
5093 \begin_layout Plain Layout
5094 \begin_inset Argument 1
5095 status open
5096
5097 \begin_layout Plain Layout
5098 halign=justify
5099 \end_layout
5100
5101 \end_inset
5102
5103 A justified box.
5104 \end_layout
5105
5106 \end_inset
5107
5108
5109 \end_layout
5110
5111 \begin_layout Standard
5112 An example with box parts:
5113 \begin_inset Flex Color Box
5114 status open
5115
5116 \begin_layout Plain Layout
5117 \begin_inset Argument 1
5118 status open
5119
5120 \begin_layout Plain Layout
5121 halign upper=left, halign lower=center
5122 \end_layout
5123
5124 \end_inset
5125
5126 Upper content left-aligned
5127 \end_layout
5128
5129 \begin_layout Color Box Separator
5130
5131 \end_layout
5132
5133 \begin_layout Plain Layout
5134 Lower content centered
5135 \end_layout
5136
5137 \end_inset
5138
5139
5140 \end_layout
5141
5142 \begin_layout Standard
5143 The title alignment can be changed with the option 
5144 \series bold
5145 halign title
5146 \series default
5147 .
5148 \end_layout
5149
5150 \begin_layout Standard
5151 \begin_inset Flex Color Box
5152 status open
5153
5154 \begin_layout Plain Layout
5155 \begin_inset Argument 1
5156 status open
5157
5158 \begin_layout Plain Layout
5159 title=A right-aligned title, halign title=right, halign upper=left, halign
5160  lower=center
5161 \end_layout
5162
5163 \end_inset
5164
5165 Upper content left-aligned
5166 \end_layout
5167
5168 \begin_layout Color Box Separator
5169
5170 \end_layout
5171
5172 \begin_layout Plain Layout
5173 Lower content centered
5174 \end_layout
5175
5176 \end_inset
5177
5178
5179 \end_layout
5180
5181 \begin_layout Subsubsection
5182 Vertical
5183 \end_layout
5184
5185 \begin_layout Standard
5186 The vertical alignment can only be changed if the box height is explicitly
5187  set larger than the height consumed by the box content.
5188  See 
5189 \begin_inset CommandInset ref
5190 LatexCommand ref
5191 reference "subsec:Height"
5192
5193 \end_inset
5194
5195  how this is done.
5196 \end_layout
5197
5198 \begin_layout Standard
5199 The option
5200 \series bold
5201  valign=alignment
5202 \series default
5203  sets the alignment for the whole box content if there are no box parts,
5204  otherwise the options 
5205 \series bold
5206 valign upper
5207 \series default
5208  and 
5209 \series bold
5210 valign lower
5211 \series default
5212  can be used.
5213  The 
5214 \series bold
5215 alignment
5216 \series default
5217  is one of the following:
5218 \end_layout
5219
5220 \begin_layout Description
5221 top the content is top-aligned
5222 \begin_inset Flex Color Box
5223 status open
5224
5225 \begin_layout Plain Layout
5226 \begin_inset Argument 1
5227 status open
5228
5229 \begin_layout Plain Layout
5230 height=2cm, valign=top
5231 \end_layout
5232
5233 \end_inset
5234
5235 A top-aligned box.
5236 \end_layout
5237
5238 \end_inset
5239
5240
5241 \end_layout
5242
5243 \begin_layout Description
5244 bottom the content is bottom-aligned
5245 \begin_inset Flex Color Box
5246 status open
5247
5248 \begin_layout Plain Layout
5249 \begin_inset Argument 1
5250 status open
5251
5252 \begin_layout Plain Layout
5253 height=2cm, valign=bottom
5254 \end_layout
5255
5256 \end_inset
5257
5258 A bottom-aligned box.
5259 \end_layout
5260
5261 \end_inset
5262
5263
5264 \end_layout
5265
5266 \begin_layout Description
5267 center the content is vertically centered
5268 \begin_inset Flex Color Box
5269 status open
5270
5271 \begin_layout Plain Layout
5272 \begin_inset Argument 1
5273 status open
5274
5275 \begin_layout Plain Layout
5276 height=2cm, valign=center
5277 \end_layout
5278
5279 \end_inset
5280
5281 A vertically centered box.
5282 \end_layout
5283
5284 \end_inset
5285
5286
5287 \end_layout
5288
5289 \begin_layout Description
5290 scale the content is vertically centered to fit the height
5291 \begin_inset Flex Color Box
5292 status open
5293
5294 \begin_layout Plain Layout
5295 \begin_inset Argument 1
5296 status open
5297
5298 \begin_layout Plain Layout
5299 height=2cm, valign=scale
5300 \end_layout
5301
5302 \end_inset
5303
5304 A box with scaled content.
5305 \end_layout
5306
5307 \end_inset
5308
5309
5310 \end_layout
5311
5312 \begin_layout Standard
5313 An example with box parts:
5314 \end_layout
5315
5316 \begin_layout Standard
5317 \begin_inset Flex Color Box
5318 status open
5319
5320 \begin_layout Plain Layout
5321 \begin_inset Argument 1
5322 status open
5323
5324 \begin_layout Plain Layout
5325 height=4cm, space=0.5, valign upper=bottom, valign lower=center
5326 \end_layout
5327
5328 \end_inset
5329
5330 Upper content bottom-aligned
5331 \end_layout
5332
5333 \begin_layout Color Box Separator
5334
5335 \end_layout
5336
5337 \begin_layout Plain Layout
5338 Lower content centered
5339 \end_layout
5340
5341 \end_inset
5342
5343
5344 \end_layout
5345
5346 \begin_layout Subsection
5347 Fonts
5348 \end_layout
5349
5350 \begin_layout Standard
5351 The font changing options have the syntax 
5352 \series bold
5353 option=code
5354 \series default
5355  where 
5356 \series bold
5357 code
5358 \series default
5359  are \SpecialChar LaTeX
5360 's font changing commands.
5361  For example the code
5362 \begin_inset Newline newline
5363 \end_inset
5364
5365
5366 \series bold
5367
5368 \backslash
5369 sffamily
5370 \backslash
5371 bfseries
5372 \backslash
5373 large
5374 \series default
5375
5376 \begin_inset Newline newline
5377 \end_inset
5378
5379 makes the font sans-serif, bold and increases the font size to the level
5380  
5381 \series bold
5382
5383 \backslash
5384 large
5385 \series default
5386 .
5387 \end_layout
5388
5389 \begin_layout Subsubsection
5390 Title 
5391 \end_layout
5392
5393 \begin_layout Standard
5394 The title font can be changed with the option 
5395 \series bold
5396 fonttitle
5397 \series default
5398 .
5399 \end_layout
5400
5401 \begin_layout Standard
5402 \begin_inset Flex Color Box
5403 status open
5404
5405 \begin_layout Plain Layout
5406 \begin_inset Argument 1
5407 status open
5408
5409 \begin_layout Plain Layout
5410 title=A title, fonttitle=
5411 \backslash
5412 sffamily
5413 \backslash
5414 bfseries
5415 \backslash
5416 large
5417 \end_layout
5418
5419 \end_inset
5420
5421 Changed title font
5422 \end_layout
5423
5424 \end_inset
5425
5426
5427 \end_layout
5428
5429 \begin_layout Subsubsection
5430 Text
5431 \end_layout
5432
5433 \begin_layout Standard
5434 The font for the upper and lower part text can be changed with the options
5435  
5436 \series bold
5437 fontupper
5438 \series default
5439  and 
5440 \series bold
5441 fontlower
5442 \series default
5443 , respectively.
5444 \end_layout
5445
5446 \begin_layout Standard
5447 \begin_inset Flex Color Box
5448 status open
5449
5450 \begin_layout Plain Layout
5451 \begin_inset Argument 1
5452 status open
5453
5454 \begin_layout Plain Layout
5455 title=A title, fontupper=
5456 \backslash
5457 ttfamily, fontlower=
5458 \backslash
5459 small
5460 \end_layout
5461
5462 \end_inset
5463
5464 Changed upper text font
5465 \end_layout
5466
5467 \begin_layout Color Box Separator
5468
5469 \end_layout
5470
5471 \begin_layout Plain Layout
5472 Changed lower text font
5473 \end_layout
5474
5475 \end_inset
5476
5477
5478 \end_layout
5479
5480 \begin_layout Subsection
5481 Color
5482 \begin_inset CommandInset label
5483 LatexCommand label
5484 name "subsec:Color"
5485
5486 \end_inset
5487
5488
5489 \end_layout
5490
5491 \begin_layout Standard
5492 The color is specified in one of these schemes:
5493 \end_layout
5494
5495 \begin_layout Enumerate
5496
5497 \series bold
5498 Name
5499 \series default
5500
5501 \begin_inset Newline newline
5502 \end_inset
5503
5504
5505 \begin_inset Newline newline
5506 \end_inset
5507
5508 For example 
5509 \series bold
5510 red
5511 \series default
5512  means
5513 \begin_inset Newline newline
5514 \end_inset
5515
5516 100
5517 \begin_inset space \thinspace{}
5518 \end_inset
5519
5520 % red
5521 \begin_inset Newline newline
5522 \end_inset
5523
5524 An example:
5525 \begin_inset Flex Color Box
5526 status open
5527
5528 \begin_layout Plain Layout
5529 \begin_inset Argument 1
5530 status open
5531
5532 \begin_layout Plain Layout
5533 colback=red
5534 \end_layout
5535
5536 \end_inset
5537
5538 red
5539 \end_layout
5540
5541 \end_inset
5542
5543
5544 \begin_inset VSpace defskip
5545 \end_inset
5546
5547
5548 \end_layout
5549
5550 \begin_layout Enumerate
5551
5552 \series bold
5553 Name1!PercentOfName1
5554 \series default
5555
5556 \begin_inset Newline newline
5557 \end_inset
5558
5559
5560 \begin_inset Newline newline
5561 \end_inset
5562
5563 For example 
5564 \series bold
5565 geen!30
5566 \series default
5567  means
5568 \begin_inset Newline newline
5569 \end_inset
5570
5571 30
5572 \begin_inset space \thinspace{}
5573 \end_inset
5574
5575 % red
5576 \begin_inset Newline newline
5577 \end_inset
5578
5579 70
5580 \begin_inset space \thinspace{}
5581 \end_inset
5582
5583 % white (or 
5584 \begin_inset Quotes eld
5585 \end_inset
5586
5587 transparence
5588 \begin_inset Quotes erd
5589 \end_inset
5590
5591 )
5592 \begin_inset Newline newline
5593 \end_inset
5594
5595 An example:
5596 \begin_inset Flex Color Box
5597 status open
5598
5599 \begin_layout Plain Layout
5600 \begin_inset Argument 1
5601 status open
5602
5603 \begin_layout Plain Layout
5604 colback=green!30
5605 \end_layout
5606
5607 \end_inset
5608
5609 green!30
5610 \end_layout
5611
5612 \end_inset
5613
5614
5615 \begin_inset VSpace defskip
5616 \end_inset
5617
5618
5619 \end_layout
5620
5621 \begin_layout Enumerate
5622
5623 \series bold
5624 Name1!PercentOfName1!Name2
5625 \series default
5626
5627 \begin_inset Newline newline
5628 \end_inset
5629
5630
5631 \begin_inset Newline newline
5632 \end_inset
5633
5634 For example 
5635 \series bold
5636 red!30!blue
5637 \series default
5638  means
5639 \begin_inset Newline newline
5640 \end_inset
5641
5642 30
5643 \begin_inset space \thinspace{}
5644 \end_inset
5645
5646 % red
5647 \begin_inset Newline newline
5648 \end_inset
5649
5650 70
5651 \begin_inset space \thinspace{}
5652 \end_inset
5653
5654 % blue
5655 \begin_inset Newline newline
5656 \end_inset
5657
5658 An example:
5659 \begin_inset Flex Color Box
5660 status open
5661
5662 \begin_layout Plain Layout
5663 \begin_inset Argument 1
5664 status open
5665
5666 \begin_layout Plain Layout
5667 colback=red!30!blue
5668 \end_layout
5669
5670 \end_inset
5671
5672 red!30!blue
5673 \end_layout
5674
5675 \end_inset
5676
5677
5678 \begin_inset VSpace defskip
5679 \end_inset
5680
5681
5682 \end_layout
5683
5684 \begin_layout Enumerate
5685
5686 \series bold
5687 Name1!PercentName1!Name2!PercentName3!Name3
5688 \series default
5689
5690 \begin_inset Newline newline
5691 \end_inset
5692
5693
5694 \begin_inset Newline newline
5695 \end_inset
5696
5697 For example 
5698 \series bold
5699 red!71.4!green!70!blue
5700 \series default
5701  means
5702 \begin_inset Newline newline
5703 \end_inset
5704
5705
5706 \begin_inset Formula $1-0.70=30\,$
5707 \end_inset
5708
5709 % blue
5710 \begin_inset Newline newline
5711 \end_inset
5712
5713
5714 \begin_inset Formula $\left(1-0.714\right)\cdot0.70=20.02\thinspace$
5715 \end_inset
5716
5717 % green
5718 \begin_inset Newline newline
5719 \end_inset
5720
5721
5722 \begin_inset Formula $0.714\cdot0.70=49.98\thinspace$
5723 \end_inset
5724
5725 % red
5726 \begin_inset Newline newline
5727 \end_inset
5728
5729 An example:
5730 \begin_inset Flex Color Box
5731 status open
5732
5733 \begin_layout Plain Layout
5734 \begin_inset Argument 1
5735 status open
5736
5737 \begin_layout Plain Layout
5738 colback=red!71.4!green!70!blue
5739 \end_layout
5740
5741 \end_inset
5742
5743 red!71.4!green!70!blue
5744 \end_layout
5745
5746 \end_inset
5747
5748
5749 \begin_inset VSpace defskip
5750 \end_inset
5751
5752
5753 \end_layout
5754
5755 \begin_layout Standard
5756 The possible color names are:
5757 \end_layout
5758
5759 \begin_layout Standard
5760 \noindent
5761 \begin_inset Tabular
5762 <lyxtabular version="3" rows="4" columns="5">
5763 <features tabularvalignment="middle">
5764 <column alignment="left" valignment="top" width="18col%">
5765 <column alignment="left" valignment="top" width="18col%">
5766 <column alignment="left" valignment="top" width="18col%">
5767 <column alignment="left" valignment="top" width="18col%">
5768 <column alignment="left" valignment="top" width="18col%">
5769 <row>
5770 <cell alignment="left" valignment="top" usebox="none">
5771 \begin_inset Text
5772
5773 \begin_layout Plain Layout
5774 \begin_inset ERT
5775 status collapsed
5776
5777 \begin_layout Plain Layout
5778
5779
5780 \backslash
5781 fcolorbox{black}{
5782 \end_layout
5783
5784 \end_inset
5785
5786 red
5787 \begin_inset ERT
5788 status collapsed
5789
5790 \begin_layout Plain Layout
5791
5792 }{
5793 \end_layout
5794
5795 \end_inset
5796
5797
5798 \begin_inset Phantom Phantom
5799 status open
5800
5801 \begin_layout Plain Layout
5802 W
5803 \end_layout
5804
5805 \end_inset
5806
5807
5808 \begin_inset ERT
5809 status collapsed
5810
5811 \begin_layout Plain Layout
5812
5813 }
5814 \end_layout
5815
5816 \end_inset
5817
5818  red
5819 \end_layout
5820
5821 \end_inset
5822 </cell>
5823 <cell alignment="left" valignment="top" usebox="none">
5824 \begin_inset Text
5825
5826 \begin_layout Plain Layout
5827 \begin_inset ERT
5828 status collapsed
5829
5830 \begin_layout Plain Layout
5831
5832
5833 \backslash
5834 fcolorbox{black}{
5835 \end_layout
5836
5837 \end_inset
5838
5839 green
5840 \begin_inset ERT
5841 status collapsed
5842
5843 \begin_layout Plain Layout
5844
5845 }{
5846 \end_layout
5847
5848 \end_inset
5849
5850
5851 \begin_inset Phantom Phantom
5852 status open
5853
5854 \begin_layout Plain Layout
5855 W
5856 \end_layout
5857
5858 \end_inset
5859
5860
5861 \begin_inset ERT
5862 status collapsed
5863
5864 \begin_layout Plain Layout
5865
5866 }
5867 \end_layout
5868
5869 \end_inset
5870
5871  green
5872 \end_layout
5873
5874 \end_inset
5875 </cell>
5876 <cell alignment="left" valignment="top" usebox="none">
5877 \begin_inset Text
5878
5879 \begin_layout Plain Layout
5880 \begin_inset ERT
5881 status collapsed
5882
5883 \begin_layout Plain Layout
5884
5885
5886 \backslash
5887 fcolorbox{black}{
5888 \end_layout
5889
5890 \end_inset
5891
5892 blue
5893 \begin_inset ERT
5894 status collapsed
5895
5896 \begin_layout Plain Layout
5897
5898 }{
5899 \end_layout
5900
5901 \end_inset
5902
5903
5904 \begin_inset Phantom Phantom
5905 status open
5906
5907 \begin_layout Plain Layout
5908 W
5909 \end_layout
5910
5911 \end_inset
5912
5913
5914 \begin_inset ERT
5915 status collapsed
5916
5917 \begin_layout Plain Layout
5918
5919 }
5920 \end_layout
5921
5922 \end_inset
5923
5924  blue
5925 \end_layout
5926
5927 \end_inset
5928 </cell>
5929 <cell alignment="left" valignment="top" usebox="none">
5930 \begin_inset Text
5931
5932 \begin_layout Plain Layout
5933 \begin_inset ERT
5934 status collapsed
5935
5936 \begin_layout Plain Layout
5937
5938
5939 \backslash
5940 fcolorbox{black}{
5941 \end_layout
5942
5943 \end_inset
5944
5945 cyan
5946 \begin_inset ERT
5947 status collapsed
5948
5949 \begin_layout Plain Layout
5950
5951 }{
5952 \end_layout
5953
5954 \end_inset
5955
5956
5957 \begin_inset Phantom Phantom
5958 status open
5959
5960 \begin_layout Plain Layout
5961 W
5962 \end_layout
5963
5964 \end_inset
5965
5966
5967 \begin_inset ERT
5968 status collapsed
5969
5970 \begin_layout Plain Layout
5971
5972 }
5973 \end_layout
5974
5975 \end_inset
5976
5977  cyan
5978 \end_layout
5979
5980 \end_inset
5981 </cell>
5982 <cell alignment="left" valignment="top" usebox="none">
5983 \begin_inset Text
5984
5985 \begin_layout Plain Layout
5986 \begin_inset ERT
5987 status collapsed
5988
5989 \begin_layout Plain Layout
5990
5991
5992 \backslash
5993 fcolorbox{black}{
5994 \end_layout
5995
5996 \end_inset
5997
5998 magenta
5999 \begin_inset ERT
6000 status collapsed
6001
6002 \begin_layout Plain Layout
6003
6004 }{
6005 \end_layout
6006
6007 \end_inset
6008
6009
6010 \begin_inset Phantom Phantom
6011 status open
6012
6013 \begin_layout Plain Layout
6014 W
6015 \end_layout
6016
6017 \end_inset
6018
6019
6020 \begin_inset ERT
6021 status collapsed
6022
6023 \begin_layout Plain Layout
6024
6025 }
6026 \end_layout
6027
6028 \end_inset
6029
6030  magenta
6031 \end_layout
6032
6033 \end_inset
6034 </cell>
6035 </row>
6036 <row>
6037 <cell alignment="left" valignment="top" usebox="none">
6038 \begin_inset Text
6039
6040 \begin_layout Plain Layout
6041 \begin_inset ERT
6042 status collapsed
6043
6044 \begin_layout Plain Layout
6045
6046
6047 \backslash
6048 fcolorbox{black}{
6049 \end_layout
6050
6051 \end_inset
6052
6053 yellow
6054 \begin_inset ERT
6055 status collapsed
6056
6057 \begin_layout Plain Layout
6058
6059 }{
6060 \end_layout
6061
6062 \end_inset
6063
6064
6065 \begin_inset Phantom Phantom
6066 status open
6067
6068 \begin_layout Plain Layout
6069 W
6070 \end_layout
6071
6072 \end_inset
6073
6074
6075 \begin_inset ERT
6076 status collapsed
6077
6078 \begin_layout Plain Layout
6079
6080 }
6081 \end_layout
6082
6083 \end_inset
6084
6085  yellow
6086 \end_layout
6087
6088 \end_inset
6089 </cell>
6090 <cell alignment="left" valignment="top" usebox="none">
6091 \begin_inset Text
6092
6093 \begin_layout Plain Layout
6094 \begin_inset ERT
6095 status collapsed
6096
6097 \begin_layout Plain Layout
6098
6099
6100 \backslash
6101 fcolorbox{black}{
6102 \end_layout
6103
6104 \end_inset
6105
6106 black
6107 \begin_inset ERT
6108 status collapsed
6109
6110 \begin_layout Plain Layout
6111
6112 }{
6113 \end_layout
6114
6115 \end_inset
6116
6117
6118 \begin_inset Phantom Phantom
6119 status open
6120
6121 \begin_layout Plain Layout
6122 W
6123 \end_layout
6124
6125 \end_inset
6126
6127
6128 \begin_inset ERT
6129 status collapsed
6130
6131 \begin_layout Plain Layout
6132
6133 }
6134 \end_layout
6135
6136 \end_inset
6137
6138  black
6139 \end_layout
6140
6141 \end_inset
6142 </cell>
6143 <cell alignment="left" valignment="top" usebox="none">
6144 \begin_inset Text
6145
6146 \begin_layout Plain Layout
6147 \begin_inset ERT
6148 status collapsed
6149
6150 \begin_layout Plain Layout
6151
6152
6153 \backslash
6154 fcolorbox{black}{
6155 \end_layout
6156
6157 \end_inset
6158
6159 gray
6160 \begin_inset ERT
6161 status collapsed
6162
6163 \begin_layout Plain Layout
6164
6165 }{
6166 \end_layout
6167
6168 \end_inset
6169
6170
6171 \begin_inset Phantom Phantom
6172 status open
6173
6174 \begin_layout Plain Layout
6175 W
6176 \end_layout
6177
6178 \end_inset
6179
6180
6181 \begin_inset ERT
6182 status collapsed
6183
6184 \begin_layout Plain Layout
6185
6186 }
6187 \end_layout
6188
6189 \end_inset
6190
6191  gray
6192 \end_layout
6193
6194 \end_inset
6195 </cell>
6196 <cell alignment="left" valignment="top" usebox="none">
6197 \begin_inset Text
6198
6199 \begin_layout Plain Layout
6200 \begin_inset ERT
6201 status collapsed
6202
6203 \begin_layout Plain Layout
6204
6205
6206 \backslash
6207 fcolorbox{black}{
6208 \end_layout
6209
6210 \end_inset
6211
6212 white
6213 \begin_inset ERT
6214 status collapsed
6215
6216 \begin_layout Plain Layout
6217
6218 }{
6219 \end_layout
6220
6221 \end_inset
6222
6223
6224 \begin_inset Phantom Phantom
6225 status open
6226
6227 \begin_layout Plain Layout
6228 W
6229 \end_layout
6230
6231 \end_inset
6232
6233
6234 \begin_inset ERT
6235 status collapsed
6236
6237 \begin_layout Plain Layout
6238
6239 }
6240 \end_layout
6241
6242 \end_inset
6243
6244  white
6245 \end_layout
6246
6247 \end_inset
6248 </cell>
6249 <cell alignment="left" valignment="top" usebox="none">
6250 \begin_inset Text
6251
6252 \begin_layout Plain Layout
6253 \begin_inset ERT
6254 status collapsed
6255
6256 \begin_layout Plain Layout
6257
6258
6259 \backslash
6260 fcolorbox{black}{
6261 \end_layout
6262
6263 \end_inset
6264
6265 darkgray
6266 \begin_inset ERT
6267 status collapsed
6268
6269 \begin_layout Plain Layout
6270
6271 }{
6272 \end_layout
6273
6274 \end_inset
6275
6276
6277 \begin_inset Phantom Phantom
6278 status open
6279
6280 \begin_layout Plain Layout
6281 W
6282 \end_layout
6283
6284 \end_inset
6285
6286
6287 \begin_inset ERT
6288 status collapsed
6289
6290 \begin_layout Plain Layout
6291
6292 }
6293 \end_layout
6294
6295 \end_inset
6296
6297  darkgray
6298 \end_layout
6299
6300 \end_inset
6301 </cell>
6302 </row>
6303 <row>
6304 <cell alignment="left" valignment="top" usebox="none">
6305 \begin_inset Text
6306
6307 \begin_layout Plain Layout
6308 \begin_inset ERT
6309 status collapsed
6310
6311 \begin_layout Plain Layout
6312
6313
6314 \backslash
6315 fcolorbox{black}{
6316 \end_layout
6317
6318 \end_inset
6319
6320 lightgray
6321 \begin_inset ERT
6322 status collapsed
6323
6324 \begin_layout Plain Layout
6325
6326 }{
6327 \end_layout
6328
6329 \end_inset
6330
6331
6332 \begin_inset Phantom Phantom
6333 status open
6334
6335 \begin_layout Plain Layout
6336 W
6337 \end_layout
6338
6339 \end_inset
6340
6341
6342 \begin_inset ERT
6343 status collapsed
6344
6345 \begin_layout Plain Layout
6346
6347 }
6348 \end_layout
6349
6350 \end_inset
6351
6352  lightgray
6353 \end_layout
6354
6355 \end_inset
6356 </cell>
6357 <cell alignment="left" valignment="top" usebox="none">
6358 \begin_inset Text
6359
6360 \begin_layout Plain Layout
6361 \begin_inset ERT
6362 status collapsed
6363
6364 \begin_layout Plain Layout
6365
6366
6367 \backslash
6368 fcolorbox{black}{
6369 \end_layout
6370
6371 \end_inset
6372
6373 brown
6374 \begin_inset ERT
6375 status collapsed
6376
6377 \begin_layout Plain Layout
6378
6379 }{
6380 \end_layout
6381
6382 \end_inset
6383
6384
6385 \begin_inset Phantom Phantom
6386 status open
6387
6388 \begin_layout Plain Layout
6389 W
6390 \end_layout
6391
6392 \end_inset
6393
6394
6395 \begin_inset ERT
6396 status collapsed
6397
6398 \begin_layout Plain Layout
6399
6400 }
6401 \end_layout
6402
6403 \end_inset
6404
6405  brown
6406 \end_layout
6407
6408 \end_inset
6409 </cell>
6410 <cell alignment="left" valignment="top" usebox="none">
6411 \begin_inset Text
6412
6413 \begin_layout Plain Layout
6414 \begin_inset ERT
6415 status collapsed
6416
6417 \begin_layout Plain Layout
6418
6419
6420 \backslash
6421 fcolorbox{black}{
6422 \end_layout
6423
6424 \end_inset
6425
6426 lime
6427 \begin_inset ERT
6428 status collapsed
6429
6430 \begin_layout Plain Layout
6431
6432 }{
6433 \end_layout
6434
6435 \end_inset
6436
6437
6438 \begin_inset Phantom Phantom
6439 status open
6440
6441 \begin_layout Plain Layout
6442 W
6443 \end_layout
6444
6445 \end_inset
6446
6447
6448 \begin_inset ERT
6449 status collapsed
6450
6451 \begin_layout Plain Layout
6452
6453 }
6454 \end_layout
6455
6456 \end_inset
6457
6458  lime
6459 \end_layout
6460
6461 \end_inset
6462 </cell>
6463 <cell alignment="left" valignment="top" usebox="none">
6464 \begin_inset Text
6465
6466 \begin_layout Plain Layout
6467 \begin_inset ERT
6468 status collapsed
6469
6470 \begin_layout Plain Layout
6471
6472
6473 \backslash
6474 fcolorbox{black}{
6475 \end_layout
6476
6477 \end_inset
6478
6479 olive
6480 \begin_inset ERT
6481 status collapsed
6482
6483 \begin_layout Plain Layout
6484
6485 }{
6486 \end_layout
6487
6488 \end_inset
6489
6490
6491 \begin_inset Phantom Phantom
6492 status open
6493
6494 \begin_layout Plain Layout
6495 W
6496 \end_layout
6497
6498 \end_inset
6499
6500
6501 \begin_inset ERT
6502 status collapsed
6503
6504 \begin_layout Plain Layout
6505
6506 }
6507 \end_layout
6508
6509 \end_inset
6510
6511  olive
6512 \end_layout
6513
6514 \end_inset
6515 </cell>
6516 <cell alignment="left" valignment="top" usebox="none">
6517 \begin_inset Text
6518
6519 \begin_layout Plain Layout
6520 \begin_inset ERT
6521 status collapsed
6522
6523 \begin_layout Plain Layout
6524
6525
6526 \backslash
6527 fcolorbox{black}{
6528 \end_layout
6529
6530 \end_inset
6531
6532 orange
6533 \begin_inset ERT
6534 status collapsed
6535
6536 \begin_layout Plain Layout
6537
6538 }{
6539 \end_layout
6540
6541 \end_inset
6542
6543
6544 \begin_inset Phantom Phantom
6545 status open
6546
6547 \begin_layout Plain Layout
6548 W
6549 \end_layout
6550
6551 \end_inset
6552
6553
6554 \begin_inset ERT
6555 status collapsed
6556
6557 \begin_layout Plain Layout
6558
6559 }
6560 \end_layout
6561
6562 \end_inset
6563
6564  orange
6565 \end_layout
6566
6567 \end_inset
6568 </cell>
6569 </row>
6570 <row>
6571 <cell alignment="left" valignment="top" usebox="none">
6572 \begin_inset Text
6573
6574 \begin_layout Plain Layout
6575 \begin_inset ERT
6576 status collapsed
6577
6578 \begin_layout Plain Layout
6579
6580
6581 \backslash
6582 fcolorbox{black}{
6583 \end_layout
6584
6585 \end_inset
6586
6587 pink
6588 \begin_inset ERT
6589 status collapsed
6590
6591 \begin_layout Plain Layout
6592
6593 }{
6594 \end_layout
6595
6596 \end_inset
6597
6598
6599 \begin_inset Phantom Phantom
6600 status open
6601
6602 \begin_layout Plain Layout
6603 W
6604 \end_layout
6605
6606 \end_inset
6607
6608
6609 \begin_inset ERT
6610 status collapsed
6611
6612 \begin_layout Plain Layout
6613
6614 }
6615 \end_layout
6616
6617 \end_inset
6618
6619  pink
6620 \end_layout
6621
6622 \end_inset
6623 </cell>
6624 <cell alignment="left" valignment="top" usebox="none">
6625 \begin_inset Text
6626
6627 \begin_layout Plain Layout
6628 \begin_inset ERT
6629 status collapsed
6630
6631 \begin_layout Plain Layout
6632
6633
6634 \backslash
6635 fcolorbox{black}{
6636 \end_layout
6637
6638 \end_inset
6639
6640 purple
6641 \begin_inset ERT
6642 status collapsed
6643
6644 \begin_layout Plain Layout
6645
6646 }{
6647 \end_layout
6648
6649 \end_inset
6650
6651
6652 \begin_inset Phantom Phantom
6653 status open
6654
6655 \begin_layout Plain Layout
6656 W
6657 \end_layout
6658
6659 \end_inset
6660
6661
6662 \begin_inset ERT
6663 status collapsed
6664
6665 \begin_layout Plain Layout
6666
6667 }
6668 \end_layout
6669
6670 \end_inset
6671
6672  purple
6673 \end_layout
6674
6675 \end_inset
6676 </cell>
6677 <cell alignment="left" valignment="top" usebox="none">
6678 \begin_inset Text
6679
6680 \begin_layout Plain Layout
6681 \begin_inset ERT
6682 status collapsed
6683
6684 \begin_layout Plain Layout
6685
6686
6687 \backslash
6688 fcolorbox{black}{
6689 \end_layout
6690
6691 \end_inset
6692
6693 teal
6694 \begin_inset ERT
6695 status collapsed
6696
6697 \begin_layout Plain Layout
6698
6699 }{
6700 \end_layout
6701
6702 \end_inset
6703
6704
6705 \begin_inset Phantom Phantom
6706 status open
6707
6708 \begin_layout Plain Layout
6709 W
6710 \end_layout
6711
6712 \end_inset
6713
6714
6715 \begin_inset ERT
6716 status collapsed
6717
6718 \begin_layout Plain Layout
6719
6720 }
6721 \end_layout
6722
6723 \end_inset
6724
6725  teal
6726 \end_layout
6727
6728 \end_inset
6729 </cell>
6730 <cell alignment="left" valignment="top" usebox="none">
6731 \begin_inset Text
6732
6733 \begin_layout Plain Layout
6734 \begin_inset ERT
6735 status collapsed
6736
6737 \begin_layout Plain Layout
6738
6739
6740 \backslash
6741 fcolorbox{black}{
6742 \end_layout
6743
6744 \end_inset
6745
6746 violet
6747 \begin_inset ERT
6748 status collapsed
6749
6750 \begin_layout Plain Layout
6751
6752 }{
6753 \end_layout
6754
6755 \end_inset
6756
6757
6758 \begin_inset Phantom Phantom
6759 status open
6760
6761 \begin_layout Plain Layout
6762 W
6763 \end_layout
6764
6765 \end_inset
6766
6767
6768 \begin_inset ERT
6769 status collapsed
6770
6771 \begin_layout Plain Layout
6772
6773 }
6774 \end_layout
6775
6776 \end_inset
6777
6778  violet
6779 \end_layout
6780
6781 \end_inset
6782 </cell>
6783 <cell alignment="left" valignment="top" usebox="none">
6784 \begin_inset Text
6785
6786 \begin_layout Plain Layout
6787
6788 \end_layout
6789
6790 \end_inset
6791 </cell>
6792 </row>
6793 </lyxtabular>
6794
6795 \end_inset
6796
6797
6798 \end_layout
6799
6800 \begin_layout Standard
6801 , and the ones listed in Appendix
6802 \begin_inset space ~
6803 \end_inset
6804
6805 C of the 
6806 \emph on
6807 Embedded
6808 \begin_inset space ~
6809 \end_inset
6810
6811 Objects
6812 \emph default
6813  manual.
6814 \end_layout
6815
6816 \begin_layout Subsubsection
6817 Background
6818 \end_layout
6819
6820 \begin_layout Standard
6821 The background color is changed with the option 
6822 \series bold
6823 colback
6824 \series default
6825 .
6826 \end_layout
6827
6828 \begin_layout Standard
6829 \begin_inset Flex Color Box
6830 status open
6831
6832 \begin_layout Plain Layout
6833 \begin_inset Argument 1
6834 status open
6835
6836 \begin_layout Plain Layout
6837 colback=red!66!green!70!blue
6838 \end_layout
6839
6840 \end_inset
6841
6842 Background color
6843 \end_layout
6844
6845 \end_inset
6846
6847
6848 \end_layout
6849
6850 \begin_layout Subsubsection
6851 Frame
6852 \end_layout
6853
6854 \begin_layout Standard
6855 The frame color is changed with the option 
6856 \series bold
6857 colframe
6858 \series default
6859 .
6860 \end_layout
6861
6862 \begin_layout Standard
6863 \begin_inset Flex Color Box
6864 status open
6865
6866 \begin_layout Plain Layout
6867 \begin_inset Argument 1
6868 status open
6869
6870 \begin_layout Plain Layout
6871 colframe=red!30!blue
6872 \end_layout
6873
6874 \end_inset
6875
6876 Frame color
6877 \end_layout
6878
6879 \end_inset
6880
6881
6882 \end_layout
6883
6884 \begin_layout Subsubsection
6885 Title background
6886 \end_layout
6887
6888 \begin_layout Standard
6889 The title background color is changed with the option 
6890 \series bold
6891 colbacktitle
6892 \series default
6893 .
6894 \end_layout
6895
6896 \begin_layout Standard
6897 \begin_inset Flex Color Box
6898 status open
6899
6900 \begin_layout Plain Layout
6901 \begin_inset Argument 1
6902 status open
6903
6904 \begin_layout Plain Layout
6905 title=A title, colbacktitle=green!30
6906 \end_layout
6907
6908 \end_inset
6909
6910 Title background color
6911 \end_layout
6912
6913 \end_inset
6914
6915
6916 \end_layout
6917
6918 \begin_layout Subsubsection
6919 Title text
6920 \begin_inset CommandInset label
6921 LatexCommand label
6922 name "subsec:Title-text"
6923
6924 \end_inset
6925
6926
6927 \end_layout
6928
6929 \begin_layout Standard
6930 The color for the title text is changed with the option 
6931 \series bold
6932 coltitle
6933 \series default
6934 .
6935 \end_layout
6936
6937 \begin_layout Standard
6938 \begin_inset Flex Color Box
6939 status open
6940
6941 \begin_layout Plain Layout
6942 \begin_inset Argument 1
6943 status open
6944
6945 \begin_layout Plain Layout
6946 title=A title, coltitle=orange
6947 \end_layout
6948
6949 \end_inset
6950
6951 Title text color
6952 \end_layout
6953
6954 \begin_layout Plain Layout
6955 \begin_inset Flex Subtitle
6956 status open
6957
6958 \begin_layout Plain Layout
6959 The subtitle
6960 \end_layout
6961
6962 \end_inset
6963
6964
6965 \end_layout
6966
6967 \begin_layout Plain Layout
6968 Text
6969 \end_layout
6970
6971 \end_inset
6972
6973
6974 \end_layout
6975
6976 \begin_layout Subsubsection
6977 Complete text
6978 \end_layout
6979
6980 \begin_layout Standard
6981 The color for the complete text is changed with the option 
6982 \series bold
6983 coltext
6984 \series default
6985 .
6986 \end_layout
6987
6988 \begin_layout Standard
6989 \begin_inset Flex Color Box
6990 status open
6991
6992 \begin_layout Plain Layout
6993 \begin_inset Argument 1
6994 status open
6995
6996 \begin_layout Plain Layout
6997 coltext=red
6998 \end_layout
6999
7000 \end_inset
7001
7002 Text color
7003 \end_layout
7004
7005 \end_inset
7006
7007
7008 \end_layout
7009
7010 \begin_layout Subsubsection
7011 Upper and lower text
7012 \end_layout
7013
7014 \begin_layout Standard
7015 The color for the upper and lower part text is changed with the option 
7016 \series bold
7017 colupper
7018 \series default
7019  and 
7020 \series bold
7021 collower
7022 \series default
7023 , respectively.
7024 \end_layout
7025
7026 \begin_layout Standard
7027 \begin_inset Flex Color Box
7028 status open
7029
7030 \begin_layout Plain Layout
7031 \begin_inset Argument 1
7032 status open
7033
7034 \begin_layout Plain Layout
7035 colupper=green!30!blue, collower=green!70!blue
7036 \end_layout
7037
7038 \end_inset
7039
7040 Upper text color
7041 \end_layout
7042
7043 \begin_layout Color Box Separator
7044
7045 \end_layout
7046
7047 \begin_layout Plain Layout
7048 Lower text color
7049 \end_layout
7050
7051 \end_inset
7052
7053
7054 \end_layout
7055
7056 \begin_layout Standard
7057 \begin_inset Newpage newpage
7058 \end_inset
7059
7060
7061 \end_layout
7062
7063 \begin_layout Subsection
7064 Shadows
7065 \begin_inset CommandInset label
7066 LatexCommand label
7067 name "subsec:Shadows"
7068
7069 \end_inset
7070
7071
7072 \end_layout
7073
7074 \begin_layout Standard
7075 Boxes can only be decorated with shadows if a skin is specified, see 
7076 \begin_inset CommandInset ref
7077 LatexCommand ref
7078 reference "subsec:Enhanced"
7079
7080 \end_inset
7081
7082 .
7083 \end_layout
7084
7085 \begin_layout Subsubsection
7086 Shadow
7087 \end_layout
7088
7089 \begin_layout Standard
7090 A shadow is added with the box option 
7091 \series bold
7092 drop shadow=color
7093 \series default
7094  where 
7095 \series bold
7096 color
7097 \series default
7098  is a color name or definition, see 
7099 \begin_inset CommandInset ref
7100 LatexCommand ref
7101 reference "subsec:Color"
7102
7103 \end_inset
7104
7105 .
7106  One can omit the color, the shadow color is then black!50!white.
7107  The option 
7108 \series bold
7109 drop fuzzy shadow
7110 \series default
7111  creates a semi-transparent shadow.
7112 \end_layout
7113
7114 \begin_layout Standard
7115 \begin_inset Flex Color Box
7116 status open
7117
7118 \begin_layout Plain Layout
7119 \begin_inset Argument 1
7120 status open
7121
7122 \begin_layout Plain Layout
7123 enhanced, drop shadow, nobeforeafter
7124 \end_layout
7125
7126 \end_inset
7127
7128 A box with a shadow
7129 \end_layout
7130
7131 \end_inset
7132
7133
7134 \end_layout
7135
7136 \begin_layout Standard
7137 \begin_inset VSpace defskip
7138 \end_inset
7139
7140
7141 \begin_inset Flex Color Box
7142 status open
7143
7144 \begin_layout Plain Layout
7145 \begin_inset Argument 1
7146 status open
7147
7148 \begin_layout Plain Layout
7149 enhanced, drop fuzzy shadow, nobeforeafter
7150 \end_layout
7151
7152 \end_inset
7153
7154 A box with a fuzzy shadow
7155 \end_layout
7156
7157 \end_inset
7158
7159
7160 \end_layout
7161
7162 \begin_layout Standard
7163 The default shadow is placed right below the box.
7164  For other shadow placements have a look at section 
7165 \family sans
7166 Shadow Option Keys
7167 \family default
7168  of the 
7169 \series bold
7170 tcolorbox
7171 \series default
7172  manual, 
7173 \begin_inset CommandInset citation
7174 LatexCommand cite
7175 key "tcolorbox"
7176
7177 \end_inset
7178
7179 .
7180 \end_layout
7181
7182 \begin_layout Subsubsection
7183 Halo
7184 \end_layout
7185
7186 \begin_layout Standard
7187 A halo is added with the box option 
7188 \series bold
7189 halo=size with color
7190 \series default
7191  where 
7192 \series bold
7193 size
7194 \series default
7195  is a value and 
7196 \series bold
7197 color
7198 \series default
7199  is a color name or definition.
7200  One can omit the size and color, the halo is then 0.9
7201 \begin_inset space \thinspace{}
7202 \end_inset
7203
7204 mm thick and has the color yellow.
7205  Note that one cannot omit only the size or color, either both is omitted
7206  or both is specified.
7207  The option 
7208 \series bold
7209 fuzzy halo
7210 \series default
7211  creates a semi-transparent halo.
7212 \end_layout
7213
7214 \begin_layout Standard
7215 \begin_inset Flex Color Box
7216 status open
7217
7218 \begin_layout Plain Layout
7219 \begin_inset Argument 1
7220 status open
7221
7222 \begin_layout Plain Layout
7223 enhanced, halo, nobeforeafter
7224 \end_layout
7225
7226 \end_inset
7227
7228 A box with a halo
7229 \end_layout
7230
7231 \end_inset
7232
7233
7234 \end_layout
7235
7236 \begin_layout Standard
7237 \begin_inset VSpace defskip
7238 \end_inset
7239
7240
7241 \end_layout
7242
7243 \begin_layout Standard
7244 \begin_inset Flex Color Box
7245 status open
7246
7247 \begin_layout Plain Layout
7248 \begin_inset Argument 1
7249 status open
7250
7251 \begin_layout Plain Layout
7252 enhanced, fuzzy halo=5mm with green, nobeforeafter
7253 \end_layout
7254
7255 \end_inset
7256
7257 A box with a 5
7258 \begin_inset space \thinspace{}
7259 \end_inset
7260
7261 mm thick, green fuzzy halo
7262 \end_layout
7263
7264 \end_inset
7265
7266
7267 \end_layout
7268
7269 \begin_layout Subsubsection
7270 Generic
7271 \end_layout
7272
7273 \begin_layout Standard
7274 Generic shadows/halos can be created with the box option 
7275 \series bold
7276 shadow
7277 \series default
7278  or 
7279 \series bold
7280 fuzzy shadow
7281 \series default
7282 .
7283  For a brief description of these options consult section 
7284 \family sans
7285 Generic Shadows
7286 \family default
7287  of the 
7288 \series bold
7289 tcolorbox
7290 \series default
7291  manual, 
7292 \begin_inset CommandInset citation
7293 LatexCommand cite
7294 key "tcolorbox"
7295
7296 \end_inset
7297
7298 .
7299 \end_layout
7300
7301 \begin_layout Standard
7302 \begin_inset Flex Color Box
7303 status open
7304
7305 \begin_layout Plain Layout
7306 \begin_inset Argument 1
7307 status open
7308
7309 \begin_layout Plain Layout
7310 enhanced, title=Double shadow, shadow={-2.5mm}{-2.5mm}{0mm}{fill=blue, opacity=0.25
7311 }, shadow={1.5mm}{1.5mm}{0mm}{fill=red, opacity=0.25}
7312 \end_layout
7313
7314 \end_inset
7315
7316 A box with 2
7317 \begin_inset space ~
7318 \end_inset
7319
7320 generic shadows
7321 \end_layout
7322
7323 \end_inset
7324
7325
7326 \end_layout
7327
7328 \begin_layout Bibliography
7329 \begin_inset CommandInset bibitem
7330 LatexCommand bibitem
7331 key "tcolorbox"
7332
7333 \end_inset
7334
7335
7336 \begin_inset CommandInset href
7337 LatexCommand href
7338 name "Documentation"
7339 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
7340
7341 \end_inset
7342
7343  of the \SpecialChar LaTeX
7344  package 
7345 \series bold
7346 tcolorbox
7347 \end_layout
7348
7349 \end_body
7350 \end_document