]> git.lyx.org Git - features.git/commitdiff
Open intitle command explicitly also for passthru.
authorJuergen Spitzmueller <spitz@lyx.org>
Wed, 27 Dec 2017 10:49:54 +0000 (11:49 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 16 Feb 2018 16:25:32 +0000 (17:25 +0100)
(cherry picked from commit 87960e3dd892cd7c60925efd44d40f593ac7883e)

src/output_latex.cpp

index f8bb1519546e3b0ab0d9cd892c09af4c43e1d02b..67f9bdd08cec56391995de3f157b29e54f5d5bd3 100644 (file)
@@ -736,9 +736,13 @@ void TeXOnePar(Buffer const & buf,
        Paragraph const * nextpar = runparams.isLastPar
                ? 0 : &paragraphs.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 << '{';