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