]> git.lyx.org Git - lyx.git/blobdiff - lib/examples/Modules/Fancy_Colored_Boxes.lyx
DocBook: start implementing LilyPond.
[lyx.git] / lib / examples / Modules / Fancy_Colored_Boxes.lyx
index bbf4415bfa125164bf8870a8ad20ff91f4c438e9..527e7ff0637893a30c4ae6b129450c2525369e3a 100644 (file)
@@ -1,5 +1,5 @@
-#LyX 2.3 created this file. For more info see http://www.lyx.org/
-\lyxformat 544
+#LyX 2.4 created this file. For more info see https://www.lyx.org/
+\lyxformat 600
 \begin_document
 \begin_header
 \save_transient_properties true
   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
  }
 }{}
+% Added by lyx2lyx
+\setlength{\parskip}{\medskipamount}
+\setlength{\parindent}{0pt}
 \end_preamble
 \options BCOR8mm, most, usenames, dvipsnames
 \use_default_options false
 \begin_modules
 tcolorbox
 \end_modules
-\maintain_unincluded_children false
+\maintain_unincluded_children no
 \language english
 \language_package default
 \inputencoding utf8
-\fontencoding global
+\fontencoding auto
 \font_roman "default" "default"
 \font_sans "default" "default"
 \font_typewriter "default" "default"
@@ -45,7 +48,9 @@ tcolorbox
 \font_default_family default
 \use_non_tex_fonts false
 \font_sc false
-\font_osf false
+\font_sans_osf false
+\font_typewriter_osf false
+\font_roman_osf false
 \font_sf_scale 100 100
 \font_tt_scale 100 100
 \use_microtype false
@@ -72,7 +77,7 @@ tcolorbox
 \pdf_backref false
 \pdf_pdfusetitle false
 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, urlbordercolor={1 0 0}"
-\papersize a4paper
+\papersize a4
 \use_geometry false
 \use_package amsmath 1
 \use_package amssymb 1
@@ -95,14 +100,15 @@ tcolorbox
 \use_refstyle 0
 \use_minted 0
 \notefontcolor #0000ff
+\use_lineno 0
 \index Index
 \shortcut idx
 \color #008000
 \end_index
 \secnumdepth 3
 \tocdepth 3
-\paragraph_separation skip
-\defskip medskip
+\paragraph_separation indent
+\paragraph_indentation default
 \is_math_indent 0
 \math_numbering_side default
 \quotes_style english
@@ -111,6 +117,7 @@ tcolorbox
 \papersides 1
 \paperpagestyle default
 \tracking_changes false
+\postpone_fragile_content false
 \output_changes false
 \html_math_output 0
 \html_css_as_file 0
@@ -127,6 +134,15 @@ Description of the module Fancy Colored Boxes
 Uwe Stöhr
 \end_layout
 
+\begin_layout Standard
+\begin_inset CommandInset toc
+LatexCommand tableofcontents
+
+\end_inset
+
+
+\end_layout
+
 \begin_layout Standard
 With the module 
 \emph on
@@ -1786,6 +1802,102 @@ beamer
 
 \end_layout
 
+\begin_layout Subsection
+References
+\end_layout
+
+\begin_layout Standard
+You cannot use \SpecialChar LyX
+'s label/reference mechanisms for fancy colored boxes.
+ Numbered boxes can be referenced by adding
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+, label={name}
+\end_layout
+
+\begin_layout Standard
+to the the 
+\family sans
+Color Box Options
+\family default
+ inset, whereby 
+\series bold
+name
+\series default
+ is the label name used to reference the box.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Flex Custom Color Box 2
+status open
+
+\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
+
+\begin_layout Plain Layout
+Mass–energy equivalence, label={Einstein}
+\end_layout
+
+\end_inset
+
+
+\begin_inset Formula 
+\[
+E=mc^{2}.
+\]
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+To reference the box, insert the command
+\end_layout
+
+\begin_layout Standard
+
+\series bold
+
+\backslash
+ref{name}
+\end_layout
+
+\begin_layout Standard
+as \SpecialChar TeX
+ code to the text where the reference should appear.
+\end_layout
+
+\begin_layout Standard
+This is the reference to Example
+\begin_inset space \space{}
+\end_inset
+
+
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+
+\backslash
+ref{Einstein}
+\end_layout
+
+\end_inset
+
+.
+\end_layout
+
 \begin_layout Subsection
 Skins
 \end_layout
@@ -1821,6 +1933,13 @@ literal "true"
  Only the most important skins are listed in the following.
 \end_layout
 
+\begin_layout Standard
+\begin_inset Newpage newpage
+\end_inset
+
+
+\end_layout
+
 \begin_layout Subsubsection
 Enhanced
 \begin_inset CommandInset label