]> git.lyx.org Git - lyx.git/blobdiff - lib/examples/MultilingualCaptions.lyx
Insert correct shortcut for environment split
[lyx.git] / lib / examples / MultilingualCaptions.lyx
index 751743b5b475e9baa5b71f174583ecf59b17aefd..124ce287d601e32792107e642eb3b2f765b88cad 100644 (file)
@@ -1,10 +1,22 @@
-#LyX 2.0 created this file. For more info see http://www.lyx.org/
-\lyxformat 413
+#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
-% use this when you only need the document language captions in te list of figures/tables
+% if pdflatex is used
+\usepackage{ifpdf}
+\ifpdf
+
+% set fonts for nicer pdf view
+\IfFileExists{lmodern.sty}
+ {\usepackage{lmodern}}{}
+
+\fi % end if pdflatex is used
+
+% use this when you only need the document language captions in the list of figures/tables
 %\PassOptionsToPackage{list=off}{bicaption}
 
 % all this is only necessary if you want to have a different list of floats for each language
@@ -28,16 +40,18 @@ bicaption
 \language_package default
 \inputencoding auto
 \fontencoding global
-\font_roman default
-\font_sans default
-\font_typewriter default
+\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
@@ -56,19 +70,29 @@ bicaption
 \pdf_colorlinks true
 \pdf_backref false
 \pdf_pdfusetitle true
-\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue"
+\pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
 \papersize default
 \use_geometry false
-\use_amsmath 1
-\use_esint 1
-\use_mhchem 1
-\use_mathdots 1
+\use_package amsmath 1
+\use_package amssymb 1
+\use_package cancel 1
+\use_package esint 1
+\use_package mathdots 1
+\use_package mathtools 1
+\use_package mhchem 1
+\use_package stackrel 1
+\use_package stmaryrd 1
+\use_package undertilde 1
 \cite_engine basic
+\cite_engine_type default
+\biblio_style plain
 \use_bibtopic false
 \use_indices false
 \paperorientation portrait
 \suppress_date true
+\justification true
 \use_refstyle 1
+\use_minted 0
 \notefontcolor #0000ff
 \index Index
 \shortcut idx
@@ -78,7 +102,10 @@ bicaption
 \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
@@ -121,11 +148,13 @@ Multilingual
 captions
 \family default
  allows to typeset captions in two languages.
- It requires the LaTeX-package 
+ It requires the \SpecialChar LaTeX
+ package 
 \series bold
 bicaption
 \series default
- which is part of the LaTeX-package 
+ which is part of the \SpecialChar LaTeX
+ package 
 \series bold
 caption
 \series default
@@ -134,7 +163,11 @@ caption
 \series bold
 caption
 \series default
- is installed, bicaption should be installed too.
+ is installed, 
+\series bold
+bicaption
+\series default
+ should be installed too.
 \end_layout
 
 \begin_layout Standard
@@ -172,7 +205,6 @@ status open
 \begin_layout Plain Layout
 
 \series bold
-\color none
 Note
 \series default
 : If no optional argument is used for 
@@ -200,7 +232,7 @@ lang=ngerman
 \end_layout
 
 \begin_layout Standard
-in TeX-Code in 
+in a 
 \family sans
 Caption setup
 \family default
@@ -209,7 +241,7 @@ Caption setup
 \series bold
 ngerman
 \series default
- by the babel name of your language.
+ by the babel name of the language.
  The list of babel names is given in Table
 \begin_inset space ~
 \end_inset
@@ -226,37 +258,48 @@ reference "tab:List-of-babel"
 \end_layout
 
 \begin_layout Standard
-To add a multilingual caption to a float, delete the caption that is automatical
-ly added when inserting a new float and choose the style 
+To add a multilingual caption to a float, press the right mouse button on
+ the caption that is automatically added when inserting a new float and
+ select 
+\family sans
+Caption
+\begin_inset space ~
+\end_inset
+
+(Bicaption
+\family default
+) from the context menu.
+ If no caption is inserted, you can insert the multilingual caption via
 \family sans
+Insert\SpecialChar menuseparator
+Caption\SpecialChar menuseparator
 Bicaption
 \family default
 .
- This style has a mandatory argument that is inserted via the menu 
+ The caption text in the document language must be inserted in the inset
+ which is inserted in the caption via 
 \family sans
-Insert\SpecialChar \menuseparator
-Short
-\begin_inset space ~
-\end_inset
-
-Title
+Insert\SpecialChar menuseparator
+Main Language Text
 \family default
 .
- Insert there the caption text in the document language.
- The caption text in the second language is inserted as normal text behind
- the mandatory argument.
+ The caption text in the second language is inserted as normal text in the
+ caption.
 \end_layout
 
 \begin_layout Standard
-The 
+Short Titles for both languages (for the List of Tables\SpecialChar breakableslash
+Figures) can be inserted
+ via 
 \family sans
-Bicaption
+Insert\SpecialChar menuseparator
+Main Language Short Title
 \family default
- style has also an optional argument and is inserted the same was as the
- mandatory argument.
- In LyX the first of the two argument insets is the optional one.
- Insert there a short title for the caption in the document language.
- This short title will be used for the list of figures/tables.
+ and 
+\family sans
+Insert\SpecialChar menuseparator
+Second Language Short Title.
 \end_layout
 
 \begin_layout Standard
@@ -275,27 +318,17 @@ reference "fig:example-figure"
 \end_layout
 
 \begin_layout Caption setup
-\begin_inset Argument
+\begin_inset Argument 1
 status open
 
 \begin_layout Plain Layout
+
 bi-second
 \end_layout
 
 \end_inset
 
-
-\begin_inset ERT
-status open
-
-\begin_layout Plain Layout
-
 lang=ngerman
-\end_layout
-
-\end_inset
-
-
 \begin_inset Note Note
 status collapsed
 
@@ -328,6 +361,11 @@ width "50col%"
 special "none"
 height "1in"
 height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
 status open
 
 \begin_layout Plain Layout
@@ -339,8 +377,11 @@ A figure.
 
 \end_layout
 
-\begin_layout Bicaption
-\begin_inset Argument
+\begin_layout Plain Layout
+\begin_inset Caption Bicaption
+
+\begin_layout Plain Layout
+\begin_inset Argument 1
 status open
 
 \begin_layout Plain Layout
@@ -350,7 +391,7 @@ English short title
 \end_inset
 
 
-\begin_inset Argument
+\begin_inset Argument 2
 status open
 
 \begin_layout Plain Layout
@@ -360,10 +401,16 @@ English Title
 \end_inset
 
 
-\lang ngerman
-German Title
-\lang english
+\begin_inset Argument 3
+status open
+
+\begin_layout Plain Layout
+German short title
+\end_layout
+
+\end_inset
 
+German Title
 \begin_inset CommandInset label
 LatexCommand label
 name "fig:example-figure"
@@ -376,6 +423,11 @@ name "fig:example-figure"
 \end_inset
 
 
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
@@ -385,7 +437,6 @@ status open
 \begin_layout Plain Layout
 
 \series bold
-\color none
 Note
 \series default
 : Multilingual captions cannot be used for longtables.
@@ -432,7 +483,8 @@ font=
 \series default
 .
  For more information about possible customizations, see the documentation
- of the LaTeX-package 
+ of the \SpecialChar LaTeX
+ package 
 \series bold
 caption
 \series default
@@ -440,6 +492,7 @@ caption
 \begin_inset CommandInset citation
 LatexCommand cite
 key "caption"
+literal "true"
 
 \end_inset
 
@@ -478,7 +531,8 @@ status open
 \series bold
 Note
 \series default
-: This setup doesn't have an effect in this file as described in section
+: This setup does not have an effect in this file as described in the note
+ of section
 \begin_inset space ~
 \end_inset
 
@@ -495,32 +549,22 @@ reference "sec:Float-List-Customization"
 \end_inset
 
 
-\begin_inset Argument
+\begin_inset Argument 1
 status open
 
 \begin_layout Plain Layout
-bi-both
-\end_layout
 
-\end_inset
-
-
-\begin_inset ERT
-status open
-
-\begin_layout Plain Layout
-
-labelfont=bf,labelsep=newline
+bi-both
 \end_layout
 
 \end_inset
 
-
+labelfont=bf, labelsep=newline
 \begin_inset Note Note
 status collapsed
 
 \begin_layout Plain Layout
-the label font should be bold, the label separator is a line break instead
+The label font should be bold, the label separator is a line break instead
  of a colon.
 \end_layout
 
@@ -530,32 +574,22 @@ the label font should be bold, the label separator is a line break instead
 \end_layout
 
 \begin_layout Caption setup
-\begin_inset Argument
-status open
-
-\begin_layout Plain Layout
-bi-first
-\end_layout
-
-\end_inset
-
-
-\begin_inset ERT
+\begin_inset Argument 1
 status open
 
 \begin_layout Plain Layout
 
-labelfont=bf,labelsep=newline
+bi-first
 \end_layout
 
 \end_inset
 
-
+labelfont=bf, labelsep=newline
 \begin_inset Note Note
 status collapsed
 
 \begin_layout Plain Layout
-the second language caption text should be sans-serif italic
+The first language label font should be bold.
 \end_layout
 
 \end_inset
@@ -564,32 +598,22 @@ the second language caption text should be sans-serif italic
 \end_layout
 
 \begin_layout Caption setup
-\begin_inset Argument
+\begin_inset Argument 1
 status open
 
 \begin_layout Plain Layout
-bi-second
-\end_layout
-
-\end_inset
-
 
-\begin_inset ERT
-status open
-
-\begin_layout Plain Layout
-
-labelfont=bf,textfont={sf,it},labelsep=newline
+bi-second
 \end_layout
 
 \end_inset
 
-
+labelfont=bf, textfont={sf,it}, labelsep=newline
 \begin_inset Note Note
 status collapsed
 
 \begin_layout Plain Layout
-the second language caption text should be sans-serif italic
+The second language caption text should be sans-serif, italic.
 \end_layout
 
 \end_inset
@@ -617,6 +641,11 @@ width "50col%"
 special "none"
 height "1in"
 height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
 status open
 
 \begin_layout Plain Layout
@@ -628,8 +657,11 @@ A figure.
 
 \end_layout
 
-\begin_layout Bicaption
-\begin_inset Argument
+\begin_layout Plain Layout
+\begin_inset Caption Bicaption
+
+\begin_layout Plain Layout
+\begin_inset Argument 2
 status open
 
 \begin_layout Plain Layout
@@ -655,6 +687,11 @@ name "fig:example-figure-custom"
 \end_inset
 
 
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Section
@@ -685,7 +722,8 @@ PassOptionsToPackage{list=off}{bicaption}
 It is also possible to have two different lists, one for the document language,
  one for the second language.
  This is the case in this file.
- To split the list one needs to add these lines to the document preamble:
+ To split the list one needs to add these lines to the \SpecialChar LaTeX
+ preamble:
 \end_layout
 
 \begin_layout Standard
@@ -748,7 +786,8 @@ listoffigureGeres
 \end_layout
 
 \begin_layout Standard
-as TeX-Code.
+as \SpecialChar TeX
+ code.
  Here is the German list of figures:
 \end_layout
 
@@ -782,7 +821,6 @@ status open
 \begin_layout Plain Layout
 
 \series bold
-\color none
 Note
 \series default
 : If you are using this feature, the 
@@ -812,7 +850,8 @@ bi-second
 \end_layout
 
 \begin_layout Standard
-For more information what can be done with the LaTeX-package 
+For more information what can be done with the \SpecialChar LaTeX
+ package 
 \series bold
 bicaption
 \series default
@@ -820,6 +859,7 @@ bicaption
 \begin_inset CommandInset citation
 LatexCommand cite
 key "bicaption"
+literal "true"
 
 \end_inset
 
@@ -835,16 +875,16 @@ key "bicaption"
 
 \begin_layout Standard
 \begin_inset Tabular
-<lyxtabular version="3" rows="47" columns="2">
+<lyxtabular version="3" rows="48" columns="2">
 <features booktabs="true" islongtable="true" headBottomDL="true" lastFootEmpty="true" longtabularalignment="center">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="middle" width="35col%">
-<row caption="true">
+<row endfirsthead="true" caption="true">
 <cell multicolumn="1" alignment="center" valignment="top" usebox="none">
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Caption
+\begin_inset Caption Standard
 
 \begin_layout Plain Layout
 \begin_inset CommandInset label
@@ -1233,6 +1273,26 @@ Galician
 galician
 \end_layout
 
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+Georgian
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+georgian
+\end_layout
+
 \end_inset
 </cell>
 </row>
@@ -1621,7 +1681,7 @@ scottish
 \begin_inset Text
 
 \begin_layout Plain Layout
-Spanish
+Serbian
 \end_layout
 
 \end_inset
@@ -1630,7 +1690,7 @@ Spanish
 \begin_inset Text
 
 \begin_layout Plain Layout
-spanish
+serbian
 \end_layout
 
 \end_inset
@@ -1681,7 +1741,7 @@ slovene
 \begin_inset Text
 
 \begin_layout Plain Layout
-Swedish
+Spanish
 \end_layout
 
 \end_inset
@@ -1690,7 +1750,7 @@ Swedish
 \begin_inset Text
 
 \begin_layout Plain Layout
-swedish
+spanish
 \end_layout
 
 \end_inset
@@ -1701,7 +1761,7 @@ swedish
 \begin_inset Text
 
 \begin_layout Plain Layout
-Serbian
+Swedish
 \end_layout
 
 \end_inset
@@ -1710,7 +1770,7 @@ Serbian
 \begin_inset Text
 
 \begin_layout Plain Layout
-serbian
+swedish
 \end_layout
 
 \end_inset
@@ -1807,16 +1867,19 @@ welsh
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "bicaption"
+literal "true"
 
 \end_inset
 
-Documentation of the LaTeX-package 
+Documentation of the \SpecialChar LaTeX
+ package 
 \series bold
 
 \begin_inset CommandInset href
 LatexCommand href
 name "bicaption"
 target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/bicaption.pdf"
+literal "false"
 
 \end_inset
 
@@ -1827,16 +1890,19 @@ target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/bicaptio
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "caption"
+literal "true"
 
 \end_inset
 
-Documentation of the LaTeX-package 
+Documentation of the \SpecialChar LaTeX
+ package 
 \series bold
 
 \begin_inset CommandInset href
 LatexCommand href
 name "caption"
-target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/References Documentation of the LaTeX-package [ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption-eng.pdf"
+target "ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption-eng.pdf"
+literal "false"
 
 \end_inset