X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fexamples%2FMultilingualCaptions.lyx;h=5d0da6cea8021c894cd96e972b03679735c21072;hb=aa6c0fef2fddbd153b47e512b6e58788439e1364;hp=751743b5b475e9baa5b71f174583ecf59b17aefd;hpb=6b01721dfaf9f9f4176a5d1c73c2f1c338d95b09;p=lyx.git diff --git a/lib/examples/MultilingualCaptions.lyx b/lib/examples/MultilingualCaptions.lyx index 751743b5b4..5d0da6cea8 100644 --- a/lib/examples/MultilingualCaptions.lyx +++ b/lib/examples/MultilingualCaptions.lyx @@ -1,5 +1,5 @@ -#LyX 2.0 created this file. For more info see http://www.lyx.org/ -\lyxformat 413 +#LyX 2.1 created this file. For more info see http://www.lyx.org/ +\lyxformat 459 \begin_document \begin_header \textclass scrartcl @@ -31,13 +31,13 @@ bicaption \font_roman default \font_sans default \font_typewriter default +\font_math auto \font_default_family default \use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 - \graphics default \default_output_format default \output_sync 0 @@ -59,15 +59,23 @@ bicaption \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue" \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 esint 1 +\use_package mathdots 1 +\use_package mathtools 0 +\use_package mhchem 1 +\use_package stackrel 0 +\use_package stmaryrd 0 +\use_package undertilde 0 \cite_engine basic +\cite_engine_type numerical +\biblio_style plain \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date true +\justification true \use_refstyle 1 \notefontcolor #0000ff \index Index @@ -172,7 +180,6 @@ status open \begin_layout Plain Layout \series bold -\color none Note \series default : If no optional argument is used for @@ -200,7 +207,7 @@ lang=ngerman \end_layout \begin_layout Standard -in TeX-Code in a +in a \family sans Caption setup \family default @@ -226,37 +233,44 @@ 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 (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 +Main Language Caption 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 \slash{} +Figures) can be inserted + via \family sans -Bicaption +Insert\SpecialChar \menuseparator +Main Language Caption 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 Caption Short Title. \end_layout \begin_layout Standard @@ -275,7 +289,7 @@ reference "fig:example-figure" \end_layout \begin_layout Caption setup -\begin_inset Argument +\begin_inset Argument 1 status open \begin_layout Plain Layout @@ -284,18 +298,7 @@ bi-second \end_inset - -\begin_inset ERT -status open - -\begin_layout Plain Layout - lang=ngerman -\end_layout - -\end_inset - - \begin_inset Note Note status collapsed @@ -339,8 +342,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 +356,7 @@ English short title \end_inset -\begin_inset Argument +\begin_inset Argument 2 status open \begin_layout Plain Layout @@ -360,6 +366,18 @@ English Title \end_inset +\begin_inset Argument 3 +status open + +\begin_layout Plain Layout + +\lang ngerman +German short title +\end_layout + +\end_inset + + \lang ngerman German Title \lang english @@ -376,6 +394,11 @@ name "fig:example-figure" \end_inset +\end_layout + +\end_inset + + \end_layout \begin_layout Standard @@ -478,7 +501,7 @@ 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 section \begin_inset space ~ \end_inset @@ -495,7 +518,7 @@ reference "sec:Float-List-Customization" \end_inset -\begin_inset Argument +\begin_inset Argument 1 status open \begin_layout Plain Layout @@ -504,18 +527,7 @@ bi-both \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 @@ -530,7 +542,7 @@ the label font should be bold, the label separator is a line break instead \end_layout \begin_layout Caption setup -\begin_inset Argument +\begin_inset Argument 1 status open \begin_layout Plain Layout @@ -539,23 +551,12 @@ bi-first \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 -the second language caption text should be sans-serif italic +the first language caption text should be sans-serif italic \end_layout \end_inset @@ -564,7 +565,7 @@ 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 @@ -573,18 +574,7 @@ bi-second \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 @@ -628,8 +618,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 +648,11 @@ name "fig:example-figure-custom" \end_inset +\end_layout + +\end_inset + + \end_layout \begin_layout Section @@ -782,7 +780,6 @@ status open \begin_layout Plain Layout \series bold -\color none Note \series default : If you are using this feature, the @@ -836,15 +833,15 @@ key "bicaption" \begin_layout Standard \begin_inset Tabular - + - + \begin_inset Text \begin_layout Plain Layout -\begin_inset Caption +\begin_inset Caption Standard \begin_layout Plain Layout \begin_inset CommandInset label @@ -1836,7 +1833,7 @@ Documentation of the LaTeX-package \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" \end_inset