%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[12pt]{amsart}
\usepackage[usenames,dvipsnames]{color}
\usepackage[colorlinks=true,citecolor=red,linkcolor=blue]{hyperref}
\usepackage[all]{hypcap}


\setlength{\textwidth}{6.2in}
\setlength{\textheight}{9in}
\setlength{\topmargin}{0in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}

%%%%%Egyptian hieroglyphics
\usepackage{hieroglf}
\newcommand{\Eone}{{\Large \textpmhg{\Hone}}}
\newcommand{\Eten}{{\Large \textpmhg{\Hten}}}
\newcommand{\Ehun}{{\Large \textpmhg{\Hhundred}}}
\newcommand{\Ethou}{{\Large \textpmhg{\Hthousand}}}
\newcommand{\EXthou}{{\Large \textpmhg{\HXthousand}}}
\newcommand{\ECthou}{{\Large \textpmhg{\HCthousand}}}
\newcommand{\Emil}{{\Large \textpmhg{\Hmillion}}}
\newcommand{\Efracsym}{{\LARGE \textpmhg{\Hr}}}
\newcommand{\Enum}[1]{\begin{tabular}{c} #1 \end{tabular}}
\newcommand{\Efrac}[1]{\begin{tabular}{c}\Efracsym \\ #1 \end{tabular}}
%%%%%

\begin{document}
\title{Egyptian hieroglyphics}
\author{Dave Richeson}
\maketitle

\href{http://en.wikipedia.org/wiki/Egyptian_numerals}{Egyptian hieroglyphic numbers} consist of symbols for each power of 10. They are:

1, \verb#\Eone#: \Eone

10, \verb#\Eten#: \Eten

100, \verb#\Ehum#: \Ehun

1000, \verb#\Ethou#: \Ethou

10000, \verb#\EXthou#: \EXthou

100000, \verb#\ECthou#: \ECthou

1000000, \verb#\Emil#: \Emil

The notation is additive. That is, the hieroglyphic representation of 1002423 is the (smallest) collection of hieroglyphs that add to 1002423. You may write them all in one line:

\verb#\Emil\Ethou\Ethou\Ehun\Ehun\Ehun\Ehun\Eten\Eten\Eone\Eone\Eone# 

produces 

\begin{center}
\Emil\Ethou\Ethou\Ehun\Ehun\Ehun\Ehun\Eten\Eten\Eone\Eone\Eone
\end{center}

or you may write them so that they are stacked:

\begin{verbatim}
\Enum{\Emil\Ethou\Ethou\\ \Ehun\Ehun\Ehun\Ehun\\ \Eten\Eten\Eone\Eone\Eone}
\end{verbatim}

produces 

\begin{center}
\Enum{\Emil\Ethou\Ethou\\ 
\Ehun\Ehun\Ehun\Ehun\\ 
\Eten\Eten\Eone\Eone\Eone}
\end{center}

Egyptian fractions are sums of unit fractions. The unit fraction $1/n$ is created by writing the hieroglyphs for $n$ and surmounting them with \Efracsym. For example, to write $1/26$ in hieroglyphics, write:

\begin{verbatim}
\Efrac{\Eten\Eten\\ \Eone\Eone\Eone\Eone\Eone\Eone}
\end{verbatim}

This produces 

\begin{center}
\Efrac{\Eten\Eten\\ \Eone\Eone\Eone\Eone\Eone\Eone}
\end{center}

\end{document}
