]> git.lyx.org Git - lyx.git/blobdiff - src/output_latex.cpp
Get InsetCollapsable working, at least to some extent.
[lyx.git] / src / output_latex.cpp
index c9538ca9a66d723a8b9dc32fd5f238a233e0f156..4736530e8322d8e806d1663d67833a0d97940321 100644 (file)
@@ -169,8 +169,12 @@ TeXEnvironment(Buffer const & buf,
                           << pit->params().labelWidthString()
                           << "}\n";
                } else if (style.labeltype == LABEL_BIBLIO) {
-                       // ale970405
-                       os << '{' << bibitemWidest(buf) << "}\n";
+                       if (pit->params().labelWidthString().empty())
+                               os << '{' << bibitemWidest(buf) << "}\n";
+                       else
+                               os << '{'
+                                 << pit->params().labelWidthString()
+                                 << "}\n";
                } else
                        os << from_ascii(style.latexparam()) << '\n';
                texrow.newline();
@@ -697,9 +701,11 @@ ParagraphList::const_iterator TeXOnePar(Buffer const & buf,
        // If this is the last paragraph, and a local_font was set upon entering
        // the inset, and we're using "auto" or "default" encoding, the encoding
        // should be set back to that local_font's encoding.
+       // However, do not change the encoding when XeTeX is used.
        if (nextpit == paragraphs.end() && runparams_in.local_font != 0
            && runparams_in.encoding != runparams_in.local_font->language()->encoding()
-           && (bparams.inputenc == "auto" || bparams.inputenc == "default")) {
+           && (bparams.inputenc == "auto" || bparams.inputenc == "default")
+           && (!bparams.useXetex)) {
                runparams_in.encoding = runparams_in.local_font->language()->encoding();
                os << setEncoding(runparams_in.encoding->iconvName());
        }