From caef61ed4952aee5804397dbdc93deb54f043a98 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 5 Jun 2017 23:15:19 +0000 Subject: bxbase (30may17) git-svn-id: svn://tug.org/texlive/trunk@44481 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/bxbase/bxbase.sty | 73 ++++++++++++++------------- 1 file changed, 38 insertions(+), 35 deletions(-) (limited to 'Master/texmf-dist/tex/latex/bxbase/bxbase.sty') diff --git a/Master/texmf-dist/tex/latex/bxbase/bxbase.sty b/Master/texmf-dist/tex/latex/bxbase/bxbase.sty index d506fc37a62..194d7ccf3f0 100644 --- a/Master/texmf-dist/tex/latex/bxbase/bxbase.sty +++ b/Master/texmf-dist/tex/latex/bxbase/bxbase.sty @@ -1,49 +1,51 @@ -% -% bxbase.sty -% +%% +%% This is file 'bxbase.sty'. +%% +%% Copyright (c) 2017 Takayuki YATO (aka. "ZR") +%% GitHub: https://github.com/zr-tex8r +%% Twitter: @zr_tex8r +%% +%% This package is distributed under the MIT License. +%% -%%%% package declaration +%% package declaration \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{bxbase}[2010/06/15 v0.5 BX base library] +\ProvidesPackage{bxbase}[2017/05/29 v1.1 BX base library] + +%--------------------------------------- main + +%% load submodule +\providecommand*\bxRequireDefinition[1]{% + \def\bxbz@ext{def}\@onefilewithoptions{#1}[][]\bxbz@ext} +\bxRequireDefinition{bxbase} -%%%% include 'bxbase.def' -\input{bxbase.def} +%% enable begin-document hooks \bxBDHookBabel \bxBDHookUnicode +\bxBDHookJisInput \bxBDHookSafeCaret +\bxBDHookUcsFastErrors -%%%% error messages -\def\bx@pkgname{bxbase} -\def\bx@error{\PackageError\bx@pkgname} -\def\bx@alert{\PackageWarningNoLine\bx@pkgname} -\def\bx@warn{\PackageInfo\bx@pkgname} -\def\bx@warn@aecs#1{\px@warn{Command \string#1 already exists}} +%% error messages +\def\bxbz@pkgname{bxbase} +\def\bxbz@inf@aecsq#1{% + \PackageInfo\bxbz@pkgname + {Command \string#1 already exists}} -%%------ +%--------------------------------------- extra -%%<*> \Ux, \UI, \AJ -\ifx\Ux\@undefined \def\Ux{\bxUx}% -\else \px@warn@aecs\Ux \fi -\ifx\UI\@undefined \def\UI{\bxUI}% -\else \px@warn@aecs\UI \fi -\ifx\AJ\@undefined \def\AJ{\bxAJ}% -\else \px@warn@aecs\AJ \fi +%%<*> \Ux / \UI / \AJ / \JI / \KI +% define commands unless their name is already used +\bxPreamble\def\bxbz@charcmd#1#2{% + \ifundef#1{\def#1{#2}}{\bxbz@inf@aecsq#1}} +\bxbz@charcmd\Ux\bxUx +\bxbz@charcmd\UI\bxUI +\bxbz@charcmd\AJ\bxAJ +\bxbz@charcmd\JI\bxJI +\bxbz@charcmd\KI\bxKI -%%<*> \JI, \KI -\ifx\JI\@undefined \def\JI{\bxJI}% -\else \px@warn@aecs\JI \fi -\ifx\KI\@undefined \def\KI{\bxKI}% -\else \px@warn@aecs\KI \fi - -%%%% withnohyph environment -\expandafter\ifx\csname l@nohyphenation\endcsname\relax - \newlanguage\l@nohyphenation \fi -\def\withnohyph{\language\l@nohyphenation} -\let\endwithnohyph\relax - -%%------ all done +%--------------------------------------- all done \endinput -%% EOF % % * bxbase provides: % - bx@Uxh@fb (terminal) @@ -68,3 +70,4 @@ % v v % bx@UI > bx@UIh = bx@Uxh@fb or bx@UIh@p % +%% EOF -- cgit v1.2.3