#LyX 2.1 created this file. For more info see http://www.lyx.org/ \lyxformat 446 \begin_document \begin_header \textclass scrartcl \begin_preamble % use this when you only need the document language captions in te 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 \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 \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" \papersize default \use_geometry false \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 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 \shortcut idx \color #008000 \end_index \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \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 LaTeX-package \series bold bicaption \series default which is part of the LaTeX-package \series bold caption \series default . So if \series bold caption \series default is installed, bicaption 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 \color none 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 TeX-Code in a \family sans Caption setup \family default style. For other languages, replace \series bold ngerman \series default by the babel name of your 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, delete the caption that is automatical ly added when inserting a new float and choose the style \family sans Bicaption \family default . This style has a mandatory argument that is inserted via the menu \family sans Insert\SpecialChar \menuseparator Short \begin_inset space ~ \end_inset Title \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. \end_layout \begin_layout Standard The \family sans Bicaption \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. \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 \begin_inset ERT status open \begin_layout Plain Layout lang=ngerman \end_layout \end_inset \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" status open \begin_layout Plain Layout A figure. \end_layout \end_inset \end_layout \begin_layout Bicaption \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 \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" \end_inset \end_layout \end_inset \end_layout \begin_layout Standard \begin_inset Note Greyedout status open \begin_layout Plain Layout \series bold \color none 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 LaTeX-package \series bold caption \series default , \begin_inset CommandInset citation LatexCommand cite key "caption" \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 doesn't have an effect in this file as described in 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 \begin_inset ERT status open \begin_layout Plain Layout labelfont=bf,labelsep=newline \end_layout \end_inset \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 \begin_inset ERT status open \begin_layout Plain Layout labelfont=bf,labelsep=newline \end_layout \end_inset \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 Caption setup \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 \end_layout \end_inset \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" status open \begin_layout Plain Layout A figure. \end_layout \end_inset \end_layout \begin_layout Bicaption \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 \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 document 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 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 \color none 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 LaTeX-package \series bold bicaption \series default , have a look at its documentation, \begin_inset CommandInset citation LatexCommand cite key "bicaption" \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 \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 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 Spanish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout spanish \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 Swedish \end_layout \end_inset \begin_inset Text \begin_layout Plain Layout swedish \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 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" \end_inset Documentation of the 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" \end_inset \end_layout \begin_layout Bibliography \begin_inset CommandInset bibitem LatexCommand bibitem key "caption" \end_inset Documentation of the 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" \end_inset \end_layout \end_body \end_document