mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix inpreamble styles.
This commit is contained in:
parent
626f607db7
commit
e55e9c842f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user