]> git.lyx.org Git - lyx.git/commitdiff
Properly handle the bicaption package (bug #9449)
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 16 Mar 2015 19:31:38 +0000 (20:31 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 16 Mar 2015 19:31:38 +0000 (20:31 +0100)
lib/chkconfig.ltx
lib/doc/LaTeXConfig.lyx
lib/layouts/bicaption.module
src/BufferParams.cpp

index d2a53b40697aad49ef64971525f861c5e1f97e11..7429f60d1092da5b82f53dd6089e0151c5ca9402 100644 (file)
 \TestPackage{authordate1-4}
 \TestPackage{babel}
 \TestPackage{bibtopic}
+\TestPackage{bicaption}
 \TestPackage{bidi}
 \TestPackage{bm}
 \TestPackage{booktabs}
index d269b56a32a52d241ff1aa2cbf281bc07e49746a..7395f9df38b686e633a72b7cd389ef83d4b70c41 100644 (file)
@@ -6095,10 +6095,63 @@ enumitem
  itemize, description).
  It is used by the Linguistics module to fine tune the appearance of numbered
  subexamples.
-\change_inserted -712698321 1404379467
+\change_inserted -712698321 1426533959
+
+\end_layout
+
+\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
index dbfad7418cd0e1c5968a46b0d32d57e56df7601b..f0518458a4aa19e7f01451f7bc3c96d4c830b76e 100644 (file)
@@ -30,9 +30,7 @@ Style "Caption setup"
        LabelFont
          Color         Green
        EndFont
-       BabelPreamble
-       \usepackage{bicaption} % for multilingual captions
-       EndBabelPreamble
+       Requires        bicaption
 End
 
 
index 978bc50506e83115fba31e046cdf808e93a86a97..5cf529c430df28eff78d1029bca3d79ec3c1eee1 100644 (file)
@@ -1952,7 +1952,7 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
                        + atlyxpreamble + "\\makeatother\n\n";
 
        // 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.
        if (use_babel && !features.isRequired("jurabib")
            && !features.isRequired("hyperref")
@@ -1965,6 +1965,8 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
                                                   features.needBabelLangOptions())) + '\n';
                lyxpreamble += from_utf8(features.getBabelPostsettings());
        }
+       if (features.isRequired("bicaption"))
+               lyxpreamble += "\\usepackage{bicaption}\n";
        if (!listings_params.empty() || features.isRequired("listings"))
                lyxpreamble += "\\usepackage{listings}\n";
        if (!listings_params.empty()) {