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