%%
%% This is file 'bxcalc.sty'.
%% 
%% Copyright (c) 2018-2020 Takayuki YATO (aka. "ZR")
%%   GitHub:   https://github.com/zr-tex8r
%%   Twitter:  @zr_tex8r
%%
%% This package is distributed under the MIT License.
%%

%% package declaration
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bxcalc}[2020/09/25 v1.1]
\def\bxqcz@pkgname{bxcalc}

%--------------------------------------- main

%% packages
\RequirePackage{calc}[]
\@ifl@t@r\fmtversion{2020/10/01}{}{%else
  \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
