]> git.lyx.org Git - lyx.git/blobdiff - lib/examples/MultilingualCaptions.lyx
Fix some symbols that are displayed incorrectly in MathML export.
[lyx.git] / lib / examples / MultilingualCaptions.lyx
index dd13bb740829eded9bf206b2b8de10f9d1e6f8ec..3ab1b12c76e7d2ae8de65f58ad9db32cab525ae6 100644 (file)
@@ -1,10 +1,22 @@
-#LyX 2.1 created this file. For more info see http://www.lyx.org/
-\lyxformat 446
+#LyX 2.2 created this file. For more info see http://www.lyx.org/
+\lyxformat 508
 \begin_document
 \begin_header
 \begin_document
 \begin_header
+\save_transient_properties true
+\origin /systemlyxdir/examples/
 \textclass scrartcl
 \begin_preamble
 \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
 %\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,16 @@ bicaption
 \language_package default
 \inputencoding auto
 \fontencoding global
 \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_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
 \graphics default
 \default_output_format default
 \output_sync 0
 \graphics default
 \default_output_format default
 \output_sync 0
@@ -56,18 +68,21 @@ bicaption
 \pdf_colorlinks true
 \pdf_backref false
 \pdf_pdfusetitle true
 \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_package amsmath 1
 \use_package amssymb 1
 \papersize default
 \use_geometry false
 \use_package amsmath 1
 \use_package amssymb 1
+\use_package cancel 1
 \use_package esint 1
 \use_package mathdots 1
 \use_package esint 1
 \use_package mathdots 1
-\use_package mathtools 0
+\use_package mathtools 1
 \use_package mhchem 1
 \use_package mhchem 1
-\use_package undertilde 0
+\use_package stackrel 1
+\use_package stmaryrd 1
+\use_package undertilde 1
 \cite_engine basic
 \cite_engine basic
-\cite_engine_type numerical
+\cite_engine_type default
 \biblio_style plain
 \use_bibtopic false
 \use_indices false
 \biblio_style plain
 \use_bibtopic false
 \use_indices false
@@ -127,11 +142,13 @@ Multilingual
 captions
 \family default
  allows to typeset captions in two languages.
 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
 \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
 \series bold
 caption
 \series default
@@ -140,7 +157,11 @@ caption
 \series bold
 caption
 \series default
 \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
 \end_layout
 
 \begin_layout Standard
@@ -178,7 +199,6 @@ status open
 \begin_layout Plain Layout
 
 \series bold
 \begin_layout Plain Layout
 
 \series bold
-\color none
 Note
 \series default
 : If no optional argument is used for 
 Note
 \series default
 : If no optional argument is used for 
@@ -206,7 +226,7 @@ lang=ngerman
 \end_layout
 
 \begin_layout Standard
 \end_layout
 
 \begin_layout Standard
-in TeX-Code in 
+in a 
 \family sans
 Caption setup
 \family default
 \family sans
 Caption setup
 \family default
@@ -215,7 +235,7 @@ Caption setup
 \series bold
 ngerman
 \series default
 \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
  The list of babel names is given in Table
 \begin_inset space ~
 \end_inset
@@ -232,37 +252,48 @@ reference "tab:List-of-babel"
 \end_layout
 
 \begin_layout Standard
 \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
 \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
 .
 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
 \family sans
-Insert\SpecialChar \menuseparator
-Short
-\begin_inset space ~
-\end_inset
-
-Title
+Insert\SpecialChar menuseparator
+Main Language Text
 \family default
 .
 \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
 \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
 \family sans
-Bicaption
+Insert\SpecialChar menuseparator
+Main Language Short Title
 \family default
 \family default
- style has also an optional argument and is inserted the same way 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
 \end_layout
 
 \begin_layout Standard
@@ -290,18 +321,7 @@ bi-second
 
 \end_inset
 
 
 \end_inset
 
-
-\begin_inset ERT
-status open
-
-\begin_layout Plain Layout
-
 lang=ngerman
 lang=ngerman
-\end_layout
-
-\end_inset
-
-
 \begin_inset Note Note
 status collapsed
 
 \begin_inset Note Note
 status collapsed
 
@@ -334,6 +354,11 @@ width "50col%"
 special "none"
 height "1in"
 height_special "totalheight"
 special "none"
 height "1in"
 height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
 status open
 
 \begin_layout Plain Layout
 status open
 
 \begin_layout Plain Layout
@@ -345,7 +370,10 @@ A figure.
 
 \end_layout
 
 
 \end_layout
 
-\begin_layout Bicaption
+\begin_layout Plain Layout
+\begin_inset Caption Bicaption
+
+\begin_layout Plain Layout
 \begin_inset Argument 1
 status open
 
 \begin_inset Argument 1
 status open
 
@@ -370,18 +398,12 @@ English Title
 status open
 
 \begin_layout Plain Layout
 status open
 
 \begin_layout Plain Layout
-
-\lang ngerman
 German short title
 \end_layout
 
 \end_inset
 
 German short title
 \end_layout
 
 \end_inset
 
-
-\lang ngerman
 German Title
 German Title
-\lang english
-
 \begin_inset CommandInset label
 LatexCommand label
 name "fig:example-figure"
 \begin_inset CommandInset label
 LatexCommand label
 name "fig:example-figure"
@@ -394,6 +416,11 @@ name "fig:example-figure"
 \end_inset
 
 
 \end_inset
 
 
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
 \end_layout
 
 \begin_layout Standard
@@ -403,7 +430,6 @@ status open
 \begin_layout Plain Layout
 
 \series bold
 \begin_layout Plain Layout
 
 \series bold
-\color none
 Note
 \series default
 : Multilingual captions cannot be used for longtables.
 Note
 \series default
 : Multilingual captions cannot be used for longtables.
@@ -450,7 +476,8 @@ font=
 \series default
 .
  For more information about possible customizations, see the documentation
 \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
 \series bold
 caption
 \series default
@@ -496,7 +523,8 @@ status open
 \series bold
 Note
 \series default
 \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
 
 \begin_inset space ~
 \end_inset
 
@@ -522,23 +550,12 @@ bi-both
 
 \end_inset
 
 
 \end_inset
 
-
-\begin_inset ERT
-status open
-
-\begin_layout Plain Layout
-
-labelfont=bf,labelsep=newline
-\end_layout
-
-\end_inset
-
-
+labelfont=bf, labelsep=newline
 \begin_inset Note Note
 status collapsed
 
 \begin_layout Plain Layout
 \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
 
  of a colon.
 \end_layout
 
@@ -557,23 +574,12 @@ bi-first
 
 \end_inset
 
 
 \end_inset
 
-
-\begin_inset ERT
-status open
-
-\begin_layout Plain Layout
-
-labelfont=bf,labelsep=newline
-\end_layout
-
-\end_inset
-
-
+labelfont=bf, labelsep=newline
 \begin_inset Note Note
 status collapsed
 
 \begin_layout Plain Layout
 \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
 \end_layout
 
 \end_inset
@@ -591,23 +597,12 @@ bi-second
 
 \end_inset
 
 
 \end_inset
 
-
-\begin_inset ERT
-status open
-
-\begin_layout Plain Layout
-
-labelfont=bf,textfont={sf,it},labelsep=newline
-\end_layout
-
-\end_inset
-
-
+labelfont=bf, textfont={sf,it}, labelsep=newline
 \begin_inset Note Note
 status collapsed
 
 \begin_layout Plain Layout
 \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
 \end_layout
 
 \end_inset
@@ -635,6 +630,11 @@ width "50col%"
 special "none"
 height "1in"
 height_special "totalheight"
 special "none"
 height "1in"
 height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
 status open
 
 \begin_layout Plain Layout
 status open
 
 \begin_layout Plain Layout
@@ -646,7 +646,10 @@ A figure.
 
 \end_layout
 
 
 \end_layout
 
-\begin_layout Bicaption
+\begin_layout Plain Layout
+\begin_inset Caption Bicaption
+
+\begin_layout Plain Layout
 \begin_inset Argument 2
 status open
 
 \begin_inset Argument 2
 status open
 
@@ -673,6 +676,11 @@ name "fig:example-figure-custom"
 \end_inset
 
 
 \end_inset
 
 
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Section
 \end_layout
 
 \begin_layout Section
@@ -703,7 +711,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.
 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
 \end_layout
 
 \begin_layout Standard
@@ -766,7 +775,8 @@ listoffigureGeres
 \end_layout
 
 \begin_layout Standard
 \end_layout
 
 \begin_layout Standard
-as TeX-Code.
+as \SpecialChar TeX
+ code.
  Here is the German list of figures:
 \end_layout
 
  Here is the German list of figures:
 \end_layout
 
@@ -800,7 +810,6 @@ status open
 \begin_layout Plain Layout
 
 \series bold
 \begin_layout Plain Layout
 
 \series bold
-\color none
 Note
 \series default
 : If you are using this feature, the 
 Note
 \series default
 : If you are using this feature, the 
@@ -830,7 +839,8 @@ bi-second
 \end_layout
 
 \begin_layout Standard
 \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
 \series bold
 bicaption
 \series default
@@ -853,8 +863,8 @@ key "bicaption"
 
 \begin_layout Standard
 \begin_inset Tabular
 
 \begin_layout Standard
 \begin_inset Tabular
-<lyxtabular version="3" rows="47" columns="2">
-<features rotate="0" booktabs="true" islongtable="true" headBottomDL="true" lastFootEmpty="true" longtabularalignment="center">
+<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 endfirsthead="true" caption="true">
 <column alignment="center" valignment="top" width="0pt">
 <column alignment="center" valignment="middle" width="35col%">
 <row endfirsthead="true" caption="true">
@@ -862,7 +872,7 @@ key "bicaption"
 \begin_inset Text
 
 \begin_layout Plain Layout
 \begin_inset Text
 
 \begin_layout Plain Layout
-\begin_inset Caption
+\begin_inset Caption Standard
 
 \begin_layout Plain Layout
 \begin_inset CommandInset label
 
 \begin_layout Plain Layout
 \begin_inset CommandInset label
@@ -1251,6 +1261,26 @@ Galician
 galician
 \end_layout
 
 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>
 \end_inset
 </cell>
 </row>
@@ -1639,7 +1669,7 @@ scottish
 \begin_inset Text
 
 \begin_layout Plain Layout
 \begin_inset Text
 
 \begin_layout Plain Layout
-Spanish
+Serbian
 \end_layout
 
 \end_inset
 \end_layout
 
 \end_inset
@@ -1648,7 +1678,7 @@ Spanish
 \begin_inset Text
 
 \begin_layout Plain Layout
 \begin_inset Text
 
 \begin_layout Plain Layout
-spanish
+serbian
 \end_layout
 
 \end_inset
 \end_layout
 
 \end_inset
@@ -1699,7 +1729,7 @@ slovene
 \begin_inset Text
 
 \begin_layout Plain Layout
 \begin_inset Text
 
 \begin_layout Plain Layout
-Swedish
+Spanish
 \end_layout
 
 \end_inset
 \end_layout
 
 \end_inset
@@ -1708,7 +1738,7 @@ Swedish
 \begin_inset Text
 
 \begin_layout Plain Layout
 \begin_inset Text
 
 \begin_layout Plain Layout
-swedish
+spanish
 \end_layout
 
 \end_inset
 \end_layout
 
 \end_inset
@@ -1719,7 +1749,7 @@ swedish
 \begin_inset Text
 
 \begin_layout Plain Layout
 \begin_inset Text
 
 \begin_layout Plain Layout
-Serbian
+Swedish
 \end_layout
 
 \end_inset
 \end_layout
 
 \end_inset
@@ -1728,7 +1758,7 @@ Serbian
 \begin_inset Text
 
 \begin_layout Plain Layout
 \begin_inset Text
 
 \begin_layout Plain Layout
-serbian
+swedish
 \end_layout
 
 \end_inset
 \end_layout
 
 \end_inset
@@ -1828,7 +1858,8 @@ key "bicaption"
 
 \end_inset
 
 
 \end_inset
 
-Documentation of the LaTeX-package 
+Documentation of the \SpecialChar LaTeX
+ package 
 \series bold
 
 \begin_inset CommandInset href
 \series bold
 
 \begin_inset CommandInset href
@@ -1848,7 +1879,8 @@ key "caption"
 
 \end_inset
 
 
 \end_inset
 
-Documentation of the LaTeX-package 
+Documentation of the \SpecialChar LaTeX
+ package 
 \series bold
 
 \begin_inset CommandInset href
 \series bold
 
 \begin_inset CommandInset href