mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Properly handle the bicaption package (bug #9449)
This commit is contained in:
parent
477fddebe5
commit
f305f0b4d8
@ -281,6 +281,7 @@
|
|||||||
\TestPackage{authordate1-4}
|
\TestPackage{authordate1-4}
|
||||||
\TestPackage{babel}
|
\TestPackage{babel}
|
||||||
\TestPackage{bibtopic}
|
\TestPackage{bibtopic}
|
||||||
|
\TestPackage{bicaption}
|
||||||
\TestPackage{bidi}
|
\TestPackage{bidi}
|
||||||
\TestPackage{bm}
|
\TestPackage{bm}
|
||||||
\TestPackage{booktabs}
|
\TestPackage{booktabs}
|
||||||
|
@ -6095,12 +6095,65 @@ enumitem
|
|||||||
itemize, description).
|
itemize, description).
|
||||||
It is used by the Linguistics module to fine tune the appearance of numbered
|
It is used by the Linguistics module to fine tune the appearance of numbered
|
||||||
subexamples.
|
subexamples.
|
||||||
\change_inserted -712698321 1404379467
|
\change_inserted -712698321 1426533959
|
||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Subsection
|
\begin_layout Subsection
|
||||||
|
|
||||||
|
\change_inserted -712698321 1426533969
|
||||||
|
Multilingual Captions module
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Subsubsection
|
||||||
|
|
||||||
|
\change_inserted -712698321 1426533976
|
||||||
|
bicaption
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Description
|
||||||
|
|
||||||
|
\change_inserted -712698321 1426533959
|
||||||
|
Found:
|
||||||
|
\begin_inset Info
|
||||||
|
type "package"
|
||||||
|
arg "bicaption"
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Description
|
||||||
|
|
||||||
|
\change_inserted -712698321 1426533992
|
||||||
|
CTAN:
|
||||||
|
\family typewriter
|
||||||
|
macros/latex/contrib/caption/
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Description
|
||||||
|
|
||||||
|
\change_inserted -712698321 1426534118
|
||||||
|
Notes: The package
|
||||||
|
\family sans
|
||||||
|
bicaption
|
||||||
|
\family default
|
||||||
|
enables pairs of captions (in different languages), with control of other
|
||||||
|
options similar to that provided by the caption package.
|
||||||
|
Languages to be used are selected using
|
||||||
|
\family sans
|
||||||
|
babel
|
||||||
|
\family default
|
||||||
|
.
|
||||||
|
This package is part of the
|
||||||
|
\family sans
|
||||||
|
caption
|
||||||
|
\family default
|
||||||
|
bundle.
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Subsection
|
||||||
|
|
||||||
\change_inserted -712698321 1404379473
|
\change_inserted -712698321 1404379473
|
||||||
PDF Comments module
|
PDF Comments module
|
||||||
\end_layout
|
\end_layout
|
||||||
|
@ -30,9 +30,7 @@ Style "Caption setup"
|
|||||||
LabelFont
|
LabelFont
|
||||||
Color Green
|
Color Green
|
||||||
EndFont
|
EndFont
|
||||||
BabelPreamble
|
Requires bicaption
|
||||||
\usepackage{bicaption} % for multilingual captions
|
|
||||||
EndBabelPreamble
|
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
|
@ -1952,7 +1952,7 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
|
|||||||
+ atlyxpreamble + "\\makeatother\n\n";
|
+ atlyxpreamble + "\\makeatother\n\n";
|
||||||
|
|
||||||
// We try to load babel late, in case it interferes with other packages.
|
// We try to load babel late, in case it interferes with other packages.
|
||||||
// Jurabib, hyperref, varioref and listings (bug 8995) have to be
|
// Jurabib, hyperref, varioref, bicaption and listings (bug 8995) have to be
|
||||||
// called after babel, though.
|
// called after babel, though.
|
||||||
if (use_babel && !features.isRequired("jurabib")
|
if (use_babel && !features.isRequired("jurabib")
|
||||||
&& !features.isRequired("hyperref")
|
&& !features.isRequired("hyperref")
|
||||||
@ -1965,6 +1965,8 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
|
|||||||
features.needBabelLangOptions())) + '\n';
|
features.needBabelLangOptions())) + '\n';
|
||||||
lyxpreamble += from_utf8(features.getBabelPostsettings());
|
lyxpreamble += from_utf8(features.getBabelPostsettings());
|
||||||
}
|
}
|
||||||
|
if (features.isRequired("bicaption"))
|
||||||
|
lyxpreamble += "\\usepackage{bicaption}\n";
|
||||||
if (!listings_params.empty() || features.isRequired("listings"))
|
if (!listings_params.empty() || features.isRequired("listings"))
|
||||||
lyxpreamble += "\\usepackage{listings}\n";
|
lyxpreamble += "\\usepackage{listings}\n";
|
||||||
if (!listings_params.empty()) {
|
if (!listings_params.empty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user