texlive[55162] Master/texmf-dist: ctex (16may20)
commits+karl at tug.org
commits+karl at tug.org
Sat May 16 23:26:15 CEST 2020
Revision: 55162
http://tug.org/svn/texlive?view=revision&revision=55162
Author: karl
Date: 2020-05-16 23:26:14 +0200 (Sat, 16 May 2020)
Log Message:
-----------
ctex (16may20)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/ctex/README.md
trunk/Master/texmf-dist/doc/latex/ctex/ctex.pdf
trunk/Master/texmf-dist/source/latex/ctex/ctex.dtx
trunk/Master/texmf-dist/source/latex/ctex/ctex.ins
trunk/Master/texmf-dist/tex/latex/ctex/config/ctex-name-gbk.cfg
trunk/Master/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg
trunk/Master/texmf-dist/tex/latex/ctex/config/ctex.cfg
trunk/Master/texmf-dist/tex/latex/ctex/config/ctexbackend.cfg
trunk/Master/texmf-dist/tex/latex/ctex/config/ctexopts.cfg
trunk/Master/texmf-dist/tex/latex/ctex/ctex-c5size.clo
trunk/Master/texmf-dist/tex/latex/ctex/ctex-cs4size.clo
trunk/Master/texmf-dist/tex/latex/ctex/ctex.sty
trunk/Master/texmf-dist/tex/latex/ctex/ctexart.cls
trunk/Master/texmf-dist/tex/latex/ctex/ctexbeamer.cls
trunk/Master/texmf-dist/tex/latex/ctex/ctexbook.cls
trunk/Master/texmf-dist/tex/latex/ctex/ctexcap.sty
trunk/Master/texmf-dist/tex/latex/ctex/ctexheading.sty
trunk/Master/texmf-dist/tex/latex/ctex/ctexhook.sty
trunk/Master/texmf-dist/tex/latex/ctex/ctexpatch.sty
trunk/Master/texmf-dist/tex/latex/ctex/ctexrep.cls
trunk/Master/texmf-dist/tex/latex/ctex/ctexsize.sty
trunk/Master/texmf-dist/tex/latex/ctex/ctexspa.def
trunk/Master/texmf-dist/tex/latex/ctex/ctxdoc.cls
trunk/Master/texmf-dist/tex/latex/ctex/dictionary/translator-theorem-dictionary-ChineseGBK.dict
trunk/Master/texmf-dist/tex/latex/ctex/dictionary/translator-theorem-dictionary-ChineseUTF8.dict
trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-aptex.def
trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-luatex.def
trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-pdftex.def
trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-uptex.def
trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def
trunk/Master/texmf-dist/tex/latex/ctex/fd/c19rm.fd
trunk/Master/texmf-dist/tex/latex/ctex/fd/c19sf.fd
trunk/Master/texmf-dist/tex/latex/ctex/fd/c19tt.fd
trunk/Master/texmf-dist/tex/latex/ctex/fd/c70rm.fd
trunk/Master/texmf-dist/tex/latex/ctex/fd/c70sf.fd
trunk/Master/texmf-dist/tex/latex/ctex/fd/c70tt.fd
trunk/Master/texmf-dist/tex/latex/ctex/fd/jt2zhrm.fd
trunk/Master/texmf-dist/tex/latex/ctex/fd/jt2zhsf.fd
trunk/Master/texmf-dist/tex/latex/ctex/fd/jt2zhtt.fd
trunk/Master/texmf-dist/tex/latex/ctex/fd/jy2zhrm.fd
trunk/Master/texmf-dist/tex/latex/ctex/fd/jy2zhsf.fd
trunk/Master/texmf-dist/tex/latex/ctex/fd/jy2zhtt.fd
trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-adobe.def
trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-fandol.def
trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-founder.def
trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-mac.def
trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-macnew.def
trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-macold.def
trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-ubuntu.def
trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windows.def
trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-article.def
trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-beamer.def
trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-book.def
trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-report.def
trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-article.def
trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-beamer.def
trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-book.def
trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-report.def
trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese.def
trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-article.def
trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-beamer.def
trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-book.def
trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-report.def
trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain.def
Added Paths:
-----------
trunk/Master/texmf-dist/tex/generic/ctex/ctex-spa-macro.tex
trunk/Master/texmf-dist/tex/generic/ctex/ctex-spa-make.tex
trunk/Master/texmf-dist/tex/generic/ctex/zhmap/
trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-adobe.tex
trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-fandol.tex
trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-founder.tex
trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-mac.tex
trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-ubuntu.tex
trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-windows.tex
Removed Paths:
-------------
trunk/Master/texmf-dist/tex/generic/ctex/ctexmakespa.tex
trunk/Master/texmf-dist/tex/generic/ctex/ctexspamacro.tex
trunk/Master/texmf-dist/tex/generic/ctex/zhadobefonts.tex
trunk/Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex
trunk/Master/texmf-dist/tex/generic/ctex/zhfounderfonts.tex
trunk/Master/texmf-dist/tex/generic/ctex/zhmacfonts.tex
trunk/Master/texmf-dist/tex/generic/ctex/zhubuntufonts.tex
trunk/Master/texmf-dist/tex/generic/ctex/zhwindowsfonts.tex
Modified: trunk/Master/texmf-dist/doc/latex/ctex/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/ctex/README.md 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/doc/latex/ctex/README.md 2020-05-16 21:26:14 UTC (rev 55162)
@@ -111,14 +111,14 @@
ctex-fontset-windows.def,
ctexspa.def,
ctexpunct.spa,
- ctexmakespa.tex,
- ctexspamacro.tex,
- zhadobefonts.tex,
- zhfandolfonts.tex,
- zhfounderfonts.tex,
- zhmacfonts.tex,
- zhubuntufonts.tex,
- zhwindowsfonts.tex,
+ ctex-spa-make.tex,
+ ctex-spa-macro.tex,
+ ctex-zhmap-adobe.tex,
+ ctex-zhmap-fandol.tex,
+ ctex-zhmap-founder.tex,
+ ctex-zhmap-mac.tex,
+ ctex-zhmap-ubuntu.tex,
+ ctex-zhmap-windows.tex,
ctex-zhconv-index.lua,
translator-theorem-dictionary-ChineseGBK.dict,
translator-theorem-dictionary-ChineseUTF8.dict, and
Modified: trunk/Master/texmf-dist/doc/latex/ctex/ctex.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/ctex/ctex.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/ctex/ctex.dtx 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/source/latex/ctex/ctex.dtx 2020-05-16 21:26:14 UTC (rev 55162)
@@ -137,14 +137,14 @@
ctex-fontset-windows.def,
ctexspa.def,
ctexpunct.spa,
- ctexmakespa.tex,
- ctexspamacro.tex,
- zhadobefonts.tex,
- zhfandolfonts.tex,
- zhfounderfonts.tex,
- zhmacfonts.tex,
- zhubuntufonts.tex,
- zhwindowsfonts.tex,
+ ctex-spa-make.tex,
+ ctex-spa-macro.tex,
+ ctex-zhmap-adobe.tex,
+ ctex-zhmap-fandol.tex,
+ ctex-zhmap-founder.tex,
+ ctex-zhmap-mac.tex,
+ ctex-zhmap-ubuntu.tex,
+ ctex-zhmap-windows.tex,
ctex-zhconv-index.lua,
translator-theorem-dictionary-ChineseGBK.dict,
translator-theorem-dictionary-ChineseUTF8.dict, and
@@ -249,14 +249,14 @@
ctex-fontset-windows.def,
ctexspa.def,
ctexpunct.spa,
- ctexmakespa.tex,
- ctexspamacro.tex,
- zhadobefonts.tex,
- zhfandolfonts.tex,
- zhfounderfonts.tex,
- zhmacfonts.tex,
- zhubuntufonts.tex,
- zhwindowsfonts.tex,
+ ctex-spa-make.tex,
+ ctex-spa-macro.tex,
+ ctex-zhmap-adobe.tex,
+ ctex-zhmap-fandol.tex,
+ ctex-zhmap-founder.tex,
+ ctex-zhmap-mac.tex,
+ ctex-zhmap-ubuntu.tex,
+ ctex-zhmap-windows.tex,
ctex-zhconv-index.lua,
translator-theorem-dictionary-ChineseGBK.dict,
translator-theorem-dictionary-ChineseUTF8.dict, and
@@ -330,14 +330,14 @@
\file{ctexspa.def} {\from{\jobname.dtx}{ctexspa}
\from{ctexpunct.spa}{}}
\usedir{tex/generic/ctex}
- \file{ctexmakespa.tex} {\from{\jobname.dtx}{spa,make}}
- \file{ctexspamacro.tex} {\from{\jobname.dtx}{spa,macro}}
- \file{zhadobefonts.tex} {\from{\jobname.dtx}{zhmap,adobe}}
- \file{zhfandolfonts.tex} {\from{\jobname.dtx}{zhmap,fandol}}
- \file{zhfounderfonts.tex} {\from{\jobname.dtx}{zhmap,founder}}
- \file{zhmacfonts.tex} {\from{\jobname.dtx}{zhmap,mac}}
- \file{zhubuntufonts.tex} {\from{\jobname.dtx}{zhmap,ubuntu}}
- \file{zhwindowsfonts.tex} {\from{\jobname.dtx}{zhmap,windows}}
+ \file{ctex-spa-make.tex} {\from{\jobname.dtx}{spa,make}}
+ \file{ctex-spa-macro.tex} {\from{\jobname.dtx}{spa,macro}}
+ \file{ctex-zhmap-adobe.tex} {\from{\jobname.dtx}{zhmap,adobe}}
+ \file{ctex-zhmap-fandol.tex} {\from{\jobname.dtx}{zhmap,fandol}}
+ \file{ctex-zhmap-founder.tex} {\from{\jobname.dtx}{zhmap,founder}}
+ \file{ctex-zhmap-mac.tex} {\from{\jobname.dtx}{zhmap,mac}}
+ \file{ctex-zhmap-ubuntu.tex} {\from{\jobname.dtx}{zhmap,ubuntu}}
+ \file{ctex-zhmap-windows.tex} {\from{\jobname.dtx}{zhmap,windows}}
%</install>
%<*internal>
\usedir{source/latex/ctex}
@@ -415,14 +415,14 @@
\Msg{* ctex-fontset-ubuntu.def *}
\Msg{* ctex-fontset-windows.def *}
\Msg{* ctexspa.def *}
-\Msg{* ctexmakespa.tex *}
-\Msg{* ctexspamacro.tex *}
-\Msg{* zhadobefonts.tex *}
-\Msg{* zhfandolfonts.tex *}
-\Msg{* zhfounderfonts.tex *}
-\Msg{* zhmacfonts.tex *}
-\Msg{* zhubuntufonts.tex *}
-\Msg{* zhwindowsfonts.tex *}
+\Msg{* ctex-spa-make.tex *}
+\Msg{* ctex-spa-macro.tex *}
+\Msg{* ctex-zhmap-adobe.tex *}
+\Msg{* ctex-zhmap-fandol.tex *}
+\Msg{* ctex-zhmap-founder.tex *}
+\Msg{* ctex-zhmap-mac.tex *}
+\Msg{* ctex-zhmap-ubuntu.tex *}
+\Msg{* ctex-zhmap-windows.tex *}
\Msg{* translator-theorem-dictionary-ChineseGBK.dict *}
\Msg{* translator-theorem-dictionary-ChineseUTF8.dict *}
\Msg{* *}
@@ -443,7 +443,7 @@
%<class|style|ctexcap|ctexhook|ctexpatch>\NeedsTeXFormat{LaTeX2e}
%<class>\input{ctexbackend.cfg}
%<class|style|ctexcap|ctexhook|ctexpatch>\RequirePackage{expl3}
-%<+!driver>\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+%<+!driver>\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
%<ctex> {Chinese adapter in LaTeX (CTEX)}
%<ctex>\ProvidesExplPackage{\ExplFileName}
%<ctexsize> {Chinese font size definition (CTEX)}
@@ -530,7 +530,7 @@
%<founder>\ProvidesExplFile{ctex-fontset-founder.def}
%<ubuntu> {Ubuntu fonts definition (CTEX)}
%<ubuntu>\ProvidesExplFile{ctex-fontset-ubuntu.def}
-%<!driver> {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+%<!driver> {\ExplFileDate}{2.5.2}{\ExplFileDescription}
%</!(fd|ctexspa|dict|backend)>
%<c19&rm>\ProvidesFile{c19rm.fd}%
%<c19&sf>\ProvidesFile{c19sf.fd}%
@@ -548,10 +548,10 @@
%<backend>\ProvidesFile{ctexbackend.cfg}%
%<dict&theorem&GBK>\ProvidesDictionary{translator-theorem-dictionary}{ChineseGBK}%
%<dict&theorem&UTF8>\ProvidesDictionary{translator-theorem-dictionary}{ChineseUTF8}%
-%<fd> [2020/05/02 v2.5.1 Chinese font definition (CTEX)]
-%<ctexspa> [2020/05/02 v2.5.1 Space info for CJKpunct (CTEX)]
-%<backend> [2020/05/02 v2.5.1 Backend configuration file (CTEX)]
-%<dict&theorem> [2020/05/02 v2.5.1 Chinese translation for theorem name (CTEX)]
+%<fd> [2020/05/16 v2.5.2 Chinese font definition (CTEX)]
+%<ctexspa> [2020/05/16 v2.5.2 Space info for CJKpunct (CTEX)]
+%<backend> [2020/05/16 v2.5.2 Backend configuration file (CTEX)]
+%<dict&theorem> [2020/05/16 v2.5.2 Chinese translation for theorem name (CTEX)]
%</!(driver|readme|install|zhmap|spa|docstrip)>
%<*driver>
\documentclass{ctxdoc}
@@ -575,7 +575,7 @@
% \changes{v2.4.15}{2019/03/23}{同步 \LaTeXiii{} 2019/03/05。}
% \changes{v2.5.1}{2020/05/02}{\pkg{zhconv} 更名为 \pkg{ctex-zhconv}。}
%
-% \CheckSum{6105}
+% \CheckSum{6116}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -1661,14 +1661,63 @@
% 三章的标题分别为“第一章\quad A”、“B”和“C”,但在目录中则只出现
% “第一章\quad A”和“C”。
%
-% 注意,章节标题是否编号还要受到 \LaTeX{} 计数器 |secnumdepth| 的控制。
+% 注意,章节标题是否编号还要受到 \LaTeX{} 计数器 |secnumdepth| 的控制^^A
+% (可通过以下介绍的 \opt{secnumdepth} 选项设置)。
% 例如,对于 |section| 而言,其深度为 1。因此,|section| 会被编号,当且仅当
% |secnumdepth| 不小于 1,并且 \opt{section/numbering} 为 \opt{true},
% 并且使用不带星号的章节标题命令(即 \tn{section})。
+% \end{function}
%
-% 如果没有特别说明,以下将用 “|...|” 代表各级章节标题名。
+% \begin{function}[EXP,added=2020-05-06]{secnumdepth}
+% \begin{syntax}
+% secnumdepth = <整数或章节名称>
+% \end{syntax}
+% 设置对章节标题进行编号的层次数。\opt{secnumdepth} 的值可以是一个整数,也可以是
+% |part|, |chapter| 等名称。
+% 层次数与名称的对应关系见表~\ref{tab:heading-level}。
+% 章节层次的默认设置见表~\ref{tab:heading-level-default}。
+%
+% 本选项对 \cls{beamer}/\cls{ctexbeamer} 文档类无效。
% \end{function}
%
+% \begin{table}[htbp]
+% \begin{minipage}[t]{.43\linewidth}
+% \small\centering
+% \caption{章节层次}
+% \label{tab:heading-level}
+% \begin{tabular}{rll}
+% \toprule
+% 层次 & 名称 & 注 \\
+% \midrule
+% |-1| & part & \cls{book}/\cls{report} 类 \\
+% |0| & chapter & \cls{book}/\cls{report} 类 \\
+% |0| & part & \cls{article} 类 \\
+% |1| & section \\
+% |2| & subsection \\
+% |3| & subsubsection \\
+% |4| & paragraph \\
+% |5| & subparagraph \\
+% \bottomrule
+% \end{tabular}
+% \end{minipage}^^A
+% \begin{minipage}[t]{.57\linewidth}
+% \small\centering
+% \caption{章节层次的默认设置}
+% \label{tab:heading-level-default}
+% \begin{tabular}{lll}
+% \toprule
+% 文档类 & \opt{secnumdepth} & \opt{tocdepth} \\
+% \midrule
+% \cls{article} & |3| (subsubsection) & |3| (subsubsection) \\
+% \cls{book}/\cls{report} & |2| (subsection) & |2| (subsection) \\
+% \cls{beamer} & 无效 & |3| (subsubsection) \\
+% \bottomrule
+% \end{tabular}
+% \end{minipage}
+% \end{table}
+%
+% 如果没有特别说明,以下将用 “|...|” 代表各级章节标题名。
+%
% \begin{function}[EXP,updated=2014-03-08]{.../name}
% \begin{syntax}
% name = \{<前名字>,<后名字>\}
@@ -1799,7 +1848,7 @@
%
% \opt{format} 选项的最后一个格式命令可以带有一个参数。
% 这一参数用于接受章节名字、编号和标题内容(以及由 \opt{nameformat}, \opt{numberformat},
-% \opt{aftername},\opt{titleformat}, \opt{aftertitle}, \opt{indent}
+% \opt{aftername}, \opt{titleformat}, \opt{aftertitle}, \opt{indent}
% 及 \opt{hang} 选项设定的,应用于这些内容之上的格式),以实现特殊效果。
%
% 例如,设置章标题为无衬线字体左对齐、为节标题增加无衬线字体设置、
@@ -2125,34 +2174,6 @@
% 该选项的默认设置见表~\ref{tab:hang-default}。
% \end{function}
%
-% \begin{function}[EXP,updated=2020-04-23]{.../indent}
-% \begin{syntax}
-% indent = \Arg{缩进间距}
-% \end{syntax}
-% \opt{indent} 选项用于设置章节标题本身的首行缩进。
-% 该选项的默认设置见表~\ref{tab:indent-default}。
-%
-% 如果 \opt{indent} 的值是以 \texttt{em}、\texttt{ex} 或 \cs{ccwd} 为单位,
-% 那么缩进间距的大小是相对于 \opt{format} 中指定的字号大小。
-% 例如,设置 \tn{part} 标题缩进三个字、\tn{section} 标题缩进 \SI{20}{pt}:
-% \begin{ctexexam}
-% \ctexset{
-% part = {
-% format += \raggedright,
-% indent = 3\ccwd,
-% },
-% section = {
-% format = \Large\bfseries,
-% indent = 20pt,
-% }
-% }
-% \part{首行缩进的标题}
-% \noindent 无缩进的正文。
-% \section{首行缩进的标题}
-% \noindent 无缩进的正文。
-% \end{ctexexam}
-% \end{function}
-%
% \begin{table}[htbp]
% \begin{minipage}[t]{.5\linewidth}
% \small\centering
@@ -2174,7 +2195,7 @@
% \qquad(sub4section) & |true| \\
% \bottomrule
% \end{tabular}
-% \end{minipage}
+% \end{minipage}^^A
% \begin{minipage}[t]{.5\linewidth}
% \small\centering
% \caption{\opt{indent} 选项的默认设置}
@@ -2197,6 +2218,34 @@
% \end{minipage}
% \end{table}
%
+% \begin{function}[EXP,updated=2020-04-23]{.../indent}
+% \begin{syntax}
+% indent = \Arg{缩进间距}
+% \end{syntax}
+% \opt{indent} 选项用于设置章节标题本身的首行缩进。
+% 该选项的默认设置见表~\ref{tab:indent-default}。
+%
+% 如果 \opt{indent} 的值是以 \texttt{em}、\texttt{ex} 或 \cs{ccwd} 为单位,
+% 那么缩进间距的大小是相对于 \opt{format} 中指定的字号大小。
+% 例如,设置 \tn{part} 标题缩进三个字、\tn{section} 标题缩进 \SI{20}{pt}:
+% \begin{ctexexam}
+% \ctexset{
+% part = {
+% format += \raggedright,
+% indent = 3\ccwd,
+% },
+% section = {
+% format = \Large\bfseries,
+% indent = 20pt,
+% }
+% }
+% \part{首行缩进的标题}
+% \noindent 无缩进的正文。
+% \section{首行缩进的标题}
+% \noindent 无缩进的正文。
+% \end{ctexexam}
+% \end{function}
+%
% \begin{function}[EXP,updated=2016-05-10]{.../beforeskip}
% \begin{syntax}
% beforeskip = \Arg{弹性间距}
@@ -2356,6 +2405,16 @@
% \subsection{目录、附录相关}
% \label{subsec:sec-toc-appendix}
%
+% \begin{function}[EXP,added=2020-05-06]{tocdepth}
+% \begin{syntax}
+% tocdepth = <整数或章节名称>
+% \end{syntax}
+% 设置对章节标题编入目录的层次数。\opt{tocdepth} 的值可以是一个整数,也可以是
+% |part|, |chapter| 等名称。
+% 层次数与名称的对应关系见表~\ref{tab:heading-level}。
+% 章节层次的默认设置见表~\ref{tab:heading-level-default}。
+% \end{function}
+%
% \begin{function}[EXP,added=2016-10-25]{.../tocline}
% \begin{syntax}
% tocline = \Arg{格式定义}
@@ -2443,9 +2502,10 @@
% 文档类 & 影响命令 & \opt{scheme = chinese} & 实际定义
% & \opt{scheme = plain} & 实际定义 \\
% \midrule
-% article & \tn{section} & |{}| & & |{}| & \\
-% book, report & \tn{chapter} & |\appendixname\space| & \verb*|附录 |
-% & |\appendixname\space| & \verb*|Appendix | \\
+% \cls{article} & \tn{section} & |{}| & & |{}| & \\
+% \cls{book}, \cls{report}
+% & \tn{chapter} & |\appendixname\space| & \verb*|附录 |
+% & |\appendixname\space| & \verb*|Appendix | \\
% \bottomrule
% \end{tabular}
% \end{table}
@@ -2472,8 +2532,8 @@
% \toprule
% 文档类 & 影响命令 & 默认值 \\
% \midrule
-% article & \tn{section} & |\Alph{section}| \\
-% book, report & \tn{chapter} & |\Alph{chapter}| \\
+% \cls{article} & \tn{section} & |\Alph{section}| \\
+% \cls{book}, \cls{report} & \tn{chapter} & |\Alph{chapter}| \\
% \bottomrule
% \end{tabular}
% \end{table}
@@ -4188,7 +4248,7 @@
\tl_set:Nn \CJKrmdefault {#1}
\tl_set:Nn \CJKsfdefault {#2}
\tl_set:Nn \CJKttdefault {#3}
- \ctex_set_zhmap:n { \ctex_zhmap_input:n {#4} }
+ \ctex_set_zhmap:n { \ctex_zhmap_input:n { ctex-zhmap- #4 .tex } }
}
\@onlypreamble \ctex_load_zhmap:nnnn
% \end{macrocode}
@@ -4214,18 +4274,6 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macrocode}
- \tl_if_exist:NF \CJKfamilydefault
- { \tl_const:Nn \CJKfamilydefault { \CJKrmdefault } }
- \tl_if_exist:NF \CJKrmdefault { \tl_new:N \CJKrmdefault }
- \tl_if_exist:NF \CJKsfdefault { \tl_new:N \CJKsfdefault }
- \tl_if_exist:NF \CJKttdefault { \tl_new:N \CJKttdefault }
- \g at addto@macro \@rmfamilyhook { \CJKfamily { \CJKrmdefault } }
- \g at addto@macro \@sffamilyhook { \CJKfamily { \CJKsfdefault } }
- \g at addto@macro \@ttfamilyhook { \CJKfamily { \CJKttdefault } }
- \g at addto@macro \@defaultfamilyhook { \CJKfamily { \CJKfamilydefault } }
-% \end{macrocode}
-%
% \pkg{zhmCJK} 判断结束。
% \begin{macrocode}
\fi:
@@ -4408,7 +4456,8 @@
\clist_const:Nn \c_@@_punct_family_clist
{
zhsong , zhhei , zhfs , zhkai , zhli , zhyou ,
- zhsongb , zhheil , zhheib , zhyoub , zhyahei , zhyaheib
+ zhsongb , zhheil , zhheib , zhyoub ,
+ zhyahei , zhyaheib , zhpf , zhpfb
}
% \end{macrocode}
% \end{macro}
@@ -5576,29 +5625,9 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macrocode}
-\tl_if_exist:NF \CJKfamilydefault
- { \tl_const:Nn \CJKfamilydefault { \CJKrmdefault } }
-\tl_if_exist:NF \CJKrmdefault { \tl_const:Nn \CJKrmdefault { rm } }
-\tl_if_exist:NF \CJKsfdefault { \tl_const:Nn \CJKsfdefault { sf } }
-\tl_if_exist:NF \CJKttdefault { \tl_const:Nn \CJKttdefault { tt } }
-% \end{macrocode}
-%
% \changes{v2.4.8}{2017/02/23}
% {解决与 \pkg{fontspec} 2017/01/24 v2.5d 的字体族匹配兼容问题。}
-% 使用 \LaTeXe \ 提供的钩子,使主要 |CJK| 字体族能随西文主要字体更新。
-% \begin{macrocode}
-\g at addto@macro \@rmfamilyhook { \CJKfamily { \CJKrmdefault } }
-\g at addto@macro \@sffamilyhook { \CJKfamily { \CJKsfdefault } }
-\g at addto@macro \@ttfamilyhook { \CJKfamily { \CJKttdefault } }
-\g at addto@macro \@defaultfamilyhook { \CJKfamily { \CJKfamilydefault } }
-% \end{macrocode}
%
-% 在导言区末尾更新 \tn{CJKfamilydefault}。
-% \begin{macrocode}
-\ctex_at_end_preamble:n { \ctex_update_default_family: }
-% \end{macrocode}
-%
% \begin{macro}[int]{\ctex_ltj_ensure_default_family:}
% 在导言区结束确认 \tn{CJKfamilydefault} 确实存在。
% \begin{macrocode}
@@ -5998,7 +6027,7 @@
{ \clist_map_inline:nn {#1} { \@@_declare_char_range:nn ##1 } }
\cs_generate_variant:Nn \ctex_ltj_declare_char_range:n { e }
\cs_new_protected:Npn \@@_declare_char_range:nn #1
- { \exp_args:Ne \ctex_ltj_declare_char_range:nn { \tl_trim_spaces:n {#1} } }
+ { \tl_trim_spaces_apply:nN {#1} \ctex_ltj_declare_char_range:nn }
% \end{macrocode}
% \end{macro}
%
@@ -6139,17 +6168,8 @@
% \changes{v2.4}{2016/02/28}{初步支持 \upLaTeX。}
% \changes{v2.4.15}{2019/04/05}{显式补丁 \upLaTeX 的 \tn{rmfamily} 等字体命令。}
%
-% 按 \pkg{CJK} 的命名习惯模拟部分命令,并设置默认字体。
+% 按 \pkg{CJK} 的命名习惯模拟 \tn{CJKfamily}。
% \begin{macrocode}
-\tl_if_exist:NF \CJKfamilydefault
- { \tl_const:Nn \CJKfamilydefault { \CJKrmdefault } }
-\tl_if_exist:NF \CJKrmdefault { \tl_const:Nn \CJKrmdefault { zhrm } }
-\tl_if_exist:NF \CJKsfdefault { \tl_const:Nn \CJKsfdefault { zhsf } }
-\tl_if_exist:NF \CJKttdefault { \tl_const:Nn \CJKttdefault { zhtt } }
-\tl_set:Nn \kanjifamilydefault { \CJKfamilydefault }
-\g at addto@macro \@rmfamilyhook { \kanjifamily { \CJKrmdefault } }
-\g at addto@macro \@sffamilyhook { \kanjifamily { \CJKsfdefault } }
-\g at addto@macro \@ttfamilyhook { \kanjifamily { \CJKttdefault } }
\NewDocumentCommand \CJKfamily { m }
{ \kanjifamily {#1} \selectfont }
% \end{macrocode}
@@ -6167,16 +6187,6 @@
\jfam \symmincho
% \end{macrocode}
%
-% 在导言区末尾更新 \tn{CJKfamilydefault}。
-% \begin{macrocode}
-\ctex_at_end_preamble:n { \ctex_update_default_family: }
-% \end{macrocode}
-%
-% 使修改立刻生效,保证导言区字体族正确。
-% \begin{macrocode}
-\normalfont
-% \end{macrocode}
-%
% \begin{macro}[int]{\em}
% \changes{v2.4.2}{2016/05/15}{兼容 \upLaTeX{} 2016/05/07u00 的定义。}
% 取消 \upLaTeX{} 对 \tn{em} 使用 |\mcfamily|、|\gtfamily| 命令的重定义,恢复
@@ -6295,8 +6305,84 @@
%</uptex|aptex>
% \end{macrocode}
%
-% \subsubsection{调整 \tn{CJKfamilydefault}}
+% \subsubsection{修改主要字体命令}
%
+% \changes{v2.5.2}{2020/05/06}{兼容 \LaTeX\ 2020-02-02 之前的版本。}
+%
+% 修改 \tn{rmfamily} 等主要字体命令,使得中文字体能随西文主要字体更新。
+% \LaTeX\ 2020-02-02 以后的版本可以直接使用 \tn{@rmfamilyhook} 等钩子。
+% 我们暂时需要处理旧内核的情况,以保持兼容性。
+%
+% \pkg{xeCJK} 和 \pkg{zhmCJK} 已经有相同的工作,本段代码不需要对他们使用。
+% \begin{macrocode}
+%<*pdftex|luatex|uptex|aptex>
+%<pdftex>\reverse_if:N \if_bool:N \g_@@_zhmCJK_bool
+% \end{macrocode}
+%
+% \begin{macro}[int]{\ctex_provide_font_hook:NNN,\CTEX at rmfamilyhook}
+% 给 \tn{rmfamily} 等字体命令加钩子,钩子名字统一为 \tn{CTEX at rmfamilyhook} 等。
+% \begin{macrocode}
+\cs_new_protected:Npn \ctex_provide_font_hook:NNN #1#2
+ {
+ \exp_args:Nc \@@_provide_font_hook_aux:NNNN
+ { CTEX \cs_to_str:N #2 } #1#2
+ }
+\cs_new_protected:Npn \@@_provide_font_hook_aux:NNNN #1#2#3#4
+ {
+ \tl_new:N #1
+ \cs_if_exist:NTF #3
+ { \tl_gput_right:Nn #3 {#1} }
+ { \ctex_patch_cmd:Nnn #2 {#4} { #1#4 } }
+ }
+\ctex_provide_font_hook:NNN \rmfamily \@rmfamilyhook \selectfont
+\ctex_provide_font_hook:NNN \sffamily \@sffamilyhook \selectfont
+\ctex_provide_font_hook:NNN \ttfamily \@ttfamilyhook \selectfont
+%<pdftex|luatex>\ctex_provide_font_hook:NNN \normalfont \@defaultfamilyhook \usefont
+% \end{macrocode}
+% \end{macro}
+%
+% 按 \pkg{CJK} 的命名习惯模拟部分命令,并设置默认字体。
+% \begin{macrocode}
+\tl_if_exist:NF \CJKfamilydefault
+ { \tl_const:Nn \CJKfamilydefault { \CJKrmdefault } }
+%<*pdftex|luatex>
+\tl_if_exist:NF \CJKrmdefault { \tl_const:Nn \CJKrmdefault { rm } }
+\tl_if_exist:NF \CJKsfdefault { \tl_const:Nn \CJKsfdefault { sf } }
+\tl_if_exist:NF \CJKttdefault { \tl_const:Nn \CJKttdefault { tt } }
+\tl_gput_right:Nn \CTEX at rmfamilyhook { \CJKfamily { \CJKrmdefault } }
+\tl_gput_right:Nn \CTEX at sffamilyhook { \CJKfamily { \CJKsfdefault } }
+\tl_gput_right:Nn \CTEX at ttfamilyhook { \CJKfamily { \CJKttdefault } }
+\tl_gput_right:Nn \CTEX at defaultfamilyhook { \CJKfamily { \CJKfamilydefault } }
+%</pdftex|luatex>
+% \end{macrocode}
+% \upLaTeX 不需要补丁 \tn{normalfont},只需要修改 \tn{kanjifamilydefault}。
+% \begin{macrocode}
+%<*uptex|aptex>
+\tl_if_exist:NF \CJKrmdefault { \tl_const:Nn \CJKrmdefault { zhrm } }
+\tl_if_exist:NF \CJKsfdefault { \tl_const:Nn \CJKsfdefault { zhsf } }
+\tl_if_exist:NF \CJKttdefault { \tl_const:Nn \CJKttdefault { zhtt } }
+\tl_gput_right:Nn \CTEX at rmfamilyhook { \kanjifamily { \CJKrmdefault } }
+\tl_gput_right:Nn \CTEX at sffamilyhook { \kanjifamily { \CJKsfdefault } }
+\tl_gput_right:Nn \CTEX at ttfamilyhook { \kanjifamily { \CJKttdefault } }
+\tl_gset:Nn \kanjifamilydefault { \CJKfamilydefault }
+%</uptex|aptex>
+% \end{macrocode}
+%
+% \pkg{zhmCJK} 判断结束。
+% \begin{macrocode}
+%<pdftex>\fi:
+% \end{macrocode}
+%
+% 使修改立刻生效,保证导言区字体族正确。
+% \begin{macrocode}
+\normalfont
+% \end{macrocode}
+%
+% 在导言区末尾更新 \tn{CJKfamilydefault},\pdfTeX 已经在之前使用过此处代码。
+% \begin{macrocode}
+%<!pdftex>\ctex_at_end_preamble:n { \ctex_update_default_family: }
+% \end{macrocode}
+%
% \changes{v2.4}{2016/02/15}{正确更新 \pkg{CJK} 包的 \tn{CJKfamilydefault}。}
% \changes{v2.4.1}{2016/04/26}{正确更新 \upLaTeX{} 的 \tn{CJKfamilydefault}。}
%
@@ -6304,7 +6390,6 @@
% 在导言区结束,如果 \tn{CJKfamilydefault} 没有被更改,则在此时根据西文字体的情况
% 更新 \tn{CJKfamilydefault}。\pkg{xeCJK} 已经有这个功能,不需要再调整。
% \begin{macrocode}
-%<*pdftex|luatex|uptex|aptex>
\cs_new_protected:Npn \ctex_update_default_family:
{
\tl_if_eq:NNT \CJKfamilydefault \l_@@_family_default_init_tl
@@ -6328,9 +6413,7 @@
% 确认它的存在性。使用 \pkg{CJK} 宏包或 \upLaTeX{}
% 时,\texttt{C19rm}、\texttt{JY2rm} 等总是有定义的,不需要确认。
% \begin{macrocode}
-%<*luatex>
- \ctex_ltj_ensure_default_family:
-%</luatex>
+%<luatex> \ctex_ltj_ensure_default_family:
}
% \end{macrocode}
% \end{macro}
@@ -6346,10 +6429,13 @@
{ \exp_not:o { \CJKfamilydefault } }
}
\tl_gset_eq:NN \CJKfamilydefault \l_@@_family_default_init_tl
-%</pdftex|luatex|uptex|aptex>
% \end{macrocode}
% \end{variable}
%
+% \begin{macrocode}
+%</pdftex|luatex|uptex|aptex>
+% \end{macrocode}
+%
% \changes{v2.0}{2014/04/16}{自动检测操作系统,载入对应的字体配置。}
% \changes{v2.5}{2019/10/25}{操作系统检测移动至载入中文字库处,且不再需要
% 依赖特定引擎。}
@@ -6953,35 +7039,39 @@
\ctex_update_em_unit:
\dim_set:Nn \l_@@_tmp_dim { \l_@@_line_stretch_tl }
\dim_compare:nNnTF \l_@@_tmp_dim = \c_max_dim
+ { \@@_update_stretch_auxi: }
+ { \@@_update_stretch_auxii: }
+ }
+\cs_new_protected:Npn \@@_update_stretch_auxi:
+ {
+ \ctex_if_ccglue_touched:TF
+ { \ctex_update_ccwd: }
{
- \ctex_if_ccglue_touched:TF
- { \ctex_update_ccwd: }
- {
- \dim_set:Nn \l_@@_tmp_dim
- { \baselinestretch \tex_glueexpr:D \f at baselineskip \scan_stop: }
- \skip_set:Nn \l_@@_ccglue_skip
- { \c_zero_dim plus .08 \l_@@_tmp_dim }
- \ctex_update_ccglue:
- }
+ \dim_set:Nn \l_@@_tmp_dim
+ { \baselinestretch \tex_glueexpr:D \f at baselineskip \scan_stop: }
+ \skip_set:Nn \l_@@_ccglue_skip
+ { \c_zero_dim plus .08 \l_@@_tmp_dim }
+ \ctex_update_ccglue:
}
+ }
+\cs_new_protected:Npn \@@_update_stretch_auxii:
+ {
+ \int_set:Nn \l_@@_tmp_int
+ { \tex_dimexpr:D \linewidth - \ccwd - \l_@@_tmp_dim \scan_stop: }
+ \tex_divide:D \l_@@_tmp_int \ccwd
+ \int_compare:nNnTF \l_@@_tmp_int > \c_zero_int
{
- \int_set:Nn \l_@@_tmp_int
- { \tex_dimexpr:D \linewidth - \ccwd - \l_@@_tmp_dim \scan_stop: }
- \tex_divide:D \l_@@_tmp_int \ccwd
- \int_compare:nNnTF \l_@@_tmp_int > \c_zero_int
+ \skip_set:Nn \l_@@_ccglue_skip
{
- \skip_set:Nn \l_@@_ccglue_skip
+ \c_zero_dim plus \dim_eval:n
{
- \c_zero_dim plus \dim_eval:n
- {
- ( \linewidth - \ccwd - \l_@@_tmp_int \ccwd ) /
- \l_@@_tmp_int
- }
+ ( \linewidth - \ccwd - \l_@@_tmp_int \ccwd ) /
+ \l_@@_tmp_int
}
}
- { \skip_zero:N \l_@@_ccglue_skip }
- \ctex_update_ccglue:
}
+ { \skip_zero:N \l_@@_ccglue_skip }
+ \ctex_update_ccglue:
}
% \end{macrocode}
% \end{macro}
@@ -8766,6 +8856,59 @@
%</beamer>
% \end{macrocode}
%
+% \subsubsection{标题编号和目录的层次设置}
+%
+% \changes{v2.5.2}{2020/05/06}{新增标题选项 \opt{secnumdepth} 和 \opt{tocdepth}。}
+%
+% \begin{macro}{secnumdepth, tocdepth}
+% \opt{secnumdepth} 在 \cls{beamer} 下无意义。
+% \begin{macrocode}
+\ctex_define:n
+ {
+%<*!beamer>
+ secnumdepth .code:n = \ctex_heading_depth:ne { secnumdepth } {#1} ,
+ secnumdepth .value_required:n = true ,
+%</!beamer>
+ tocdepth .code:n = \ctex_heading_depth:ne { tocdepth } {#1} ,
+ tocdepth .value_required:n = true
+ }
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}[int]{\ctex_heading_depth:nn}
+% 注意此处 \tn{setcounter} 的赋值是全局的。
+% \begin{macrocode}
+\cs_new_protected:Npn \ctex_heading_depth:nn #1#2
+ {
+ \prop_get:NnNTF \c_@@_heading_level_prop {#2} \l_@@_tmp_tl
+ { \setcounter {#1} { \l_@@_tmp_tl } }
+ { \setcounter {#1} { \int_eval:n {#2} } }
+ }
+\cs_generate_variant:Nn \ctex_heading_depth:nn { ne }
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{variable}[int]{\c_@@_heading_level_prop}
+% 章节层次与名称的对应表。
+% \begin{macrocode}
+\prop_const_from_keyval:Nn \c_@@_heading_level_prop
+ {
+%<*article|beamer>
+ part = 0 ,
+%</article|beamer>
+%<*book|report>
+ part = -1 ,
+ chapter = 0 ,
+%</book|report>
+ section = 1 ,
+ subsection = 2 ,
+ subsubsection = 3 ,
+ paragraph = 4 ,
+ subparagraph = 5
+ }
+% \end{macrocode}
+% \end{variable}
+%
% \subsubsection{标签引用数字的汉化}
%
% \begin{macro}[int]{\refstepcounter}
@@ -9082,7 +9225,7 @@
%
% 处理 \opt{sub3section} 与 \opt{sub4section} 的格式。
% \begin{macrocode}
-\int_compare:nNnTF \g__ctex_section_depth_int > 2
+\int_compare:nNnTF \g_@@_section_depth_int > 2
{
\ctex_set:nn { paragraph }
{
@@ -9098,7 +9241,7 @@
runin = true
}
}
-\int_compare:nNnTF \g__ctex_section_depth_int > 3
+\int_compare:nNnTF \g_@@_section_depth_int > 3
{
\ctex_set:nn { subparagraph }
{
@@ -9114,7 +9257,7 @@
runin = true
}
}
-\int_compare:nNnTF \g__ctex_section_depth_int > 2
+\int_compare:nNnTF \g_@@_section_depth_int > 2
{ \ctex_set:nn { subparagraph } { indent = \c_zero_dim } }
{ \ctex_set:nn { subparagraph } { indent = \parindent } }
% \end{macrocode}
@@ -9673,7 +9816,7 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{\ctex_fontset_case:nnn}
+% \begin{macro}[int]{\ctex_fontset_case:nnn}
% $3$ 个参数依次为 \pdfTeX、\upTeX\ 和 \XeTeX/\LuaTeX。
% \begin{macrocode}
\cs_new:Npx \ctex_fontset_case:nnn #1#2#3
@@ -9685,7 +9828,7 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{\ctex_fontset_case:nnnn}
+% \begin{macro}[int]{\ctex_fontset_case:nnnn}
% $4$ 个参数依次为 \pdfTeX(生成 PDF)、\pdfTeX(生成 DVI)、\upTeX 和
% \XeTeX/\LuaTeX。
% \begin{macrocode}
@@ -10028,7 +10171,7 @@
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
}
{
- \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { zhadobefonts }
+ \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { adobe }
\ctex_punct_set:n { adobe }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
@@ -10098,7 +10241,7 @@
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
}
{
- \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { zhfandolfonts }
+ \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { fandol }
\ctex_punct_set:n { fandol }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
@@ -10172,7 +10315,7 @@
\ctex_punct_map_bfseries:nn { zhyou } { zhyoub }
}
{
- \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { zhfounderfonts }
+ \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { founder }
\ctex_punct_set:n { founder }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
@@ -10214,6 +10357,9 @@
%</founder>
% \end{macrocode}
%
+% \changes{v2.5.2}{2020/05/06}
+% {修正 \opt{macnew} 和 \opt{ubuntu} 字库的 \pkg{CJKpunct} 标点信息。}
+%
% \paragraph{\opt{mac} 相关}
%
% \changes{v2.4.14}{2018/05/01}{区分 \opt{macold} 及 \opt{macnew}。}
@@ -10273,18 +10419,19 @@
\setCJKfamilyfont { zhyou } { :4:Yuanti.ttc } [ BoldFont = :0:Yuanti.ttc ]
\ctex_punct_set:n { mac }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
- \ctex_punct_map_family:nn { \CJKsfdefault } { zhheil }
+ \ctex_punct_map_family:nn { \CJKsfdefault } { zhpf }
\ctex_punct_map_family:nn { \CJKttdefault } { zhfs }
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
\ctex_punct_map_bfseries:nn { \CJKrmdefault, zhsong } { zhsongb }
- \ctex_punct_map_bfseries:nn { \CJKsfdefault } { zhhei }
+ \ctex_punct_map_bfseries:nn { \CJKsfdefault, zhhei } { zhpfb }
\ctex_punct_map_bfseries:nn { zhyou } { zhyoub }
}
{
- \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { zhmacfonts }
+ \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { mac }
\ctex_punct_set:n { mac }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
- \ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
+ \ctex_punct_map_family:nn { \CJKsfdefault } { zhpf }
+ \ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhpf }
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
}
{ \ctex_fontset_error:n { macnew } }
@@ -10359,15 +10506,18 @@
\setCJKfamilyfont { zhhei } { :2:NotoSansCJK-Regular.ttc }
[ BoldFont = :2:NotoSansCJK-Bold.ttc ]
\setCJKfamilyfont { zhkai } { gkai00mp.ttf }
- \ctex_punct_set:n { fandol }
- \ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
- \ctex_punct_map_family:nn { \CJKsfdefault } { zhhei }
- \ctex_punct_map_bfseries:nn { \CJKrmdefault, zhsong } { zhsongb }
- \ctex_punct_map_bfseries:nn { \CJKsfdefault, zhhei } { zhheib }
- \ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
+ \ctex_punct_set:n { ubuntu }
+ \ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
+ \ctex_punct_map_family:nn { \CJKsfdefault } { zhhei }
+ \ctex_punct_map_family:nn { \CJKttdefault } { zhsong }
+ \ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
+ \ctex_punct_map_bfseries:nn { \CJKsfdefault, zhhei } { zhheib }
+ \ctex_punct_map_bfseries:nn
+ { \CJKrmdefault, \CJKttdefault, zhsong }
+ { zhsongb }
}
{
- \ctex_load_zhmap:nnnn { rm } { zhhei } { zhsong } { zhubuntufonts }
+ \ctex_load_zhmap:nnnn { rm } { zhhei } { zhsong } { ubuntu }
\ctex_punct_set:n { ubuntu }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
@@ -10448,17 +10598,13 @@
\ctex_punct_map_family:nn { \CJKttdefault } { zhfs }
}
{
- \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { zhwindowsfonts }
+ \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { windows }
\ctex_punct_set:n { windows }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
}
- {
- \tl_set:Nn \CJKrmdefault { rm }
- \tl_set:Nn \CJKsfdefault { sf }
- \tl_set:Nn \CJKttdefault { tt }
- }
+ { }
}
{
\ctex_set_upfonts:nnnnnn
@@ -10533,6 +10679,9 @@
%
% \subsubsection{\pkg{zhmetrics} 的字体映射}
%
+% \changes{v2.5.2}{2020/05/05}{\file{zhadobefonts.tex} 等字体映射文件更名为
+% \file{ctex-zhmap-*.tex}。}
+%
% 确认 \tn{catcode},没有重复载入检查。
% \begin{macrocode}
%<*zhmap>
@@ -10600,21 +10749,21 @@
%
% 文件标识信息。
% \begin{macrocode}
-%<adobe>\ProvidesFile{zhadobefonts.tex}%
-%<adobe> [2020/05/02 v2.5.1 Adobe font map loader for DVIPDFMx (CTEX)]
-%<fandol>\ProvidesFile{zhfandolfonts.tex}%
-%<fandol> [2020/05/02 v2.5.1 Fandol font map loader for DVIPDFMx (CTEX)]
-%<founder>\ProvidesFile{zhfounderfonts.tex}%
-%<founder> [2020/05/02 v2.5.1 Founder font map loader for pdfTeX and DVIPDFMx (CTEX)]
-%<mac>\ProvidesFile{zhmacfonts.tex}%
-%<mac> [2020/05/02 v2.5.1 Mac font map loader for pdfTeX and DVIPDFMx (CTEX)]
-%<ubuntu>\ProvidesFile{zhubuntufonts.tex}%
-%<ubuntu> [2020/05/02 v2.5.1 Ubuntu font map loader for pdfTeX and DVIPDFMx (CTEX)]
-%<windows>\ProvidesFile{zhwindowsfonts.tex}%
-%<windows> [2020/05/02 v2.5.1 Windows font map loader for pdfTeX and DVIPDFMx (CTEX)]
+%<adobe>\ProvidesFile{ctex-zhmap-adobe.tex}%
+%<adobe> [2020/05/16 v2.5.2 Adobe font map loader for DVIPDFMx (CTEX)]
+%<fandol>\ProvidesFile{ctex-zhmap-fandol.tex}%
+%<fandol> [2020/05/16 v2.5.2 Fandol font map loader for DVIPDFMx (CTEX)]
+%<founder>\ProvidesFile{ctex-zhmap-founder.tex}%
+%<founder> [2020/05/16 v2.5.2 Founder font map loader for pdfTeX and DVIPDFMx (CTEX)]
+%<mac>\ProvidesFile{ctex-zhmap-mac.tex}%
+%<mac> [2020/05/16 v2.5.2 Mac font map loader for DVIPDFMx (CTEX)]
+%<ubuntu>\ProvidesFile{ctex-zhmap-ubuntu.tex}%
+%<ubuntu> [2020/05/16 v2.5.2 Ubuntu font map loader for DVIPDFMx (CTEX)]
+%<windows>\ProvidesFile{ctex-zhmap-windows.tex}%
+%<windows> [2020/05/16 v2.5.2 Windows font map loader for pdfTeX and DVIPDFMx (CTEX)]
% \end{macrocode}
%
-% \paragraph{\pkg{zhadobefonts.tex}}
+% \paragraph{\pkg{ctex-zhmap-adobe.tex}}
%
% \begin{macrocode}
%<*adobe>
@@ -10643,7 +10792,7 @@
%</adobe>
% \end{macrocode}
%
-% \paragraph{\pkg{zhfandolfonts.tex}}
+% \paragraph{\pkg{ctex-zhmap-fandol.tex}}
%
% \begin{macrocode}
%<*fandol>
@@ -10672,7 +10821,7 @@
%</fandol>
% \end{macrocode}
%
-% \paragraph{\pkg{zhfounderfonts.tex}}
+% \paragraph{\pkg{ctex-zhmap-founder.tex}}
%
% \begin{macrocode}
%<*founder>
@@ -10734,7 +10883,7 @@
%</founder>
% \end{macrocode}
%
-% \paragraph{\pkg{zhmacfonts.tex}}
+% \paragraph{\pkg{ctex-zhmap-mac.tex}}
%
% \changes{v2.5}{2020/01/15}{增加字体映射文件 \file{zhmacfonts.tex}。}
%
@@ -10773,7 +10922,7 @@
%</mac>
% \end{macrocode}
%
-% \paragraph{\pkg{zhubuntufonts.tex}}
+% \paragraph{\pkg{ctex-zhmap-ubuntu.tex}}
%
% \begin{macrocode}
%<*ubuntu>
@@ -10802,7 +10951,7 @@
%</ubuntu>
% \end{macrocode}
%
-% \paragraph{\pkg{zhwindowsfonts.tex}}
+% \paragraph{\pkg{ctex-zhmap-windows.tex}}
%
% \begin{macrocode}
%<*windows>
@@ -10871,6 +11020,9 @@
%
% \subsubsection{制作 \texttt{spa} 文件}
%
+% \changes{v2.5.2}{2020/05/05}{\file{ctexmakespa.tex} 更名为 \file{ctex-spa-make.tex}。}
+% \changes{v2.5.2}{2020/05/05}{\file{ctexspamacro.tex} 更名为 \file{ctex-spa-macro.tex}。}
+%
% 我们通过 \XeTeX{} 的 \tn{XeTeXglyphbounds} 取得字体中标点符号的边界信息,为
% \pkg{CJKpunct} 宏包制作 \file{spa}。
%
@@ -10970,7 +11122,7 @@
% 下面是 \CTeX{} 定义的一些字体。
% \begin{macrocode}
%<*make>
-\input ctexspamacro %
+\input ctex-spa-macro %
\MAKESPA {ctexpunct.spa}
{
{adobezhsong} {AdobeSongStd-Light} ,
Modified: trunk/Master/texmf-dist/source/latex/ctex/ctex.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/ctex/ctex.ins 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/source/latex/ctex/ctex.ins 2020-05-16 21:26:14 UTC (rev 55162)
@@ -115,14 +115,14 @@
ctex-fontset-windows.def,
ctexspa.def,
ctexpunct.spa,
- ctexmakespa.tex,
- ctexspamacro.tex,
- zhadobefonts.tex,
- zhfandolfonts.tex,
- zhfounderfonts.tex,
- zhmacfonts.tex,
- zhubuntufonts.tex,
- zhwindowsfonts.tex,
+ ctex-spa-make.tex,
+ ctex-spa-macro.tex,
+ ctex-zhmap-adobe.tex,
+ ctex-zhmap-fandol.tex,
+ ctex-zhmap-founder.tex,
+ ctex-zhmap-mac.tex,
+ ctex-zhmap-ubuntu.tex,
+ ctex-zhmap-windows.tex,
ctex-zhconv-index.lua,
translator-theorem-dictionary-ChineseGBK.dict,
translator-theorem-dictionary-ChineseUTF8.dict, and
@@ -196,14 +196,14 @@
\file{ctexspa.def} {\from{\jobname.dtx}{ctexspa}
\from{ctexpunct.spa}{}}
\usedir{tex/generic/ctex}
- \file{ctexmakespa.tex} {\from{\jobname.dtx}{spa,make}}
- \file{ctexspamacro.tex} {\from{\jobname.dtx}{spa,macro}}
- \file{zhadobefonts.tex} {\from{\jobname.dtx}{zhmap,adobe}}
- \file{zhfandolfonts.tex} {\from{\jobname.dtx}{zhmap,fandol}}
- \file{zhfounderfonts.tex} {\from{\jobname.dtx}{zhmap,founder}}
- \file{zhmacfonts.tex} {\from{\jobname.dtx}{zhmap,mac}}
- \file{zhubuntufonts.tex} {\from{\jobname.dtx}{zhmap,ubuntu}}
- \file{zhwindowsfonts.tex} {\from{\jobname.dtx}{zhmap,windows}}
+ \file{ctex-spa-make.tex} {\from{\jobname.dtx}{spa,make}}
+ \file{ctex-spa-macro.tex} {\from{\jobname.dtx}{spa,macro}}
+ \file{ctex-zhmap-adobe.tex} {\from{\jobname.dtx}{zhmap,adobe}}
+ \file{ctex-zhmap-fandol.tex} {\from{\jobname.dtx}{zhmap,fandol}}
+ \file{ctex-zhmap-founder.tex} {\from{\jobname.dtx}{zhmap,founder}}
+ \file{ctex-zhmap-mac.tex} {\from{\jobname.dtx}{zhmap,mac}}
+ \file{ctex-zhmap-ubuntu.tex} {\from{\jobname.dtx}{zhmap,ubuntu}}
+ \file{ctex-zhmap-windows.tex} {\from{\jobname.dtx}{zhmap,windows}}
\nopreamble\nopostamble
\usedir{doc/latex/ctex}
\file{README.md} {\from{\jobname.dtx}{readme}}
@@ -275,14 +275,14 @@
\Msg{* ctex-fontset-ubuntu.def *}
\Msg{* ctex-fontset-windows.def *}
\Msg{* ctexspa.def *}
-\Msg{* ctexmakespa.tex *}
-\Msg{* ctexspamacro.tex *}
-\Msg{* zhadobefonts.tex *}
-\Msg{* zhfandolfonts.tex *}
-\Msg{* zhfounderfonts.tex *}
-\Msg{* zhmacfonts.tex *}
-\Msg{* zhubuntufonts.tex *}
-\Msg{* zhwindowsfonts.tex *}
+\Msg{* ctex-spa-make.tex *}
+\Msg{* ctex-spa-macro.tex *}
+\Msg{* ctex-zhmap-adobe.tex *}
+\Msg{* ctex-zhmap-fandol.tex *}
+\Msg{* ctex-zhmap-founder.tex *}
+\Msg{* ctex-zhmap-mac.tex *}
+\Msg{* ctex-zhmap-ubuntu.tex *}
+\Msg{* ctex-zhmap-windows.tex *}
\Msg{* translator-theorem-dictionary-ChineseGBK.dict *}
\Msg{* translator-theorem-dictionary-ChineseUTF8.dict *}
\Msg{* *}
Added: trunk/Master/texmf-dist/tex/generic/ctex/ctex-spa-macro.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/ctex-spa-macro.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/ctex/ctex-spa-macro.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -0,0 +1,91 @@
+%%
+%% This is file `ctex-spa-macro.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ctex.dtx (with options: `spa,macro')
+%%
+%% Copyright (C) 2003--2020
+%% CTEX.ORG and any individual authors listed in the documentation.
+%% ---------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version. This version of this license is in
+%% http://www.latex-project.org/lppl/lppl-1-3c.txt
+%% and the latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% ---------------------------------------------------------------------
+%%
+\input expl3-generic %
+\ExplSyntaxOn
+\sys_if_engine_xetex:F
+ {
+ \msg_new:nnn { ctex } { xetex }
+ { XeTeX~is~required~to~compile~this~document! }
+ \msg_fatal:nn { ctex } { xetex }
+ }
+\seq_const_from_clist:Nn \c__ctex_punct_seq
+ {
+ "2018 , "201C , "300C , "300E , "3014 , "FF08 , "FF3B , "FF5B ,
+ "3008 , "300A , "3016 , "3010 ,
+ "2014 , "2026 , "3001 , "3002 , "FF0C , "FF0E , "FF1A , "FF1B ,
+ "FF01 , "FF1F , "FF05 , "3015 , "FF09 , "FF3D , "FF5D , "3009 ,
+ "300B , "3017 , "3011 , "2019 , "201D , "300D , "300F
+ }
+\cs_new_protected:Npn \ctex_make_spa:nn #1#2
+ {
+ \iow_open:Nn \g__ctex_spa_iow {#1}
+ \clist_map_inline:nn {#2}
+ { \__ctex_write_family:nn ##1 }
+ \iow_close:N \g__ctex_spa_iow
+ }
+\iow_new:N \g__ctex_spa_iow
+\cs_new_eq:NN \MAKESPA \ctex_make_spa:nn
+\cs_new_protected:Npn \__ctex_write_family:nn #1#2
+ {
+ \group_begin:
+ \tex_font:D \l__ctex_punct_font = "#2" ~ at ~ 100 pt \scan_stop:
+ \l__ctex_punct_font
+ \clist_clear:N \l__ctex_punct_bounds_clist
+ \seq_map_inline:Nn \c__ctex_punct_seq
+ { \exp_args:No \__ctex_save_bounds:n { \int_use:N \tex_XeTeXcharglyph:D ##1 } }
+ \iow_now:Nx \g__ctex_spa_iow
+ {
+ \token_to_str:N \ctexspadef {#1}
+ { \l__ctex_punct_bounds_clist , , , }
+ }
+ \group_end:
+ }
+\cs_new_protected:Npn \__ctex_save_bounds:n #1
+ {
+ \clist_put_right:Nx \l__ctex_punct_bounds_clist
+ {
+ \__ctex_calc_bounds:nn { 1 } {#1} ,
+ \__ctex_calc_bounds:nn { 3 } {#1}
+ }
+ }
+\clist_new:N \l__ctex_punct_bounds_clist
+\cs_new:Npn \__ctex_calc_bounds:nn #1#2
+ {
+ \fp_eval:n
+ {
+ round
+ (
+ \dim_to_decimal_in_unit:nn
+ { 100 \tex_XeTeXglyphbounds:D #1 ~ #2 }
+ { 1 em }
+ )
+ }
+ }
+\ExplSyntaxOff
+%%
+%%
+%% End of file `ctex-spa-macro.tex'.
Property changes on: trunk/Master/texmf-dist/tex/generic/ctex/ctex-spa-macro.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/ctex/ctex-spa-make.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/ctex-spa-make.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/ctex/ctex-spa-make.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -0,0 +1,78 @@
+%%
+%% This is file `ctex-spa-make.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ctex.dtx (with options: `spa,make')
+%%
+%% Copyright (C) 2003--2020
+%% CTEX.ORG and any individual authors listed in the documentation.
+%% ---------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version. This version of this license is in
+%% http://www.latex-project.org/lppl/lppl-1-3c.txt
+%% and the latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% ---------------------------------------------------------------------
+%%
+\input ctex-spa-macro %
+\MAKESPA {ctexpunct.spa}
+ {
+ {adobezhsong} {AdobeSongStd-Light} ,
+ {adobezhhei} {AdobeHeitiStd-Regular} ,
+ {adobezhkai} {AdobeKaitiStd-Regular} ,
+ {adobezhfs} {AdobeFangsongStd-Regular} ,
+ {fandolzhsong} {FandolSong} ,
+ {fandolzhsongb} {FandolSong-Bold} ,
+ {fandolzhhei} {FandolHei} ,
+ {fandolzhheib} {FandolHei-Bold} ,
+ {fandolzhkai} {FandolKai} ,
+ {fandolzhfs} {FandolFang} ,
+ {founderzhsong} {FZShuSong-Z01} ,
+ {founderzhsongb} {FZXiaoBiaoSong-B05} ,
+ {founderzhhei} {FZHei-B01} ,
+ {founderzhheil} {FZXiHeiI-Z08} ,
+ {founderzhkai} {FZKai-Z03} ,
+ {founderzhfs} {FZFangSong-Z02} ,
+ {founderzhli} {FZLiShu-S01} ,
+ {founderzhyou} {FZXiYuan-M01} ,
+ {founderzhyoub} {FZZhunYuan-M02} ,
+ {maczhsong} {Songti SC Light} ,
+ {maczhsongb} {Songti SC Bold} ,
+ {maczhhei} {Heiti SC Medium} ,
+ {maczhheil} {Heiti SC Light} ,
+ {maczhkai} {Kaiti SC} ,
+ {maczhkaib} {Kaiti SC Bold} ,
+ {maczhfs} {STFangsong} ,
+ {maczhli} {Baoli SC} ,
+ {maczhyou} {Yuanti SC Light} ,
+ {maczhyoub} {Yuanti SC Regular} ,
+ {maczhpf} {PingFang SC} ,
+ {maczhpfb} {PingFang SC Semibold} ,
+ {ubuntuzhsong} {Noto Serif CJK SC} ,
+ {ubuntuzhsongb} {Noto Serif CJK SC Bold} ,
+ {ubuntuzhhei} {Noto Sans CJK SC} ,
+ {ubuntuzhheib} {Noto Sans CJK SC Bold} ,
+ {ubuntuzhkai} {AR PL KaitiM GB} ,
+ {windowszhsong} {SimSun} ,
+ {windowszhhei} {SimHei} ,
+ {windowszhkai} {KaiTi} ,
+ {windowszhfs} {FangSong} ,
+ {windowszhli} {LiSu} ,
+ {windowszhyou} {YouYuan} ,
+ {windowszhyahei} {Microsoft YaHei} ,
+ {windowszhyaheib} {Microsoft YaHei Bold}
+ }
+\primitive\end
+%%
+%%
+%% End of file `ctex-spa-make.tex'.
Property changes on: trunk/Master/texmf-dist/tex/generic/ctex/ctex-spa-make.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/tex/generic/ctex/ctexmakespa.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/ctexmakespa.tex 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/generic/ctex/ctexmakespa.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -1,78 +0,0 @@
-%%
-%% This is file `ctexmakespa.tex',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% ctex.dtx (with options: `spa,make')
-%%
-%% Copyright (C) 2003--2020
-%% CTEX.ORG and any individual authors listed in the documentation.
-%% ---------------------------------------------------------------------
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any later
-%% version. This version of this license is in
-%% http://www.latex-project.org/lppl/lppl-1-3c.txt
-%% and the latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% ---------------------------------------------------------------------
-%%
-\input ctexspamacro %
-\MAKESPA {ctexpunct.spa}
- {
- {adobezhsong} {AdobeSongStd-Light} ,
- {adobezhhei} {AdobeHeitiStd-Regular} ,
- {adobezhkai} {AdobeKaitiStd-Regular} ,
- {adobezhfs} {AdobeFangsongStd-Regular} ,
- {fandolzhsong} {FandolSong} ,
- {fandolzhsongb} {FandolSong-Bold} ,
- {fandolzhhei} {FandolHei} ,
- {fandolzhheib} {FandolHei-Bold} ,
- {fandolzhkai} {FandolKai} ,
- {fandolzhfs} {FandolFang} ,
- {founderzhsong} {FZShuSong-Z01} ,
- {founderzhsongb} {FZXiaoBiaoSong-B05} ,
- {founderzhhei} {FZHei-B01} ,
- {founderzhheil} {FZXiHeiI-Z08} ,
- {founderzhkai} {FZKai-Z03} ,
- {founderzhfs} {FZFangSong-Z02} ,
- {founderzhli} {FZLiShu-S01} ,
- {founderzhyou} {FZXiYuan-M01} ,
- {founderzhyoub} {FZZhunYuan-M02} ,
- {maczhsong} {Songti SC Light} ,
- {maczhsongb} {Songti SC Bold} ,
- {maczhhei} {Heiti SC Medium} ,
- {maczhheil} {Heiti SC Light} ,
- {maczhkai} {Kaiti SC} ,
- {maczhkaib} {Kaiti SC Bold} ,
- {maczhfs} {STFangsong} ,
- {maczhli} {Baoli SC} ,
- {maczhyou} {Yuanti SC Light} ,
- {maczhyoub} {Yuanti SC Regular} ,
- {maczhpf} {PingFang SC} ,
- {maczhpfb} {PingFang SC Semibold} ,
- {ubuntuzhsong} {Noto Serif CJK SC} ,
- {ubuntuzhsongb} {Noto Serif CJK SC Bold} ,
- {ubuntuzhhei} {Noto Sans CJK SC} ,
- {ubuntuzhheib} {Noto Sans CJK SC Bold} ,
- {ubuntuzhkai} {AR PL KaitiM GB} ,
- {windowszhsong} {SimSun} ,
- {windowszhhei} {SimHei} ,
- {windowszhkai} {KaiTi} ,
- {windowszhfs} {FangSong} ,
- {windowszhli} {LiSu} ,
- {windowszhyou} {YouYuan} ,
- {windowszhyahei} {Microsoft YaHei} ,
- {windowszhyaheib} {Microsoft YaHei Bold}
- }
-\primitive\end
-%%
-%%
-%% End of file `ctexmakespa.tex'.
Deleted: trunk/Master/texmf-dist/tex/generic/ctex/ctexspamacro.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/ctexspamacro.tex 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/generic/ctex/ctexspamacro.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -1,91 +0,0 @@
-%%
-%% This is file `ctexspamacro.tex',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% ctex.dtx (with options: `spa,macro')
-%%
-%% Copyright (C) 2003--2020
-%% CTEX.ORG and any individual authors listed in the documentation.
-%% ---------------------------------------------------------------------
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any later
-%% version. This version of this license is in
-%% http://www.latex-project.org/lppl/lppl-1-3c.txt
-%% and the latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% ---------------------------------------------------------------------
-%%
-\input expl3-generic %
-\ExplSyntaxOn
-\sys_if_engine_xetex:F
- {
- \msg_new:nnn { ctex } { xetex }
- { XeTeX~is~required~to~compile~this~document! }
- \msg_fatal:nn { ctex } { xetex }
- }
-\seq_const_from_clist:Nn \c__ctex_punct_seq
- {
- "2018 , "201C , "300C , "300E , "3014 , "FF08 , "FF3B , "FF5B ,
- "3008 , "300A , "3016 , "3010 ,
- "2014 , "2026 , "3001 , "3002 , "FF0C , "FF0E , "FF1A , "FF1B ,
- "FF01 , "FF1F , "FF05 , "3015 , "FF09 , "FF3D , "FF5D , "3009 ,
- "300B , "3017 , "3011 , "2019 , "201D , "300D , "300F
- }
-\cs_new_protected:Npn \ctex_make_spa:nn #1#2
- {
- \iow_open:Nn \g__ctex_spa_iow {#1}
- \clist_map_inline:nn {#2}
- { \__ctex_write_family:nn ##1 }
- \iow_close:N \g__ctex_spa_iow
- }
-\iow_new:N \g__ctex_spa_iow
-\cs_new_eq:NN \MAKESPA \ctex_make_spa:nn
-\cs_new_protected:Npn \__ctex_write_family:nn #1#2
- {
- \group_begin:
- \tex_font:D \l__ctex_punct_font = "#2" ~ at ~ 100 pt \scan_stop:
- \l__ctex_punct_font
- \clist_clear:N \l__ctex_punct_bounds_clist
- \seq_map_inline:Nn \c__ctex_punct_seq
- { \exp_args:No \__ctex_save_bounds:n { \int_use:N \tex_XeTeXcharglyph:D ##1 } }
- \iow_now:Nx \g__ctex_spa_iow
- {
- \token_to_str:N \ctexspadef {#1}
- { \l__ctex_punct_bounds_clist , , , }
- }
- \group_end:
- }
-\cs_new_protected:Npn \__ctex_save_bounds:n #1
- {
- \clist_put_right:Nx \l__ctex_punct_bounds_clist
- {
- \__ctex_calc_bounds:nn { 1 } {#1} ,
- \__ctex_calc_bounds:nn { 3 } {#1}
- }
- }
-\clist_new:N \l__ctex_punct_bounds_clist
-\cs_new:Npn \__ctex_calc_bounds:nn #1#2
- {
- \fp_eval:n
- {
- round
- (
- \dim_to_decimal_in_unit:nn
- { 100 \tex_XeTeXglyphbounds:D #1 ~ #2 }
- { 1 em }
- )
- }
- }
-\ExplSyntaxOff
-%%
-%%
-%% End of file `ctexspamacro.tex'.
Deleted: trunk/Master/texmf-dist/tex/generic/ctex/zhadobefonts.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/zhadobefonts.tex 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/generic/ctex/zhadobefonts.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -1,103 +0,0 @@
-%%
-%% This is file `zhadobefonts.tex',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% ctex.dtx (with options: `zhmap,adobe')
-%%
-%% Copyright (C) 2003--2020
-%% CTEX.ORG and any individual authors listed in the documentation.
-%% ---------------------------------------------------------------------
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any later
-%% version. This version of this license is in
-%% http://www.latex-project.org/lppl/lppl-1-3c.txt
-%% and the latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% ---------------------------------------------------------------------
-%%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode 35=6 % #
- \catcode123=1 % {
- \catcode125=2 % }
- \toks0{\endlinechar=\the\endlinechar\relax}%
- \toks2{\endlinechar=-1 }%
- \def\x#1 #2 {%
- \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}%
- \toks2\expandafter{\the\toks2 \catcode#1=#2 }}%
- \x 13 5 % carriage return
- \x 32 10 % space
- \x 35 6 % #
- \x 40 12 % (
- \x 41 12 % )
- \x 45 12 % -
- \x 46 12 % .
- \x 47 12 % /
- \x 58 12 % :
- \x 60 12 % <
- \x 61 12 % =
- \x 64 11 % @
- \x 91 12 % [
- \x 93 12 % ]
- \x 123 1 % {
- \x 125 2 % }
- \edef\x#1{\endgroup%
- \edef\noexpand#1{%
- \the\toks0 %
- \let\noexpand\noexpand\noexpand#1%
- \noexpand\noexpand\noexpand\undefined%
- \noexpand\noexpand\noexpand\endinput}%
- \the\toks2}%
-\expandafter\x\csname ctex at zhmap@endinput\endcsname
-\begingroup\expandafter\endgroup
-\expandafter\let\csname ifzhmappdf\expandafter\endcsname\csname
- \expandafter\ifx\csname ifctexpdf\endcsname\relax
- \expandafter\ifx\csname pdfoutput\endcsname\relax
- iffalse\else\ifnum\pdfoutput < 1 iffalse\else iftrue\fi\fi
- \else ifctexpdf\fi
-\endcsname
-\begingroup
-\expandafter\ifx\csname ProvidesFile\endcsname\relax
- \long\def\x#1\ProvidesFile#2[#3]{%
- #1%
- \immediate\write-1{File: #2 #3}%
- \expandafter\xdef\csname ver@#2\endcsname{#3}}
- \expandafter\x%
-\fi
-\endgroup
-\ProvidesFile{zhadobefonts.tex}%
- [2020/05/02 v2.5.1 Adobe font map loader for DVIPDFMx (CTEX)]
-\ifzhmappdf
-%% pdfTeX does not support OTF fonts
-\else
- \special{pdf:mapline gbk at UGBK@ UniGB-UTF16-H AdobeSongStd-Light.otf}
- \special{pdf:mapline gbksong at UGBK@ UniGB-UTF16-H AdobeSongStd-Light.otf}
- \special{pdf:mapline gbkkai at UGBK@ UniGB-UTF16-H AdobeKaitiStd-Regular.otf}
- \special{pdf:mapline gbkhei at UGBK@ UniGB-UTF16-H AdobeHeitiStd-Regular.otf}
- \special{pdf:mapline gbkfs at UGBK@ UniGB-UTF16-H AdobeFangsongStd-Regular.otf}
- \special{pdf:mapline cyberb at Unicode@ UniGB-UTF16-H AdobeSongStd-Light.otf}
- \special{pdf:mapline unisong at Unicode@ UniGB-UTF16-H AdobeSongStd-Light.otf}
- \special{pdf:mapline unikai at Unicode@ UniGB-UTF16-H AdobeKaitiStd-Regular.otf}
- \special{pdf:mapline unihei at Unicode@ UniGB-UTF16-H AdobeHeitiStd-Regular.otf}
- \special{pdf:mapline unifs at Unicode@ UniGB-UTF16-H AdobeFangsongStd-Regular.otf}
- \special{pdf:mapline gbksongsl at UGBK@ UniGB-UTF16-H AdobeSongStd-Light.otf -s .167}
- \special{pdf:mapline gbkkaisl at UGBK@ UniGB-UTF16-H AdobeKaitiStd-Regular.otf -s .167}
- \special{pdf:mapline gbkheisl at UGBK@ UniGB-UTF16-H AdobeHeitiStd-Regular.otf -s .167}
- \special{pdf:mapline gbkfssl at UGBK@ UniGB-UTF16-H AdobeFangsongStd-Regular.otf -s .167}
- \special{pdf:mapline unisongsl at Unicode@ UniGB-UTF16-H AdobeSongStd-Light.otf -s .167}
- \special{pdf:mapline unikaisl at Unicode@ UniGB-UTF16-H AdobeKaitiStd-Regular.otf -s .167}
- \special{pdf:mapline uniheisl at Unicode@ UniGB-UTF16-H AdobeHeitiStd-Regular.otf -s .167}
- \special{pdf:mapline unifssl at Unicode@ UniGB-UTF16-H AdobeFangsongStd-Regular.otf -s .167}
-\fi
-\ctex at zhmap@endinput
-%%
-%%
-%% End of file `zhadobefonts.tex'.
Deleted: trunk/Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -1,103 +0,0 @@
-%%
-%% This is file `zhfandolfonts.tex',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% ctex.dtx (with options: `zhmap,fandol')
-%%
-%% Copyright (C) 2003--2020
-%% CTEX.ORG and any individual authors listed in the documentation.
-%% ---------------------------------------------------------------------
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any later
-%% version. This version of this license is in
-%% http://www.latex-project.org/lppl/lppl-1-3c.txt
-%% and the latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% ---------------------------------------------------------------------
-%%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode 35=6 % #
- \catcode123=1 % {
- \catcode125=2 % }
- \toks0{\endlinechar=\the\endlinechar\relax}%
- \toks2{\endlinechar=-1 }%
- \def\x#1 #2 {%
- \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}%
- \toks2\expandafter{\the\toks2 \catcode#1=#2 }}%
- \x 13 5 % carriage return
- \x 32 10 % space
- \x 35 6 % #
- \x 40 12 % (
- \x 41 12 % )
- \x 45 12 % -
- \x 46 12 % .
- \x 47 12 % /
- \x 58 12 % :
- \x 60 12 % <
- \x 61 12 % =
- \x 64 11 % @
- \x 91 12 % [
- \x 93 12 % ]
- \x 123 1 % {
- \x 125 2 % }
- \edef\x#1{\endgroup%
- \edef\noexpand#1{%
- \the\toks0 %
- \let\noexpand\noexpand\noexpand#1%
- \noexpand\noexpand\noexpand\undefined%
- \noexpand\noexpand\noexpand\endinput}%
- \the\toks2}%
-\expandafter\x\csname ctex at zhmap@endinput\endcsname
-\begingroup\expandafter\endgroup
-\expandafter\let\csname ifzhmappdf\expandafter\endcsname\csname
- \expandafter\ifx\csname ifctexpdf\endcsname\relax
- \expandafter\ifx\csname pdfoutput\endcsname\relax
- iffalse\else\ifnum\pdfoutput < 1 iffalse\else iftrue\fi\fi
- \else ifctexpdf\fi
-\endcsname
-\begingroup
-\expandafter\ifx\csname ProvidesFile\endcsname\relax
- \long\def\x#1\ProvidesFile#2[#3]{%
- #1%
- \immediate\write-1{File: #2 #3}%
- \expandafter\xdef\csname ver@#2\endcsname{#3}}
- \expandafter\x%
-\fi
-\endgroup
-\ProvidesFile{zhfandolfonts.tex}%
- [2020/05/02 v2.5.1 Fandol font map loader for DVIPDFMx (CTEX)]
-\ifzhmappdf
-%% pdfTeX does not support OTF fonts
-\else
- \special{pdf:mapline gbk at UGBK@ UniGB-UTF16-H FandolSong-Regular.otf}
- \special{pdf:mapline gbksong at UGBK@ UniGB-UTF16-H FandolSong-Regular.otf}
- \special{pdf:mapline gbkkai at UGBK@ UniGB-UTF16-H FandolKai-Regular.otf}
- \special{pdf:mapline gbkhei at UGBK@ UniGB-UTF16-H FandolHei-Regular.otf}
- \special{pdf:mapline gbkfs at UGBK@ UniGB-UTF16-H FandolFang-Regular.otf}
- \special{pdf:mapline cyberb at Unicode@ UniGB-UTF16-H FandolSong-Regular.otf}
- \special{pdf:mapline unisong at Unicode@ UniGB-UTF16-H FandolSong-Regular.otf}
- \special{pdf:mapline unikai at Unicode@ UniGB-UTF16-H FandolKai-Regular.otf}
- \special{pdf:mapline unihei at Unicode@ UniGB-UTF16-H FandolHei-Regular.otf}
- \special{pdf:mapline unifs at Unicode@ UniGB-UTF16-H FandolFang-Regular.otf}
- \special{pdf:mapline gbksongsl at UGBK@ UniGB-UTF16-H FandolSong-Regular.otf -s .167}
- \special{pdf:mapline gbkkaisl at UGBK@ UniGB-UTF16-H FandolKai-Regular.otf -s .167}
- \special{pdf:mapline gbkheisl at UGBK@ UniGB-UTF16-H FandolHei-Regular.otf -s .167}
- \special{pdf:mapline gbkfssl at UGBK@ UniGB-UTF16-H FandolFang-Regular.otf -s .167}
- \special{pdf:mapline unisongsl at Unicode@ UniGB-UTF16-H FandolSong-Regular.otf -s .167}
- \special{pdf:mapline unikaisl at Unicode@ UniGB-UTF16-H FandolKai-Regular.otf -s .167}
- \special{pdf:mapline uniheisl at Unicode@ UniGB-UTF16-H FandolHei-Regular.otf -s .167}
- \special{pdf:mapline unifssl at Unicode@ UniGB-UTF16-H FandolFang-Regular.otf -s .167}
-\fi
-\ctex at zhmap@endinput
-%%
-%%
-%% End of file `zhfandolfonts.tex'.
Deleted: trunk/Master/texmf-dist/tex/generic/ctex/zhfounderfonts.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/zhfounderfonts.tex 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/generic/ctex/zhfounderfonts.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -1,136 +0,0 @@
-%%
-%% This is file `zhfounderfonts.tex',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% ctex.dtx (with options: `zhmap,founder')
-%%
-%% Copyright (C) 2003--2020
-%% CTEX.ORG and any individual authors listed in the documentation.
-%% ---------------------------------------------------------------------
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any later
-%% version. This version of this license is in
-%% http://www.latex-project.org/lppl/lppl-1-3c.txt
-%% and the latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% ---------------------------------------------------------------------
-%%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode 35=6 % #
- \catcode123=1 % {
- \catcode125=2 % }
- \toks0{\endlinechar=\the\endlinechar\relax}%
- \toks2{\endlinechar=-1 }%
- \def\x#1 #2 {%
- \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}%
- \toks2\expandafter{\the\toks2 \catcode#1=#2 }}%
- \x 13 5 % carriage return
- \x 32 10 % space
- \x 35 6 % #
- \x 40 12 % (
- \x 41 12 % )
- \x 45 12 % -
- \x 46 12 % .
- \x 47 12 % /
- \x 58 12 % :
- \x 60 12 % <
- \x 61 12 % =
- \x 64 11 % @
- \x 91 12 % [
- \x 93 12 % ]
- \x 123 1 % {
- \x 125 2 % }
- \edef\x#1{\endgroup%
- \edef\noexpand#1{%
- \the\toks0 %
- \let\noexpand\noexpand\noexpand#1%
- \noexpand\noexpand\noexpand\undefined%
- \noexpand\noexpand\noexpand\endinput}%
- \the\toks2}%
-\expandafter\x\csname ctex at zhmap@endinput\endcsname
-\begingroup\expandafter\endgroup
-\expandafter\let\csname ifzhmappdf\expandafter\endcsname\csname
- \expandafter\ifx\csname ifctexpdf\endcsname\relax
- \expandafter\ifx\csname pdfoutput\endcsname\relax
- iffalse\else\ifnum\pdfoutput < 1 iffalse\else iftrue\fi\fi
- \else ifctexpdf\fi
-\endcsname
-\begingroup
-\expandafter\ifx\csname ProvidesFile\endcsname\relax
- \long\def\x#1\ProvidesFile#2[#3]{%
- #1%
- \immediate\write-1{File: #2 #3}%
- \expandafter\xdef\csname ver@#2\endcsname{#3}}
- \expandafter\x%
-\fi
-\endgroup
-\ProvidesFile{zhfounderfonts.tex}%
- [2020/05/02 v2.5.1 Founder font map loader for pdfTeX and DVIPDFMx (CTEX)]
-\ifzhmappdf
- \pdfmapline{=gbk at UGBK@ <FZSSK.TTF}
- \pdfmapline{=gbksong at UGBK@ <FZSSK.TTF}
- \pdfmapline{=gbkkai at UGBK@ <FZKTK.TTF}
- \pdfmapline{=gbkhei at UGBK@ <FZHTK.TTF}
- \pdfmapline{=gbkfs at UGBK@ <FZFSK.TTF}
- \pdfmapline{=gbkli at UGBK@ <FZLSK.TTF}
- \pdfmapline{=gbkyou at UGBK@ <FZY1K.TTF}
- \pdfmapline{=cyberb at Unicode@ <FZSSK.TTF}
- \pdfmapline{=unisong at Unicode@ <FZSSK.TTF}
- \pdfmapline{=unikai at Unicode@ <FZKTK.TTF}
- \pdfmapline{=unihei at Unicode@ <FZHTK.TTF}
- \pdfmapline{=unifs at Unicode@ <FZFSK.TTF}
- \pdfmapline{=unili at Unicode@ <FZLSK.TTF}
- \pdfmapline{=uniyou at Unicode@ <FZY1K.TTF}
- \pdfmapline{=gbksongsl at UGBK@ <FZSSK.TTF}
- \pdfmapline{=gbkkaisl at UGBK@ <FZKTK.TTF}
- \pdfmapline{=gbkheisl at UGBK@ <FZHTK.TTF}
- \pdfmapline{=gbkfssl at UGBK@ <FZFSK.TTF}
- \pdfmapline{=gbklisl at UGBK@ <FZLSK.TTF}
- \pdfmapline{=gbkyousl at UGBK@ <FZY1K.TTF}
- \pdfmapline{=unisongsl at Unicode@ <FZSSK.TTF}
- \pdfmapline{=unikaisl at Unicode@ <FZKTK.TTF}
- \pdfmapline{=uniheisl at Unicode@ <FZHTK.TTF}
- \pdfmapline{=unifssl at Unicode@ <FZFSK.TTF}
- \pdfmapline{=unilisl at Unicode@ <FZLSK.TTF}
- \pdfmapline{=uniyousl at Unicode@ <FZY1K.TTF}
-\else
- \special{pdf:mapline gbk at UGBK@ unicode FZSSK.TTF}
- \special{pdf:mapline gbksong at UGBK@ unicode FZSSK.TTF}
- \special{pdf:mapline gbkkai at UGBK@ unicode FZKTK.TTF}
- \special{pdf:mapline gbkhei at UGBK@ unicode FZHTK.TTF}
- \special{pdf:mapline gbkfs at UGBK@ unicode FZFSK.TTF}
- \special{pdf:mapline gbkli at UGBK@ unicode FZLSK.TTF}
- \special{pdf:mapline gbkyou at UGBK@ unicode FZY1K.TTF}
- \special{pdf:mapline cyberb at Unicode@ unicode FZSSK.TTF}
- \special{pdf:mapline unisong at Unicode@ unicode FZSSK.TTF}
- \special{pdf:mapline unikai at Unicode@ unicode FZKTK.TTF}
- \special{pdf:mapline unihei at Unicode@ unicode FZHTK.TTF}
- \special{pdf:mapline unifs at Unicode@ unicode FZFSK.TTF}
- \special{pdf:mapline unili at Unicode@ unicode FZLSK.TTF}
- \special{pdf:mapline uniyou at Unicode@ unicode FZY1K.TTF}
- \special{pdf:mapline gbksongsl at UGBK@ unicode FZSSK.TTF -s .167}
- \special{pdf:mapline gbkkaisl at UGBK@ unicode FZKTK.TTF -s .167}
- \special{pdf:mapline gbkheisl at UGBK@ unicode FZHTK.TTF -s .167}
- \special{pdf:mapline gbkfssl at UGBK@ unicode FZFSK.TTF -s .167}
- \special{pdf:mapline gbklisl at UGBK@ unicode FZLSK.TTF -s .167}
- \special{pdf:mapline gbkyousl at UGBK@ unicode FZY1K.TTF -s .167}
- \special{pdf:mapline unisongsl at Unicode@ unicode FZSSK.TTF -s .167}
- \special{pdf:mapline unikaisl at Unicode@ unicode FZKTK.TTF -s .167}
- \special{pdf:mapline uniheisl at Unicode@ unicode FZHTK.TTF -s .167}
- \special{pdf:mapline unifssl at Unicode@ unicode FZFSK.TTF -s .167}
- \special{pdf:mapline unilisl at Unicode@ unicode FZLSK.TTF -s .167}
- \special{pdf:mapline uniyousl at Unicode@ unicode FZY1K.TTF -s .167}
-\fi
-\ctex at zhmap@endinput
-%%
-%%
-%% End of file `zhfounderfonts.tex'.
Deleted: trunk/Master/texmf-dist/tex/generic/ctex/zhmacfonts.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/zhmacfonts.tex 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/generic/ctex/zhmacfonts.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -1,111 +0,0 @@
-%%
-%% This is file `zhmacfonts.tex',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% ctex.dtx (with options: `zhmap,mac')
-%%
-%% Copyright (C) 2003--2020
-%% CTEX.ORG and any individual authors listed in the documentation.
-%% ---------------------------------------------------------------------
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any later
-%% version. This version of this license is in
-%% http://www.latex-project.org/lppl/lppl-1-3c.txt
-%% and the latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% ---------------------------------------------------------------------
-%%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode 35=6 % #
- \catcode123=1 % {
- \catcode125=2 % }
- \toks0{\endlinechar=\the\endlinechar\relax}%
- \toks2{\endlinechar=-1 }%
- \def\x#1 #2 {%
- \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}%
- \toks2\expandafter{\the\toks2 \catcode#1=#2 }}%
- \x 13 5 % carriage return
- \x 32 10 % space
- \x 35 6 % #
- \x 40 12 % (
- \x 41 12 % )
- \x 45 12 % -
- \x 46 12 % .
- \x 47 12 % /
- \x 58 12 % :
- \x 60 12 % <
- \x 61 12 % =
- \x 64 11 % @
- \x 91 12 % [
- \x 93 12 % ]
- \x 123 1 % {
- \x 125 2 % }
- \edef\x#1{\endgroup%
- \edef\noexpand#1{%
- \the\toks0 %
- \let\noexpand\noexpand\noexpand#1%
- \noexpand\noexpand\noexpand\undefined%
- \noexpand\noexpand\noexpand\endinput}%
- \the\toks2}%
-\expandafter\x\csname ctex at zhmap@endinput\endcsname
-\begingroup\expandafter\endgroup
-\expandafter\let\csname ifzhmappdf\expandafter\endcsname\csname
- \expandafter\ifx\csname ifctexpdf\endcsname\relax
- \expandafter\ifx\csname pdfoutput\endcsname\relax
- iffalse\else\ifnum\pdfoutput < 1 iffalse\else iftrue\fi\fi
- \else ifctexpdf\fi
-\endcsname
-\begingroup
-\expandafter\ifx\csname ProvidesFile\endcsname\relax
- \long\def\x#1\ProvidesFile#2[#3]{%
- #1%
- \immediate\write-1{File: #2 #3}%
- \expandafter\xdef\csname ver@#2\endcsname{#3}}
- \expandafter\x%
-\fi
-\endgroup
-\ProvidesFile{zhmacfonts.tex}%
- [2020/05/02 v2.5.1 Mac font map loader for pdfTeX and DVIPDFMx (CTEX)]
-\ifzhmappdf
-%% pdfTeX does not support OTF fonts
-\else
- \special{pdf:mapline gbk at UGBK@ UniGB-UTF16-H :3:Songti.ttc}
- \special{pdf:mapline gbksong at UGBK@ UniGB-UTF16-H :3:Songti.ttc}
- \special{pdf:mapline gbkkai at UGBK@ UniGB-UTF16-H :0:Kaiti.ttc}
- \special{pdf:mapline gbkhei at UGBK@ unicode :2:PingFang.ttc}
- \special{pdf:mapline gbkfs at UGBK@ unicode STFANGSO.ttf}
- \special{pdf:mapline gbkli at UGBK@ UniGB-UTF16-H :0:Baoli.ttc}
- \special{pdf:mapline gbkyou at UGBK@ UniGB-UTF16-H :4:Yuanti.ttc}
- \special{pdf:mapline cyberb at Unicode@ UniGB-UTF16-H :3:Songti.ttc}
- \special{pdf:mapline unisong at Unicode@ UniGB-UTF16-H :3:Songti.ttc}
- \special{pdf:mapline unikai at Unicode@ UniGB-UTF16-H :0:Kaiti.ttc}
- \special{pdf:mapline unihei at Unicode@ unicode :2:PingFang.ttc}
- \special{pdf:mapline unifs at Unicode@ unicode STFANGSO.ttf}
- \special{pdf:mapline unili at Unicode@ UniGB-UTF16-H :0:Baoli.ttc}
- \special{pdf:mapline uniyou at Unicode@ UniGB-UTF16-H :4:Yuanti.ttc}
- \special{pdf:mapline gbksongsl at UGBK@ UniGB-UTF16-H :3:Songti.ttc -s .167}
- \special{pdf:mapline gbkkaisl at UGBK@ UniGB-UTF16-H :0:Kaiti.ttc -s .167}
- \special{pdf:mapline gbkheisl at UGBK@ unicode :2:PingFang.ttc -s .167}
- \special{pdf:mapline gbkfssl at UGBK@ unicode STFANGSO.ttf -s .167}
- \special{pdf:mapline gbklisl at UGBK@ UniGB-UTF16-H :0:Baoli.ttc -s .167}
- \special{pdf:mapline gbkyousl at UGBK@ UniGB-UTF16-H :4:Yuanti.ttc -s .167}
- \special{pdf:mapline unisongsl at Unicode@ UniGB-UTF16-H :3:Songti.ttc -s .167}
- \special{pdf:mapline unikaisl at Unicode@ UniGB-UTF16-H :0:Kaiti.ttc -s .167}
- \special{pdf:mapline uniheisl at Unicode@ unicode :2:PingFang.ttc -s .167}
- \special{pdf:mapline unifssl at Unicode@ unicode STFANGSO.ttf -s .167}
- \special{pdf:mapline unilisl at Unicode@ UniGB-UTF16-H :0:Baoli.ttc -s .167}
- \special{pdf:mapline uniyousl at Unicode@ UniGB-UTF16-H :4:Yuanti.ttc -s .167}
-\fi
-\ctex at zhmap@endinput
-%%
-%%
-%% End of file `zhmacfonts.tex'.
Added: trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-adobe.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-adobe.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-adobe.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -0,0 +1,103 @@
+%%
+%% This is file `ctex-zhmap-adobe.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ctex.dtx (with options: `zhmap,adobe')
+%%
+%% Copyright (C) 2003--2020
+%% CTEX.ORG and any individual authors listed in the documentation.
+%% ---------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version. This version of this license is in
+%% http://www.latex-project.org/lppl/lppl-1-3c.txt
+%% and the latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% ---------------------------------------------------------------------
+%%
+\begingroup\catcode61\catcode48\catcode32=10\relax%
+ \catcode 35=6 % #
+ \catcode123=1 % {
+ \catcode125=2 % }
+ \toks0{\endlinechar=\the\endlinechar\relax}%
+ \toks2{\endlinechar=-1 }%
+ \def\x#1 #2 {%
+ \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}%
+ \toks2\expandafter{\the\toks2 \catcode#1=#2 }}%
+ \x 13 5 % carriage return
+ \x 32 10 % space
+ \x 35 6 % #
+ \x 40 12 % (
+ \x 41 12 % )
+ \x 45 12 % -
+ \x 46 12 % .
+ \x 47 12 % /
+ \x 58 12 % :
+ \x 60 12 % <
+ \x 61 12 % =
+ \x 64 11 % @
+ \x 91 12 % [
+ \x 93 12 % ]
+ \x 123 1 % {
+ \x 125 2 % }
+ \edef\x#1{\endgroup%
+ \edef\noexpand#1{%
+ \the\toks0 %
+ \let\noexpand\noexpand\noexpand#1%
+ \noexpand\noexpand\noexpand\undefined%
+ \noexpand\noexpand\noexpand\endinput}%
+ \the\toks2}%
+\expandafter\x\csname ctex at zhmap@endinput\endcsname
+\begingroup\expandafter\endgroup
+\expandafter\let\csname ifzhmappdf\expandafter\endcsname\csname
+ \expandafter\ifx\csname ifctexpdf\endcsname\relax
+ \expandafter\ifx\csname pdfoutput\endcsname\relax
+ iffalse\else\ifnum\pdfoutput < 1 iffalse\else iftrue\fi\fi
+ \else ifctexpdf\fi
+\endcsname
+\begingroup
+\expandafter\ifx\csname ProvidesFile\endcsname\relax
+ \long\def\x#1\ProvidesFile#2[#3]{%
+ #1%
+ \immediate\write-1{File: #2 #3}%
+ \expandafter\xdef\csname ver@#2\endcsname{#3}}
+ \expandafter\x%
+\fi
+\endgroup
+\ProvidesFile{ctex-zhmap-adobe.tex}%
+ [2020/05/16 v2.5.2 Adobe font map loader for DVIPDFMx (CTEX)]
+\ifzhmappdf
+%% pdfTeX does not support OTF fonts
+\else
+ \special{pdf:mapline gbk at UGBK@ UniGB-UTF16-H AdobeSongStd-Light.otf}
+ \special{pdf:mapline gbksong at UGBK@ UniGB-UTF16-H AdobeSongStd-Light.otf}
+ \special{pdf:mapline gbkkai at UGBK@ UniGB-UTF16-H AdobeKaitiStd-Regular.otf}
+ \special{pdf:mapline gbkhei at UGBK@ UniGB-UTF16-H AdobeHeitiStd-Regular.otf}
+ \special{pdf:mapline gbkfs at UGBK@ UniGB-UTF16-H AdobeFangsongStd-Regular.otf}
+ \special{pdf:mapline cyberb at Unicode@ UniGB-UTF16-H AdobeSongStd-Light.otf}
+ \special{pdf:mapline unisong at Unicode@ UniGB-UTF16-H AdobeSongStd-Light.otf}
+ \special{pdf:mapline unikai at Unicode@ UniGB-UTF16-H AdobeKaitiStd-Regular.otf}
+ \special{pdf:mapline unihei at Unicode@ UniGB-UTF16-H AdobeHeitiStd-Regular.otf}
+ \special{pdf:mapline unifs at Unicode@ UniGB-UTF16-H AdobeFangsongStd-Regular.otf}
+ \special{pdf:mapline gbksongsl at UGBK@ UniGB-UTF16-H AdobeSongStd-Light.otf -s .167}
+ \special{pdf:mapline gbkkaisl at UGBK@ UniGB-UTF16-H AdobeKaitiStd-Regular.otf -s .167}
+ \special{pdf:mapline gbkheisl at UGBK@ UniGB-UTF16-H AdobeHeitiStd-Regular.otf -s .167}
+ \special{pdf:mapline gbkfssl at UGBK@ UniGB-UTF16-H AdobeFangsongStd-Regular.otf -s .167}
+ \special{pdf:mapline unisongsl at Unicode@ UniGB-UTF16-H AdobeSongStd-Light.otf -s .167}
+ \special{pdf:mapline unikaisl at Unicode@ UniGB-UTF16-H AdobeKaitiStd-Regular.otf -s .167}
+ \special{pdf:mapline uniheisl at Unicode@ UniGB-UTF16-H AdobeHeitiStd-Regular.otf -s .167}
+ \special{pdf:mapline unifssl at Unicode@ UniGB-UTF16-H AdobeFangsongStd-Regular.otf -s .167}
+\fi
+\ctex at zhmap@endinput
+%%
+%%
+%% End of file `ctex-zhmap-adobe.tex'.
Property changes on: trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-adobe.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-fandol.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-fandol.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-fandol.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -0,0 +1,103 @@
+%%
+%% This is file `ctex-zhmap-fandol.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ctex.dtx (with options: `zhmap,fandol')
+%%
+%% Copyright (C) 2003--2020
+%% CTEX.ORG and any individual authors listed in the documentation.
+%% ---------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version. This version of this license is in
+%% http://www.latex-project.org/lppl/lppl-1-3c.txt
+%% and the latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% ---------------------------------------------------------------------
+%%
+\begingroup\catcode61\catcode48\catcode32=10\relax%
+ \catcode 35=6 % #
+ \catcode123=1 % {
+ \catcode125=2 % }
+ \toks0{\endlinechar=\the\endlinechar\relax}%
+ \toks2{\endlinechar=-1 }%
+ \def\x#1 #2 {%
+ \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}%
+ \toks2\expandafter{\the\toks2 \catcode#1=#2 }}%
+ \x 13 5 % carriage return
+ \x 32 10 % space
+ \x 35 6 % #
+ \x 40 12 % (
+ \x 41 12 % )
+ \x 45 12 % -
+ \x 46 12 % .
+ \x 47 12 % /
+ \x 58 12 % :
+ \x 60 12 % <
+ \x 61 12 % =
+ \x 64 11 % @
+ \x 91 12 % [
+ \x 93 12 % ]
+ \x 123 1 % {
+ \x 125 2 % }
+ \edef\x#1{\endgroup%
+ \edef\noexpand#1{%
+ \the\toks0 %
+ \let\noexpand\noexpand\noexpand#1%
+ \noexpand\noexpand\noexpand\undefined%
+ \noexpand\noexpand\noexpand\endinput}%
+ \the\toks2}%
+\expandafter\x\csname ctex at zhmap@endinput\endcsname
+\begingroup\expandafter\endgroup
+\expandafter\let\csname ifzhmappdf\expandafter\endcsname\csname
+ \expandafter\ifx\csname ifctexpdf\endcsname\relax
+ \expandafter\ifx\csname pdfoutput\endcsname\relax
+ iffalse\else\ifnum\pdfoutput < 1 iffalse\else iftrue\fi\fi
+ \else ifctexpdf\fi
+\endcsname
+\begingroup
+\expandafter\ifx\csname ProvidesFile\endcsname\relax
+ \long\def\x#1\ProvidesFile#2[#3]{%
+ #1%
+ \immediate\write-1{File: #2 #3}%
+ \expandafter\xdef\csname ver@#2\endcsname{#3}}
+ \expandafter\x%
+\fi
+\endgroup
+\ProvidesFile{ctex-zhmap-fandol.tex}%
+ [2020/05/16 v2.5.2 Fandol font map loader for DVIPDFMx (CTEX)]
+\ifzhmappdf
+%% pdfTeX does not support OTF fonts
+\else
+ \special{pdf:mapline gbk at UGBK@ UniGB-UTF16-H FandolSong-Regular.otf}
+ \special{pdf:mapline gbksong at UGBK@ UniGB-UTF16-H FandolSong-Regular.otf}
+ \special{pdf:mapline gbkkai at UGBK@ UniGB-UTF16-H FandolKai-Regular.otf}
+ \special{pdf:mapline gbkhei at UGBK@ UniGB-UTF16-H FandolHei-Regular.otf}
+ \special{pdf:mapline gbkfs at UGBK@ UniGB-UTF16-H FandolFang-Regular.otf}
+ \special{pdf:mapline cyberb at Unicode@ UniGB-UTF16-H FandolSong-Regular.otf}
+ \special{pdf:mapline unisong at Unicode@ UniGB-UTF16-H FandolSong-Regular.otf}
+ \special{pdf:mapline unikai at Unicode@ UniGB-UTF16-H FandolKai-Regular.otf}
+ \special{pdf:mapline unihei at Unicode@ UniGB-UTF16-H FandolHei-Regular.otf}
+ \special{pdf:mapline unifs at Unicode@ UniGB-UTF16-H FandolFang-Regular.otf}
+ \special{pdf:mapline gbksongsl at UGBK@ UniGB-UTF16-H FandolSong-Regular.otf -s .167}
+ \special{pdf:mapline gbkkaisl at UGBK@ UniGB-UTF16-H FandolKai-Regular.otf -s .167}
+ \special{pdf:mapline gbkheisl at UGBK@ UniGB-UTF16-H FandolHei-Regular.otf -s .167}
+ \special{pdf:mapline gbkfssl at UGBK@ UniGB-UTF16-H FandolFang-Regular.otf -s .167}
+ \special{pdf:mapline unisongsl at Unicode@ UniGB-UTF16-H FandolSong-Regular.otf -s .167}
+ \special{pdf:mapline unikaisl at Unicode@ UniGB-UTF16-H FandolKai-Regular.otf -s .167}
+ \special{pdf:mapline uniheisl at Unicode@ UniGB-UTF16-H FandolHei-Regular.otf -s .167}
+ \special{pdf:mapline unifssl at Unicode@ UniGB-UTF16-H FandolFang-Regular.otf -s .167}
+\fi
+\ctex at zhmap@endinput
+%%
+%%
+%% End of file `ctex-zhmap-fandol.tex'.
Property changes on: trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-fandol.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-founder.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-founder.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-founder.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -0,0 +1,136 @@
+%%
+%% This is file `ctex-zhmap-founder.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ctex.dtx (with options: `zhmap,founder')
+%%
+%% Copyright (C) 2003--2020
+%% CTEX.ORG and any individual authors listed in the documentation.
+%% ---------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version. This version of this license is in
+%% http://www.latex-project.org/lppl/lppl-1-3c.txt
+%% and the latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% ---------------------------------------------------------------------
+%%
+\begingroup\catcode61\catcode48\catcode32=10\relax%
+ \catcode 35=6 % #
+ \catcode123=1 % {
+ \catcode125=2 % }
+ \toks0{\endlinechar=\the\endlinechar\relax}%
+ \toks2{\endlinechar=-1 }%
+ \def\x#1 #2 {%
+ \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}%
+ \toks2\expandafter{\the\toks2 \catcode#1=#2 }}%
+ \x 13 5 % carriage return
+ \x 32 10 % space
+ \x 35 6 % #
+ \x 40 12 % (
+ \x 41 12 % )
+ \x 45 12 % -
+ \x 46 12 % .
+ \x 47 12 % /
+ \x 58 12 % :
+ \x 60 12 % <
+ \x 61 12 % =
+ \x 64 11 % @
+ \x 91 12 % [
+ \x 93 12 % ]
+ \x 123 1 % {
+ \x 125 2 % }
+ \edef\x#1{\endgroup%
+ \edef\noexpand#1{%
+ \the\toks0 %
+ \let\noexpand\noexpand\noexpand#1%
+ \noexpand\noexpand\noexpand\undefined%
+ \noexpand\noexpand\noexpand\endinput}%
+ \the\toks2}%
+\expandafter\x\csname ctex at zhmap@endinput\endcsname
+\begingroup\expandafter\endgroup
+\expandafter\let\csname ifzhmappdf\expandafter\endcsname\csname
+ \expandafter\ifx\csname ifctexpdf\endcsname\relax
+ \expandafter\ifx\csname pdfoutput\endcsname\relax
+ iffalse\else\ifnum\pdfoutput < 1 iffalse\else iftrue\fi\fi
+ \else ifctexpdf\fi
+\endcsname
+\begingroup
+\expandafter\ifx\csname ProvidesFile\endcsname\relax
+ \long\def\x#1\ProvidesFile#2[#3]{%
+ #1%
+ \immediate\write-1{File: #2 #3}%
+ \expandafter\xdef\csname ver@#2\endcsname{#3}}
+ \expandafter\x%
+\fi
+\endgroup
+\ProvidesFile{ctex-zhmap-founder.tex}%
+ [2020/05/16 v2.5.2 Founder font map loader for pdfTeX and DVIPDFMx (CTEX)]
+\ifzhmappdf
+ \pdfmapline{=gbk at UGBK@ <FZSSK.TTF}
+ \pdfmapline{=gbksong at UGBK@ <FZSSK.TTF}
+ \pdfmapline{=gbkkai at UGBK@ <FZKTK.TTF}
+ \pdfmapline{=gbkhei at UGBK@ <FZHTK.TTF}
+ \pdfmapline{=gbkfs at UGBK@ <FZFSK.TTF}
+ \pdfmapline{=gbkli at UGBK@ <FZLSK.TTF}
+ \pdfmapline{=gbkyou at UGBK@ <FZY1K.TTF}
+ \pdfmapline{=cyberb at Unicode@ <FZSSK.TTF}
+ \pdfmapline{=unisong at Unicode@ <FZSSK.TTF}
+ \pdfmapline{=unikai at Unicode@ <FZKTK.TTF}
+ \pdfmapline{=unihei at Unicode@ <FZHTK.TTF}
+ \pdfmapline{=unifs at Unicode@ <FZFSK.TTF}
+ \pdfmapline{=unili at Unicode@ <FZLSK.TTF}
+ \pdfmapline{=uniyou at Unicode@ <FZY1K.TTF}
+ \pdfmapline{=gbksongsl at UGBK@ <FZSSK.TTF}
+ \pdfmapline{=gbkkaisl at UGBK@ <FZKTK.TTF}
+ \pdfmapline{=gbkheisl at UGBK@ <FZHTK.TTF}
+ \pdfmapline{=gbkfssl at UGBK@ <FZFSK.TTF}
+ \pdfmapline{=gbklisl at UGBK@ <FZLSK.TTF}
+ \pdfmapline{=gbkyousl at UGBK@ <FZY1K.TTF}
+ \pdfmapline{=unisongsl at Unicode@ <FZSSK.TTF}
+ \pdfmapline{=unikaisl at Unicode@ <FZKTK.TTF}
+ \pdfmapline{=uniheisl at Unicode@ <FZHTK.TTF}
+ \pdfmapline{=unifssl at Unicode@ <FZFSK.TTF}
+ \pdfmapline{=unilisl at Unicode@ <FZLSK.TTF}
+ \pdfmapline{=uniyousl at Unicode@ <FZY1K.TTF}
+\else
+ \special{pdf:mapline gbk at UGBK@ unicode FZSSK.TTF}
+ \special{pdf:mapline gbksong at UGBK@ unicode FZSSK.TTF}
+ \special{pdf:mapline gbkkai at UGBK@ unicode FZKTK.TTF}
+ \special{pdf:mapline gbkhei at UGBK@ unicode FZHTK.TTF}
+ \special{pdf:mapline gbkfs at UGBK@ unicode FZFSK.TTF}
+ \special{pdf:mapline gbkli at UGBK@ unicode FZLSK.TTF}
+ \special{pdf:mapline gbkyou at UGBK@ unicode FZY1K.TTF}
+ \special{pdf:mapline cyberb at Unicode@ unicode FZSSK.TTF}
+ \special{pdf:mapline unisong at Unicode@ unicode FZSSK.TTF}
+ \special{pdf:mapline unikai at Unicode@ unicode FZKTK.TTF}
+ \special{pdf:mapline unihei at Unicode@ unicode FZHTK.TTF}
+ \special{pdf:mapline unifs at Unicode@ unicode FZFSK.TTF}
+ \special{pdf:mapline unili at Unicode@ unicode FZLSK.TTF}
+ \special{pdf:mapline uniyou at Unicode@ unicode FZY1K.TTF}
+ \special{pdf:mapline gbksongsl at UGBK@ unicode FZSSK.TTF -s .167}
+ \special{pdf:mapline gbkkaisl at UGBK@ unicode FZKTK.TTF -s .167}
+ \special{pdf:mapline gbkheisl at UGBK@ unicode FZHTK.TTF -s .167}
+ \special{pdf:mapline gbkfssl at UGBK@ unicode FZFSK.TTF -s .167}
+ \special{pdf:mapline gbklisl at UGBK@ unicode FZLSK.TTF -s .167}
+ \special{pdf:mapline gbkyousl at UGBK@ unicode FZY1K.TTF -s .167}
+ \special{pdf:mapline unisongsl at Unicode@ unicode FZSSK.TTF -s .167}
+ \special{pdf:mapline unikaisl at Unicode@ unicode FZKTK.TTF -s .167}
+ \special{pdf:mapline uniheisl at Unicode@ unicode FZHTK.TTF -s .167}
+ \special{pdf:mapline unifssl at Unicode@ unicode FZFSK.TTF -s .167}
+ \special{pdf:mapline unilisl at Unicode@ unicode FZLSK.TTF -s .167}
+ \special{pdf:mapline uniyousl at Unicode@ unicode FZY1K.TTF -s .167}
+\fi
+\ctex at zhmap@endinput
+%%
+%%
+%% End of file `ctex-zhmap-founder.tex'.
Property changes on: trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-founder.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-mac.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-mac.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-mac.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -0,0 +1,111 @@
+%%
+%% This is file `ctex-zhmap-mac.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ctex.dtx (with options: `zhmap,mac')
+%%
+%% Copyright (C) 2003--2020
+%% CTEX.ORG and any individual authors listed in the documentation.
+%% ---------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version. This version of this license is in
+%% http://www.latex-project.org/lppl/lppl-1-3c.txt
+%% and the latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% ---------------------------------------------------------------------
+%%
+\begingroup\catcode61\catcode48\catcode32=10\relax%
+ \catcode 35=6 % #
+ \catcode123=1 % {
+ \catcode125=2 % }
+ \toks0{\endlinechar=\the\endlinechar\relax}%
+ \toks2{\endlinechar=-1 }%
+ \def\x#1 #2 {%
+ \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}%
+ \toks2\expandafter{\the\toks2 \catcode#1=#2 }}%
+ \x 13 5 % carriage return
+ \x 32 10 % space
+ \x 35 6 % #
+ \x 40 12 % (
+ \x 41 12 % )
+ \x 45 12 % -
+ \x 46 12 % .
+ \x 47 12 % /
+ \x 58 12 % :
+ \x 60 12 % <
+ \x 61 12 % =
+ \x 64 11 % @
+ \x 91 12 % [
+ \x 93 12 % ]
+ \x 123 1 % {
+ \x 125 2 % }
+ \edef\x#1{\endgroup%
+ \edef\noexpand#1{%
+ \the\toks0 %
+ \let\noexpand\noexpand\noexpand#1%
+ \noexpand\noexpand\noexpand\undefined%
+ \noexpand\noexpand\noexpand\endinput}%
+ \the\toks2}%
+\expandafter\x\csname ctex at zhmap@endinput\endcsname
+\begingroup\expandafter\endgroup
+\expandafter\let\csname ifzhmappdf\expandafter\endcsname\csname
+ \expandafter\ifx\csname ifctexpdf\endcsname\relax
+ \expandafter\ifx\csname pdfoutput\endcsname\relax
+ iffalse\else\ifnum\pdfoutput < 1 iffalse\else iftrue\fi\fi
+ \else ifctexpdf\fi
+\endcsname
+\begingroup
+\expandafter\ifx\csname ProvidesFile\endcsname\relax
+ \long\def\x#1\ProvidesFile#2[#3]{%
+ #1%
+ \immediate\write-1{File: #2 #3}%
+ \expandafter\xdef\csname ver@#2\endcsname{#3}}
+ \expandafter\x%
+\fi
+\endgroup
+\ProvidesFile{ctex-zhmap-mac.tex}%
+ [2020/05/16 v2.5.2 Mac font map loader for DVIPDFMx (CTEX)]
+\ifzhmappdf
+%% pdfTeX does not support OTF fonts
+\else
+ \special{pdf:mapline gbk at UGBK@ UniGB-UTF16-H :3:Songti.ttc}
+ \special{pdf:mapline gbksong at UGBK@ UniGB-UTF16-H :3:Songti.ttc}
+ \special{pdf:mapline gbkkai at UGBK@ UniGB-UTF16-H :0:Kaiti.ttc}
+ \special{pdf:mapline gbkhei at UGBK@ unicode :2:PingFang.ttc}
+ \special{pdf:mapline gbkfs at UGBK@ unicode STFANGSO.ttf}
+ \special{pdf:mapline gbkli at UGBK@ UniGB-UTF16-H :0:Baoli.ttc}
+ \special{pdf:mapline gbkyou at UGBK@ UniGB-UTF16-H :4:Yuanti.ttc}
+ \special{pdf:mapline cyberb at Unicode@ UniGB-UTF16-H :3:Songti.ttc}
+ \special{pdf:mapline unisong at Unicode@ UniGB-UTF16-H :3:Songti.ttc}
+ \special{pdf:mapline unikai at Unicode@ UniGB-UTF16-H :0:Kaiti.ttc}
+ \special{pdf:mapline unihei at Unicode@ unicode :2:PingFang.ttc}
+ \special{pdf:mapline unifs at Unicode@ unicode STFANGSO.ttf}
+ \special{pdf:mapline unili at Unicode@ UniGB-UTF16-H :0:Baoli.ttc}
+ \special{pdf:mapline uniyou at Unicode@ UniGB-UTF16-H :4:Yuanti.ttc}
+ \special{pdf:mapline gbksongsl at UGBK@ UniGB-UTF16-H :3:Songti.ttc -s .167}
+ \special{pdf:mapline gbkkaisl at UGBK@ UniGB-UTF16-H :0:Kaiti.ttc -s .167}
+ \special{pdf:mapline gbkheisl at UGBK@ unicode :2:PingFang.ttc -s .167}
+ \special{pdf:mapline gbkfssl at UGBK@ unicode STFANGSO.ttf -s .167}
+ \special{pdf:mapline gbklisl at UGBK@ UniGB-UTF16-H :0:Baoli.ttc -s .167}
+ \special{pdf:mapline gbkyousl at UGBK@ UniGB-UTF16-H :4:Yuanti.ttc -s .167}
+ \special{pdf:mapline unisongsl at Unicode@ UniGB-UTF16-H :3:Songti.ttc -s .167}
+ \special{pdf:mapline unikaisl at Unicode@ UniGB-UTF16-H :0:Kaiti.ttc -s .167}
+ \special{pdf:mapline uniheisl at Unicode@ unicode :2:PingFang.ttc -s .167}
+ \special{pdf:mapline unifssl at Unicode@ unicode STFANGSO.ttf -s .167}
+ \special{pdf:mapline unilisl at Unicode@ UniGB-UTF16-H :0:Baoli.ttc -s .167}
+ \special{pdf:mapline uniyousl at Unicode@ UniGB-UTF16-H :4:Yuanti.ttc -s .167}
+\fi
+\ctex at zhmap@endinput
+%%
+%%
+%% End of file `ctex-zhmap-mac.tex'.
Property changes on: trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-mac.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-ubuntu.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-ubuntu.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-ubuntu.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -0,0 +1,103 @@
+%%
+%% This is file `ctex-zhmap-ubuntu.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ctex.dtx (with options: `zhmap,ubuntu')
+%%
+%% Copyright (C) 2003--2020
+%% CTEX.ORG and any individual authors listed in the documentation.
+%% ---------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version. This version of this license is in
+%% http://www.latex-project.org/lppl/lppl-1-3c.txt
+%% and the latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% ---------------------------------------------------------------------
+%%
+\begingroup\catcode61\catcode48\catcode32=10\relax%
+ \catcode 35=6 % #
+ \catcode123=1 % {
+ \catcode125=2 % }
+ \toks0{\endlinechar=\the\endlinechar\relax}%
+ \toks2{\endlinechar=-1 }%
+ \def\x#1 #2 {%
+ \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}%
+ \toks2\expandafter{\the\toks2 \catcode#1=#2 }}%
+ \x 13 5 % carriage return
+ \x 32 10 % space
+ \x 35 6 % #
+ \x 40 12 % (
+ \x 41 12 % )
+ \x 45 12 % -
+ \x 46 12 % .
+ \x 47 12 % /
+ \x 58 12 % :
+ \x 60 12 % <
+ \x 61 12 % =
+ \x 64 11 % @
+ \x 91 12 % [
+ \x 93 12 % ]
+ \x 123 1 % {
+ \x 125 2 % }
+ \edef\x#1{\endgroup%
+ \edef\noexpand#1{%
+ \the\toks0 %
+ \let\noexpand\noexpand\noexpand#1%
+ \noexpand\noexpand\noexpand\undefined%
+ \noexpand\noexpand\noexpand\endinput}%
+ \the\toks2}%
+\expandafter\x\csname ctex at zhmap@endinput\endcsname
+\begingroup\expandafter\endgroup
+\expandafter\let\csname ifzhmappdf\expandafter\endcsname\csname
+ \expandafter\ifx\csname ifctexpdf\endcsname\relax
+ \expandafter\ifx\csname pdfoutput\endcsname\relax
+ iffalse\else\ifnum\pdfoutput < 1 iffalse\else iftrue\fi\fi
+ \else ifctexpdf\fi
+\endcsname
+\begingroup
+\expandafter\ifx\csname ProvidesFile\endcsname\relax
+ \long\def\x#1\ProvidesFile#2[#3]{%
+ #1%
+ \immediate\write-1{File: #2 #3}%
+ \expandafter\xdef\csname ver@#2\endcsname{#3}}
+ \expandafter\x%
+\fi
+\endgroup
+\ProvidesFile{ctex-zhmap-ubuntu.tex}%
+ [2020/05/16 v2.5.2 Ubuntu font map loader for DVIPDFMx (CTEX)]
+\ifzhmappdf
+%% pdfTeX does not support OTF fonts
+\else
+ \special{pdf:mapline gbk at UGBK@ unicode :2:NotoSerifCJK-Regular.ttc}
+ \special{pdf:mapline gbksong at UGBK@ unicode :2:NotoSerifCJK-Regular.ttc}
+ \special{pdf:mapline gbkkai at UGBK@ unicode gkai00mp.ttf}
+ \special{pdf:mapline gbkhei at UGBK@ unicode :2:NotoSansCJK-Regular.ttc}
+ \special{pdf:mapline gbkfs at UGBK@ unicode :2:NotoSerifCJK-Regular.ttc}
+ \special{pdf:mapline cyberb at Unicode@ unicode :2:NotoSerifCJK-Regular.ttc}
+ \special{pdf:mapline unisong at Unicode@ unicode :2:NotoSerifCJK-Regular.ttc}
+ \special{pdf:mapline unikai at Unicode@ unicode gkai00mp.ttf}
+ \special{pdf:mapline unihei at Unicode@ unicode :2:NotoSansCJK-Regular.ttc}
+ \special{pdf:mapline unifs at Unicode@ unicode :2:NotoSerifCJK-Regular.ttc}
+ \special{pdf:mapline gbksongsl at UGBK@ unicode :2:NotoSerifCJK-Regular.ttc -s .167}
+ \special{pdf:mapline gbkkaisl at UGBK@ unicode gkai00mp.ttf -s .167}
+ \special{pdf:mapline gbkheisl at UGBK@ unicode :2:NotoSansCJK-Regular.ttc -s .167}
+ \special{pdf:mapline gbkfssl at UGBK@ unicode :2:NotoSerifCJK-Regular.ttc -s .167}
+ \special{pdf:mapline unisongsl at Unicode@ unicode :2:NotoSerifCJK-Regular.ttc -s .167}
+ \special{pdf:mapline unikaisl at Unicode@ unicode gkai00mp.ttf -s .167}
+ \special{pdf:mapline uniheisl at Unicode@ unicode :2:NotoSansCJK-Regular.ttc -s .167}
+ \special{pdf:mapline unifssl at Unicode@ unicode :2:NotoSerifCJK-Regular.ttc -s .167}
+\fi
+\ctex at zhmap@endinput
+%%
+%%
+%% End of file `ctex-zhmap-ubuntu.tex'.
Property changes on: trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-ubuntu.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-windows.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-windows.tex (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-windows.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -0,0 +1,136 @@
+%%
+%% This is file `ctex-zhmap-windows.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ctex.dtx (with options: `zhmap,windows')
+%%
+%% Copyright (C) 2003--2020
+%% CTEX.ORG and any individual authors listed in the documentation.
+%% ---------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version. This version of this license is in
+%% http://www.latex-project.org/lppl/lppl-1-3c.txt
+%% and the latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% ---------------------------------------------------------------------
+%%
+\begingroup\catcode61\catcode48\catcode32=10\relax%
+ \catcode 35=6 % #
+ \catcode123=1 % {
+ \catcode125=2 % }
+ \toks0{\endlinechar=\the\endlinechar\relax}%
+ \toks2{\endlinechar=-1 }%
+ \def\x#1 #2 {%
+ \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}%
+ \toks2\expandafter{\the\toks2 \catcode#1=#2 }}%
+ \x 13 5 % carriage return
+ \x 32 10 % space
+ \x 35 6 % #
+ \x 40 12 % (
+ \x 41 12 % )
+ \x 45 12 % -
+ \x 46 12 % .
+ \x 47 12 % /
+ \x 58 12 % :
+ \x 60 12 % <
+ \x 61 12 % =
+ \x 64 11 % @
+ \x 91 12 % [
+ \x 93 12 % ]
+ \x 123 1 % {
+ \x 125 2 % }
+ \edef\x#1{\endgroup%
+ \edef\noexpand#1{%
+ \the\toks0 %
+ \let\noexpand\noexpand\noexpand#1%
+ \noexpand\noexpand\noexpand\undefined%
+ \noexpand\noexpand\noexpand\endinput}%
+ \the\toks2}%
+\expandafter\x\csname ctex at zhmap@endinput\endcsname
+\begingroup\expandafter\endgroup
+\expandafter\let\csname ifzhmappdf\expandafter\endcsname\csname
+ \expandafter\ifx\csname ifctexpdf\endcsname\relax
+ \expandafter\ifx\csname pdfoutput\endcsname\relax
+ iffalse\else\ifnum\pdfoutput < 1 iffalse\else iftrue\fi\fi
+ \else ifctexpdf\fi
+\endcsname
+\begingroup
+\expandafter\ifx\csname ProvidesFile\endcsname\relax
+ \long\def\x#1\ProvidesFile#2[#3]{%
+ #1%
+ \immediate\write-1{File: #2 #3}%
+ \expandafter\xdef\csname ver@#2\endcsname{#3}}
+ \expandafter\x%
+\fi
+\endgroup
+\ProvidesFile{ctex-zhmap-windows.tex}%
+ [2020/05/16 v2.5.2 Windows font map loader for pdfTeX and DVIPDFMx (CTEX)]
+\ifzhmappdf
+ \pdfmapline{=gbk at UGBK@ <simsun.ttc}
+ \pdfmapline{=gbksong at UGBK@ <simsun.ttc}
+ \pdfmapline{=gbkkai at UGBK@ <simkai.ttf}
+ \pdfmapline{=gbkhei at UGBK@ <simhei.ttf}
+ \pdfmapline{=gbkfs at UGBK@ <simfang.ttf}
+ \pdfmapline{=gbkli at UGBK@ <simli.ttf}
+ \pdfmapline{=gbkyou at UGBK@ <simyou.ttf}
+ \pdfmapline{=cyberb at Unicode@ <simsun.ttc}
+ \pdfmapline{=unisong at Unicode@ <simsun.ttc}
+ \pdfmapline{=unikai at Unicode@ <simkai.ttf}
+ \pdfmapline{=unihei at Unicode@ <simhei.ttf}
+ \pdfmapline{=unifs at Unicode@ <simfang.ttf}
+ \pdfmapline{=unili at Unicode@ <simli.ttf}
+ \pdfmapline{=uniyou at Unicode@ <simyou.ttf}
+ \pdfmapline{=gbksongsl at UGBK@ <simsun.ttc}
+ \pdfmapline{=gbkkaisl at UGBK@ <simkai.ttf}
+ \pdfmapline{=gbkheisl at UGBK@ <simhei.ttf}
+ \pdfmapline{=gbkfssl at UGBK@ <simfang.ttf}
+ \pdfmapline{=gbklisl at UGBK@ <simli.ttf}
+ \pdfmapline{=gbkyousl at UGBK@ <simyou.ttf}
+ \pdfmapline{=unisongsl at Unicode@ <simsun.ttc}
+ \pdfmapline{=unikaisl at Unicode@ <simkai.ttf}
+ \pdfmapline{=uniheisl at Unicode@ <simhei.ttf}
+ \pdfmapline{=unifssl at Unicode@ <simfang.ttf}
+ \pdfmapline{=unilisl at Unicode@ <simli.ttf}
+ \pdfmapline{=uniyousl at Unicode@ <simyou.ttf}
+\else
+ \special{pdf:mapline gbk at UGBK@ unicode :0:simsun.ttc -v 50}
+ \special{pdf:mapline gbksong at UGBK@ unicode :0:simsun.ttc -v 50}
+ \special{pdf:mapline gbkkai at UGBK@ unicode simkai.ttf -v 70}
+ \special{pdf:mapline gbkhei at UGBK@ unicode simhei.ttf -v 150}
+ \special{pdf:mapline gbkfs at UGBK@ unicode simfang.ttf -v 50}
+ \special{pdf:mapline gbkli at UGBK@ unicode simli.ttf -v 150}
+ \special{pdf:mapline gbkyou at UGBK@ unicode simyou.ttf -v 60}
+ \special{pdf:mapline cyberb at Unicode@ unicode :0:simsun.ttc -v 50}
+ \special{pdf:mapline unisong at Unicode@ unicode :0:simsun.ttc -v 50}
+ \special{pdf:mapline unikai at Unicode@ unicode simkai.ttf -v 70}
+ \special{pdf:mapline unihei at Unicode@ unicode simhei.ttf -v 150}
+ \special{pdf:mapline unifs at Unicode@ unicode simfang.ttf -v 50}
+ \special{pdf:mapline unili at Unicode@ unicode simli.ttf -v 150}
+ \special{pdf:mapline uniyou at Unicode@ unicode simyou.ttf -v 60}
+ \special{pdf:mapline gbksongsl at UGBK@ unicode :0:simsun.ttc -v 50 -s .167}
+ \special{pdf:mapline gbkkaisl at UGBK@ unicode simkai.ttf -v 70 -s .167}
+ \special{pdf:mapline gbkheisl at UGBK@ unicode simhei.ttf -v 150 -s .167}
+ \special{pdf:mapline gbkfssl at UGBK@ unicode simfang.ttf -v 50 -s .167}
+ \special{pdf:mapline gbklisl at UGBK@ unicode simli.ttf -v 150 -s .167}
+ \special{pdf:mapline gbkyousl at UGBK@ unicode simyou.ttf -v 60 -s .167}
+ \special{pdf:mapline unisongsl at Unicode@ unicode :0:simsun.ttc -v 50 -s .167}
+ \special{pdf:mapline unikaisl at Unicode@ unicode simkai.ttf -v 70 -s .167}
+ \special{pdf:mapline uniheisl at Unicode@ unicode simhei.ttf -v 150 -s .167}
+ \special{pdf:mapline unifssl at Unicode@ unicode simfang.ttf -v 50 -s .167}
+ \special{pdf:mapline unilisl at Unicode@ unicode simli.ttf -v 150 -s .167}
+ \special{pdf:mapline uniyousl at Unicode@ unicode simyou.ttf -v 60 -s .167}
+\fi
+\ctex at zhmap@endinput
+%%
+%%
+%% End of file `ctex-zhmap-windows.tex'.
Property changes on: trunk/Master/texmf-dist/tex/generic/ctex/zhmap/ctex-zhmap-windows.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/tex/generic/ctex/zhubuntufonts.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/zhubuntufonts.tex 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/generic/ctex/zhubuntufonts.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -1,103 +0,0 @@
-%%
-%% This is file `zhubuntufonts.tex',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% ctex.dtx (with options: `zhmap,ubuntu')
-%%
-%% Copyright (C) 2003--2020
-%% CTEX.ORG and any individual authors listed in the documentation.
-%% ---------------------------------------------------------------------
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any later
-%% version. This version of this license is in
-%% http://www.latex-project.org/lppl/lppl-1-3c.txt
-%% and the latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% ---------------------------------------------------------------------
-%%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode 35=6 % #
- \catcode123=1 % {
- \catcode125=2 % }
- \toks0{\endlinechar=\the\endlinechar\relax}%
- \toks2{\endlinechar=-1 }%
- \def\x#1 #2 {%
- \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}%
- \toks2\expandafter{\the\toks2 \catcode#1=#2 }}%
- \x 13 5 % carriage return
- \x 32 10 % space
- \x 35 6 % #
- \x 40 12 % (
- \x 41 12 % )
- \x 45 12 % -
- \x 46 12 % .
- \x 47 12 % /
- \x 58 12 % :
- \x 60 12 % <
- \x 61 12 % =
- \x 64 11 % @
- \x 91 12 % [
- \x 93 12 % ]
- \x 123 1 % {
- \x 125 2 % }
- \edef\x#1{\endgroup%
- \edef\noexpand#1{%
- \the\toks0 %
- \let\noexpand\noexpand\noexpand#1%
- \noexpand\noexpand\noexpand\undefined%
- \noexpand\noexpand\noexpand\endinput}%
- \the\toks2}%
-\expandafter\x\csname ctex at zhmap@endinput\endcsname
-\begingroup\expandafter\endgroup
-\expandafter\let\csname ifzhmappdf\expandafter\endcsname\csname
- \expandafter\ifx\csname ifctexpdf\endcsname\relax
- \expandafter\ifx\csname pdfoutput\endcsname\relax
- iffalse\else\ifnum\pdfoutput < 1 iffalse\else iftrue\fi\fi
- \else ifctexpdf\fi
-\endcsname
-\begingroup
-\expandafter\ifx\csname ProvidesFile\endcsname\relax
- \long\def\x#1\ProvidesFile#2[#3]{%
- #1%
- \immediate\write-1{File: #2 #3}%
- \expandafter\xdef\csname ver@#2\endcsname{#3}}
- \expandafter\x%
-\fi
-\endgroup
-\ProvidesFile{zhubuntufonts.tex}%
- [2020/05/02 v2.5.1 Ubuntu font map loader for pdfTeX and DVIPDFMx (CTEX)]
-\ifzhmappdf
-%% pdfTeX does not support OTF fonts
-\else
- \special{pdf:mapline gbk at UGBK@ unicode :2:NotoSerifCJK-Regular.ttc}
- \special{pdf:mapline gbksong at UGBK@ unicode :2:NotoSerifCJK-Regular.ttc}
- \special{pdf:mapline gbkkai at UGBK@ unicode gkai00mp.ttf}
- \special{pdf:mapline gbkhei at UGBK@ unicode :2:NotoSansCJK-Regular.ttc}
- \special{pdf:mapline gbkfs at UGBK@ unicode :2:NotoSerifCJK-Regular.ttc}
- \special{pdf:mapline cyberb at Unicode@ unicode :2:NotoSerifCJK-Regular.ttc}
- \special{pdf:mapline unisong at Unicode@ unicode :2:NotoSerifCJK-Regular.ttc}
- \special{pdf:mapline unikai at Unicode@ unicode gkai00mp.ttf}
- \special{pdf:mapline unihei at Unicode@ unicode :2:NotoSansCJK-Regular.ttc}
- \special{pdf:mapline unifs at Unicode@ unicode :2:NotoSerifCJK-Regular.ttc}
- \special{pdf:mapline gbksongsl at UGBK@ unicode :2:NotoSerifCJK-Regular.ttc -s .167}
- \special{pdf:mapline gbkkaisl at UGBK@ unicode gkai00mp.ttf -s .167}
- \special{pdf:mapline gbkheisl at UGBK@ unicode :2:NotoSansCJK-Regular.ttc -s .167}
- \special{pdf:mapline gbkfssl at UGBK@ unicode :2:NotoSerifCJK-Regular.ttc -s .167}
- \special{pdf:mapline unisongsl at Unicode@ unicode :2:NotoSerifCJK-Regular.ttc -s .167}
- \special{pdf:mapline unikaisl at Unicode@ unicode gkai00mp.ttf -s .167}
- \special{pdf:mapline uniheisl at Unicode@ unicode :2:NotoSansCJK-Regular.ttc -s .167}
- \special{pdf:mapline unifssl at Unicode@ unicode :2:NotoSerifCJK-Regular.ttc -s .167}
-\fi
-\ctex at zhmap@endinput
-%%
-%%
-%% End of file `zhubuntufonts.tex'.
Deleted: trunk/Master/texmf-dist/tex/generic/ctex/zhwindowsfonts.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/ctex/zhwindowsfonts.tex 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/generic/ctex/zhwindowsfonts.tex 2020-05-16 21:26:14 UTC (rev 55162)
@@ -1,136 +0,0 @@
-%%
-%% This is file `zhwindowsfonts.tex',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% ctex.dtx (with options: `zhmap,windows')
-%%
-%% Copyright (C) 2003--2020
-%% CTEX.ORG and any individual authors listed in the documentation.
-%% ---------------------------------------------------------------------
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any later
-%% version. This version of this license is in
-%% http://www.latex-project.org/lppl/lppl-1-3c.txt
-%% and the latest version of this license is in
-%% http://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% ---------------------------------------------------------------------
-%%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode 35=6 % #
- \catcode123=1 % {
- \catcode125=2 % }
- \toks0{\endlinechar=\the\endlinechar\relax}%
- \toks2{\endlinechar=-1 }%
- \def\x#1 #2 {%
- \toks0\expandafter{\the\toks0 \catcode#1=\the\catcode#1\relax}%
- \toks2\expandafter{\the\toks2 \catcode#1=#2 }}%
- \x 13 5 % carriage return
- \x 32 10 % space
- \x 35 6 % #
- \x 40 12 % (
- \x 41 12 % )
- \x 45 12 % -
- \x 46 12 % .
- \x 47 12 % /
- \x 58 12 % :
- \x 60 12 % <
- \x 61 12 % =
- \x 64 11 % @
- \x 91 12 % [
- \x 93 12 % ]
- \x 123 1 % {
- \x 125 2 % }
- \edef\x#1{\endgroup%
- \edef\noexpand#1{%
- \the\toks0 %
- \let\noexpand\noexpand\noexpand#1%
- \noexpand\noexpand\noexpand\undefined%
- \noexpand\noexpand\noexpand\endinput}%
- \the\toks2}%
-\expandafter\x\csname ctex at zhmap@endinput\endcsname
-\begingroup\expandafter\endgroup
-\expandafter\let\csname ifzhmappdf\expandafter\endcsname\csname
- \expandafter\ifx\csname ifctexpdf\endcsname\relax
- \expandafter\ifx\csname pdfoutput\endcsname\relax
- iffalse\else\ifnum\pdfoutput < 1 iffalse\else iftrue\fi\fi
- \else ifctexpdf\fi
-\endcsname
-\begingroup
-\expandafter\ifx\csname ProvidesFile\endcsname\relax
- \long\def\x#1\ProvidesFile#2[#3]{%
- #1%
- \immediate\write-1{File: #2 #3}%
- \expandafter\xdef\csname ver@#2\endcsname{#3}}
- \expandafter\x%
-\fi
-\endgroup
-\ProvidesFile{zhwindowsfonts.tex}%
- [2020/05/02 v2.5.1 Windows font map loader for pdfTeX and DVIPDFMx (CTEX)]
-\ifzhmappdf
- \pdfmapline{=gbk at UGBK@ <simsun.ttc}
- \pdfmapline{=gbksong at UGBK@ <simsun.ttc}
- \pdfmapline{=gbkkai at UGBK@ <simkai.ttf}
- \pdfmapline{=gbkhei at UGBK@ <simhei.ttf}
- \pdfmapline{=gbkfs at UGBK@ <simfang.ttf}
- \pdfmapline{=gbkli at UGBK@ <simli.ttf}
- \pdfmapline{=gbkyou at UGBK@ <simyou.ttf}
- \pdfmapline{=cyberb at Unicode@ <simsun.ttc}
- \pdfmapline{=unisong at Unicode@ <simsun.ttc}
- \pdfmapline{=unikai at Unicode@ <simkai.ttf}
- \pdfmapline{=unihei at Unicode@ <simhei.ttf}
- \pdfmapline{=unifs at Unicode@ <simfang.ttf}
- \pdfmapline{=unili at Unicode@ <simli.ttf}
- \pdfmapline{=uniyou at Unicode@ <simyou.ttf}
- \pdfmapline{=gbksongsl at UGBK@ <simsun.ttc}
- \pdfmapline{=gbkkaisl at UGBK@ <simkai.ttf}
- \pdfmapline{=gbkheisl at UGBK@ <simhei.ttf}
- \pdfmapline{=gbkfssl at UGBK@ <simfang.ttf}
- \pdfmapline{=gbklisl at UGBK@ <simli.ttf}
- \pdfmapline{=gbkyousl at UGBK@ <simyou.ttf}
- \pdfmapline{=unisongsl at Unicode@ <simsun.ttc}
- \pdfmapline{=unikaisl at Unicode@ <simkai.ttf}
- \pdfmapline{=uniheisl at Unicode@ <simhei.ttf}
- \pdfmapline{=unifssl at Unicode@ <simfang.ttf}
- \pdfmapline{=unilisl at Unicode@ <simli.ttf}
- \pdfmapline{=uniyousl at Unicode@ <simyou.ttf}
-\else
- \special{pdf:mapline gbk at UGBK@ unicode :0:simsun.ttc -v 50}
- \special{pdf:mapline gbksong at UGBK@ unicode :0:simsun.ttc -v 50}
- \special{pdf:mapline gbkkai at UGBK@ unicode simkai.ttf -v 70}
- \special{pdf:mapline gbkhei at UGBK@ unicode simhei.ttf -v 150}
- \special{pdf:mapline gbkfs at UGBK@ unicode simfang.ttf -v 50}
- \special{pdf:mapline gbkli at UGBK@ unicode simli.ttf -v 150}
- \special{pdf:mapline gbkyou at UGBK@ unicode simyou.ttf -v 60}
- \special{pdf:mapline cyberb at Unicode@ unicode :0:simsun.ttc -v 50}
- \special{pdf:mapline unisong at Unicode@ unicode :0:simsun.ttc -v 50}
- \special{pdf:mapline unikai at Unicode@ unicode simkai.ttf -v 70}
- \special{pdf:mapline unihei at Unicode@ unicode simhei.ttf -v 150}
- \special{pdf:mapline unifs at Unicode@ unicode simfang.ttf -v 50}
- \special{pdf:mapline unili at Unicode@ unicode simli.ttf -v 150}
- \special{pdf:mapline uniyou at Unicode@ unicode simyou.ttf -v 60}
- \special{pdf:mapline gbksongsl at UGBK@ unicode :0:simsun.ttc -v 50 -s .167}
- \special{pdf:mapline gbkkaisl at UGBK@ unicode simkai.ttf -v 70 -s .167}
- \special{pdf:mapline gbkheisl at UGBK@ unicode simhei.ttf -v 150 -s .167}
- \special{pdf:mapline gbkfssl at UGBK@ unicode simfang.ttf -v 50 -s .167}
- \special{pdf:mapline gbklisl at UGBK@ unicode simli.ttf -v 150 -s .167}
- \special{pdf:mapline gbkyousl at UGBK@ unicode simyou.ttf -v 60 -s .167}
- \special{pdf:mapline unisongsl at Unicode@ unicode :0:simsun.ttc -v 50 -s .167}
- \special{pdf:mapline unikaisl at Unicode@ unicode simkai.ttf -v 70 -s .167}
- \special{pdf:mapline uniheisl at Unicode@ unicode simhei.ttf -v 150 -s .167}
- \special{pdf:mapline unifssl at Unicode@ unicode simfang.ttf -v 50 -s .167}
- \special{pdf:mapline unilisl at Unicode@ unicode simli.ttf -v 150 -s .167}
- \special{pdf:mapline uniyousl at Unicode@ unicode simyou.ttf -v 60 -s .167}
-\fi
-\ctex at zhmap@endinput
-%%
-%%
-%% End of file `zhwindowsfonts.tex'.
Modified: trunk/Master/texmf-dist/tex/latex/ctex/config/ctex-name-gbk.cfg
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/config/ctex-name-gbk.cfg 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/config/ctex-name-gbk.cfg 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Caption with encoding GBK (CTEX)}
\ProvidesExplFile{ctex-name-gbk.cfg}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\keys_set_known:nn { ctex }
{
contentsname = Ŀ¼ ,
Modified: trunk/Master/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Caption with encoding UTF-8 (CTEX)}
\ProvidesExplFile{ctex-name-utf8.cfg}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\keys_set_known:nn { ctex }
{
contentsname = 目录 ,
Modified: trunk/Master/texmf-dist/tex/latex/ctex/config/ctex.cfg
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/config/ctex.cfg 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/config/ctex.cfg 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Configuration file (CTEX)}
\ProvidesExplFile{\ExplFileName.cfg}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
%%
%%
%%
Modified: trunk/Master/texmf-dist/tex/latex/ctex/config/ctexbackend.cfg
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/config/ctexbackend.cfg 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/config/ctexbackend.cfg 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesFile{ctexbackend.cfg}%
- [2020/05/02 v2.5.1 Backend configuration file (CTEX)]
+ [2020/05/16 v2.5.2 Backend configuration file (CTEX)]
\begingroup
\expandafter\ifx\csname Umathchardef\endcsname\relax
\else\expandafter\endgroup\expandafter\endinput\fi
Modified: trunk/Master/texmf-dist/tex/latex/ctex/config/ctexopts.cfg
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/config/ctexopts.cfg 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/config/ctexopts.cfg 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Option configuration file (CTEX)}
\ProvidesExplFile{ctexopts.cfg}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
%%
%% \ctex_set:nn { option } { fontset = windows }
%%
Modified: trunk/Master/texmf-dist/tex/latex/ctex/ctex-c5size.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/ctex-c5size.clo 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/ctex-c5size.clo 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{c5size option (CTEX)}
\ProvidesExplFile{ctex-c5size.clo}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_set_font_size:Nnn \normalsize { 5 }
{
\abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
Modified: trunk/Master/texmf-dist/tex/latex/ctex/ctex-cs4size.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/ctex-cs4size.clo 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/ctex-cs4size.clo 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{cs4size option (CTEX)}
\ProvidesExplFile{ctex-cs4size.clo}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_set_font_size:Nnn \normalsize { -4 }
{
\abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
Modified: trunk/Master/texmf-dist/tex/latex/ctex/ctex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/ctex.sty 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/ctex.sty 2020-05-16 21:26:14 UTC (rev 55162)
@@ -26,10 +26,10 @@
%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Chinese adapter in LaTeX (CTEX)}
\ProvidesExplPackage{\ExplFileName}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\tl_const:Nx \c__ctex_version_tl
{ \cs_if_exist_use:cF { ver@ \@currname . \@currext } { 9999/99/99 } }
\msg_new:nnnn { ctex } { subpackage-loaded }
@@ -422,35 +422,39 @@
\ctex_update_em_unit:
\dim_set:Nn \l__ctex_tmp_dim { \l__ctex_line_stretch_tl }
\dim_compare:nNnTF \l__ctex_tmp_dim = \c_max_dim
+ { \__ctex_update_stretch_auxi: }
+ { \__ctex_update_stretch_auxii: }
+ }
+\cs_new_protected:Npn \__ctex_update_stretch_auxi:
+ {
+ \ctex_if_ccglue_touched:TF
+ { \ctex_update_ccwd: }
{
- \ctex_if_ccglue_touched:TF
- { \ctex_update_ccwd: }
- {
- \dim_set:Nn \l__ctex_tmp_dim
- { \baselinestretch \tex_glueexpr:D \f at baselineskip \scan_stop: }
- \skip_set:Nn \l__ctex_ccglue_skip
- { \c_zero_dim plus .08 \l__ctex_tmp_dim }
- \ctex_update_ccglue:
- }
+ \dim_set:Nn \l__ctex_tmp_dim
+ { \baselinestretch \tex_glueexpr:D \f at baselineskip \scan_stop: }
+ \skip_set:Nn \l__ctex_ccglue_skip
+ { \c_zero_dim plus .08 \l__ctex_tmp_dim }
+ \ctex_update_ccglue:
}
+ }
+\cs_new_protected:Npn \__ctex_update_stretch_auxii:
+ {
+ \int_set:Nn \l__ctex_tmp_int
+ { \tex_dimexpr:D \linewidth - \ccwd - \l__ctex_tmp_dim \scan_stop: }
+ \tex_divide:D \l__ctex_tmp_int \ccwd
+ \int_compare:nNnTF \l__ctex_tmp_int > \c_zero_int
{
- \int_set:Nn \l__ctex_tmp_int
- { \tex_dimexpr:D \linewidth - \ccwd - \l__ctex_tmp_dim \scan_stop: }
- \tex_divide:D \l__ctex_tmp_int \ccwd
- \int_compare:nNnTF \l__ctex_tmp_int > \c_zero_int
+ \skip_set:Nn \l__ctex_ccglue_skip
{
- \skip_set:Nn \l__ctex_ccglue_skip
+ \c_zero_dim plus \dim_eval:n
{
- \c_zero_dim plus \dim_eval:n
- {
- ( \linewidth - \ccwd - \l__ctex_tmp_int \ccwd ) /
- \l__ctex_tmp_int
- }
+ ( \linewidth - \ccwd - \l__ctex_tmp_int \ccwd ) /
+ \l__ctex_tmp_int
}
}
- { \skip_zero:N \l__ctex_ccglue_skip }
- \ctex_update_ccglue:
}
+ { \skip_zero:N \l__ctex_ccglue_skip }
+ \ctex_update_ccglue:
}
\cs_new_protected:Npn \ctex_update_parindent:
{
@@ -901,14 +905,14 @@
%% ctex-fontset-windows.def,
%% ctexspa.def,
%% ctexpunct.spa,
-%% ctexmakespa.tex,
-%% ctexspamacro.tex,
-%% zhadobefonts.tex,
-%% zhfandolfonts.tex,
-%% zhfounderfonts.tex,
-%% zhmacfonts.tex,
-%% zhubuntufonts.tex,
-%% zhwindowsfonts.tex,
+%% ctex-spa-make.tex,
+%% ctex-spa-macro.tex,
+%% ctex-zhmap-adobe.tex,
+%% ctex-zhmap-fandol.tex,
+%% ctex-zhmap-founder.tex,
+%% ctex-zhmap-mac.tex,
+%% ctex-zhmap-ubuntu.tex,
+%% ctex-zhmap-windows.tex,
%% ctex-zhconv-index.lua,
%% translator-theorem-dictionary-ChineseGBK.dict,
%% translator-theorem-dictionary-ChineseUTF8.dict, and
Modified: trunk/Master/texmf-dist/tex/latex/ctex/ctexart.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/ctexart.cls 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/ctexart.cls 2020-05-16 21:26:14 UTC (rev 55162)
@@ -27,10 +27,10 @@
\NeedsTeXFormat{LaTeX2e}
\input{ctexbackend.cfg}
\RequirePackage{expl3}
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Chinese adapter for class article (CTEX)}
\ProvidesExplClass{ctexart}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\tl_const:Nx \c__ctex_version_tl
{ \cs_if_exist_use:cF { ver@ \@currname . \@currext } { 9999/99/99 } }
\cs_new_eq:cN { ver at ctex. \@pkgextension } \c__ctex_version_tl
@@ -434,35 +434,39 @@
\ctex_update_em_unit:
\dim_set:Nn \l__ctex_tmp_dim { \l__ctex_line_stretch_tl }
\dim_compare:nNnTF \l__ctex_tmp_dim = \c_max_dim
+ { \__ctex_update_stretch_auxi: }
+ { \__ctex_update_stretch_auxii: }
+ }
+\cs_new_protected:Npn \__ctex_update_stretch_auxi:
+ {
+ \ctex_if_ccglue_touched:TF
+ { \ctex_update_ccwd: }
{
- \ctex_if_ccglue_touched:TF
- { \ctex_update_ccwd: }
- {
- \dim_set:Nn \l__ctex_tmp_dim
- { \baselinestretch \tex_glueexpr:D \f at baselineskip \scan_stop: }
- \skip_set:Nn \l__ctex_ccglue_skip
- { \c_zero_dim plus .08 \l__ctex_tmp_dim }
- \ctex_update_ccglue:
- }
+ \dim_set:Nn \l__ctex_tmp_dim
+ { \baselinestretch \tex_glueexpr:D \f at baselineskip \scan_stop: }
+ \skip_set:Nn \l__ctex_ccglue_skip
+ { \c_zero_dim plus .08 \l__ctex_tmp_dim }
+ \ctex_update_ccglue:
}
+ }
+\cs_new_protected:Npn \__ctex_update_stretch_auxii:
+ {
+ \int_set:Nn \l__ctex_tmp_int
+ { \tex_dimexpr:D \linewidth - \ccwd - \l__ctex_tmp_dim \scan_stop: }
+ \tex_divide:D \l__ctex_tmp_int \ccwd
+ \int_compare:nNnTF \l__ctex_tmp_int > \c_zero_int
{
- \int_set:Nn \l__ctex_tmp_int
- { \tex_dimexpr:D \linewidth - \ccwd - \l__ctex_tmp_dim \scan_stop: }
- \tex_divide:D \l__ctex_tmp_int \ccwd
- \int_compare:nNnTF \l__ctex_tmp_int > \c_zero_int
+ \skip_set:Nn \l__ctex_ccglue_skip
{
- \skip_set:Nn \l__ctex_ccglue_skip
+ \c_zero_dim plus \dim_eval:n
{
- \c_zero_dim plus \dim_eval:n
- {
- ( \linewidth - \ccwd - \l__ctex_tmp_int \ccwd ) /
- \l__ctex_tmp_int
- }
+ ( \linewidth - \ccwd - \l__ctex_tmp_int \ccwd ) /
+ \l__ctex_tmp_int
}
}
- { \skip_zero:N \l__ctex_ccglue_skip }
- \ctex_update_ccglue:
}
+ { \skip_zero:N \l__ctex_ccglue_skip }
+ \ctex_update_ccglue:
}
\cs_new_protected:Npn \ctex_update_parindent:
{
@@ -1217,6 +1221,29 @@
{ \ifnum \c at secnumdepth > \@ne \thesubsection \hskip 1em \relax \fi }
{ \CTEXifname { \CTEXthesubsection \quad } { } }
}
+\ctex_define:n
+ {
+ secnumdepth .code:n = \ctex_heading_depth:ne { secnumdepth } {#1} ,
+ secnumdepth .value_required:n = true ,
+ tocdepth .code:n = \ctex_heading_depth:ne { tocdepth } {#1} ,
+ tocdepth .value_required:n = true
+ }
+\cs_new_protected:Npn \ctex_heading_depth:nn #1#2
+ {
+ \prop_get:NnNTF \c__ctex_heading_level_prop {#2} \l__ctex_tmp_tl
+ { \setcounter {#1} { \l__ctex_tmp_tl } }
+ { \setcounter {#1} { \int_eval:n {#2} } }
+ }
+\cs_generate_variant:Nn \ctex_heading_depth:nn { ne }
+\prop_const_from_keyval:Nn \c__ctex_heading_level_prop
+ {
+ part = 0 ,
+ section = 1 ,
+ subsection = 2 ,
+ subsubsection = 3 ,
+ paragraph = 4 ,
+ subparagraph = 5
+ }
\cs_new_protected:Npn \CTEX at setcurrentlabel@n #1
{
\protected at edef \@currentlabel
@@ -1525,14 +1552,14 @@
%% ctex-fontset-windows.def,
%% ctexspa.def,
%% ctexpunct.spa,
-%% ctexmakespa.tex,
-%% ctexspamacro.tex,
-%% zhadobefonts.tex,
-%% zhfandolfonts.tex,
-%% zhfounderfonts.tex,
-%% zhmacfonts.tex,
-%% zhubuntufonts.tex,
-%% zhwindowsfonts.tex,
+%% ctex-spa-make.tex,
+%% ctex-spa-macro.tex,
+%% ctex-zhmap-adobe.tex,
+%% ctex-zhmap-fandol.tex,
+%% ctex-zhmap-founder.tex,
+%% ctex-zhmap-mac.tex,
+%% ctex-zhmap-ubuntu.tex,
+%% ctex-zhmap-windows.tex,
%% ctex-zhconv-index.lua,
%% translator-theorem-dictionary-ChineseGBK.dict,
%% translator-theorem-dictionary-ChineseUTF8.dict, and
Modified: trunk/Master/texmf-dist/tex/latex/ctex/ctexbeamer.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/ctexbeamer.cls 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/ctexbeamer.cls 2020-05-16 21:26:14 UTC (rev 55162)
@@ -27,10 +27,10 @@
\NeedsTeXFormat{LaTeX2e}
\input{ctexbackend.cfg}
\RequirePackage{expl3}
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Chinese adapter for class beamer (CTEX)}
\ProvidesExplClass{ctexbeamer}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\tl_const:Nx \c__ctex_version_tl
{ \cs_if_exist_use:cF { ver@ \@currname . \@currext } { 9999/99/99 } }
\cs_new_eq:cN { ver at ctex. \@pkgextension } \c__ctex_version_tl
@@ -426,35 +426,39 @@
\ctex_update_em_unit:
\dim_set:Nn \l__ctex_tmp_dim { \l__ctex_line_stretch_tl }
\dim_compare:nNnTF \l__ctex_tmp_dim = \c_max_dim
+ { \__ctex_update_stretch_auxi: }
+ { \__ctex_update_stretch_auxii: }
+ }
+\cs_new_protected:Npn \__ctex_update_stretch_auxi:
+ {
+ \ctex_if_ccglue_touched:TF
+ { \ctex_update_ccwd: }
{
- \ctex_if_ccglue_touched:TF
- { \ctex_update_ccwd: }
- {
- \dim_set:Nn \l__ctex_tmp_dim
- { \baselinestretch \tex_glueexpr:D \f at baselineskip \scan_stop: }
- \skip_set:Nn \l__ctex_ccglue_skip
- { \c_zero_dim plus .08 \l__ctex_tmp_dim }
- \ctex_update_ccglue:
- }
+ \dim_set:Nn \l__ctex_tmp_dim
+ { \baselinestretch \tex_glueexpr:D \f at baselineskip \scan_stop: }
+ \skip_set:Nn \l__ctex_ccglue_skip
+ { \c_zero_dim plus .08 \l__ctex_tmp_dim }
+ \ctex_update_ccglue:
}
+ }
+\cs_new_protected:Npn \__ctex_update_stretch_auxii:
+ {
+ \int_set:Nn \l__ctex_tmp_int
+ { \tex_dimexpr:D \linewidth - \ccwd - \l__ctex_tmp_dim \scan_stop: }
+ \tex_divide:D \l__ctex_tmp_int \ccwd
+ \int_compare:nNnTF \l__ctex_tmp_int > \c_zero_int
{
- \int_set:Nn \l__ctex_tmp_int
- { \tex_dimexpr:D \linewidth - \ccwd - \l__ctex_tmp_dim \scan_stop: }
- \tex_divide:D \l__ctex_tmp_int \ccwd
- \int_compare:nNnTF \l__ctex_tmp_int > \c_zero_int
+ \skip_set:Nn \l__ctex_ccglue_skip
{
- \skip_set:Nn \l__ctex_ccglue_skip
+ \c_zero_dim plus \dim_eval:n
{
- \c_zero_dim plus \dim_eval:n
- {
- ( \linewidth - \ccwd - \l__ctex_tmp_int \ccwd ) /
- \l__ctex_tmp_int
- }
+ ( \linewidth - \ccwd - \l__ctex_tmp_int \ccwd ) /
+ \l__ctex_tmp_int
}
}
- { \skip_zero:N \l__ctex_ccglue_skip }
- \ctex_update_ccglue:
}
+ { \skip_zero:N \l__ctex_ccglue_skip }
+ \ctex_update_ccglue:
}
\cs_new_protected:Npn \ctex_update_parindent:
{
@@ -726,6 +730,27 @@
\defbeamertemplatealias{section page}{default}{CTEX}
\defbeamertemplatealias{subsection page}{default}{CTEX}
\ExplSyntaxOn
+\ctex_define:n
+ {
+ tocdepth .code:n = \ctex_heading_depth:ne { tocdepth } {#1} ,
+ tocdepth .value_required:n = true
+ }
+\cs_new_protected:Npn \ctex_heading_depth:nn #1#2
+ {
+ \prop_get:NnNTF \c__ctex_heading_level_prop {#2} \l__ctex_tmp_tl
+ { \setcounter {#1} { \l__ctex_tmp_tl } }
+ { \setcounter {#1} { \int_eval:n {#2} } }
+ }
+\cs_generate_variant:Nn \ctex_heading_depth:nn { ne }
+\prop_const_from_keyval:Nn \c__ctex_heading_level_prop
+ {
+ part = 0 ,
+ section = 1 ,
+ subsection = 2 ,
+ subsubsection = 3 ,
+ paragraph = 4 ,
+ subparagraph = 5
+ }
\cs_new_protected:Npn \CTEX at setcurrentlabel@n #1
{
\protected at edef \@currentlabel
@@ -1034,14 +1059,14 @@
%% ctex-fontset-windows.def,
%% ctexspa.def,
%% ctexpunct.spa,
-%% ctexmakespa.tex,
-%% ctexspamacro.tex,
-%% zhadobefonts.tex,
-%% zhfandolfonts.tex,
-%% zhfounderfonts.tex,
-%% zhmacfonts.tex,
-%% zhubuntufonts.tex,
-%% zhwindowsfonts.tex,
+%% ctex-spa-make.tex,
+%% ctex-spa-macro.tex,
+%% ctex-zhmap-adobe.tex,
+%% ctex-zhmap-fandol.tex,
+%% ctex-zhmap-founder.tex,
+%% ctex-zhmap-mac.tex,
+%% ctex-zhmap-ubuntu.tex,
+%% ctex-zhmap-windows.tex,
%% ctex-zhconv-index.lua,
%% translator-theorem-dictionary-ChineseGBK.dict,
%% translator-theorem-dictionary-ChineseUTF8.dict, and
Modified: trunk/Master/texmf-dist/tex/latex/ctex/ctexbook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/ctexbook.cls 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/ctexbook.cls 2020-05-16 21:26:14 UTC (rev 55162)
@@ -27,10 +27,10 @@
\NeedsTeXFormat{LaTeX2e}
\input{ctexbackend.cfg}
\RequirePackage{expl3}
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Chinese adapter for class book (CTEX)}
\ProvidesExplClass{ctexbook}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\tl_const:Nx \c__ctex_version_tl
{ \cs_if_exist_use:cF { ver@ \@currname . \@currext } { 9999/99/99 } }
\cs_new_eq:cN { ver at ctex. \@pkgextension } \c__ctex_version_tl
@@ -434,35 +434,39 @@
\ctex_update_em_unit:
\dim_set:Nn \l__ctex_tmp_dim { \l__ctex_line_stretch_tl }
\dim_compare:nNnTF \l__ctex_tmp_dim = \c_max_dim
+ { \__ctex_update_stretch_auxi: }
+ { \__ctex_update_stretch_auxii: }
+ }
+\cs_new_protected:Npn \__ctex_update_stretch_auxi:
+ {
+ \ctex_if_ccglue_touched:TF
+ { \ctex_update_ccwd: }
{
- \ctex_if_ccglue_touched:TF
- { \ctex_update_ccwd: }
- {
- \dim_set:Nn \l__ctex_tmp_dim
- { \baselinestretch \tex_glueexpr:D \f at baselineskip \scan_stop: }
- \skip_set:Nn \l__ctex_ccglue_skip
- { \c_zero_dim plus .08 \l__ctex_tmp_dim }
- \ctex_update_ccglue:
- }
+ \dim_set:Nn \l__ctex_tmp_dim
+ { \baselinestretch \tex_glueexpr:D \f at baselineskip \scan_stop: }
+ \skip_set:Nn \l__ctex_ccglue_skip
+ { \c_zero_dim plus .08 \l__ctex_tmp_dim }
+ \ctex_update_ccglue:
}
+ }
+\cs_new_protected:Npn \__ctex_update_stretch_auxii:
+ {
+ \int_set:Nn \l__ctex_tmp_int
+ { \tex_dimexpr:D \linewidth - \ccwd - \l__ctex_tmp_dim \scan_stop: }
+ \tex_divide:D \l__ctex_tmp_int \ccwd
+ \int_compare:nNnTF \l__ctex_tmp_int > \c_zero_int
{
- \int_set:Nn \l__ctex_tmp_int
- { \tex_dimexpr:D \linewidth - \ccwd - \l__ctex_tmp_dim \scan_stop: }
- \tex_divide:D \l__ctex_tmp_int \ccwd
- \int_compare:nNnTF \l__ctex_tmp_int > \c_zero_int
+ \skip_set:Nn \l__ctex_ccglue_skip
{
- \skip_set:Nn \l__ctex_ccglue_skip
+ \c_zero_dim plus \dim_eval:n
{
- \c_zero_dim plus \dim_eval:n
- {
- ( \linewidth - \ccwd - \l__ctex_tmp_int \ccwd ) /
- \l__ctex_tmp_int
- }
+ ( \linewidth - \ccwd - \l__ctex_tmp_int \ccwd ) /
+ \l__ctex_tmp_int
}
}
- { \skip_zero:N \l__ctex_ccglue_skip }
- \ctex_update_ccglue:
}
+ { \skip_zero:N \l__ctex_ccglue_skip }
+ \ctex_update_ccglue:
}
\cs_new_protected:Npn \ctex_update_parindent:
{
@@ -1344,6 +1348,30 @@
{ \ifnum \c at secnumdepth > \z@ \thesection . ~ \ \fi }
{ \CTEXifname { \CTEXthesection \quad } { } }
}
+\ctex_define:n
+ {
+ secnumdepth .code:n = \ctex_heading_depth:ne { secnumdepth } {#1} ,
+ secnumdepth .value_required:n = true ,
+ tocdepth .code:n = \ctex_heading_depth:ne { tocdepth } {#1} ,
+ tocdepth .value_required:n = true
+ }
+\cs_new_protected:Npn \ctex_heading_depth:nn #1#2
+ {
+ \prop_get:NnNTF \c__ctex_heading_level_prop {#2} \l__ctex_tmp_tl
+ { \setcounter {#1} { \l__ctex_tmp_tl } }
+ { \setcounter {#1} { \int_eval:n {#2} } }
+ }
+\cs_generate_variant:Nn \ctex_heading_depth:nn { ne }
+\prop_const_from_keyval:Nn \c__ctex_heading_level_prop
+ {
+ part = -1 ,
+ chapter = 0 ,
+ section = 1 ,
+ subsection = 2 ,
+ subsubsection = 3 ,
+ paragraph = 4 ,
+ subparagraph = 5
+ }
\cs_new_protected:Npn \CTEX at setcurrentlabel@n #1
{
\protected at edef \@currentlabel
@@ -1652,14 +1680,14 @@
%% ctex-fontset-windows.def,
%% ctexspa.def,
%% ctexpunct.spa,
-%% ctexmakespa.tex,
-%% ctexspamacro.tex,
-%% zhadobefonts.tex,
-%% zhfandolfonts.tex,
-%% zhfounderfonts.tex,
-%% zhmacfonts.tex,
-%% zhubuntufonts.tex,
-%% zhwindowsfonts.tex,
+%% ctex-spa-make.tex,
+%% ctex-spa-macro.tex,
+%% ctex-zhmap-adobe.tex,
+%% ctex-zhmap-fandol.tex,
+%% ctex-zhmap-founder.tex,
+%% ctex-zhmap-mac.tex,
+%% ctex-zhmap-ubuntu.tex,
+%% ctex-zhmap-windows.tex,
%% ctex-zhconv-index.lua,
%% translator-theorem-dictionary-ChineseGBK.dict,
%% translator-theorem-dictionary-ChineseUTF8.dict, and
Modified: trunk/Master/texmf-dist/tex/latex/ctex/ctexcap.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/ctexcap.sty 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/ctexcap.sty 2020-05-16 21:26:14 UTC (rev 55162)
@@ -26,10 +26,10 @@
%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Chinese adapter in LaTeX (CTEX)}
\ProvidesExplPackage{ctexcap}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\clist_new:N \l__ctex_ctexcap_options_clist
\clist_set:Nx \l__ctex_ctexcap_options_clist
{ \exp_not:v { opt@ \@currname . \@currext } , heading }
Modified: trunk/Master/texmf-dist/tex/latex/ctex/ctexheading.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/ctexheading.sty 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/ctexheading.sty 2020-05-16 21:26:14 UTC (rev 55162)
@@ -26,10 +26,10 @@
%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Heading style modification (CTEX)}
\ProvidesExplPackage{ctexheading}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\RequirePackage { xparse , l3keys2e }
\RequirePackage { ctexhook , ctexpatch }
\tl_clear_new:N \l__ctex_tmp_tl
@@ -185,14 +185,14 @@
%% ctex-fontset-windows.def,
%% ctexspa.def,
%% ctexpunct.spa,
-%% ctexmakespa.tex,
-%% ctexspamacro.tex,
-%% zhadobefonts.tex,
-%% zhfandolfonts.tex,
-%% zhfounderfonts.tex,
-%% zhmacfonts.tex,
-%% zhubuntufonts.tex,
-%% zhwindowsfonts.tex,
+%% ctex-spa-make.tex,
+%% ctex-spa-macro.tex,
+%% ctex-zhmap-adobe.tex,
+%% ctex-zhmap-fandol.tex,
+%% ctex-zhmap-founder.tex,
+%% ctex-zhmap-mac.tex,
+%% ctex-zhmap-ubuntu.tex,
+%% ctex-zhmap-windows.tex,
%% ctex-zhconv-index.lua,
%% translator-theorem-dictionary-ChineseGBK.dict,
%% translator-theorem-dictionary-ChineseUTF8.dict, and
Modified: trunk/Master/texmf-dist/tex/latex/ctex/ctexhook.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/ctexhook.sty 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/ctexhook.sty 2020-05-16 21:26:14 UTC (rev 55162)
@@ -26,10 +26,10 @@
%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Document and package hooks (CTEX)}
\ProvidesExplPackage{ctexhook}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\cs_new_protected:Npn \ctex_at_end_preamble:n
{ \tl_gput_right:Nn \g__ctex_end_preamble_hook_tl }
\cs_new_protected:Npn \ctex_after_end_preamble:n
Modified: trunk/Master/texmf-dist/tex/latex/ctex/ctexpatch.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/ctexpatch.sty 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/ctexpatch.sty 2020-05-16 21:26:14 UTC (rev 55162)
@@ -26,10 +26,10 @@
%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Patching commands (CTEX)}
\ProvidesExplPackage{ctexpatch}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\cs_new_protected:Npn \ctex_patch_cmd_once:NnnnTF #1#2
{
\ctex_patch_boot:NNnnTF \__ctex_patch_cmd:Nnnnnw #1
Modified: trunk/Master/texmf-dist/tex/latex/ctex/ctexrep.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/ctexrep.cls 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/ctexrep.cls 2020-05-16 21:26:14 UTC (rev 55162)
@@ -27,10 +27,10 @@
\NeedsTeXFormat{LaTeX2e}
\input{ctexbackend.cfg}
\RequirePackage{expl3}
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Chinese adapter for class report (CTEX)}
\ProvidesExplClass{ctexrep}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\tl_const:Nx \c__ctex_version_tl
{ \cs_if_exist_use:cF { ver@ \@currname . \@currext } { 9999/99/99 } }
\cs_new_eq:cN { ver at ctex. \@pkgextension } \c__ctex_version_tl
@@ -434,35 +434,39 @@
\ctex_update_em_unit:
\dim_set:Nn \l__ctex_tmp_dim { \l__ctex_line_stretch_tl }
\dim_compare:nNnTF \l__ctex_tmp_dim = \c_max_dim
+ { \__ctex_update_stretch_auxi: }
+ { \__ctex_update_stretch_auxii: }
+ }
+\cs_new_protected:Npn \__ctex_update_stretch_auxi:
+ {
+ \ctex_if_ccglue_touched:TF
+ { \ctex_update_ccwd: }
{
- \ctex_if_ccglue_touched:TF
- { \ctex_update_ccwd: }
- {
- \dim_set:Nn \l__ctex_tmp_dim
- { \baselinestretch \tex_glueexpr:D \f at baselineskip \scan_stop: }
- \skip_set:Nn \l__ctex_ccglue_skip
- { \c_zero_dim plus .08 \l__ctex_tmp_dim }
- \ctex_update_ccglue:
- }
+ \dim_set:Nn \l__ctex_tmp_dim
+ { \baselinestretch \tex_glueexpr:D \f at baselineskip \scan_stop: }
+ \skip_set:Nn \l__ctex_ccglue_skip
+ { \c_zero_dim plus .08 \l__ctex_tmp_dim }
+ \ctex_update_ccglue:
}
+ }
+\cs_new_protected:Npn \__ctex_update_stretch_auxii:
+ {
+ \int_set:Nn \l__ctex_tmp_int
+ { \tex_dimexpr:D \linewidth - \ccwd - \l__ctex_tmp_dim \scan_stop: }
+ \tex_divide:D \l__ctex_tmp_int \ccwd
+ \int_compare:nNnTF \l__ctex_tmp_int > \c_zero_int
{
- \int_set:Nn \l__ctex_tmp_int
- { \tex_dimexpr:D \linewidth - \ccwd - \l__ctex_tmp_dim \scan_stop: }
- \tex_divide:D \l__ctex_tmp_int \ccwd
- \int_compare:nNnTF \l__ctex_tmp_int > \c_zero_int
+ \skip_set:Nn \l__ctex_ccglue_skip
{
- \skip_set:Nn \l__ctex_ccglue_skip
+ \c_zero_dim plus \dim_eval:n
{
- \c_zero_dim plus \dim_eval:n
- {
- ( \linewidth - \ccwd - \l__ctex_tmp_int \ccwd ) /
- \l__ctex_tmp_int
- }
+ ( \linewidth - \ccwd - \l__ctex_tmp_int \ccwd ) /
+ \l__ctex_tmp_int
}
}
- { \skip_zero:N \l__ctex_ccglue_skip }
- \ctex_update_ccglue:
}
+ { \skip_zero:N \l__ctex_ccglue_skip }
+ \ctex_update_ccglue:
}
\cs_new_protected:Npn \ctex_update_parindent:
{
@@ -1339,6 +1343,30 @@
{ \ifnum \c at secnumdepth > \z@ \thesection . ~ \ \fi }
{ \CTEXifname { \CTEXthesection \quad } { } }
}
+\ctex_define:n
+ {
+ secnumdepth .code:n = \ctex_heading_depth:ne { secnumdepth } {#1} ,
+ secnumdepth .value_required:n = true ,
+ tocdepth .code:n = \ctex_heading_depth:ne { tocdepth } {#1} ,
+ tocdepth .value_required:n = true
+ }
+\cs_new_protected:Npn \ctex_heading_depth:nn #1#2
+ {
+ \prop_get:NnNTF \c__ctex_heading_level_prop {#2} \l__ctex_tmp_tl
+ { \setcounter {#1} { \l__ctex_tmp_tl } }
+ { \setcounter {#1} { \int_eval:n {#2} } }
+ }
+\cs_generate_variant:Nn \ctex_heading_depth:nn { ne }
+\prop_const_from_keyval:Nn \c__ctex_heading_level_prop
+ {
+ part = -1 ,
+ chapter = 0 ,
+ section = 1 ,
+ subsection = 2 ,
+ subsubsection = 3 ,
+ paragraph = 4 ,
+ subparagraph = 5
+ }
\cs_new_protected:Npn \CTEX at setcurrentlabel@n #1
{
\protected at edef \@currentlabel
@@ -1647,14 +1675,14 @@
%% ctex-fontset-windows.def,
%% ctexspa.def,
%% ctexpunct.spa,
-%% ctexmakespa.tex,
-%% ctexspamacro.tex,
-%% zhadobefonts.tex,
-%% zhfandolfonts.tex,
-%% zhfounderfonts.tex,
-%% zhmacfonts.tex,
-%% zhubuntufonts.tex,
-%% zhwindowsfonts.tex,
+%% ctex-spa-make.tex,
+%% ctex-spa-macro.tex,
+%% ctex-zhmap-adobe.tex,
+%% ctex-zhmap-fandol.tex,
+%% ctex-zhmap-founder.tex,
+%% ctex-zhmap-mac.tex,
+%% ctex-zhmap-ubuntu.tex,
+%% ctex-zhmap-windows.tex,
%% ctex-zhconv-index.lua,
%% translator-theorem-dictionary-ChineseGBK.dict,
%% translator-theorem-dictionary-ChineseUTF8.dict, and
Modified: trunk/Master/texmf-dist/tex/latex/ctex/ctexsize.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/ctexsize.sty 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/ctexsize.sty 2020-05-16 21:26:14 UTC (rev 55162)
@@ -26,10 +26,10 @@
%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Chinese font size definition (CTEX)}
\ProvidesExplPackage{ctexsize}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\RequirePackage { xparse , l3keys2e }
\RequirePackage { fix-cm }
\cs_new_protected:Npn \ctex_define_option:n
@@ -242,14 +242,14 @@
%% ctex-fontset-windows.def,
%% ctexspa.def,
%% ctexpunct.spa,
-%% ctexmakespa.tex,
-%% ctexspamacro.tex,
-%% zhadobefonts.tex,
-%% zhfandolfonts.tex,
-%% zhfounderfonts.tex,
-%% zhmacfonts.tex,
-%% zhubuntufonts.tex,
-%% zhwindowsfonts.tex,
+%% ctex-spa-make.tex,
+%% ctex-spa-macro.tex,
+%% ctex-zhmap-adobe.tex,
+%% ctex-zhmap-fandol.tex,
+%% ctex-zhmap-founder.tex,
+%% ctex-zhmap-mac.tex,
+%% ctex-zhmap-ubuntu.tex,
+%% ctex-zhmap-windows.tex,
%% ctex-zhconv-index.lua,
%% translator-theorem-dictionary-ChineseGBK.dict,
%% translator-theorem-dictionary-ChineseUTF8.dict, and
Modified: trunk/Master/texmf-dist/tex/latex/ctex/ctexspa.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/ctexspa.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/ctexspa.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -26,7 +26,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesFile{ctexspa.def}%
- [2020/05/02 v2.5.1 Space info for CJKpunct (CTEX)]
+ [2020/05/16 v2.5.2 Space info for CJKpunct (CTEX)]
\ctexspadef{adobezhsong}{70,15,61,8,63,14,58,7,64,13,62,12,60,11,61,15,62,14,51,6,58,5,58,8,7,5,12,12,10,68,13,63,17,63,20,69,19,69,17,63,19,70,17,55,10,10,14,63,10,65,10,61,13,62,15,61,7,49,7,56,8,58,15,69,8,61,14,63,8,57,,,}
\ctexspadef{adobezhhei}{78,3,64,3,64,2,61,3,72,3,70,3,72,3,70,3,60,3,51,3,62,3,66,3,0,0,10,10,3,70,5,70,6,75,6,78,17,67,13,67,17,67,4,50,8,8,3,72,3,70,3,72,3,70,3,60,3,51,3,62,3,66,3,78,7,62,3,63,3,61,,,}
\ctexspadef{adobezhkai}{76,10,55,8,63,4,62,4,71,4,65,4,71,4,74,4,54,4,54,4,62,4,62,4,0,0,11,11,5,72,6,71,7,78,7,79,18,68,18,68,18,68,2,46,14,12,4,71,4,65,4,71,4,74,4,54,4,54,4,62,4,62,10,76,8,55,4,63,4,62,,,}
Modified: trunk/Master/texmf-dist/tex/latex/ctex/ctxdoc.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/ctxdoc.cls 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/ctxdoc.cls 2020-05-16 21:26:14 UTC (rev 55162)
@@ -21,7 +21,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
-\GetIdInfo$Id: ctxdoc.cls 25394ad 2020-04-20 20:56:32 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctxdoc.cls 1769321 2020-05-06 19:54:31 +0800 Qing Lee <sobenlee at gmail.com> $
{ctex documentation (CTEX)}
\ProvidesExplClass{ctxdoc}{\ExplFileDate}{}{\ExplFileDescription}
\ExplSyntaxOff
@@ -72,7 +72,9 @@
BoldItalicFont = *tx,
HyphenChar = None]
\setmathfont{texgyrepagella-math.otf}
-\captionsetup{strut=off, labelsep=quad, labelfont+=bf}
+\captionsetup{%
+ strut=off, labelsep=quad, labelfont+=bf,
+ figureposition = bottom, tableposition = top}
%% <--- http://tex.stackexchange.com/a/40896
\patchcmd{\@addtocurcol}%
{\vskip \intextsep}%
@@ -169,10 +171,14 @@
\AfterEndEnvironment{function}{\ctexfixprevdepth}
\AtBeginEnvironment{syntax}{\linespread{1}\ctexplainps\ctexdisableecglue}
\BeforeBeginEnvironment{SideBySideExample}{\par\addvspace{\medskipamount}}
-\newcommand*\exptarget{\Hy at raisedlink{\hypertarget{expstar}{}}}
-\newcommand*\rexptarget{\Hy at raisedlink{\hypertarget{rexpstar}{}}}
-\newcommand*\expstar{\hyperlink{expstar}{$\star$}}
-\newcommand*\rexpstar{\hyperlink{rexpstar}{\ding{73}}}
+\newrobustcmd\exptarget{%
+ \AddLineBeginMainAux{\csgdef{Codedoc at expstar}{}}%
+ \Hy at raisedlink{\hypertarget{expstar}{}}}
+\newrobustcmd\rexptarget{%
+ \AddLineBeginMainAux{\csgdef{Codedoc at rexpstar}{}}%
+ \Hy at raisedlink{\hypertarget{rexpstar}{}}}
+\newrobustcmd\expstar{\hyperlink{expstar}{$\star$}}
+\newrobustcmd\rexpstar{\hyperlink{rexpstar}{\ding{73}}}
\ExplSyntaxOn
%% l3doc 会设置列表环境中 \listparindent=\z@,我们在这里恢复它。
\cs_set_eq:NN \list \__codedoc_oldlist:nn
@@ -814,6 +820,7 @@
\def\TTF{\defaultval{true}\orbar false}
\def\TFF{true\orbar\defaultval{false}}
\protected\def\opt{\texttt}
+\def\TeX{\hologo{TeX}}
\def\pdfTeX{\hologo{pdfTeX}}
\def\XeTeX{\hologo{XeTeX}}
\def\XeLaTeX{\hologo{XeLaTeX}}
@@ -822,15 +829,29 @@
\def\LaTeX{\hologo{LaTeX}}
\def\LaTeXe{\hologo{LaTeX2e}}
\def\LaTeXiii{\hologo{LaTeX3}}
-\def\dvipdfmx{DVIPDFM\textit{x}}
-\def\TeX{\hologo{TeX}}
-\def\ApTeX{Ap\TeX}
-\def\ApLaTeX{Ap\LaTeX}
-\def\upTeX{up\TeX}
-\def\upLaTeX{up\LaTeX}
+\def\dvipdfmx{\hologo{DVIPDFMx}}
+\def\TeXLive{\hologo{TeXLive}}
+\def\MiKTeX{\hologo{MiKTeX}}
+\def\pTeX{\hologo{pTeX}}
+\def\ApTeX{\hologo{ApTeX}}
+\def\upTeX{\hologo{upTeX}}
+\def\ApLaTeX{\hologo{ApLaTeX}}
+\def\upLaTeX{\hologo{upLaTeX}}
+\def\HoLogo at pTeX#1{p\kern -.15em \hologo{TeX}}
+\def\HoLogo at pLaTeX#1{p\kern -.05em \hologo{LaTeX}}
+\def\HoLogo at ApTeX#1{A\kern -.05em \hologo{pTeX}}
+\def\HoLogo at upTeX#1{u\kern -.05em \hologo{pTeX}}
+\def\HoLogo at ApLaTeX#1{A\kern -.05em \hologo{pLaTeX}}
+\def\HoLogo at upLaTeX#1{u\kern -.05em \hologo{pLaTeX}}
+\def\HoLogoBkm at pTeX#1{p\hologo{TeX}}
+\def\HoLogoBkm at pLaTeX#1{p\hologo{LaTeX}}
+\def\HoLogoBkm at ApTeX#1{A\hologo{pTeX}}
+\def\HoLogoBkm at upTeX#1{u\hologo{pTeX}}
+\def\HoLogoBkm at ApLaTeX#1{A\hologo{pLaTeX}}
+\def\HoLogoBkm at upLaTeX#1{u\hologo{pLaTeX}}
+\def\HoLogo at TeXLive#1{\TeX\ Live}
+\def\HoLogo at DVIPDFMx#1{DVIPDFM\ensuremath{x}}
\def\bashcmd{\texttt}
-\def\TeXLive{\TeX\ Live}
-\def\MiKTeX{\hologo{MiKTeX}}
\def\BSTACK{\begin{tabular}[t]{@{}l@{}}}
\def\ESTACK{\end{tabular}}
\newenvironment{defaultcapconfig}{%
Modified: trunk/Master/texmf-dist/tex/latex/ctex/dictionary/translator-theorem-dictionary-ChineseGBK.dict
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/dictionary/translator-theorem-dictionary-ChineseGBK.dict 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/dictionary/translator-theorem-dictionary-ChineseGBK.dict 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesDictionary{translator-theorem-dictionary}{ChineseGBK}%
- [2020/05/02 v2.5.1 Chinese translation for theorem name (CTEX)]
+ [2020/05/16 v2.5.2 Chinese translation for theorem name (CTEX)]
\providetranslation{Comments}{\xC6\xC0\xC2\xDB}
\providetranslation{comments}{\xC6\xC0\xC2\xDB}
\providetranslation{Comment}{\xC6\xC0\xC2\xDB}
Modified: trunk/Master/texmf-dist/tex/latex/ctex/dictionary/translator-theorem-dictionary-ChineseUTF8.dict
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/dictionary/translator-theorem-dictionary-ChineseUTF8.dict 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/dictionary/translator-theorem-dictionary-ChineseUTF8.dict 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesDictionary{translator-theorem-dictionary}{ChineseUTF8}%
- [2020/05/02 v2.5.1 Chinese translation for theorem name (CTEX)]
+ [2020/05/16 v2.5.2 Chinese translation for theorem name (CTEX)]
\providetranslation{Comments}{评论}
\providetranslation{comments}{评论}
\providetranslation{Comment}{评论}
Modified: trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-aptex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-aptex.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-aptex.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Asian pTeX adapter (CTEX)}
\ProvidesExplFile{ctex-engine-aptex.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\cs_new_protected:Npn \ctex_set_zhmap:n
{ \tl_gput_right:Nx \g__ctex_zhmap_tl }
\cs_new_protected:Npn \ctex_use_zhmap:
@@ -42,15 +42,6 @@
}
\tl_new:N \g__ctex_zhmap_tl
\@onlypreamble \ctex_set_zhmap:n
-\tl_if_exist:NF \CJKfamilydefault
- { \tl_const:Nn \CJKfamilydefault { \CJKrmdefault } }
-\tl_if_exist:NF \CJKrmdefault { \tl_const:Nn \CJKrmdefault { zhrm } }
-\tl_if_exist:NF \CJKsfdefault { \tl_const:Nn \CJKsfdefault { zhsf } }
-\tl_if_exist:NF \CJKttdefault { \tl_const:Nn \CJKttdefault { zhtt } }
-\tl_set:Nn \kanjifamilydefault { \CJKfamilydefault }
-\g at addto@macro \@rmfamilyhook { \kanjifamily { \CJKrmdefault } }
-\g at addto@macro \@sffamilyhook { \kanjifamily { \CJKsfdefault } }
-\g at addto@macro \@ttfamilyhook { \kanjifamily { \CJKttdefault } }
\NewDocumentCommand \CJKfamily { m }
{ \kanjifamily {#1} \selectfont }
\DeclareErrorKanjiFont {JY2}{zhrm}{m}{n}{10}
@@ -59,8 +50,6 @@
\DeclareSymbolFont{mincho}{JY2}{zhrm}{m}{n}
\SetSymbolFont{mincho}{bold}{JY2}{zhrm}{bx}{n}
\jfam \symmincho
-\ctex_at_end_preamble:n { \ctex_update_default_family: }
-\normalfont
\ctex_patch_cmd_once:NnnnTF \em
{ \ExplSyntaxOff }
{ \eminnershape \else \gtfamily \itshape }
@@ -124,6 +113,32 @@
\@onlypreamble \ctex_set_upmap_unicode:nnn
\@onlypreamble \ctex_set_upfonts:nnnnnn
\RequirePackage { pxeverysel }
+\cs_new_protected:Npn \ctex_provide_font_hook:NNN #1#2
+ {
+ \exp_args:Nc \__ctex_provide_font_hook_aux:NNNN
+ { CTEX \cs_to_str:N #2 } #1#2
+ }
+\cs_new_protected:Npn \__ctex_provide_font_hook_aux:NNNN #1#2#3#4
+ {
+ \tl_new:N #1
+ \cs_if_exist:NTF #3
+ { \tl_gput_right:Nn #3 {#1} }
+ { \ctex_patch_cmd:Nnn #2 {#4} { #1#4 } }
+ }
+\ctex_provide_font_hook:NNN \rmfamily \@rmfamilyhook \selectfont
+\ctex_provide_font_hook:NNN \sffamily \@sffamilyhook \selectfont
+\ctex_provide_font_hook:NNN \ttfamily \@ttfamilyhook \selectfont
+\tl_if_exist:NF \CJKfamilydefault
+ { \tl_const:Nn \CJKfamilydefault { \CJKrmdefault } }
+\tl_if_exist:NF \CJKrmdefault { \tl_const:Nn \CJKrmdefault { zhrm } }
+\tl_if_exist:NF \CJKsfdefault { \tl_const:Nn \CJKsfdefault { zhsf } }
+\tl_if_exist:NF \CJKttdefault { \tl_const:Nn \CJKttdefault { zhtt } }
+\tl_gput_right:Nn \CTEX at rmfamilyhook { \kanjifamily { \CJKrmdefault } }
+\tl_gput_right:Nn \CTEX at sffamilyhook { \kanjifamily { \CJKsfdefault } }
+\tl_gput_right:Nn \CTEX at ttfamilyhook { \kanjifamily { \CJKttdefault } }
+\tl_gset:Nn \kanjifamilydefault { \CJKfamilydefault }
+\normalfont
+\ctex_at_end_preamble:n { \ctex_update_default_family: }
\cs_new_protected:Npn \ctex_update_default_family:
{
\tl_if_eq:NNT \CJKfamilydefault \l__ctex_family_default_init_tl
Modified: trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-luatex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-luatex.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-luatex.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{LuaLaTeX adapter (CTEX)}
\ProvidesExplFile{ctex-engine-luatex.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\msg_new:nnn { ctex } { luatexja-loaded }
{
Package~`luatexja'~can~not~be~loaded~before~`ctex'.\\
@@ -679,16 +679,6 @@
\@onlypreamble \setCJKmathfont
\@onlypreamble \setCJKromanfont
\@onlypreamble \defaultCJKfontfeatures
-\tl_if_exist:NF \CJKfamilydefault
- { \tl_const:Nn \CJKfamilydefault { \CJKrmdefault } }
-\tl_if_exist:NF \CJKrmdefault { \tl_const:Nn \CJKrmdefault { rm } }
-\tl_if_exist:NF \CJKsfdefault { \tl_const:Nn \CJKsfdefault { sf } }
-\tl_if_exist:NF \CJKttdefault { \tl_const:Nn \CJKttdefault { tt } }
-\g at addto@macro \@rmfamilyhook { \CJKfamily { \CJKrmdefault } }
-\g at addto@macro \@sffamilyhook { \CJKfamily { \CJKsfdefault } }
-\g at addto@macro \@ttfamilyhook { \CJKfamily { \CJKttdefault } }
-\g at addto@macro \@defaultfamilyhook { \CJKfamily { \CJKfamilydefault } }
-\ctex_at_end_preamble:n { \ctex_update_default_family: }
\cs_new_protected:Npn \ctex_ltj_ensure_default_family:
{
\prop_if_empty:NF \g__ctex_ltj_family_font_name_prop
@@ -966,7 +956,7 @@
{ \clist_map_inline:nn {#1} { \__ctex_ltj_declare_char_range:nn ##1 } }
\cs_generate_variant:Nn \ctex_ltj_declare_char_range:n { e }
\cs_new_protected:Npn \__ctex_ltj_declare_char_range:nn #1
- { \exp_args:Ne \ctex_ltj_declare_char_range:nn { \tl_trim_spaces:n {#1} } }
+ { \tl_trim_spaces_apply:nN {#1} \ctex_ltj_declare_char_range:nn }
\cs_new_protected:Npn \ctex_ltj_declare_char_range:nn #1#2
{
\tl_clear:N \l__ctex_ltj_char_range_tl
@@ -1028,6 +1018,33 @@
{ \ltj at setpar@global \ltjsetkanjiskip }
\cs_new_protected:Npn \ctex_ltj_set_xkanjiskip:N
{ \ltj at setpar@global \ltjsetxkanjiskip }
+\cs_new_protected:Npn \ctex_provide_font_hook:NNN #1#2
+ {
+ \exp_args:Nc \__ctex_provide_font_hook_aux:NNNN
+ { CTEX \cs_to_str:N #2 } #1#2
+ }
+\cs_new_protected:Npn \__ctex_provide_font_hook_aux:NNNN #1#2#3#4
+ {
+ \tl_new:N #1
+ \cs_if_exist:NTF #3
+ { \tl_gput_right:Nn #3 {#1} }
+ { \ctex_patch_cmd:Nnn #2 {#4} { #1#4 } }
+ }
+\ctex_provide_font_hook:NNN \rmfamily \@rmfamilyhook \selectfont
+\ctex_provide_font_hook:NNN \sffamily \@sffamilyhook \selectfont
+\ctex_provide_font_hook:NNN \ttfamily \@ttfamilyhook \selectfont
+\ctex_provide_font_hook:NNN \normalfont \@defaultfamilyhook \usefont
+\tl_if_exist:NF \CJKfamilydefault
+ { \tl_const:Nn \CJKfamilydefault { \CJKrmdefault } }
+\tl_if_exist:NF \CJKrmdefault { \tl_const:Nn \CJKrmdefault { rm } }
+\tl_if_exist:NF \CJKsfdefault { \tl_const:Nn \CJKsfdefault { sf } }
+\tl_if_exist:NF \CJKttdefault { \tl_const:Nn \CJKttdefault { tt } }
+\tl_gput_right:Nn \CTEX at rmfamilyhook { \CJKfamily { \CJKrmdefault } }
+\tl_gput_right:Nn \CTEX at sffamilyhook { \CJKfamily { \CJKsfdefault } }
+\tl_gput_right:Nn \CTEX at ttfamilyhook { \CJKfamily { \CJKttdefault } }
+\tl_gput_right:Nn \CTEX at defaultfamilyhook { \CJKfamily { \CJKfamilydefault } }
+\normalfont
+\ctex_at_end_preamble:n { \ctex_update_default_family: }
\cs_new_protected:Npn \ctex_update_default_family:
{
\tl_if_eq:NNT \CJKfamilydefault \l__ctex_family_default_init_tl
Modified: trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-pdftex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-pdftex.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-pdftex.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{(pdf)LaTeX adapter (CTEX)}
\ProvidesExplFile{ctex-engine-pdftex.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\cs_new_protected:Npn \ctex_set_zhmap:n
{ \tl_gput_right:Nx \g__ctex_zhmap_tl }
\cs_new_protected:Npn \ctex_use_zhmap:
@@ -102,7 +102,7 @@
\tl_set:Nn \CJKrmdefault {#1}
\tl_set:Nn \CJKsfdefault {#2}
\tl_set:Nn \CJKttdefault {#3}
- \ctex_set_zhmap:n { \ctex_zhmap_input:n {#4} }
+ \ctex_set_zhmap:n { \ctex_zhmap_input:n { ctex-zhmap- #4 .tex } }
}
\@onlypreamble \ctex_load_zhmap:nnnn
\cs_new_protected:Npn \ctex_zhmap_input:n #1
@@ -118,15 +118,6 @@
\char_set_catcode:nn { 92 } { \char_value_catcode:n { 92 } }
}
}
- \tl_if_exist:NF \CJKfamilydefault
- { \tl_const:Nn \CJKfamilydefault { \CJKrmdefault } }
- \tl_if_exist:NF \CJKrmdefault { \tl_new:N \CJKrmdefault }
- \tl_if_exist:NF \CJKsfdefault { \tl_new:N \CJKsfdefault }
- \tl_if_exist:NF \CJKttdefault { \tl_new:N \CJKttdefault }
- \g at addto@macro \@rmfamilyhook { \CJKfamily { \CJKrmdefault } }
- \g at addto@macro \@sffamilyhook { \CJKfamily { \CJKsfdefault } }
- \g at addto@macro \@ttfamilyhook { \CJKfamily { \CJKttdefault } }
- \g at addto@macro \@defaultfamilyhook { \CJKfamily { \CJKfamilydefault } }
\fi:
\cs_new_protected:Npn \ctex_CJK_input:n #1
{
@@ -209,7 +200,8 @@
\clist_const:Nn \c__ctex_punct_family_clist
{
zhsong , zhhei , zhfs , zhkai , zhli , zhyou ,
- zhsongb , zhheil , zhheib , zhyoub , zhyahei , zhyaheib
+ zhsongb , zhheil , zhheib , zhyoub ,
+ zhyahei , zhyaheib , zhpf , zhpfb
}
\cs_new_protected:Npn \ctex_punct_map_family:nn #1#2
{
@@ -246,6 +238,34 @@
{ \tl_const:cn { c__ctex_ #1 _punct_spaces_tl } {#2} }
\cs_new_eq:NN \ctexspadef \ctex_punct_space:nn
\ctex_file_input:n { ctexspa.def }
+\reverse_if:N \if_bool:N \g__ctex_zhmCJK_bool
+\cs_new_protected:Npn \ctex_provide_font_hook:NNN #1#2
+ {
+ \exp_args:Nc \__ctex_provide_font_hook_aux:NNNN
+ { CTEX \cs_to_str:N #2 } #1#2
+ }
+\cs_new_protected:Npn \__ctex_provide_font_hook_aux:NNNN #1#2#3#4
+ {
+ \tl_new:N #1
+ \cs_if_exist:NTF #3
+ { \tl_gput_right:Nn #3 {#1} }
+ { \ctex_patch_cmd:Nnn #2 {#4} { #1#4 } }
+ }
+\ctex_provide_font_hook:NNN \rmfamily \@rmfamilyhook \selectfont
+\ctex_provide_font_hook:NNN \sffamily \@sffamilyhook \selectfont
+\ctex_provide_font_hook:NNN \ttfamily \@ttfamilyhook \selectfont
+\ctex_provide_font_hook:NNN \normalfont \@defaultfamilyhook \usefont
+\tl_if_exist:NF \CJKfamilydefault
+ { \tl_const:Nn \CJKfamilydefault { \CJKrmdefault } }
+\tl_if_exist:NF \CJKrmdefault { \tl_const:Nn \CJKrmdefault { rm } }
+\tl_if_exist:NF \CJKsfdefault { \tl_const:Nn \CJKsfdefault { sf } }
+\tl_if_exist:NF \CJKttdefault { \tl_const:Nn \CJKttdefault { tt } }
+\tl_gput_right:Nn \CTEX at rmfamilyhook { \CJKfamily { \CJKrmdefault } }
+\tl_gput_right:Nn \CTEX at sffamilyhook { \CJKfamily { \CJKsfdefault } }
+\tl_gput_right:Nn \CTEX at ttfamilyhook { \CJKfamily { \CJKttdefault } }
+\tl_gput_right:Nn \CTEX at defaultfamilyhook { \CJKfamily { \CJKfamilydefault } }
+\fi:
+\normalfont
\cs_new_protected:Npn \ctex_update_default_family:
{
\tl_if_eq:NNT \CJKfamilydefault \l__ctex_family_default_init_tl
Modified: trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-uptex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-uptex.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-uptex.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{upTeX adapter (CTEX)}
\ProvidesExplFile{ctex-engine-uptex.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\cs_new_protected:Npn \ctex_set_zhmap:n
{ \tl_gput_right:Nx \g__ctex_zhmap_tl }
\cs_new_protected:Npn \ctex_use_zhmap:
@@ -42,15 +42,6 @@
}
\tl_new:N \g__ctex_zhmap_tl
\@onlypreamble \ctex_set_zhmap:n
-\tl_if_exist:NF \CJKfamilydefault
- { \tl_const:Nn \CJKfamilydefault { \CJKrmdefault } }
-\tl_if_exist:NF \CJKrmdefault { \tl_const:Nn \CJKrmdefault { zhrm } }
-\tl_if_exist:NF \CJKsfdefault { \tl_const:Nn \CJKsfdefault { zhsf } }
-\tl_if_exist:NF \CJKttdefault { \tl_const:Nn \CJKttdefault { zhtt } }
-\tl_set:Nn \kanjifamilydefault { \CJKfamilydefault }
-\g at addto@macro \@rmfamilyhook { \kanjifamily { \CJKrmdefault } }
-\g at addto@macro \@sffamilyhook { \kanjifamily { \CJKsfdefault } }
-\g at addto@macro \@ttfamilyhook { \kanjifamily { \CJKttdefault } }
\NewDocumentCommand \CJKfamily { m }
{ \kanjifamily {#1} \selectfont }
\DeclareErrorKanjiFont {JY2}{zhrm}{m}{n}{10}
@@ -59,8 +50,6 @@
\DeclareSymbolFont{mincho}{JY2}{zhrm}{m}{n}
\SetSymbolFont{mincho}{bold}{JY2}{zhrm}{bx}{n}
\jfam \symmincho
-\ctex_at_end_preamble:n { \ctex_update_default_family: }
-\normalfont
\ctex_patch_cmd_once:NnnnTF \em
{ \ExplSyntaxOff }
{ \eminnershape \else \gtfamily \itshape }
@@ -124,6 +113,32 @@
\@onlypreamble \ctex_set_upmap_unicode:nnn
\@onlypreamble \ctex_set_upfonts:nnnnnn
\RequirePackage { pxeverysel }
+\cs_new_protected:Npn \ctex_provide_font_hook:NNN #1#2
+ {
+ \exp_args:Nc \__ctex_provide_font_hook_aux:NNNN
+ { CTEX \cs_to_str:N #2 } #1#2
+ }
+\cs_new_protected:Npn \__ctex_provide_font_hook_aux:NNNN #1#2#3#4
+ {
+ \tl_new:N #1
+ \cs_if_exist:NTF #3
+ { \tl_gput_right:Nn #3 {#1} }
+ { \ctex_patch_cmd:Nnn #2 {#4} { #1#4 } }
+ }
+\ctex_provide_font_hook:NNN \rmfamily \@rmfamilyhook \selectfont
+\ctex_provide_font_hook:NNN \sffamily \@sffamilyhook \selectfont
+\ctex_provide_font_hook:NNN \ttfamily \@ttfamilyhook \selectfont
+\tl_if_exist:NF \CJKfamilydefault
+ { \tl_const:Nn \CJKfamilydefault { \CJKrmdefault } }
+\tl_if_exist:NF \CJKrmdefault { \tl_const:Nn \CJKrmdefault { zhrm } }
+\tl_if_exist:NF \CJKsfdefault { \tl_const:Nn \CJKsfdefault { zhsf } }
+\tl_if_exist:NF \CJKttdefault { \tl_const:Nn \CJKttdefault { zhtt } }
+\tl_gput_right:Nn \CTEX at rmfamilyhook { \kanjifamily { \CJKrmdefault } }
+\tl_gput_right:Nn \CTEX at sffamilyhook { \kanjifamily { \CJKsfdefault } }
+\tl_gput_right:Nn \CTEX at ttfamilyhook { \kanjifamily { \CJKttdefault } }
+\tl_gset:Nn \kanjifamilydefault { \CJKfamilydefault }
+\normalfont
+\ctex_at_end_preamble:n { \ctex_update_default_family: }
\cs_new_protected:Npn \ctex_update_default_family:
{
\tl_if_eq:NNT \CJKfamilydefault \l__ctex_family_default_init_tl
Modified: trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{XeLaTeX adapter (CTEX)}
\ProvidesExplFile{ctex-engine-xetex.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\RequirePackage { xeCJK }
\exp_args:Nx \xeCJKsetup
{
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fd/c19rm.fd
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fd/c19rm.fd 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fd/c19rm.fd 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesFile{c19rm.fd}%
- [2020/05/02 v2.5.1 Chinese font definition (CTEX)]
+ [2020/05/16 v2.5.2 Chinese font definition (CTEX)]
%%
%% Chinese characters
%%
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fd/c19sf.fd
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fd/c19sf.fd 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fd/c19sf.fd 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesFile{c19sf.fd}%
- [2020/05/02 v2.5.1 Chinese font definition (CTEX)]
+ [2020/05/16 v2.5.2 Chinese font definition (CTEX)]
%%
%% Chinese characters
%%
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fd/c19tt.fd
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fd/c19tt.fd 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fd/c19tt.fd 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesFile{c19tt.fd}%
- [2020/05/02 v2.5.1 Chinese font definition (CTEX)]
+ [2020/05/16 v2.5.2 Chinese font definition (CTEX)]
%%
%% Chinese characters
%%
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fd/c70rm.fd
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fd/c70rm.fd 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fd/c70rm.fd 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesFile{c70rm.fd}%
- [2020/05/02 v2.5.1 Chinese font definition (CTEX)]
+ [2020/05/16 v2.5.2 Chinese font definition (CTEX)]
%%
%% Chinese characters
%%
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fd/c70sf.fd
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fd/c70sf.fd 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fd/c70sf.fd 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesFile{c70sf.fd}%
- [2020/05/02 v2.5.1 Chinese font definition (CTEX)]
+ [2020/05/16 v2.5.2 Chinese font definition (CTEX)]
%%
%% Chinese characters
%%
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fd/c70tt.fd
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fd/c70tt.fd 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fd/c70tt.fd 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesFile{c70tt.fd}%
- [2020/05/02 v2.5.1 Chinese font definition (CTEX)]
+ [2020/05/16 v2.5.2 Chinese font definition (CTEX)]
%%
%% Chinese characters
%%
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fd/jt2zhrm.fd
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fd/jt2zhrm.fd 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fd/jt2zhrm.fd 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesFile{jt2zhrm.fd}%
- [2020/05/02 v2.5.1 Chinese font definition (CTEX)]
+ [2020/05/16 v2.5.2 Chinese font definition (CTEX)]
\DeclareKanjiFamily{JT2}{zhrm}{}
\DeclareFontShape{JT2}{zhrm}{m}{n}{<-> upzhserif-v}{}
\DeclareFontShape{JT2}{zhrm}{m}{it}{<-> upzhserifit-v}{}
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fd/jt2zhsf.fd
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fd/jt2zhsf.fd 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fd/jt2zhsf.fd 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesFile{jt2zhsf.fd}%
- [2020/05/02 v2.5.1 Chinese font definition (CTEX)]
+ [2020/05/16 v2.5.2 Chinese font definition (CTEX)]
\DeclareKanjiFamily{JT2}{zhsf}{}
\DeclareFontShape{JT2}{zhsf}{m}{n}{<-> upzhsans-v}{}
\DeclareFontShape{JT2}{zhsf}{b}{n}{<-> upzhsansb-v}{}
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fd/jt2zhtt.fd
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fd/jt2zhtt.fd 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fd/jt2zhtt.fd 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesFile{jt2zhtt.fd}%
- [2020/05/02 v2.5.1 Chinese font definition (CTEX)]
+ [2020/05/16 v2.5.2 Chinese font definition (CTEX)]
\DeclareKanjiFamily{JT2}{zhtt}{}
\DeclareFontShape{JT2}{zhtt}{m}{n}{<-> upzhmono-v}{}
%%
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fd/jy2zhrm.fd
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fd/jy2zhrm.fd 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fd/jy2zhrm.fd 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesFile{jy2zhrm.fd}%
- [2020/05/02 v2.5.1 Chinese font definition (CTEX)]
+ [2020/05/16 v2.5.2 Chinese font definition (CTEX)]
\DeclareKanjiFamily{JY2}{zhrm}{}
\DeclareFontShape{JY2}{zhrm}{m}{n}{<-> upzhserif-h}{}
\DeclareFontShape{JY2}{zhrm}{m}{it}{<-> upzhserifit-h}{}
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fd/jy2zhsf.fd
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fd/jy2zhsf.fd 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fd/jy2zhsf.fd 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesFile{jy2zhsf.fd}%
- [2020/05/02 v2.5.1 Chinese font definition (CTEX)]
+ [2020/05/16 v2.5.2 Chinese font definition (CTEX)]
\DeclareKanjiFamily{JY2}{zhsf}{}
\DeclareFontShape{JY2}{zhsf}{m}{n}{<-> upzhsans-h}{}
\DeclareFontShape{JY2}{zhsf}{b}{n}{<-> upzhsansb-h}{}
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fd/jy2zhtt.fd
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fd/jy2zhtt.fd 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fd/jy2zhtt.fd 2020-05-16 21:26:14 UTC (rev 55162)
@@ -25,7 +25,7 @@
%% ---------------------------------------------------------------------
%%
\ProvidesFile{jy2zhtt.fd}%
- [2020/05/02 v2.5.1 Chinese font definition (CTEX)]
+ [2020/05/16 v2.5.2 Chinese font definition (CTEX)]
\DeclareKanjiFamily{JY2}{zhtt}{}
\DeclareFontShape{JY2}{zhtt}{m}{n}{<-> upzhmono-h}{}
%%
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-adobe.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-adobe.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-adobe.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Adobe fonts definition (CTEX)}
\ProvidesExplFile{ctex-fontset-adobe.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_fontset_case:nnnn
{ \ctex_fontset_error:n { adobe } }
{
@@ -59,7 +59,7 @@
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
}
{
- \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { zhadobefonts }
+ \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { adobe }
\ctex_punct_set:n { adobe }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-fandol.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-fandol.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-fandol.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Fandol fonts definition (CTEX)}
\ProvidesExplFile{ctex-fontset-fandol.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_fontset_case:nnnn
{ \ctex_fontset_error:n { fandol } }
{
@@ -60,7 +60,7 @@
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
}
{
- \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { zhfandolfonts }
+ \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { fandol }
\ctex_punct_set:n { fandol }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-founder.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-founder.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-founder.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Founder fonts definition (CTEX)}
\ProvidesExplFile{ctex-fontset-founder.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_fontset_case:nnn
{
\ctex_zhmap_case:nnn
@@ -52,7 +52,7 @@
\ctex_punct_map_bfseries:nn { zhyou } { zhyoub }
}
{
- \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { zhfounderfonts }
+ \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { founder }
\ctex_punct_set:n { founder }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-mac.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-mac.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-mac.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{macOS fonts definition (CTEX)}
\ProvidesExplFile{ctex-fontset-mac.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\file_if_exist:nTF { /System/Library/Fonts/PingFang.ttc }
{ \ctex_file_input:n { ctex-fontset-macnew.def } }
{ \ctex_file_input:n { ctex-fontset-macold.def } }
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-macnew.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-macnew.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-macnew.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{macOS fonts definition for El Capitan or later version (CTEX)}
\ProvidesExplFile{ctex-fontset-macnew.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_fontset_case:nnnn
{ \ctex_fontset_error:n { mac } }
{
@@ -49,18 +49,19 @@
\setCJKfamilyfont { zhyou } { :4:Yuanti.ttc } [ BoldFont = :0:Yuanti.ttc ]
\ctex_punct_set:n { mac }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
- \ctex_punct_map_family:nn { \CJKsfdefault } { zhheil }
+ \ctex_punct_map_family:nn { \CJKsfdefault } { zhpf }
\ctex_punct_map_family:nn { \CJKttdefault } { zhfs }
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
\ctex_punct_map_bfseries:nn { \CJKrmdefault, zhsong } { zhsongb }
- \ctex_punct_map_bfseries:nn { \CJKsfdefault } { zhhei }
+ \ctex_punct_map_bfseries:nn { \CJKsfdefault, zhhei } { zhpfb }
\ctex_punct_map_bfseries:nn { zhyou } { zhyoub }
}
{
- \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { zhmacfonts }
+ \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { mac }
\ctex_punct_set:n { mac }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
- \ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
+ \ctex_punct_map_family:nn { \CJKsfdefault } { zhpf }
+ \ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhpf }
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
}
{ \ctex_fontset_error:n { macnew } }
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-macold.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-macold.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-macold.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{macOS fonts definition for Yosemite or earlier version (CTEX)}
\ProvidesExplFile{ctex-fontset-macold.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_fontset_case:nnnn
{ \ctex_fontset_error:n { mac } }
{ \ctex_fontset_error:n { macold } }
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-ubuntu.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-ubuntu.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-ubuntu.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Ubuntu fonts definition (CTEX)}
\ProvidesExplFile{ctex-fontset-ubuntu.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_fontset_case:nnnn
{ \ctex_fontset_error:n { ubuntu } }
{
@@ -44,15 +44,18 @@
\setCJKfamilyfont { zhhei } { :2:NotoSansCJK-Regular.ttc }
[ BoldFont = :2:NotoSansCJK-Bold.ttc ]
\setCJKfamilyfont { zhkai } { gkai00mp.ttf }
- \ctex_punct_set:n { fandol }
- \ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
- \ctex_punct_map_family:nn { \CJKsfdefault } { zhhei }
- \ctex_punct_map_bfseries:nn { \CJKrmdefault, zhsong } { zhsongb }
- \ctex_punct_map_bfseries:nn { \CJKsfdefault, zhhei } { zhheib }
- \ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
+ \ctex_punct_set:n { ubuntu }
+ \ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
+ \ctex_punct_map_family:nn { \CJKsfdefault } { zhhei }
+ \ctex_punct_map_family:nn { \CJKttdefault } { zhsong }
+ \ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
+ \ctex_punct_map_bfseries:nn { \CJKsfdefault, zhhei } { zhheib }
+ \ctex_punct_map_bfseries:nn
+ { \CJKrmdefault, \CJKttdefault, zhsong }
+ { zhsongb }
}
{
- \ctex_load_zhmap:nnnn { rm } { zhhei } { zhsong } { zhubuntufonts }
+ \ctex_load_zhmap:nnnn { rm } { zhhei } { zhsong } { ubuntu }
\ctex_punct_set:n { ubuntu }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
Modified: trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windows.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windows.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windows.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Windows fonts definition (CTEX)}
\ProvidesExplFile{ctex-fontset-windows.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\file_if_exist:nTF { \c_dollar_str WINDIR/Fonts/msyh.ttc }
{ \tl_const:Nn \c__ctex_msyh_suffix_tl { ttc } }
{
@@ -61,17 +61,13 @@
\ctex_punct_map_family:nn { \CJKttdefault } { zhfs }
}
{
- \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { zhwindowsfonts }
+ \ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { windows }
\ctex_punct_set:n { windows }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
}
- {
- \tl_set:Nn \CJKrmdefault { rm }
- \tl_set:Nn \CJKsfdefault { sf }
- \tl_set:Nn \CJKttdefault { tt }
- }
+ { }
}
{
\ctex_set_upfonts:nnnnnn
Modified: trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-article.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-article.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-article.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Heading modification for article (CTEX)}
\ProvidesExplFile{ctex-article.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\seq_const_from_clist:Nn \c__ctex_section_headings_seq
{ section , subsection , subsubsection , paragraph , subparagraph }
\seq_new:N \c__ctex_headings_seq
@@ -664,6 +664,29 @@
{ \ifnum \c at secnumdepth > \@ne \thesubsection \hskip 1em \relax \fi }
{ \CTEXifname { \CTEXthesubsection \quad } { } }
}
+\ctex_define:n
+ {
+ secnumdepth .code:n = \ctex_heading_depth:ne { secnumdepth } {#1} ,
+ secnumdepth .value_required:n = true ,
+ tocdepth .code:n = \ctex_heading_depth:ne { tocdepth } {#1} ,
+ tocdepth .value_required:n = true
+ }
+\cs_new_protected:Npn \ctex_heading_depth:nn #1#2
+ {
+ \prop_get:NnNTF \c__ctex_heading_level_prop {#2} \l__ctex_tmp_tl
+ { \setcounter {#1} { \l__ctex_tmp_tl } }
+ { \setcounter {#1} { \int_eval:n {#2} } }
+ }
+\cs_generate_variant:Nn \ctex_heading_depth:nn { ne }
+\prop_const_from_keyval:Nn \c__ctex_heading_level_prop
+ {
+ part = 0 ,
+ section = 1 ,
+ subsection = 2 ,
+ subsubsection = 3 ,
+ paragraph = 4 ,
+ subparagraph = 5
+ }
\cs_new_protected:Npn \CTEX at setcurrentlabel@n #1
{
\protected at edef \@currentlabel
Modified: trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-beamer.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-beamer.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-beamer.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Heading modification for beamer (CTEX)}
\ProvidesExplFile{ctex-beamer.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\seq_const_from_clist:Nn \c__ctex_headings_seq
{ part , section , subsection }
\cs_new_protected:Npn \__ctex_initial_heading:n #1
@@ -178,6 +178,27 @@
\defbeamertemplatealias{section page}{default}{CTEX}
\defbeamertemplatealias{subsection page}{default}{CTEX}
\ExplSyntaxOn
+\ctex_define:n
+ {
+ tocdepth .code:n = \ctex_heading_depth:ne { tocdepth } {#1} ,
+ tocdepth .value_required:n = true
+ }
+\cs_new_protected:Npn \ctex_heading_depth:nn #1#2
+ {
+ \prop_get:NnNTF \c__ctex_heading_level_prop {#2} \l__ctex_tmp_tl
+ { \setcounter {#1} { \l__ctex_tmp_tl } }
+ { \setcounter {#1} { \int_eval:n {#2} } }
+ }
+\cs_generate_variant:Nn \ctex_heading_depth:nn { ne }
+\prop_const_from_keyval:Nn \c__ctex_heading_level_prop
+ {
+ part = 0 ,
+ section = 1 ,
+ subsection = 2 ,
+ subsubsection = 3 ,
+ paragraph = 4 ,
+ subparagraph = 5
+ }
\cs_new_protected:Npn \CTEX at setcurrentlabel@n #1
{
\protected at edef \@currentlabel
Modified: trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-book.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-book.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-book.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Heading modification for book (CTEX)}
\ProvidesExplFile{ctex-book.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\seq_const_from_clist:Nn \c__ctex_section_headings_seq
{ section , subsection , subsubsection , paragraph , subparagraph }
\seq_new:N \c__ctex_headings_seq
@@ -791,6 +791,30 @@
{ \ifnum \c at secnumdepth > \z@ \thesection . ~ \ \fi }
{ \CTEXifname { \CTEXthesection \quad } { } }
}
+\ctex_define:n
+ {
+ secnumdepth .code:n = \ctex_heading_depth:ne { secnumdepth } {#1} ,
+ secnumdepth .value_required:n = true ,
+ tocdepth .code:n = \ctex_heading_depth:ne { tocdepth } {#1} ,
+ tocdepth .value_required:n = true
+ }
+\cs_new_protected:Npn \ctex_heading_depth:nn #1#2
+ {
+ \prop_get:NnNTF \c__ctex_heading_level_prop {#2} \l__ctex_tmp_tl
+ { \setcounter {#1} { \l__ctex_tmp_tl } }
+ { \setcounter {#1} { \int_eval:n {#2} } }
+ }
+\cs_generate_variant:Nn \ctex_heading_depth:nn { ne }
+\prop_const_from_keyval:Nn \c__ctex_heading_level_prop
+ {
+ part = -1 ,
+ chapter = 0 ,
+ section = 1 ,
+ subsection = 2 ,
+ subsubsection = 3 ,
+ paragraph = 4 ,
+ subparagraph = 5
+ }
\cs_new_protected:Npn \CTEX at setcurrentlabel@n #1
{
\protected at edef \@currentlabel
Modified: trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-report.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-report.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-report.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Heading modification for report (CTEX)}
\ProvidesExplFile{ctex-report.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\seq_const_from_clist:Nn \c__ctex_section_headings_seq
{ section , subsection , subsubsection , paragraph , subparagraph }
\seq_new:N \c__ctex_headings_seq
@@ -786,6 +786,30 @@
{ \ifnum \c at secnumdepth > \z@ \thesection . ~ \ \fi }
{ \CTEXifname { \CTEXthesection \quad } { } }
}
+\ctex_define:n
+ {
+ secnumdepth .code:n = \ctex_heading_depth:ne { secnumdepth } {#1} ,
+ secnumdepth .value_required:n = true ,
+ tocdepth .code:n = \ctex_heading_depth:ne { tocdepth } {#1} ,
+ tocdepth .value_required:n = true
+ }
+\cs_new_protected:Npn \ctex_heading_depth:nn #1#2
+ {
+ \prop_get:NnNTF \c__ctex_heading_level_prop {#2} \l__ctex_tmp_tl
+ { \setcounter {#1} { \l__ctex_tmp_tl } }
+ { \setcounter {#1} { \int_eval:n {#2} } }
+ }
+\cs_generate_variant:Nn \ctex_heading_depth:nn { ne }
+\prop_const_from_keyval:Nn \c__ctex_heading_level_prop
+ {
+ part = -1 ,
+ chapter = 0 ,
+ section = 1 ,
+ subsection = 2 ,
+ subsubsection = 3 ,
+ paragraph = 4 ,
+ subparagraph = 5
+ }
\cs_new_protected:Npn \CTEX at setcurrentlabel@n #1
{
\protected at edef \@currentlabel
Modified: trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-article.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-article.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-article.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Chinese scheme for article (CTEX)}
\ProvidesExplFile{ctex-scheme-chinese-article.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_set:nn { part }
{
aftertitle = \par ,
Modified: trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-beamer.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-beamer.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-beamer.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Chinese scheme for beamer (CTEX)}
\ProvidesExplFile{ctex-scheme-chinese-beamer.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_set:nn { part }
{
aftertitle = \par ,
Modified: trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-book.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-book.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-book.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Chinese scheme for book (CTEX)}
\ProvidesExplFile{ctex-scheme-chinese-book.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_set:nn { part }
{
aftertitle = \par ,
Modified: trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-report.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-report.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-report.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Chinese scheme for report (CTEX)}
\ProvidesExplFile{ctex-scheme-chinese-report.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_set:nn { part }
{
aftertitle = \par ,
Modified: trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Chinese scheme for generic (CTEX)}
\ProvidesExplFile{ctex-scheme-chinese.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_set:n { today = small }
\ctex_if_autoindent_touched:F
{ \ctex_set:n { autoindent = true } }
Modified: trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-article.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-article.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-article.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Plain scheme for article (CTEX)}
\ProvidesExplFile{ctex-scheme-plain-article.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_set:nn { part }
{
aftertitle = \par ,
Modified: trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-beamer.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-beamer.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-beamer.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Plain scheme for beamer (CTEX)}
\ProvidesExplFile{ctex-scheme-plain-beamer.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_set:nn { part }
{
aftertitle = \par ,
Modified: trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-book.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-book.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-book.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Plain scheme for book (CTEX)}
\ProvidesExplFile{ctex-scheme-plain-book.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_set:nn { part }
{
aftertitle = \par ,
Modified: trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-report.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-report.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain-report.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Plain scheme for report (CTEX)}
\ProvidesExplFile{ctex-scheme-plain-report.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
\ctex_set:nn { part }
{
aftertitle = \par ,
Modified: trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain.def 2020-05-16 21:25:43 UTC (rev 55161)
+++ trunk/Master/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-plain.def 2020-05-16 21:26:14 UTC (rev 55162)
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 320df30 2020-05-02 06:45:05 +0800 Qing Lee <sobenlee at gmail.com> $
+\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee at gmail.com> $
{Plain scheme for generic (CTEX)}
\ProvidesExplFile{ctex-scheme-plain.def}
- {\ExplFileDate}{2.5.1}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.2}{\ExplFileDescription}
%%
%%
%% End of file `ctex-scheme-plain.def'.
More information about the tex-live-commits
mailing list.