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