| 1 |
% \iffalse |
| 2 |
%% |
| 3 |
%% File: nccbbb.dtx Copyright (C) 2002--2004 by Alexander I. Rozhenko |
| 4 |
%% |
| 5 |
%<package>\NeedsTeXFormat{LaTeX2e} |
| 6 |
%<package>\ProvidesPackage{nccbbb} |
| 7 |
%<package> [2004/11/24 v1.1 Pure Black Board Bold (NCC)] |
| 8 |
% |
| 9 |
% \changes{v1.0}{2002/01/31}{This version was uploaded to CTAN} |
| 10 |
% \changes{v1.1}{2004/11/24}{Bug in |\bbbz| command fixed} |
| 11 |
% \changes{v1.1}{2004/11/24}{Documentation was prepared} |
| 12 |
% |
| 13 |
%<*driver> |
| 14 |
\let\makeindex\relax |
| 15 |
\documentclass{ltxdoc} |
| 16 |
\usepackage{nccbbb} |
| 17 |
\GetFileInfo{nccbbb.sty} |
| 18 |
\begin{document} |
| 19 |
\title{The \textsf{nccbbb} package\thanks{This file |
| 20 |
has version number \fileversion, last |
| 21 |
revised \filedate.}} |
| 22 |
\author{Alexander I. Rozhenko\\[email protected]} |
| 23 |
\date{\filedate} |
| 24 |
\maketitle |
| 25 |
\DocInput{nccbbb.dtx} |
| 26 |
\end{document} |
| 27 |
%</driver> |
| 28 |
% \fi |
| 29 |
% \section{User Interface} |
| 30 |
% |
| 31 |
% \DescribeMacro{\bbb...} |
| 32 |
% The package implements the following poor black board bold math symbols: |
| 33 |
% \begin{center} |
| 34 |
% \begin{tabular}{l@{\qquad}c@{\qquad\vrule\qquad}l@{\qquad}c} |
| 35 |
% Command & Symbol & Command & Symbol\\ |
| 36 |
% |\bbbb| & $\bbbb$ & |\bbbm| & $\bbbm$ \\ |
| 37 |
% |\bbbc| & $\bbbc$ & |\bbbn| & $\bbbn$ \\ |
| 38 |
% |\bbbd| & $\bbbd$ & |\bbbo| & $\bbbo$ \\ |
| 39 |
% |\bbbe| & $\bbbe$ & |\bbbp| & $\bbbp$ \\ |
| 40 |
% |\bbbf| & $\bbbf$ & |\bbbq| & $\bbbq$ \\ |
| 41 |
% |\bbbg| & $\bbbg$ & |\bbbr| & $\bbbr$ \\ |
| 42 |
% |\bbbh| & $\bbbh$ & |\bbbs| & $\bbbs$ \\ |
| 43 |
% |\bbbi| & $\bbbi$ & |\bbbz| & $\bbbz$ \\ |
| 44 |
% |\bbbk| & $\bbbk$ & |\bbbzero| & $\bbbzero$ \\ |
| 45 |
% |\bbbl| & $\bbbl$ & |\bbbone| & $\bbbone$ \\ |
| 46 |
% \end{tabular} |
| 47 |
% \end{center} |
| 48 |
% It was designed to provide the compatibility with old macros of NCC-\LaTeX. |
| 49 |
% We recommend use the |\mathbb| command from the |amsfonts| package |
| 50 |
% instead. |
| 51 |
% \StopEventually{} |
| 52 |
% |
| 53 |
% \section{The Implementation} |
| 54 |
% Declare commands of the user interface: |
| 55 |
% \begin{macrocode} |
| 56 |
%<*package> |
| 57 |
\newcommand\bbbb{\NCC@bbb{B}} |
| 58 |
\newcommand\bbbc{{\NCC@bbbz{C{\NCC@bbbr{.03}{.35}{.9}{.1}}}}} |
| 59 |
\newcommand\bbbd{\NCC@bbb{D}} |
| 60 |
\newcommand\bbbe{\NCC@bbb{E}} |
| 61 |
\newcommand\bbbf{\NCC@bbb{F}} |
| 62 |
\newcommand\bbbg{{\NCC@bbbz{G{\NCC@bbbr{.05}{.3}{.88}{.09}}}}} |
| 63 |
\newcommand\bbbh{\NCC@bbb{H}} |
| 64 |
\newcommand\bbbi{\NCC@bbb{I}} |
| 65 |
\newcommand\bbbk{\NCC@bbb{K}} |
| 66 |
\newcommand\bbbl{\NCC@bbb{L}} |
| 67 |
\newcommand\bbbm{\NCC@bbbi{M}} |
| 68 |
\newcommand\bbbn{\NCC@bbbi{N}} |
| 69 |
\newcommand\bbbo{{\NCC@bbbz{O{\NCC@bbbr{.05}{.3}{.9}{.09}}}}} |
| 70 |
\newcommand\bbbp{\NCC@bbb{P}} |
| 71 |
\newcommand\bbbq{{\NCC@bbbz{Q{\NCC@bbbr{.05}{.3}{.9}{.09}}}}} |
| 72 |
\newcommand\bbbr{\NCC@bbb{R}} |
| 73 |
\newcommand\bbbs{{\NCC@bbbz{S{\NCC@bbbr{.5}{.3}{.45}{.07}% |
| 74 |
\NCC@bbbr{0}{.55}{.5}{.07}}}}} |
| 75 |
\newcommand\bbbz{{\NCC@bbbz{{\mathsf Z}{\@tempdima\wd\z@\wd\z@ 0.33\@tempdima}}% |
| 76 |
\mathsf Z}} |
| 77 |
\newcommand\bbbzero{{\NCC@bbbz{O{\NCC@bbbr{.05}{.3}{.9}{.06}% |
| 78 |
\NCC@bbbr{.05}{.6}{.9}{.06}}}}} |
| 79 |
\newcommand\bbbone{\mathrm{1\NCC@bbbz{l{\kern -0.88\wd\z@}}}} |
| 80 |
% \end{macrocode} |
| 81 |
% |
| 82 |
% Define base commands: |
| 83 |
% \begin{macrocode} |
| 84 |
\def\NCC@bbb#1{\mathrm{I\mskip -3.5mu#1}} |
| 85 |
\def\NCC@bbbi#1{\mathrm{I\NCC@bbbz{{\mskip -3.5mu I}{\wd\z@\z@}}% |
| 86 |
\mskip -3mu#1}} |
| 87 |
\def\NCC@bbbz{\mathpalette\NCC@bbbz@} |
| 88 |
\def\NCC@bbbz@#1#2{\NCC@bbbz@@{#1}#2} |
| 89 |
\def\NCC@bbbz@@#1#2#3{\setbox\z@\hbox{$\m@th#1{\mathrm{#2}}$}#3\box\z@} |
| 90 |
\def\NCC@bbbr#1#2#3#4{\raise #1\ht\z@\hbox to \z@{\kern #2\wd\z@ |
| 91 |
\vrule \@height #3\ht\z@ \@width #4\wd\z@\hss}} |
| 92 |
%</package> |
| 93 |
% \end{macrocode} |
| 94 |
\endinput |