texlive[47113] Master/texmf-dist: fixjfm (24mar18)

commits+karl at tug.org commits+karl at tug.org
Sun Mar 25 23:27:41 CEST 2018


Revision: 47113
          http://tug.org/svn/texlive?view=revision&revision=47113
Author:   karl
Date:     2018-03-25 23:27:41 +0200 (Sun, 25 Mar 2018)
Log Message:
-----------
fixjfm (24mar18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/generic/fixjfm/README
    trunk/Master/texmf-dist/doc/generic/fixjfm/fixjfm-doc.pdf
    trunk/Master/texmf-dist/doc/generic/fixjfm/fixjfm-doc.tex
    trunk/Master/texmf-dist/tex/generic/fixjfm/fixjfm.sty

Modified: trunk/Master/texmf-dist/doc/generic/fixjfm/README
===================================================================
--- trunk/Master/texmf-dist/doc/generic/fixjfm/README	2018-03-25 21:27:26 UTC (rev 47112)
+++ trunk/Master/texmf-dist/doc/generic/fixjfm/README	2018-03-25 21:27:41 UTC (rev 47113)
@@ -6,9 +6,9 @@
 
 Repository: https://github.com/Man-Ting-Fang/fixjfm
 
-Version: 2017-12-27 v0.7
+Version: 2018-03-24 v0.8
 
-Copyright 2017 Yue ZHANG
+Copyright 2017--2018 Yue ZHANG
 
 License: Knuth License (https://ctan.org/license/knuth)
 

Modified: trunk/Master/texmf-dist/doc/generic/fixjfm/fixjfm-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/fixjfm/fixjfm-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/fixjfm/fixjfm-doc.tex	2018-03-25 21:27:26 UTC (rev 47112)
+++ trunk/Master/texmf-dist/doc/generic/fixjfm/fixjfm-doc.tex	2018-03-25 21:27:41 UTC (rev 47113)
@@ -80,7 +80,7 @@
   \thanks{CTAN Homepage: \texttt{https://ctan.org/pkg/fixjfm}}
   \thanks{Repository: \texttt{https://github.com/Man-Ting-Fang/fixjfm}}}
 \author{Yue \textsc{Zhang}}
-\date{2017-12-27\quad v0.7}
+\date{2018-03-24\quad v0.8}
 
 \maketitle
 
@@ -249,7 +249,16 @@
     \DeclareStandardCJKTextFontCommand
 \end{verbatim}
 (re)defines a CJK text font command like the standard version of \verb|\textmc|
-and \verb|\textgt|.
+and \verb|\textgt|. But there is a more convenient way: Suppose that you have a
+new CJK text font command \verb|\xyfamily|, then
+\begin{verbatim}
+    \AppendToUseXCJKTextFontCommands{\textxy}{\xyfamily}
+\end{verbatim}
+will do all you need and makes \verb|\Use...CJKTextFontCommands| also apply to
+\verb|\textxy|. This command and \verb|\Use...CJKTextFontCommands| can be given
+in any order, so you do not need to redeclare
+\verb|\UseFixJFMCJKTextFontCommands| (which is the default behaviour) if that is
+what you want.
 
 Finally, there are several macros that may be useful for \TeX nicians:
 \begin{verbatim}
@@ -340,4 +349,8 @@
   \verb|\ifUseStandardCJKTextFontCommands|.
 \end{history}
 
+\begin{history}{2018-03-24 v0.8}
+\item Add \verb|\AppendToUseXCJKTextFontCommands|.
+\end{history}
+
 \end{document}

Modified: trunk/Master/texmf-dist/tex/generic/fixjfm/fixjfm.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/fixjfm/fixjfm.sty	2018-03-25 21:27:26 UTC (rev 47112)
+++ trunk/Master/texmf-dist/tex/generic/fixjfm/fixjfm.sty	2018-03-25 21:27:41 UTC (rev 47113)
@@ -1,7 +1,7 @@
 
 
 % fixjfm.sty
-% Copyright 2017 Yue ZHANG
+% Copyright 2017--2018 Yue ZHANG
 % License: Knuth License (https://ctan.org/license/knuth)
 
 \csname ENDINPUTFIXJFMDOTSTY\endcsname
@@ -11,7 +11,7 @@
 \begingroup\expandafter\expandafter\expandafter\endgroup
   \expandafter\ifx\csname ProvidesPackage\endcsname\relax
   \else
-    \ProvidesPackage{fixjfm}[2017/12/27 v0.7 Fix JFM (for *pTeX)]%
+    \ProvidesPackage{fixjfm}[2018/03/24 v0.8 Fix JFM (for *pTeX)]%
   \fi
 
 \edef\FIXJFMDOTSTYRESTORECATCODE{\catcode`\noexpand\@=\the\catcode`\@\relax}
@@ -192,6 +192,7 @@
     \def\DeclareStandardCJKTextFontCommand#1#2{}%
     \let\UseFixJFMCJKTextFontCommands=\fixjfm at empty
     \let\UseStandardCJKTextFontCommands=\fixjfm at empty
+    \def\AppendToUseXCJKTextFontCommands#1#2{}%
   \else
     \def\DeclareFixJFMCJKTextFontCommand#1#2{%
       \DeclareRobustCommand#1[1]{%
@@ -210,6 +211,16 @@
       \UseFixJFMCJKTextFontCommandsfalse
       \DeclareStandardCJKTextFontCommand\textmc{\mcfamily}%
       \DeclareStandardCJKTextFontCommand\textgt{\gtfamily}}%
+    \def\AppendToUseXCJKTextFontCommands#1#2{%
+      \g at addto@macro\UseFixJFMCJKTextFontCommands{%
+        \DeclareFixJFMCJKTextFontCommand#1{#2}}%
+      \g at addto@macro\UseStandardCJKTextFontCommands{%
+        \DeclareStandardCJKTextFontCommand#1{#2}}%
+      \ifUseFixJFMCJKTextFontCommands
+        \DeclareFixJFMCJKTextFontCommand#1{#2}%
+      \else
+        \DeclareStandardCJKTextFontCommand#1{#2}%
+      \fi}%
     \UseFixJFMCJKTextFontCommands
   \fi
 



More information about the tex-live-commits mailing list