mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
498135ef38
commit
abd35bc33c
@ -5,13 +5,6 @@
|
||||
\save_transient_properties true
|
||||
\origin /systemlyxdir/doc/zh_CN/
|
||||
\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
|
||||
\maintain_unincluded_children no
|
||||
\language chinese-simplified
|
||||
|
@ -5,13 +5,6 @@
|
||||
\save_transient_properties true
|
||||
\origin /systemlyxdir/doc/zh_CN/
|
||||
\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
|
||||
\use_default_options true
|
||||
\maintain_unincluded_children no
|
||||
|
@ -94,7 +94,7 @@ End
|
||||
|
||||
Style Abstract_over_Columns
|
||||
CopyStyle Abstract
|
||||
InPreamble 1
|
||||
InTitle 1
|
||||
LabelString "Abstract"
|
||||
Category FrontMatter
|
||||
LatexType Command
|
||||
|
Loading…
Reference in New Issue
Block a user