summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/dozenal/dozenal.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/dozenal/dozenal.sty')
-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.