summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bxbase/bxbase.sty
blob: d506fc37a62432f84fceb827e8783d090c7f6027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
%
% bxbase.sty
%

%%%% package declaration
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bxbase}[2010/06/15 v0.5 BX base library]

%%%% include 'bxbase.def'
\input{bxbase.def}
\bxBDHookBabel
\bxBDHookUnicode
\bxBDHookSafeCaret

%%%% 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}}

%%------

%%<*> \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

%%<*> \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
\endinput
%% EOF
%
% * bxbase provides:
%   - bx@Uxh@fb      (terminal)
%   - bxUx           (passed to bx@Ux)
%   - bxUI           (passed to bx@UI)
%   - bxUHex         (passed to bx@Uxh)
% * bxutf8 provides:
%   - conversion from UTF8 string to bxUHex
% * bxucs provides:
%   - bx@Ux@ucs      (fallback to bx@UI)
%   - bx@Uxh@ucs     (fallback to bx@UIh)
% * utf/otf provides:
%   - bx@UIh@p       (terminal)
%
% [default]
%   bx@Ux       bx@Uxh  
%     v           v     
%   bx@UI   >   bx@UIh  =  bx@UIh@fb or bx@UIh@p
%
% [with bxucs]
%   bx@Ux = bx@Ux@ucs   bx@Uxh = bx@Uxh@ucs
%             v                    v       
%           bx@UI     >          bx@UIh  =  bx@Uxh@fb or bx@UIh@p
%