From: Juergen Spitzmueller Date: Wed, 27 Dec 2017 10:49:54 +0000 (+0100) Subject: Open intitle command explicitly also for passthru. X-Git-Tag: 2.3.1~133^2~78 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d20de88953e260d081c0a917bcbec3c0cc6b3e96;p=features.git Open intitle command explicitly also for passthru. (cherry picked from commit 87960e3dd892cd7c60925efd44d40f593ac7883e) --- diff --git a/src/output_latex.cpp b/src/output_latex.cpp index f8bb151954..67f9bdd08c 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -736,9 +736,13 @@ void TeXOnePar(Buffer const & buf, Paragraph const * nextpar = runparams.isLastPar ? 0 : ¶graphs.at(pit + 1); + bool const intitle_command = style.intitle && style.latextype == LATEX_COMMAND; + if (style.pass_thru) { Font const outerfont = text.outerFont(pit); parStartCommand(par, os, runparams, style); + if (intitle_command) + os << '{'; par.latex(bparams, outerfont, os, runparams, start_pos, end_pos, force); @@ -815,7 +819,6 @@ void TeXOnePar(Buffer const & buf, // For InTitle commands, we need to switch the language inside the command // (see #10849); thus open the command here. - bool const intitle_command = style.intitle && style.latextype == LATEX_COMMAND; if (intitle_command) { parStartCommand(par, os, runparams, style); os << '{';