]> git.lyx.org Git - lyx.git/blobdiff - lib/examples/colored-boxes.lyx
Quick review of cs docs.
[lyx.git] / lib / examples / colored-boxes.lyx
index 620f5947c1e4e914200c8fb7d216217dea32a3ba..5096eab152cbfc0b96dc512a69a8b3b0d583b651 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 541
 \begin_document
 \begin_header
+\save_transient_properties true
 \origin /systemlyxdir/examples/
 \textclass scrartcl
 \begin_preamble
@@ -37,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
@@ -99,7 +102,8 @@ tcolorbox
 \tocdepth 3
 \paragraph_separation skip
 \defskip medskip
-\quotes_language english
+\is_math_indent 0
+\quotes_style english
 \papercolumns 1
 \papersides 1
 \paperpagestyle default
@@ -162,6 +166,7 @@ tcolorbox
 \begin_inset CommandInset citation
 LatexCommand cite
 key "tcolorbox"
+literal "true"
 
 \end_inset
 
@@ -868,6 +873,7 @@ tcolorbox
 \begin_inset CommandInset citation
 LatexCommand cite
 key "tcolorbox"
+literal "true"
 
 \end_inset
 
@@ -1796,6 +1802,7 @@ skins
 \begin_inset CommandInset citation
 LatexCommand cite
 key "tcolorbox"
+literal "true"
 
 \end_inset
 
@@ -2235,8 +2242,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
@@ -2434,7 +2441,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
@@ -2495,7 +2502,7 @@ b
 \begin_inset Quotes erd
 \end_inset
 
-, and 
+ and 
 \begin_inset Quotes eld
 \end_inset
 
@@ -2516,7 +2523,7 @@ Float
 
 Placement
 \family default
- of the of the 
+ of the 
 \emph on
 Embedded
 \begin_inset space ~
@@ -2673,8 +2680,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
@@ -2753,7 +2760,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 ~
@@ -2765,7 +2772,7 @@ Color
 
 Box
 \family default
- inset via the menu 
+ inset is inserted via the menu 
 \family sans
 Insert\SpecialChar menuseparator
 Custom Insets
@@ -2908,7 +2915,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
@@ -2924,6 +2932,7 @@ raster
 \begin_inset CommandInset citation
 LatexCommand cite
 key "tcolorbox"
+literal "true"
 
 \end_inset
 
@@ -3013,7 +3022,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
 
@@ -3052,7 +3061,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
@@ -3060,7 +3069,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
@@ -3146,7 +3155,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
@@ -3154,7 +3167,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
@@ -3200,7 +3213,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
@@ -3246,7 +3259,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
@@ -3338,7 +3351,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
 
@@ -3376,7 +3389,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
@@ -3545,7 +3558,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
@@ -3600,6 +3613,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{}
@@ -3609,6 +3627,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{}
@@ -3618,6 +3641,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
 
@@ -3655,12 +3697,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
 
@@ -3709,7 +3751,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
@@ -3791,7 +3833,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
@@ -3950,7 +3992,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
 
@@ -4046,7 +4088,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
@@ -4169,7 +4211,7 @@ Grapefruit
 \begin_inset Quotes eld
 \end_inset
 
-ice
+ace
 \begin_inset Quotes erd
 \end_inset
 
@@ -4424,7 +4466,7 @@ arc=5
 \begin_inset space \thinspace{}
 \end_inset
 
-mm
+mm,
 \series default
  
 \series bold
@@ -4531,7 +4573,7 @@ A 3.5
 \begin_inset space \thinspace{}
 \end_inset
 
-cm wide circular box.
+cm wide circular arc box.
 \end_layout
 
 \end_inset
@@ -4540,7 +4582,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
@@ -4554,7 +4596,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
@@ -4583,7 +4625,7 @@ A 4
 \begin_inset space \thinspace{}
 \end_inset
 
-cm wide circular box.
+cm wide circular arc box.
 \end_layout
 
 \end_inset
@@ -4722,7 +4764,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
@@ -5253,7 +5295,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
 
@@ -5464,7 +5506,7 @@ The color is specified in one of these schemes:
 Name
 \series default
 
-\begin_inset Newline newline
+\begin_inset VSpace 3mm
 \end_inset
 
 
@@ -5516,10 +5558,10 @@ red
 \begin_layout Enumerate
 
 \series bold
-Name1!PercentOfName1
+Name!PercentOfName
 \series default
 
-\begin_inset Newline newline
+\begin_inset VSpace 3mm
 \end_inset
 
 
@@ -5550,7 +5592,7 @@ geen!30
 \begin_inset Quotes eld
 \end_inset
 
-transparent
+transparency
 \begin_inset Quotes erd
 \end_inset
 
@@ -5590,7 +5632,7 @@ green!30
 Name1!PercentOfName1!Name2
 \series default
 
-\begin_inset Newline newline
+\begin_inset VSpace 3mm
 \end_inset
 
 
@@ -5653,7 +5695,7 @@ red!30!blue
 Name1!PercentName1!Name2!PercentName3!Name3
 \series default
 
-\begin_inset Newline newline
+\begin_inset VSpace 3mm
 \end_inset
 
 
@@ -7112,12 +7154,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
@@ -7139,6 +7181,7 @@ tcolorbox
 \begin_inset CommandInset citation
 LatexCommand cite
 key "tcolorbox"
+literal "true"
 
 \end_inset
 
@@ -7258,6 +7301,7 @@ tcolorbox
 \begin_inset CommandInset citation
 LatexCommand cite
 key "tcolorbox"
+literal "true"
 
 \end_inset
 
@@ -7295,6 +7339,7 @@ generic shadows
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "tcolorbox"
+literal "true"
 
 \end_inset
 
@@ -7303,6 +7348,7 @@ key "tcolorbox"
 LatexCommand href
 name "Documentation"
 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
+literal "false"
 
 \end_inset