summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bxcalc/bxcalc.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-30 00:29:08 +0000
committerKarl Berry <karl@freefriends.org>2018-01-30 00:29:08 +0000
commit23d86fdfc88da36147892fd0f28e12e9163d239d (patch)
tree58d54b80db2f525aa19852edb4a4f3d009399757 /Master/texmf-dist/tex/latex/bxcalc/bxcalc.sty
parente6129b052e9f923894c255aa312aa1a73c5cef3a (diff)
bxcalc (28jan18)
git-svn-id: svn://tug.org/texlive/trunk@46482 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bxcalc/bxcalc.sty')
-rw-r--r--Master/texmf-dist/tex/latex/bxcalc/bxcalc.sty28
1 files changed, 26 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/bxcalc/bxcalc.sty b/Master/texmf-dist/tex/latex/bxcalc/bxcalc.sty
index 9c8fe9c59ed..4dccf4bd603 100644
--- a/Master/texmf-dist/tex/latex/bxcalc/bxcalc.sty
+++ b/Master/texmf-dist/tex/latex/bxcalc/bxcalc.sty
@@ -1,7 +1,7 @@
%%
%% This is file 'bxcalc.sty'.
%%
-%% Copyright (c) 2017 Takayuki YATO (aka. "ZR")
+%% Copyright (c) 2018 Takayuki YATO (aka. "ZR")
%% GitHub: https://github.com/zr-tex8r
%% Twitter: @zr_tex8r
%%
@@ -10,7 +10,7 @@
%% package declaration
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bxcalc}[2017/05/21 v1.0]
+\ProvidesPackage{bxcalc}[2018/01/28 v1.0a]
\def\bxqcz@pkgname{bxcalc}
%--------------------------------------- main
@@ -20,6 +20,30 @@
\RequirePackage{bxcalcize}[2017/05/21]% v1.0
\RequirePackage{bxcalcux}[2017/05/21]% v1.0
+%--------------------------------------- \usepTeXunits
+
+\ifundef{\kanjiskip}{%
+ \newrobustcmd*{\usepTeXunits}{%
+ \DeclareCalcUnit{Q}{\dimexpr0.25mm\relax}%
+ \DeclareCalcUnit{H}{\dimexpr0.25mm\relax}%
+ \DeclareCalcUnit{trueQ}{\dimexpr0.25truemm\relax}%
+ \DeclareCalcUnit{trueH}{\dimexpr0.25truemm\relax}%
+ \ifdef{\zw}{%
+ \DeclareCalcUnit{zw}{\zw}%%
+ \DeclareCalcUnit{zh}{\zw}%
+ }{\ifdef{\jsZw}{%
+ \DeclareCalcUnit{zw}{\jsZw}%%
+ \DeclareCalcUnit{zh}{\jsZw}%
+ }{}}%
+ \ifdef{\zh}{%
+ \DeclareCalcUnit{zh}{\zh}%
+ }{}%
+ \let\usepTeXunits\relax
+ }%
+}{%else
+ \newrobustcmd*{\usepTeXunits}{}%
+}
+
%--------------------------------------- all done
\endinput
%% EOF