From 85df9edd503d429a635398d7a5289cfe5199ae7c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 7 Jun 2009 23:31:00 +0000 Subject: dozenal update (7jun09) git-svn-id: svn://tug.org/texlive/trunk@13661 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/dozenal/dozenal.sty | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'Master/texmf-dist/tex') 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. -- cgit v1.2.3