]> git.lyx.org Git - features.git/blobdiff - src/Paragraph.cpp
Fix inpreamble styles.
[features.git] / src / Paragraph.cpp
index 4f55280d35bd969f84eb9363553adb04be108c64..c37220effc402ec6155e20329968bdd25d957403 100644 (file)
@@ -2426,7 +2426,7 @@ void Paragraph::latex(BufferParams const & bparams,
        if (empty()) {
                // For InTitle commands, we have already opened a group
                // in output_latex::TeXOnePar.
-               if (style.isCommand() && style.intitle) {
+               if (style.isCommand() && (!style.intitle || style.inpreamble)) {
                        os << '{';
                        ++column;
                }
@@ -2466,7 +2466,7 @@ void Paragraph::latex(BufferParams const & bparams,
                        }
                        // For InTitle commands, we have already opened a group
                        // in output_latex::TeXOnePar.
-                       if (style.isCommand() && !style.intitle) {
+                       if (style.isCommand() && (!style.intitle || style.inpreamble)) {
                                os << '{';
                                ++column;
                        }