summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/dozenal
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-06-07 23:31:00 +0000
committerKarl Berry <karl@freefriends.org>2009-06-07 23:31:00 +0000
commit85df9edd503d429a635398d7a5289cfe5199ae7c (patch)
tree3228ac464416f519343640297056890aa42a944e /Master/texmf-dist/tex/latex/dozenal
parentd33cba96064babb06e9411b061ccfb9fae274b2e (diff)
dozenal update (7jun09)
git-svn-id: svn://tug.org/texlive/trunk@13661 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/dozenal')
-rw-r--r--Master/texmf-dist/tex/latex/dozenal/dozenal.sty15
1 files changed, 10 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/dozenal/dozenal.sty b/Master/texmf-dist/tex/latex/dozenal/dozenal.sty
index a89d7e5b5df..0f8a2caedbd 100644
--- a/Master/texmf-dist/tex/latex/dozenal/dozenal.sty
+++ b/Master/texmf-dist/tex/latex/dozenal/dozenal.sty
@@ -119,7 +119,7 @@
% produced by the commands |\x| and |\e|, to which we'll get
% in a moment.
%
-% |\x|\DescribeMacro{\x} and |\e|\DescribeMacro{\e} are the
+% |\x|\DescribeMacro{\x}\ and |\e|\DescribeMacro{\e}\ are the
% commands used to quickly and easily access the symbols for
% ten and eleven without having to use active characters
% (the \TeX\ gurus will know what that means; if you don't
@@ -166,6 +166,10 @@
% \begin{macrocode}
\ProvidesPackage{dozenal}
% \end{macrocode}
+% Now we need to make sure that we have fixltx2e loaded.
+% \begin{macrocode}
+\RequirePackage{fixltx2e}
+% \end{macrocode}
% We then define the font that we're using for our
% \MF-produced Pitman characters. Incidentally, we also
% define the command |\doz|, though I can't foresee any
@@ -182,8 +186,11 @@
\DeclareFontShape{OT1}{dozch}{m}{it}{<-7> dozchit7 <8> dozchit8 <9> dozchit9 <10-11> dozchit10 <12-> dozchit12 }{}
\DeclareFontShape{OT1}{dozch}{bx}{it}{<-> dozchbxi10 }{}
\newcommand\doz[1]{{\fontfamily{dozch}\selectfont #1}}
-\newcommand\x{\protect\doz{X}}%
-\newcommand\e{\protect\doz{E}}%
+\newcommand\x{\TextOrMath{\protect\doz{{X}}}{\X}}%
+\newcommand\e{\TextOrMath{\protect\doz{{E}}}{\E}}%
+\DeclareSymbolFont{dozens}{OT1}{dozch}{m}{n}
+\DeclareMathSymbol{\X}{\mathord}{dozens}{88}
+\DeclareMathSymbol{\E}{\mathord}{dozens}{69}
% \end{macrocode}
% Then we define our command which will produce the dozenal
% numbers from decimal sources. This algorithm was taken
@@ -229,8 +236,6 @@
\renewcommand\thesubsection{\thesection.\basexii{\arabic{subsection}}{\x}{\e}}
\renewcommand\thesubsubsection{\thesubsection.\basexii{\arabic{subsubsection}}{\x}{\e}}
} % end if it's defined
-
-
% \end{macrocode}
% And that's the end. Thanks for reading,
% folks; please email me with any suggestions or improvements.