12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

18. MISCELLANEOUSTypeset example 18.2: <strong>TeX</strong>’s maximum number in words (American style)<strong>The</strong> maximum number in <strong>TeX</strong> is two billion one hundred forty-seven million fourhundred eighty-three thousand six hundred forty-seven (i.e., 2147483647).\ordinaltoname{〈number〉}\ordinaltoName{〈number〉}\OrdinalToName{〈number〉}<strong>The</strong>se three macros are similar to \numtoname, etc., except that they typeset the argumentas a wordy ordinal.For example:This is the \ordinaltoname{\value{chapter}} chapter. -> This is the eighteenthchapter.\namenumberand \namenumbercomma \tensunitsepBy default some punctuation and conjunctions are used in the representation of namednumbers. According to both American and English practice, a hyphen should be insertedbetween a ‘tens’ name (e.g., fifty) and a following unit name (e.g., two). This is representedby the value of \tensunitsep. English practice, but not American, is to include commas(the value of \namenumbercomma) and conjunctions (the value of \namenumberand) instrategic positions in the typesetting. <strong>The</strong>se macros are initially defined as:\newcommand*{\namenumberand}{ and }\newcommand*{\namenumbercomma}{, }\newcommand*{\tensunitsep}{-}<strong>The</strong> next example shows how to achieve American typesetting.Source for example 18.2\renewcommand*{\namenumberand}{ }\renewcommand*{\namenumbercomma}{ }<strong>The</strong> maximum number in <strong>TeX</strong> is \numtoname{2147483647}(i.e., \cardinal{2147483647}).\minusname \lcminusname \ucminusnameWhen a named number is negative, \minusname is put before the spelled out number. <strong>The</strong>definitions of the above three comands are:\newcommand*{\lcminusname}{minus }\newcommand*{\ucminusname}{Minus }\let\minusname\lcminusname334

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!