#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 % 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 \usepackage{newfloat} % Define a new floating environment type "figureGer" \DeclareFloatingEnvironment[fileext=lof2]{figureGer} [Abbildung][Abbildungsverzeichnis] % Define the new floating environment type "tableEng" \DeclareFloatingEnvironment[fileext=lot2]{tableGer} [Tabelle][Tabellenverzeichnis] % inform bicaption about the new float types \PassOptionsToPackage{listtype+=Ger}{bicaption} \end_preamble \options liststotoc \use_default_options true \begin_modules bicaption \end_modules \maintain_unincluded_children false \language english \language_package default \inputencoding auto \fontencoding global \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 100 \font_tt_scale 100 100 \use_microtype false \use_dash_ligatures false \graphics default \default_output_format default \output_sync 0 \bibtex_command default \index_command default \float_placement h \paperfontsize 12 \spacing single \use_hyperref true \pdf_bookmarks true \pdf_bookmarksnumbered false \pdf_bookmarksopen false \pdf_bookmarksopenlevel 1 \pdf_breaklinks false \pdf_pdfborder false \pdf_colorlinks true \pdf_backref false \pdf_pdfusetitle true \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 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 \color #008000 \end_index \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \is_math_indent 0 \math_numbering_side default \quotes_style english \dynamic_quotes 0 \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \html_math_output 0 \html_css_as_file 0 \html_be_strict false \end_header \begin_body \begin_layout Title Typesetting Multilingual Captions \end_layout \begin_layout Author Uwe Stöhr \end_layout \begin_layout Standard \begin_inset FloatList figure \end_inset \end_layout \begin_layout Section Introduction \end_layout \begin_layout Standard The module \family sans Multilingual \begin_inset space ~ \end_inset captions \family default allows to typeset captions in two languages. It requires the \SpecialChar LaTeX package \series bold bicaption \series default which is part of the \SpecialChar LaTeX package \series bold caption \series default . So if \series bold caption \series default is installed, \series bold bicaption \series default should be installed too. \end_layout \begin_layout Standard The first language is the document language, the second one has to be specified using the style \family sans Caption \begin_inset space ~ \end_inset setup \family default . This style has an optional argument to define to which language the setup should apply. To change the setup of all captions in the first language, use \series bold bi-first \series default as optional argument, for the second language use \series bold bi-second \series default , for both languages use \series bold bi-both \series default . \end_layout \begin_layout Standard \begin_inset Note Greyedout status open \begin_layout Plain Layout \series bold Note \series default : If no optional argument is used for \family sans Caption setup \family default , the setup will affect all captions in the document, not only the multilingual ones. \end_layout \end_inset \end_layout \begin_layout Standard This document is in English. To set German as the second language one uses the command \end_layout \begin_layout Standard \series bold lang=ngerman \end_layout \begin_layout Standard in a \family sans Caption setup \family default style. For other languages, replace \series bold ngerman \series default by the babel name of the language. The list of babel names is given in Table \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref reference "tab:List-of-babel" \end_inset . The caption labels are automatically translated. \end_layout \begin_layout Standard 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 . 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 Text \family default . The caption text in the second language is inserted as normal text in the caption. \end_layout \begin_layout Standard Short Titles for both languages (for the List of Tables\SpecialChar breakableslash Figures) can be inserted via \family sans Insert\SpecialChar menuseparator Main Language Short Title \family default and \family sans Insert\SpecialChar menuseparator Second Language Short Title. \end_layout \begin_layout Standard Figure \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref reference "fig:example-figure" \end_inset is an example of a figure float with a multilingual caption. \end_layout \begin_layout Caption setup \begin_inset Argument 1 status open \begin_layout Plain Layout bi-second \end_layout \end_inset lang=ngerman \begin_inset Note Note status collapsed \begin_layout Plain Layout specify the second language \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset Float figure wide false sideways false status open \begin_layout Plain Layout \noindent \align center \begin_inset Box Boxed position "t" hor_pos "c" has_inner_box 0 inner_pos "t" use_parbox 0 use_makebox 0 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 A figure. \end_layout \end_inset \end_layout \begin_layout Plain Layout \begin_inset Caption Bicaption \begin_layout Plain Layout \begin_inset Argument 1 status open \begin_layout Plain Layout English short title \end_layout \end_inset \begin_inset Argument 2 status open \begin_layout Plain Layout English Title \end_layout \end_inset \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" \end_inset \end_layout \end_inset \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset Note Greyedout status open \begin_layout Plain Layout \series bold Note \series default : Multilingual captions cannot be used for longtables. \end_layout \end_inset \end_layout \begin_layout Section Caption Customization \end_layout \begin_layout Standard The layout of the captions can also be changed using the \family sans Caption setup \family default style. For example to typeset the caption text sans-serif italic, use the command \end_layout \begin_layout Standard \series bold textfont={sf,it} \end_layout \begin_layout Standard to make the label bold use \end_layout \begin_layout Standard \series bold labelfont=bf \end_layout \begin_layout Standard To set the font for the text and the label use the command \series bold font= \series default . For more information about possible customizations, see the documentation of the \SpecialChar LaTeX package \series bold caption \series default , \begin_inset CommandInset citation LatexCommand cite key "caption" literal "true" \end_inset , because the customization options of the package \series bold bicaption \series default are the same as for \series bold caption \series default . \end_layout \begin_layout Standard Figure \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref reference "fig:example-figure-custom" \end_inset is an example of a figure float with a customized multilingual caption. \end_layout \begin_layout Caption setup \begin_inset Note Note status open \begin_layout Plain Layout \series bold Note \series default : This setup does not have an effect in this file as described in the note of section \begin_inset space ~ \end_inset \begin_inset CommandInset ref LatexCommand ref reference "sec:Float-List-Customization" \end_inset . \end_layout \end_inset \begin_inset Argument 1 status open \begin_layout Plain Layout 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 of a colon. \end_layout \end_inset \end_layout \begin_layout Caption setup \begin_inset Argument 1 status open \begin_layout Plain Layout bi-first \end_layout \end_inset labelfont=bf, labelsep=newline \begin_inset Note Note status collapsed \begin_layout Plain Layout The first language label font should be bold. \end_layout \end_inset \end_layout \begin_layout Caption setup \begin_inset Argument 1 status open \begin_layout Plain Layout 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. \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset Float figure wide false sideways false status open \begin_layout Plain Layout \noindent \align center \begin_inset Box Boxed position "t" hor_pos "c" has_inner_box 0 inner_pos "t" use_parbox 0 use_makebox 0 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 A figure. \end_layout \end_inset \end_layout \begin_layout Plain Layout \begin_inset Caption Bicaption \begin_layout Plain Layout \begin_inset Argument 2 status open \begin_layout Plain Layout Customized caption format \end_layout \end_inset \lang ngerman Angepasstes Beschriftungsformat \lang english \begin_inset CommandInset label LatexCommand label name "fig:example-figure-custom" \end_inset \end_layout \end_inset \end_layout \end_inset \end_layout \begin_layout Section \begin_inset CommandInset label LatexCommand label name "sec:Float-List-Customization" \end_inset Float List Customization \end_layout \begin_layout Standard By default the list of figures/tables contain both languages. You can turn off the second language by adding this line to the document preamble: \end_layout \begin_layout Standard \series bold \backslash PassOptionsToPackage{list=off}{bicaption} \end_layout \begin_layout Standard 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 \SpecialChar LaTeX preamble: \end_layout \begin_layout Standard \series bold \backslash usepackage{newfloat} \begin_inset Newline newline \end_inset \backslash DeclareFloatingEnvironment[fileext=lof2]{figureGer} \begin_inset Newline newline \end_inset [Abbildung][Abbildungsverzeichnis] \begin_inset Newline newline \end_inset \backslash DeclareFloatingEnvironment[fileext=lot2]{tableGer} \begin_inset Newline newline \end_inset [Tabelle][Tabellenverzeichnis] \begin_inset Newline newline \end_inset \backslash PassOptionsToPackage{listtype+=Ger}{bicaption} \end_layout \begin_layout Standard This defines two new float type named \emph on figureGer \emph default and \emph on tableGer \emph default . A list for \emph on figureGer \emph default can be inserted by using the command \end_layout \begin_layout Standard \series bold \backslash listoffigureGeres \end_layout \begin_layout Standard as \SpecialChar TeX code. Here is the German list of figures: \end_layout \begin_layout Standard \begin_inset ERT status open \begin_layout Plain Layout \backslash listoffigureGeres \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset VSpace bigskip \end_inset \end_layout \begin_layout Standard \begin_inset Note Greyedout status open \begin_layout Plain Layout \series bold Note \series default : If you are using this feature, the \family sans Caption setup \family default style option \series bold bi-both \series default does no longer have any effect. You then need to define everything explicitly for each language using the options \series bold bi-first \series default and \series bold bi-second \series default . \end_layout \end_inset \end_layout \begin_layout Standard For more information what can be done with the \SpecialChar LaTeX package \series bold bicaption \series default , have a look at its documentation, \begin_inset CommandInset citation LatexCommand cite key "bicaption" literal "true" \end_inset . \end_layout \begin_layout Standard \begin_inset Newpage newpage \end_inset \end_layout \begin_layout Standard \begin_inset Tabular \begin_inset Text \begin_layout Plain Layout \begin_inset Caption Standard \begin_layout Plain Layout \begin_inset CommandInset label LatexCommand label name "tab:List-of-babel" \end_inset List of babel names \end_layout \end_inset \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout language \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout babel name(s) \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout language \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout babel name(s) \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout \family sans \size small continued on next page \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Afrikaans \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout afrikaans \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Basque \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout basque \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Breton \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout breton \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Bulgarian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout bulgarian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Catalan \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout catalan \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Croatian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout croatian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Czech \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout czech \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Danish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout danish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Dutch \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout dutch \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout English \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout english, american, australian, british, canadian, newzealand \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Esperanto \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout esperanto \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Estonian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout estonian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Finnish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout finnish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout French \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout french, canadien, acadian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Galician \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout 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 \begin_inset Text \begin_layout Plain Layout German \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout ngerman, naustrian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Greek \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout greek, polutonikogreek \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Hebrew \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout hebrew \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Hungarian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout magyar, hungarian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Icelandic \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout icelandic \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Indonesian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout bahasa \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Interlingua \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout interlingua \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Irish Gaelic \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout irish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Italian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout italian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Latin \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout latin \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Lower Sorbian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout lowersorbian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Malay \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout bahasam \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout North Sami \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout samin \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Norwegian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout norsk, nynorsk \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Polish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout polish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Portuguese \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout portuguese, brazilian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Romanian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout romanian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Russian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout russian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Scottish Gaelic \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout scottish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Serbian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout serbian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Slovakian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout slovak \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Slovenian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout slovene \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Spanish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout spanish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Swedish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout swedish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Turkish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout turkish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Ukrainian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout ukrainian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Upper Sorbian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout uppersorbian \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout Welsh \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout welsh \end_layout \end_inset \end_inset \end_layout \begin_layout Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem key "bicaption" literal "true" \end_inset 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 \end_layout \begin_layout Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem key "caption" literal "true" \end_inset 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/caption-eng.pdf" literal "false" \end_inset \end_layout \end_body \end_document