X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fexamples%2FMultilingualCaptions.lyx;h=3ab1b12c76e7d2ae8de65f58ad9db32cab525ae6;hb=21ccd006ee7d407c95aa0909cdd93880a84893ca;hp=6c5fcb78cf470b8828bec16d0b25415ebc524df4;hpb=caf102558ccf91cdc4f2014d58750a9688c006d0;p=lyx.git diff --git a/lib/examples/MultilingualCaptions.lyx b/lib/examples/MultilingualCaptions.lyx index 6c5fcb78cf..3ab1b12c76 100644 --- a/lib/examples/MultilingualCaptions.lyx +++ b/lib/examples/MultilingualCaptions.lyx @@ -1,10 +1,22 @@ -#LyX 2.1 created this file. For more info see http://www.lyx.org/ -\lyxformat 474 +#LyX 2.2 created this file. For more info see http://www.lyx.org/ +\lyxformat 508 \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,16 @@ bicaption \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 \graphics default \default_output_format default \output_sync 0 @@ -56,19 +68,19 @@ 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_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 0 +\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 @@ -130,11 +142,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 @@ -143,7 +157,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 @@ -217,7 +235,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 @@ -238,22 +256,26 @@ 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 (Bicaption +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 +Insert\SpecialChar menuseparator +Caption\SpecialChar menuseparator Bicaption \family default . 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 -Main Language Caption Text +Insert\SpecialChar menuseparator +Main Language Text \family default . The caption text in the second language is inserted as normal text in the @@ -261,17 +283,17 @@ Main Language Caption Text \end_layout \begin_layout Standard -Short Titles for both languages (for the List of Tables\SpecialChar \slash{} +Short Titles for both languages (for the List of Tables\SpecialChar breakableslash Figures) can be inserted via \family sans -Insert\SpecialChar \menuseparator -Main Language Caption Short Title +Insert\SpecialChar menuseparator +Main Language Short Title \family default and \family sans -Insert\SpecialChar \menuseparator -Second Language Caption Short Title. +Insert\SpecialChar menuseparator +Second Language Short Title. \end_layout \begin_layout Standard @@ -332,6 +354,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 @@ -371,18 +398,12 @@ English Title status open \begin_layout Plain Layout - -\lang ngerman German short title \end_layout \end_inset - -\lang ngerman German Title -\lang english - \begin_inset CommandInset label LatexCommand label name "fig:example-figure" @@ -409,7 +430,6 @@ status open \begin_layout Plain Layout \series bold -\color none Note \series default : Multilingual captions cannot be used for longtables. @@ -456,7 +476,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 @@ -534,7 +555,7 @@ labelfont=bf, labelsep=newline 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 @@ -558,7 +579,7 @@ labelfont=bf, labelsep=newline status collapsed \begin_layout Plain Layout -the first language label text should be in bold font +The first language label font should be bold. \end_layout \end_inset @@ -581,7 +602,7 @@ labelfont=bf, textfont={sf,it}, labelsep=newline 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 @@ -609,6 +630,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 @@ -685,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. - 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 +775,8 @@ listoffigureGeres \end_layout \begin_layout Standard -as TeX-Code. +as \SpecialChar TeX + code. Here is the German list of figures: \end_layout @@ -811,7 +839,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 @@ -834,8 +863,8 @@ key "bicaption" \begin_layout Standard \begin_inset Tabular - - + + @@ -1232,6 +1261,26 @@ Galician galician \end_layout +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Georgian +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +georgian +\end_layout + \end_inset @@ -1620,7 +1669,7 @@ scottish \begin_inset Text \begin_layout Plain Layout -Spanish +Serbian \end_layout \end_inset @@ -1629,7 +1678,7 @@ Spanish \begin_inset Text \begin_layout Plain Layout -spanish +serbian \end_layout \end_inset @@ -1680,7 +1729,7 @@ slovene \begin_inset Text \begin_layout Plain Layout -Swedish +Spanish \end_layout \end_inset @@ -1689,7 +1738,7 @@ Swedish \begin_inset Text \begin_layout Plain Layout -swedish +spanish \end_layout \end_inset @@ -1700,7 +1749,7 @@ swedish \begin_inset Text \begin_layout Plain Layout -Serbian +Swedish \end_layout \end_inset @@ -1709,7 +1758,7 @@ Serbian \begin_inset Text \begin_layout Plain Layout -serbian +swedish \end_layout \end_inset @@ -1809,7 +1858,8 @@ key "bicaption" \end_inset -Documentation of the LaTeX-package +Documentation of the \SpecialChar LaTeX + package \series bold \begin_inset CommandInset href @@ -1829,7 +1879,8 @@ key "caption" \end_inset -Documentation of the LaTeX-package +Documentation of the \SpecialChar LaTeX + package \series bold \begin_inset CommandInset href