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