]> git.lyx.org Git - lyx.git/blobdiff - lib/examples/colored-boxes.lyx
ANNOUNCE updates.
[lyx.git] / lib / examples / colored-boxes.lyx
index fb2475dcfba32ce7b9d239e3e408116ea53e4fb8..2ed3665e58076730d6c5dcf0fbd596262f2d075c 100644 (file)
@@ -1,7 +1,8 @@
-#LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 498
+#LyX 2.3 created this file. For more info see http://www.lyx.org/
+\lyxformat 544
 \begin_document
 \begin_header
+\save_transient_properties true
 \origin /systemlyxdir/examples/
 \textclass scrartcl
 \begin_preamble
 
 \fi % end if pdflatex is used
 
-% increase link area for cross-references and autoname them,
-\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
-\@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
-\addto\extrasenglish{%
- \renewcommand*{\equationautorefname}[1]{}%
- \renewcommand{\sectionautorefname}{sec.\negthinspace}%
- \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
- \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
-}
+\@ifpackageloaded{babel}{
+ % increase link area for cross-references and autoname them,
+ \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
+ \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
+ \addto\extrasenglish{%
+  \renewcommand*{\equationautorefname}[1]{}%
+  \renewcommand{\sectionautorefname}{sec.\negthinspace}%
+  \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
+  \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
+ }
+}{}
 \end_preamble
 \options BCOR8mm, most, usenames, dvipsnames
 \use_default_options false
@@ -35,16 +38,18 @@ tcolorbox
 \language_package default
 \inputencoding auto
 \fontencoding global
-\font_roman default
-\font_sans default
-\font_typewriter default
-\font_math auto
+\font_roman "default" "default"
+\font_sans "default" "default"
+\font_typewriter "default" "default"
+\font_math "auto" "auto"
 \font_default_family default
 \use_non_tex_fonts false
 \font_sc false
 \font_osf false
-\font_sf_scale 100
-\font_tt_scale 100
+\font_sf_scale 100 100
+\font_tt_scale 100 100
+\use_microtype false
+\use_dash_ligatures false
 \graphics default
 \default_output_format default
 \output_sync 0
@@ -71,14 +76,14 @@ tcolorbox
 \use_geometry false
 \use_package amsmath 1
 \use_package amssymb 1
-\use_package cancel 0
+\use_package cancel 1
 \use_package esint 1
 \use_package mathdots 1
 \use_package mathtools 1
 \use_package mhchem 1
-\use_package stackrel 0
-\use_package stmaryrd 0
-\use_package undertilde 0
+\use_package stackrel 1
+\use_package stmaryrd 1
+\use_package undertilde 1
 \cite_engine basic
 \cite_engine_type default
 \biblio_style plain
@@ -88,6 +93,7 @@ tcolorbox
 \suppress_date true
 \justification true
 \use_refstyle 0
+\use_minted 0
 \notefontcolor #0000ff
 \index Index
 \shortcut idx
@@ -97,7 +103,10 @@ tcolorbox
 \tocdepth 3
 \paragraph_separation skip
 \defskip medskip
-\quotes_language english
+\is_math_indent 0
+\math_numbering_side default
+\quotes_style english
+\dynamic_quotes 0
 \papercolumns 1
 \papersides 1
 \paperpagestyle default
@@ -160,6 +169,7 @@ tcolorbox
 \begin_inset CommandInset citation
 LatexCommand cite
 key "tcolorbox"
+literal "true"
 
 \end_inset
 
@@ -378,7 +388,7 @@ Box
 
 \begin_layout Standard
 Fit boxes are dynamic boxes but their content is automatically decreased
- or increased to fit into the specified box width and heigh.
+ or increased to fit into the specified box width and height.
  How to specify a width and height is described in 
 \begin_inset CommandInset ref
 LatexCommand ref
@@ -866,6 +876,7 @@ tcolorbox
 \begin_inset CommandInset citation
 LatexCommand cite
 key "tcolorbox"
+literal "true"
 
 \end_inset
 
@@ -1234,11 +1245,11 @@ Default Value
 \end_layout
 
 \begin_layout New Color Box Type
-
 \begin_inset Argument 2
 status open
 
 \begin_layout Plain Layout
+
 cBoxA
 \end_layout
 
@@ -1249,6 +1260,7 @@ cBoxA
 status open
 
 \begin_layout Plain Layout
+
 1
 \end_layout
 
@@ -1413,11 +1425,11 @@ Box
 \end_layout
 
 \begin_layout New Color Box Type
-
 \begin_inset Argument 1
 status open
 
 \begin_layout Plain Layout
+
 auto counter, number within=section
 \end_layout
 
@@ -1428,6 +1440,7 @@ auto counter, number within=section
 status open
 
 \begin_layout Plain Layout
+
 cBoxB
 \end_layout
 
@@ -1438,6 +1451,7 @@ cBoxB
 status open
 
 \begin_layout Plain Layout
+
 1
 \end_layout
 
@@ -1652,11 +1666,11 @@ More Color Box Options
 \end_layout
 
 \begin_layout New Color Box Type
-
 \begin_inset Argument 1
 status open
 
 \begin_layout Plain Layout
+
 auto counter, number within=section
 \end_layout
 
@@ -1667,6 +1681,7 @@ auto counter, number within=section
 status open
 
 \begin_layout Plain Layout
+
 cBoxC
 \end_layout
 
@@ -1677,6 +1692,7 @@ cBoxC
 status open
 
 \begin_layout Plain Layout
+
 2
 \end_layout
 
@@ -1797,6 +1813,7 @@ skins
 \begin_inset CommandInset citation
 LatexCommand cite
 key "tcolorbox"
+literal "true"
 
 \end_inset
 
@@ -2236,8 +2253,8 @@ Side by side
 Normally the boxes are a paragraph of its own.
  They will therefore appear by default one upon another separated by vertical
  space.
- To change this behavior to place for example boxes side by side and uses
the placement options 
+ To change this behavior, to place for example boxes side by side, use the
+ placement options 
 \series bold
 before=code
 \series default
@@ -2435,7 +2452,7 @@ cm wide, square box.
 
 \begin_layout Standard
 If you prefer \SpecialChar TeX
- code you can alternative use the option 
+ code you can alternatively use the option 
 \series bold
 after=
 \backslash
@@ -2496,7 +2513,7 @@ b
 \begin_inset Quotes erd
 \end_inset
 
-, and 
+ and 
 \begin_inset Quotes eld
 \end_inset
 
@@ -2517,7 +2534,7 @@ Float
 
 Placement
 \family default
- of the of the 
+ of the 
 \emph on
 Embedded
 \begin_inset space ~
@@ -2674,8 +2691,8 @@ tcbox raise=0pt
 \series bold
 tcbox raise base
 \series default
- the box is lowered that the base of the box content matches the base of
- the surrounding line.
+ the box is lowered so that the base of the box content matches the base
of the surrounding line.
 \end_layout
 
 \begin_layout Standard
@@ -2754,7 +2771,7 @@ Raster
 \begin_layout Standard
 The easiest way to place boxes in a table-like raster is to put them into
  a raster box.
- To get a raster box insert a 
+ The 
 \family sans
 Raster
 \begin_inset space ~
@@ -2766,7 +2783,7 @@ Color
 
 Box
 \family default
- inset via the menu 
+ inset is inserted via the menu 
 \family sans
 Insert\SpecialChar menuseparator
 Custom Insets
@@ -2909,7 +2926,8 @@ A simple box.
 \end_layout
 
 \begin_layout Standard
-For more info options of the raster color box, please consult the 
+For more info about options of the raster color box, please consult the
 \series bold
 tcolorbox
 \series default
@@ -2925,6 +2943,7 @@ raster
 \begin_inset CommandInset citation
 LatexCommand cite
 key "tcolorbox"
+literal "true"
 
 \end_inset
 
@@ -3014,7 +3033,7 @@ One can also set a width only for the text of the box with the option
 text width=length
 \series default
 .
- If the width is shorter than required for the text new lines will be created
+ If the width is shorter than required for the text, new lines will be created
  automatically.
 \end_layout
 
@@ -3053,7 +3072,7 @@ width
 \series bold
 text width
 \series default
- because only the last given width option is taken into account.
+; only the last given width option is taken into account.
 \end_layout
 
 \begin_layout Standard
@@ -3061,7 +3080,7 @@ To extend the width of the box one must use the
 \series bold
 width
 \series default
- option and can then uses the option 
+ option and can then use the option 
 \series bold
 add to width=length
 \series default
@@ -3147,7 +3166,11 @@ Embedded
 Objects
 \emph default
  manual.
- All option require of course the option sidebyside.
+ All options require of course the option 
+\series bold
+sidebyside
+\series default
+.
 \end_layout
 
 \begin_layout Standard
@@ -3155,7 +3178,7 @@ Objects
 \series bold
 sidebyside gap
 \series default
- sets the space between the left and the right part.
+ sets the space between the left and the right part:
 \end_layout
 
 \begin_layout Standard
@@ -3201,7 +3224,7 @@ lefthand width
 \series bold
 righthand width
 \series default
- sets the absolute width of the left and right part, respectively.
+ set the absolute width of the left and right part, respectively:
 \end_layout
 
 \begin_layout Standard
@@ -3247,7 +3270,7 @@ lefthand ratio
 \series bold
 righthand ratio
 \series default
- sets the relative width of the left and right part, respectively.
+ set the relative width of the left and right part, respectively:
 \end_layout
 
 \begin_layout Standard
@@ -3339,7 +3362,7 @@ cm high box.
 \end_layout
 
 \begin_layout Standard
-If the specified height is smaller then the one consumed by the content,
+If the specified height is smaller than the one consumed by the content,
  the content will be placed below the box:
 \end_layout
 
@@ -3377,7 +3400,7 @@ With the option
 \series bold
 square
 \series default
- the height will automatically set to the same value than the box width.
+ the height will automatically be set to the same value than the box width.
 \end_layout
 
 \begin_layout Standard
@@ -3546,7 +3569,7 @@ max
  are values.
  The height will then be at least the given minimal value or the height
  consumed by the content.
- It does not exceed the maximum independent of the content:
+ It does not exceed the maximum, independent of the content:
 \end_layout
 
 \begin_layout Standard
@@ -3601,6 +3624,11 @@ cm and maximal height of 3
 \begin_inset space \thinspace{}
 \end_inset
 
+cm.
+ The content consumes more space than 3
+\begin_inset space \thinspace{}
+\end_inset
+
 cm.
  A box with minimal height of 1
 \begin_inset space \thinspace{}
@@ -3610,6 +3638,11 @@ cm and maximal height of 3
 \begin_inset space \thinspace{}
 \end_inset
 
+cm.
+ The content consumes more space than 3
+\begin_inset space \thinspace{}
+\end_inset
+
 cm.
  A box with minimal height of 1
 \begin_inset space \thinspace{}
@@ -3619,6 +3652,25 @@ cm and maximal height of 3
 \begin_inset space \thinspace{}
 \end_inset
 
+cm.
+ The content consumes more space than 3
+\begin_inset space \thinspace{}
+\end_inset
+
+cm.
+ A box with minimal height of 1
+\begin_inset space \thinspace{}
+\end_inset
+
+cm and maximal height of 3
+\begin_inset space \thinspace{}
+\end_inset
+
+cm.
+ The content consumes more space than 3
+\begin_inset space \thinspace{}
+\end_inset
+
 cm.
 \end_layout
 
@@ -3656,12 +3708,12 @@ status open
 status open
 
 \begin_layout Plain Layout
-height=1.5cm, add to height=1cm
+height=1cm, add to height=1cm
 \end_layout
 
 \end_inset
 
-A 1.5
+A 1
 \begin_inset space \thinspace{}
 \end_inset
 
@@ -3710,7 +3762,7 @@ true
 \end_inset
 
 In this example the box is in the main text and therefore consumes the rest
- of the current page.
+ of the current page:
 \end_layout
 
 \begin_layout Standard
@@ -3792,7 +3844,7 @@ height
 \series bold
 text height
 \series default
- because only the last given width option is taken into account.
+; only the last given width option is taken into account.
 \end_layout
 
 \begin_layout Standard
@@ -3951,7 +4003,7 @@ split
 fraction
 \series default
  is the fraction of the complete height (not the additional height).
- Therefore one must be careful of e.
+ Therefore one must be careful if e.
 \begin_inset space \thinspace{}
 \end_inset
 
@@ -4047,7 +4099,7 @@ status open
 status open
 
 \begin_layout Plain Layout
-adjusted title=ice, width=0.3
+adjusted title=ace, width=0.3
 \backslash
 columnwidth, nobeforeafter, equal height group=A
 \end_layout
@@ -4170,7 +4222,7 @@ Grapefruit
 \begin_inset Quotes eld
 \end_inset
 
-ice
+ace
 \begin_inset Quotes erd
 \end_inset
 
@@ -4425,7 +4477,7 @@ arc=5
 \begin_inset space \thinspace{}
 \end_inset
 
-mm
+mm,
 \series default
  
 \series bold
@@ -4532,7 +4584,7 @@ A 3.5
 \begin_inset space \thinspace{}
 \end_inset
 
-cm wide circular box.
+cm wide circular arc box.
 \end_layout
 
 \end_inset
@@ -4541,7 +4593,7 @@ cm wide circular box.
 \end_layout
 
 \begin_layout Standard
-As you can see circular box looks ugly when the box is wider than high.
+As you can see circular arc box looks ugly when the box is wider than high.
  It is therefore recommended to add the option 
 \series bold
 square
@@ -4555,7 +4607,7 @@ reference "subsec:Height"
 
 , to get the same width and height.
  The result is a perfect circle.
- The center the text in the box use the text alignment options described
+ To center the text in the box use the text alignment options described
  in 
 \begin_inset CommandInset ref
 LatexCommand ref
@@ -4584,7 +4636,7 @@ A 4
 \begin_inset space \thinspace{}
 \end_inset
 
-cm wide circular box.
+cm wide circular arc box.
 \end_layout
 
 \end_inset
@@ -4723,7 +4775,7 @@ The option
 octogon arc
 \series default
  is useful to get an octagon.
- For an octagon one needs a square box and the options 
+ For an octagon one needs a square box and the option 
 \series bold
 arc is angular
 \series default
@@ -5254,7 +5306,7 @@ A vertically centered box.
 \end_layout
 
 \begin_layout Description
-scale the content is vertically centered to fit the height
+scale the content is vertically scaled to fit the height
 \begin_inset Flex Color Box
 status open
 
@@ -5465,7 +5517,7 @@ The color is specified in one of these schemes:
 Name
 \series default
 
-\begin_inset Newline newline
+\begin_inset VSpace 3mm
 \end_inset
 
 
@@ -5517,10 +5569,10 @@ red
 \begin_layout Enumerate
 
 \series bold
-Name1!PercentOfName1
+Name!PercentOfName
 \series default
 
-\begin_inset Newline newline
+\begin_inset VSpace 3mm
 \end_inset
 
 
@@ -5551,7 +5603,7 @@ geen!30
 \begin_inset Quotes eld
 \end_inset
 
-transparent
+transparency
 \begin_inset Quotes erd
 \end_inset
 
@@ -5591,7 +5643,7 @@ green!30
 Name1!PercentOfName1!Name2
 \series default
 
-\begin_inset Newline newline
+\begin_inset VSpace 3mm
 \end_inset
 
 
@@ -5654,7 +5706,7 @@ red!30!blue
 Name1!PercentName1!Name2!PercentName3!Name3
 \series default
 
-\begin_inset Newline newline
+\begin_inset VSpace 3mm
 \end_inset
 
 
@@ -7113,12 +7165,12 @@ status open
 status open
 
 \begin_layout Plain Layout
-enhanced, drop fuzzy shadow, nobeforeafter
+enhanced, drop fuzzy shadow=purple, nobeforeafter
 \end_layout
 
 \end_inset
 
-A box with a fuzzy shadow
+A box with a fuzzy, purple shadow
 \end_layout
 
 \end_inset
@@ -7140,6 +7192,7 @@ tcolorbox
 \begin_inset CommandInset citation
 LatexCommand cite
 key "tcolorbox"
+literal "true"
 
 \end_inset
 
@@ -7259,6 +7312,7 @@ tcolorbox
 \begin_inset CommandInset citation
 LatexCommand cite
 key "tcolorbox"
+literal "true"
 
 \end_inset
 
@@ -7296,6 +7350,7 @@ generic shadows
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "tcolorbox"
+literal "true"
 
 \end_inset
 
@@ -7303,7 +7358,8 @@ key "tcolorbox"
 \begin_inset CommandInset href
 LatexCommand href
 name "Documentation"
-target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
+target "https://ctan.org/tex-archive/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
+literal "false"
 
 \end_inset