if (style.isEnvironment()) {
os << "\\begin{" << from_ascii(style.latexname()) << '}';
- if (!style.latexargs().empty())
- latexArgInsets(*pit, os, runparams, style.latexargs());
+ if (!style.latexargs().empty()) {
+ OutputParams rp = runparams;
+ rp.local_font = &pit->getFirstFontSettings(bparams);
+ latexArgInsets(*pit, os, rp, style.latexargs());
+ }
if (style.latextype == LATEX_LIST_ENVIRONMENT) {
os << '{'
<< pit->params().labelWidthString()
open_encoding_ = none;
}
- if (text.inset().getLayout().isPassThru()) {
+ if (text.inset().isPassThru()) {
Font const outerfont = text.outerFont(pit);
// No newline before first paragraph in this lyxtext
if (style.pass_thru) {
Font const outerfont = text.outerFont(pit);
+ runparams.local_font = &par.getFirstFontSettings(bparams);
parStartCommand(par, os, runparams, style);
par.latex(bparams, outerfont, os, runparams, start_pos, end_pos);
}
}
+ runparams.local_font = &par.getFirstFontSettings(bparams);
parStartCommand(par, os, runparams, style);
-
Font const outerfont = text.outerFont(pit);
// FIXME UNICODE