MultilingualCaptions.lyx: port recent changes to master

This commit is contained in:
Uwe Stöhr 2015-03-08 03:39:54 +04:00
parent 297f607fda
commit 5753760b59
2 changed files with 120 additions and 41 deletions

View File

@ -4,7 +4,17 @@
\begin_header \begin_header
\textclass scrartcl \textclass scrartcl
\begin_preamble \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} %\PassOptionsToPackage{list=off}{bicaption}
% all this is only necessary if you want to have a different list of floats for each language % all this is only necessary if you want to have a different list of floats for each language
@ -56,7 +66,7 @@ bicaption
\pdf_colorlinks true \pdf_colorlinks true
\pdf_backref false \pdf_backref false
\pdf_pdfusetitle true \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 \papersize default
\use_geometry false \use_geometry false
\use_package amsmath 1 \use_package amsmath 1
@ -130,11 +140,11 @@ Multilingual
captions captions
\family default \family default
allows to typeset captions in two languages. allows to typeset captions in two languages.
It requires the LaTeX-package It requires the LaTeX package
\series bold \series bold
bicaption bicaption
\series default \series default
which is part of the LaTeX-package which is part of the LaTeX package
\series bold \series bold
caption caption
\series default \series default
@ -143,7 +153,11 @@ caption
\series bold \series bold
caption caption
\series default \series default
is installed, bicaption should be installed too. is installed,
\series bold
bicaption
\series default
should be installed too.
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
@ -217,7 +231,7 @@ Caption setup
\series bold \series bold
ngerman ngerman
\series default \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 The list of babel names is given in Table
\begin_inset space ~ \begin_inset space ~
\end_inset \end_inset
@ -238,7 +252,11 @@ 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 the caption that is automatically added when inserting a new float and
select select
\family sans \family sans
Caption (Bicaption Caption
\begin_inset space ~
\end_inset
(Bicaption
\family default \family default
) from the context menu. ) from the context menu.
If no caption is inserted, you can insert the multilingual caption via If no caption is inserted, you can insert the multilingual caption via
@ -289,6 +307,25 @@ reference "fig:example-figure"
is an example of a figure float with a multilingual caption. is an example of a figure float with a multilingual caption.
\end_layout \end_layout
\begin_layout Standard
\begin_inset Float figure
wide false
sideways false
status open
\begin_layout Plain Layout
\end_layout
\begin_layout Plain Layout
\end_layout
\end_inset
\end_layout
\begin_layout Caption setup \begin_layout Caption setup
\begin_inset Argument 1 \begin_inset Argument 1
status open status open
@ -371,18 +408,12 @@ English Title
status open status open
\begin_layout Plain Layout \begin_layout Plain Layout
\lang ngerman
German short title German short title
\end_layout \end_layout
\end_inset \end_inset
\lang ngerman
German Title German Title
\lang english
\begin_inset CommandInset label \begin_inset CommandInset label
LatexCommand label LatexCommand label
name "fig:example-figure" name "fig:example-figure"
@ -409,7 +440,6 @@ status open
\begin_layout Plain Layout \begin_layout Plain Layout
\series bold \series bold
\color none
Note Note
\series default \series default
: Multilingual captions cannot be used for longtables. : Multilingual captions cannot be used for longtables.
@ -456,7 +486,7 @@ font=
\series default \series default
. .
For more information about possible customizations, see the documentation For more information about possible customizations, see the documentation
of the LaTeX-package of the LaTeX package
\series bold \series bold
caption caption
\series default \series default
@ -748,7 +778,7 @@ listoffigureGeres
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
as TeX-Code. as TeX code.
Here is the German list of figures: Here is the German list of figures:
\end_layout \end_layout
@ -811,7 +841,7 @@ bi-second
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
For more information what can be done with the LaTeX-package For more information what can be done with the LaTeX package
\series bold \series bold
bicaption bicaption
\series default \series default
@ -834,7 +864,7 @@ key "bicaption"
\begin_layout Standard \begin_layout Standard
\begin_inset Tabular \begin_inset Tabular
<lyxtabular version="3" rows="47" columns="2"> <lyxtabular version="3" rows="48" columns="2">
<features rotate="0" booktabs="true" islongtable="true" headBottomDL="true" lastFootEmpty="true" longtabularalignment="center"> <features rotate="0" booktabs="true" islongtable="true" headBottomDL="true" lastFootEmpty="true" longtabularalignment="center">
<column alignment="center" valignment="top" width="0pt"> <column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="middle" width="35col%"> <column alignment="center" valignment="middle" width="35col%">
@ -1232,6 +1262,26 @@ Galician
galician galician
\end_layout \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 \end_inset
</cell> </cell>
</row> </row>
@ -1620,7 +1670,7 @@ scottish
\begin_inset Text \begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
Spanish Serbian
\end_layout \end_layout
\end_inset \end_inset
@ -1629,7 +1679,7 @@ Spanish
\begin_inset Text \begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
spanish serbian
\end_layout \end_layout
\end_inset \end_inset
@ -1680,7 +1730,7 @@ slovene
\begin_inset Text \begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
Swedish Spanish
\end_layout \end_layout
\end_inset \end_inset
@ -1689,7 +1739,7 @@ Swedish
\begin_inset Text \begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
swedish spanish
\end_layout \end_layout
\end_inset \end_inset
@ -1700,7 +1750,7 @@ swedish
\begin_inset Text \begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
Serbian Swedish
\end_layout \end_layout
\end_inset \end_inset
@ -1709,7 +1759,7 @@ Serbian
\begin_inset Text \begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
serbian swedish
\end_layout \end_layout
\end_inset \end_inset
@ -1809,7 +1859,7 @@ key "bicaption"
\end_inset \end_inset
Documentation of the LaTeX-package Documentation of the LaTeX package
\series bold \series bold
\begin_inset CommandInset href \begin_inset CommandInset href
@ -1829,7 +1879,7 @@ key "caption"
\end_inset \end_inset
Documentation of the LaTeX-package Documentation of the LaTeX package
\series bold \series bold
\begin_inset CommandInset href \begin_inset CommandInset href

View File

@ -4,7 +4,17 @@
\begin_header \begin_header
\textclass scrartcl \textclass scrartcl
\begin_preamble \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} %\PassOptionsToPackage{list=off}{bicaption}
% all this is only necessary if you want to have a different list of floats for each language % all this is only necessary if you want to have a different list of floats for each language
@ -56,7 +66,7 @@ bicaption
\pdf_colorlinks true \pdf_colorlinks true
\pdf_backref false \pdf_backref false
\pdf_pdfusetitle true \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 \papersize default
\use_geometry false \use_geometry false
\use_package amsmath 1 \use_package amsmath 1
@ -301,7 +311,11 @@ Pour ajouter une légende multilingue à un flottant, presser la touche droite
de la souris sur la légende qui apparaît automatiquement à la création de la souris sur la légende qui apparaît automatiquement à la création
d'un nouveau flottant et sélectionner d'un nouveau flottant et sélectionner
\family sans \family sans
Légende (Double légende Légende
\begin_inset space ~
\end_inset
(Double légende
\family default \family default
) dans le menu contextuel. ) dans le menu contextuel.
Si aucune légende n'apparaît, il est possible d'insérer la légende multilingue Si aucune légende n'apparaît, il est possible d'insérer la légende multilingue
@ -352,7 +366,6 @@ reference "fig:example-figure"
\end_layout \end_layout
\begin_layout Caption setup \begin_layout Caption setup
\begin_inset Argument 1 \begin_inset Argument 1
status open status open
@ -466,7 +479,6 @@ status open
\begin_layout Plain Layout \begin_layout Plain Layout
\series bold \series bold
\color none
Not Not
\series default \series default
a: les légendes multilingues ne fonctionnent pas pour les tableaux longs. a: les légendes multilingues ne fonctionnent pas pour les tableaux longs.
@ -553,7 +565,6 @@ reference "fig:example-figure-custom"
\end_layout \end_layout
\begin_layout Caption setup \begin_layout Caption setup
\begin_inset Note Note \begin_inset Note Note
status open status open
@ -604,7 +615,6 @@ la police de l'étiquette doit être grasse, le séparateur d'étiquette doit
\end_layout \end_layout
\begin_layout Caption setup \begin_layout Caption setup
\begin_inset Argument 1 \begin_inset Argument 1
status open status open
@ -628,7 +638,6 @@ l'étiquette dans la langue principale doit être en police grasse
\end_layout \end_layout
\begin_layout Caption setup \begin_layout Caption setup
\begin_inset Argument 1 \begin_inset Argument 1
status open status open
@ -895,7 +904,7 @@ key "bicaption"
\begin_layout Standard \begin_layout Standard
\begin_inset Tabular \begin_inset Tabular
<lyxtabular version="3" rows="47" columns="2"> <lyxtabular version="3" rows="48" columns="2">
<features rotate="0" booktabs="true" islongtable="true" headBottomDL="true" lastFootEmpty="true" longtabularalignment="center"> <features rotate="0" booktabs="true" islongtable="true" headBottomDL="true" lastFootEmpty="true" longtabularalignment="center">
<column alignment="center" valignment="top" width="0pt"> <column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="middle" width="35col%"> <column alignment="center" valignment="middle" width="35col%">
@ -1293,6 +1302,26 @@ Galician
galician galician
\end_layout \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 \end_inset
</cell> </cell>
</row> </row>
@ -1681,7 +1710,7 @@ scottish
\begin_inset Text \begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
Spanish Serbian
\end_layout \end_layout
\end_inset \end_inset
@ -1690,7 +1719,7 @@ Spanish
\begin_inset Text \begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
spanish serbian
\end_layout \end_layout
\end_inset \end_inset
@ -1741,7 +1770,7 @@ slovene
\begin_inset Text \begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
Swedish Spanish
\end_layout \end_layout
\end_inset \end_inset
@ -1750,7 +1779,7 @@ Swedish
\begin_inset Text \begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
swedish spanish
\end_layout \end_layout
\end_inset \end_inset
@ -1761,7 +1790,7 @@ swedish
\begin_inset Text \begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
Serbian Swedish
\end_layout \end_layout
\end_inset \end_inset
@ -1770,7 +1799,7 @@ Serbian
\begin_inset Text \begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
serbian swedish
\end_layout \end_layout
\end_inset \end_inset