Skip to content

Commit

Permalink
fix: synchronize with ctex 2.4.11
Browse files Browse the repository at this point in the history
- Greek letters, cyrillic letters and enclosed alphanumerics will now be processed normally in LuaTeX (see CTeX-org/ctex-kit#309).
- No need for redefining `\sectionmark` (see CTeX-org/ctex-kit#311).
  • Loading branch information
stone-zeng committed Nov 23, 2017
1 parent f0ceb1f commit d960c0a
Showing 1 changed file with 2 additions and 35 deletions.
37 changes: 2 additions & 35 deletions source/fduthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ version.
% \changes{v0.3}{2017/07/28}{整理代码,编写用户文档。}
% \changes{v0.4}{2017/08/03}{拆分 dtx 文件。}
% \changes{v0.4}{2017/08/11}{添加错误信息提示。}
% \changes{v0.6}{2017/11/23}{同步 \pkg{ctex} v2.4.11。}
%
% \CheckSum{0}
%
Expand Down Expand Up @@ -2700,34 +2701,8 @@ version.
% \end{macrocode}
% \end{macro}
%
% \subsubsection{修改 \pkg{LuaTeX-ja} 默认设置}
%
% \changes{v0.6}{2017/10/28}{优化 \LuaTeX{} 下希腊字母、西里尔字母
% 和带圈数字的显示。}
%
% TODO(2017/10/28): ctex v2.4.11 中会进行修改。
% \begin{macrocode}
\sys_if_engine_luatex:T
{
% \end{macrocode}
% U+2460--U+24FF (Enclosed Alphanumerics) 原属于字符范围 6,是
% JAchar,我们把它们归入字符范围 1,改成 ALchar。
% \begin{macrocode}
\ltjdefcharrange { 1 }
{ "80 - "36F, "1E00 - "1EFF, "2460 - "24FF }
\ltjdefcharrange { 6 }
{
"2E80 - "2EFF, "3000 - "30FF, "3190 - "319F,
"31F0 - "4DBF, "4E00 - "9FFF, "F900 - "FAFF,
"FE10 - "FE6F, "20000 - "2FFFF, "E0100 - "E01EF
}
% \end{macrocode}
% 使用西文字体显示希腊字母与西里尔字母。
% \begin{macrocode}
\ltjsetparameter
{ jacharrange = { -1, -2, -3, -4, -5, +6, +7, -8 } }
}
% \end{macrocode}
% 和带圈数字的显示(\pkg{ctex} v2.4.11 已默认进行处理)。}
%
% \subsection{章节标题结构}
%
Expand Down Expand Up @@ -2881,14 +2856,6 @@ version.
\pagestyle { fancy }
% \end{macrocode}
%
% \begin{macro}{\sectionmark}
% 重定义右侧页眉格式(否则貌似少了一个空格)。
% \begin{macrocode}
\RenewDocumentCommand \sectionmark { m }
{ \markright { \CTEXthesection \negthinspace \quad #1 } }
% \end{macrocode}
% \end{macro}
%
% \subsection{\pkg{hyperref} 相关配置}
%
% \changes{v0.4}{2017/08/13}{新增 \pkg{hyperref} 相关配置,
Expand Down

0 comments on commit d960c0a

Please sign in to comment.