Skip to content

Commit

Permalink
ctex: \CTeX 的定义不再依赖 \ifincsname
Browse files Browse the repository at this point in the history
fixed #326
  • Loading branch information
qinglee committed Dec 5, 2017
1 parent f5ff957 commit 85a3ed9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ctex/ctex.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ Copyright and Licence
% \changes{v2.4}{2015/02/19}{加强 \pkg{beamer} 宏包支持。}
%
%
% \CheckSum{5918}
% \CheckSum{5915}
%
% \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
Expand Down Expand Up @@ -9111,15 +9111,16 @@ Copyright and Licence
% \subsection{其它功能}
%
% \begin{macro}{\CTeX}
% \changes{v2.4.12}{2017/12/05}{不依赖 \tn{ifincsname}。}
% \file{ctex-faq.sty} 中的定义是
% \begin{verbatim}
% \DeclareRobustCommand\CTeX{$\mathbb{C}$\kern-.05em\TeX}
% \end{verbatim}
% 然而 \tn{mathbb} 未必有定义,这里就不采用它了,只定义最简单的形式。
% 同 \pkg{hologo} 宏包的设置类似,\CTeX{} 可以用在 \tn{csname} 和 PDF 书签中。
% \CTeX{} 可以直接用在 PDF 书签中。
% \begin{macrocode}
\NewDocumentCommand \CTeX { }
{ \ifincsname CTeX \else: C \TeX \fi: }
{ C \TeX }
\ctex_at_end_package:nn { hyperref }
{ \pdfstringdefDisableCommands { \tl_set:Nn \CTeX { CTeX } } }
% \end{macrocode}
Expand Down

0 comments on commit 85a3ed9

Please sign in to comment.