mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
Fix state of certain language packages (polyglossia, japanese) in children (#8779)
This commit is contained in:
parent
b2e76d22d5
commit
2abe461b5c
@ -1468,7 +1468,9 @@ void Buffer::writeLaTeXSource(otexstream & os,
|
||||
LYXERR(Debug::LATEX, " Validating buffer...");
|
||||
LaTeXFeatures features(*this, params(), runparams);
|
||||
validate(features);
|
||||
runparams.use_polyglossia = features.usePolyglossia();
|
||||
// This is only set once per document (in master)
|
||||
if (!runparams.is_child)
|
||||
runparams.use_polyglossia = features.usePolyglossia();
|
||||
LYXERR(Debug::LATEX, " Buffer validation done.");
|
||||
|
||||
bool const output_preamble =
|
||||
@ -1580,7 +1582,9 @@ void Buffer::writeLaTeXSource(otexstream & os,
|
||||
runparams.use_babel = params().writeLaTeX(os, features,
|
||||
d->filename.onlyPath());
|
||||
|
||||
runparams.use_japanese = features.isRequired("japanese");
|
||||
// Japanese might be required only in some children of a document,
|
||||
// but once required, we must keep use_japanese true.
|
||||
runparams.use_japanese |= features.isRequired("japanese");
|
||||
|
||||
if (!output_body) {
|
||||
// Restore the parenthood if needed
|
||||
|
@ -57,6 +57,9 @@ What's new
|
||||
|
||||
- Fix problem with unbalanced braces in XeTeX output (bug 8765).
|
||||
|
||||
- Fix state of certain language packages (polyglossia, japanese) in
|
||||
child documents (bug 8779).
|
||||
|
||||
- Added h5 and h6 as tags for Paragraph and Subparagraph.
|
||||
|
||||
- Include alt tag when exporting math as images (bug 8746).
|
||||
|
Loading…
Reference in New Issue
Block a user