summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/fixjfm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/fixjfm')
-rw-r--r--Master/texmf-dist/tex/generic/fixjfm/fixjfm.sty16
1 files changed, 9 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/generic/fixjfm/fixjfm.sty b/Master/texmf-dist/tex/generic/fixjfm/fixjfm.sty
index 02cd455fc7b..c4921fcfead 100644
--- a/Master/texmf-dist/tex/generic/fixjfm/fixjfm.sty
+++ b/Master/texmf-dist/tex/generic/fixjfm/fixjfm.sty
@@ -11,7 +11,7 @@
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname ProvidesPackage\endcsname\relax
\else
- \ProvidesPackage{fixjfm}[2017/09/02 v0.2 Fix JFM (for *pTeX)]%
+ \ProvidesPackage{fixjfm}[2017/09/04 v0.4 Fix JFM (for *pTeX)]%
\fi
\edef\FIXJFMDOTSTYRESTORECATCODE{\catcode`\noexpand\@=\the\catcode`\@\relax}
@@ -99,21 +99,23 @@
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname DeclareTextFontCommand\endcsname\relax
\def\DeclareFixJFMCJKTextFontCommand#1#2{}%
+ \def\DeclareStandardCJKTextFontCommand#1#2{}%
\let\UseFixJFMCJKTextFontCommands=\fixjfm@empty
\let\UseStandardCJKTextFontCommands=\fixjfm@empty
\else
\def\DeclareFixJFMCJKTextFontCommand#1#2{%
\DeclareRobustCommand#1[1]{%
- \relax\ifmmode\nfss@text\fi{#2\fixjfmspacing##1}\fixjfmspacing}}%
+ \relax\ifmmode\expandafter\nfss@text\fi
+ {#2\fixjfmspacing##1}\fixjfmspacing}}%
+ \def\DeclareStandardCJKTextFontCommand#1#2{%
+ \DeclareRobustCommand#1[1]{%
+ \relax\ifmmode\expandafter\nfss@text\fi{#2##1}}}%
\def\UseFixJFMCJKTextFontCommands{%
\DeclareFixJFMCJKTextFontCommand\textmc{\mcfamily}%
\DeclareFixJFMCJKTextFontCommand\textgt{\gtfamily}}%
\def\UseStandardCJKTextFontCommands{%
- \DeclareTextFontCommand\textmc{\mcfamily}%
- \DeclareTextFontCommand\textgt{\gtfamily}}%
- \@onlypreamble\DeclareFixJFMCJKTextFontCommand
- \@onlypreamble\UseFixJFMCJKTextFontCommands
- \@onlypreamble\UseStandardCJKTextFontCommands
+ \DeclareStandardCJKTextFontCommand\textmc{\mcfamily}%
+ \DeclareStandardCJKTextFontCommand\textgt{\gtfamily}}%
\UseFixJFMCJKTextFontCommands
\fi