fix jlreq abstract layout and adapt Chinese docs for unicode engines

jlreq layout defined the abstract environment to be boxed
in the preamble. Doing any kind of typesetting before
all the setup has finished is error prone and may lead to
wrong output (wrong fonts for example). The correct
place to put the abstract code is right before \maketitle.

The Chinese docs loaded the ctex package in case system fonts
were used. Now, with the new support for languages with babel
and polyglossia it is no longer necessary and creates collisions.
This commit is contained in:
Udi Fogiel 2024-09-10 15:17:07 +03:00
parent 498135ef38
commit abd35bc33c
3 changed files with 1 additions and 15 deletions

View File

@ -5,13 +5,6 @@
\save_transient_properties true \save_transient_properties true
\origin /systemlyxdir/doc/zh_CN/ \origin /systemlyxdir/doc/zh_CN/
\textclass article \textclass article
\begin_preamble
% Chinese localization
\@ifpackageloaded{fontspec}%
{\usepackage{ctex}}% ctex with non-TeX fonts
{%\usepackage[UTF8]{ctex}% error with font setup (missing font?)
}
\end_preamble
\use_default_options true \use_default_options true
\maintain_unincluded_children no \maintain_unincluded_children no
\language chinese-simplified \language chinese-simplified

View File

@ -5,13 +5,6 @@
\save_transient_properties true \save_transient_properties true
\origin /systemlyxdir/doc/zh_CN/ \origin /systemlyxdir/doc/zh_CN/
\textclass book \textclass book
\begin_preamble
% Chinese localization
\@ifpackageloaded{fontspec}%
{\usepackage{ctex}}% ctex with non-TeX fonts
{%\usepackage[UTF8]{ctex}% error with font setup (missing font?)
}
\end_preamble
\options cjk \options cjk
\use_default_options true \use_default_options true
\maintain_unincluded_children no \maintain_unincluded_children no

View File

@ -94,7 +94,7 @@ End
Style Abstract_over_Columns Style Abstract_over_Columns
CopyStyle Abstract CopyStyle Abstract
InPreamble 1 InTitle 1
LabelString "Abstract" LabelString "Abstract"
Category FrontMatter Category FrontMatter
LatexType Command LatexType Command