Fix inpreamble styles.

(cherry picked from commit e55e9c842f)
This commit is contained in:
Juergen Spitzmueller 2017-12-26 11:40:58 +01:00
parent bd879efaa8
commit 961b79975c

View File

@ -2428,7 +2428,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;
}
@ -2468,7 +2468,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;
}