diff options
author | Karl Berry <karl@freefriends.org> | 2017-02-22 23:04:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-02-22 23:04:25 +0000 |
commit | 97b9c9030418ed2fc48ccdd6ae63a6e27709b5aa (patch) | |
tree | 8316db192d5fada2e653b8cbbe07f62a189c39e8 /Master/texmf-dist/source | |
parent | c4e9dec3e0c2a59adf33d09fe440f3c39944f7ed (diff) |
xecjk (22feb17)
git-svn-id: svn://tug.org/texlive/trunk@43308 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/xelatex/xecjk/xeCJK.dtx | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/Master/texmf-dist/source/xelatex/xecjk/xeCJK.dtx b/Master/texmf-dist/source/xelatex/xecjk/xeCJK.dtx index 00313927b69..8a3f5bbdfd9 100644 --- a/Master/texmf-dist/source/xelatex/xecjk/xeCJK.dtx +++ b/Master/texmf-dist/source/xelatex/xecjk/xeCJK.dtx @@ -194,7 +194,7 @@ Copyright and Licence %<*package|config|fntef|listings|xunicode|xunextra> %<!(config|xunextra)>\NeedsTeXFormat{LaTeX2e} %<!(config|xunextra)>\RequirePackage{expl3} -%<+!driver>\GetIdInfo$Id: xeCJK.dtx 649d857 2017-01-02 09:25:53 +0800 Qing Lee <sobenlee@gmail.com> $ +%<+!driver>\GetIdInfo$Id: xeCJK.dtx efd7a18 2017-02-23 02:07:20 +0800 Qing Lee <sobenlee@gmail.com> $ %<package> {Typesetting CJK scripts with XeLaTeX} %<config> {Configuration file for xeCJK package} %<fntef> {xeCJK font effect} @@ -207,7 +207,7 @@ Copyright and Licence %<listings>\ProvidesExplPackage{xeCJK-listings} %<xunicode>\ProvidesExplPackage{xunicode-addon} %<xunextra>\ProvidesExplFile{xunicode-extra.def} -%<!driver> {\ExplFileDate}{3.4.5}{\ExplFileDescription} +%<!driver> {\ExplFileDate}{3.4.6}{\ExplFileDescription} %</package|config|fntef|listings|xunicode|xunextra> %<*driver> \documentclass{ctxdoc} @@ -275,7 +275,7 @@ Copyright and Licence % \changes{v3.3.2}{2015/05/15}{随 Unicode 7.0.0 更新简繁汉字映射。} % \changes{v3.3.3}{2015/09/25}{更新 \hologo{LaTeX3} 代码。} % -% \CheckSum{10163} +% \CheckSum{10171} % \GetFileId{xeCJK.sty} % % \title{\bfseries\pkg{xeCJK} 宏包} @@ -5847,7 +5847,7 @@ Copyright and Licence \cs_gset_protected_nopar:cpx { \@@_family_csname:n {#1} } { \group_begin: - \exp_not:n { \cs_set_eq:NN \@@_update_family:nn \use_none:nn } + \exp_not:n { \cs_set_eq:NN \xeCJK@fontfamily \use_none:n } \exp_not:n { \fontspec_set_family:Nnn \l_@@_fontspec_family_tl } { \exp_not:V \l_@@_fontspec_options_clist } { \exp_not:V \l_@@_font_name_tl } @@ -7646,14 +7646,27 @@ Copyright and Licence % \end{macrocode} % % \begin{macro}[internal]{\fontfamily} +% \begin{macro}[internal]{\xeCJK@fontfamily} % \changes{v3.1.1}{2012/12/06}{修改主要 \texttt{CJK} 字体族的自动更新方式。} % \changes{v3.1.2}{2013/01/01}{不将参数完全展开。} +% \changes{v3.4.6}{2017/02/23} +% {将族名参数完全展开,以解决与 \pkg{fontspec} 2017/01/24 v2.5d 的兼容问题。} % 修改 \tn{fontfamily},使主要 |CJK| 字体族能随西文主要字体更新。 % \begin{macrocode} \RenewDocumentCommand \fontfamily { m } { \tl_set:Nx \f@family {#1} - \@@_update_family:nn {#1} + \xeCJK@fontfamily {#1} + } +\cs_new_protected_nopar:Npn \xeCJK@fontfamily #1 + { + \str_if_eq:nnTF {#1} { \familydefault } + { \xeCJK_switch_family:n { \CJKfamilydefault } } + { \@@_update_family_aux: } + } +\cs_new_protected_nopar:Npn \@@_update_family_aux: + { + \str_case_x:nn { \f@family } { { \rmdefault } { \xeCJK_switch_family:n { \CJKrmdefault } } { \sfdefault } { \xeCJK_switch_family:n { \CJKsfdefault } } @@ -7661,9 +7674,9 @@ Copyright and Licence { \familydefault } { \xeCJK_switch_family:n { \CJKfamilydefault } } } } -\cs_new_eq:NN \@@_update_family:nn \str_case:nn % \end{macrocode} % \end{macro} +% \end{macro} % % \begin{macrocode} %<@@=> |