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