<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[a4paper]{article}
\usepackage{ifthen}
\usepackage[LGR,T1]{fontenc}
\usepackage{booktabs}
\usepackage{longtable,ltcaption,array}
\usepackage[textwidth=14cm]{geometry} % to fit the number table
\setlength{\extrarowheight}{2pt}
\usepackage{parskip}

\ifdefined \UnicodeEncodingName
  \usepackage{fontspec}
  % \setmainfont{Linux Libertine O} % no GREEK ACROPHONIC ATTIC numbers
  % \setmainfont{Liberation Serif}  % no GREEK ACROPHONIC ATTIC numbers
  \setmainfont{FreeSerif}
\else
  \usepackage{lmodern}
\fi


\usepackage{textalpha}
\usepackage{athnum}

\begin{document}
\title{Test Attic numerals}
\author{GÃ¼nter Milde}
\date{2022/12/08}
\maketitle

The Greek font encoding is \greekfontencoding.\footnote{
  Since version 2.0 you can use \emph{athnum} also without
  \emph{babel-greek} and with Unicode fonts (if they support the
  ``Greek acrophonic attic'' number symbols for 50, 500, and 5000).}

\begin{tabular}{rrrrrrrrr}
\toprule
1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 \\
\athnum{1} &amp; \athnum{2} &amp; \athnum{3} &amp; \athnum{4} &amp;
\athnum{5} &amp; \athnum{6} &amp; \athnum{7} &amp; \athnum{8} &amp; \athnum{9} \\

10 &amp; 20 &amp; 30 &amp; 40 &amp; 50 &amp; 60 &amp; 70 &amp; 80 &amp; 90 \\
\athnum{10} &amp; \athnum{20} &amp; \athnum{30} &amp; \athnum{40} &amp;
\athnum{50} &amp; \athnum{60} &amp; \athnum{70} &amp; \athnum{80} &amp; \athnum{90} \\

100 &amp; 200 &amp; 300 &amp; 400 &amp; 500 &amp; 600 &amp; 700 &amp; 800 &amp; 900 \\
\athnum{100} &amp; \athnum{200} &amp; \athnum{300} &amp; \athnum{400} &amp;
\athnum{500} &amp; \athnum{600} &amp; \athnum{700} &amp; \athnum{800} &amp; \athnum{900} \\

1000 &amp; 2000 &amp; 3000 &amp; 4000 &amp; 5000 &amp; 6000 &amp; 7000 &amp; 8000 &amp; 9000 \\
\athnum{1000}&amp; \athnum{2000}&amp; \athnum{3000}&amp; \athnum{4000}&amp;
\athnum{5000}&amp; \athnum{6000}&amp; \athnum{7000}&amp; \athnum{8000}&amp; \athnum{9000} \\

10000 &amp; 20000 &amp; 30000 &amp; 40000 &amp; 50000 &amp; 60000 &amp; 70000 &amp; 80000 &amp; 90000 \\
\athnum{10000}&amp;\athnum{20000}&amp;\athnum{30000}&amp;\athnum{40000}&amp;
\athnum{50000}&amp;\athnum{60000}&amp;\athnum{70000}&amp;\athnum{80000}&amp;\athnum{90000} \\

\bottomrule
\end{tabular}

Some examples:


678 = \athnum{678}, 2022 = \athnum{2022}

Largest ``canonical'' number: 9999 = \athnum{9999}

Largest allowed number: 249999 = \athnum{249999}

Hexadecimal input works, too: \texttt{"10} = \athnum{"10}

Attic numerals in math mode: $a = \textrm{\athnum{678}}, b = \athnum{2022}$

\end{document}
</pre></body></html>