<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}
\pagestyle{empty}

\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}
  % \usepackage{kerkis}   % !! Data loss: \textStigma and \textSampi
                          %    characters missing!
  % \usepackage{gfsdidot} % !! Data loss: \textsampi, \textSampi,
                          %    and \textStigma characters missing!
  % \usepackage{dejavu}   % !! Data loss: \textSampi character missing!
  % Prevent dataloss with re-definitions, e.g:
  % \renewcommand*{\greeknumeralSix}{\textSigma\textTau} % default \textStigma
  % \renewcommand*{\greeknumeralNinety}{\textsampi}      % default \textSampi
\fi

\usepackage[greek,english]{babel}


\begin{document}
\section*{Test Greek (Milesian) numerals}
\author{GÃ¼nter Milde}
\date{2023/01/06}

Babel-greek defines the functions \verb|\greeknumeral| and
\verb|\Greeknumeral| that work similar to the TeX primitive
\verb|\romannumeral|. For details and configuration options, see
\texttt{babel-greek.pdf}.

% Compare also with the "ready-made" counter styles for CSS
% https://www.w3.org/TR/predefined-counter-styles/#greek-styles
%
% CSS counters greek-lower-modern and greek-upper-modern
% use Sigma+Tau instead of Stigma for 6.
%
% CSS counters greek-lower-ancient and greek-upper-ancient use Stigma

Examples:
\newcommand*{\greeknumeralsample}[1]{\mbox{#1 = \greeknumeral{#1}}}
\newcommand*{\Greeknumeralsample}[1]{\mbox{#1 = \Greeknumeral{#1}}}

\greeknumeralsample{16}\quad
\greeknumeralsample{32}\quad
\greeknumeralsample{64}\quad
\greeknumeralsample{678}\quad
\greeknumeralsample{2022}\quad
\greeknumeralsample{123456}

\Greeknumeralsample{16}\quad
\Greeknumeralsample{32}\quad
\Greeknumeralsample{64}\quad
\Greeknumeralsample{678}\quad
\Greeknumeralsample{2022}\quad
\Greeknumeralsample{123456}

Hexadecimal input works, too: \greeknumeralsample{"10}

Largest supported number: \greeknumeralsample{999999}

Values outside the supported range are printed as arabic decimal numbers
(a warning is issued):
\greeknumeralsample{-1}\quad
\greeknumeralsample{0}\quad
\greeknumeralsample{"1000000}

All Ionic number symbols.
The Greek font encoding is \greekfontencoding.

\begin{tabular}{rrrrrrrrr}
\toprule
1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 \\
\greeknumeral{1} &amp; \greeknumeral{2} &amp; \greeknumeral{3} &amp; \greeknumeral{4} &amp;
\greeknumeral{5} &amp; \greeknumeral{6} &amp; \greeknumeral{7} &amp; \greeknumeral{8} &amp; \greeknumeral{9} \\[0.3em]

10 &amp; 20 &amp; 30 &amp; 40 &amp; 50 &amp; 60 &amp; 70 &amp; 80 &amp; 90 \\
\greeknumeral{10} &amp; \greeknumeral{20} &amp; \greeknumeral{30} &amp; \greeknumeral{40} &amp;
\greeknumeral{50} &amp; \greeknumeral{60} &amp; \greeknumeral{70} &amp; \greeknumeral{80} &amp; \greeknumeral{90} \\[0.3em]

100 &amp; 200 &amp; 300 &amp; 400 &amp; 500 &amp; 600 &amp; 700 &amp; 800 &amp; 900 \\
\greeknumeral{100} &amp; \greeknumeral{200} &amp; \greeknumeral{300} &amp; \greeknumeral{400} &amp;
\greeknumeral{500} &amp; \greeknumeral{600} &amp; \greeknumeral{700} &amp; \greeknumeral{800} &amp; \greeknumeral{900} \\[0.3em]

1000 &amp; 2000 &amp; 3000 &amp; 4000 &amp; 5000 &amp; 6000 &amp; 7000 &amp; 8000 &amp; 9000 \\
\greeknumeral{1000}&amp; \greeknumeral{2000}&amp; \greeknumeral{3000}&amp; \greeknumeral{4000}&amp;
\greeknumeral{5000}&amp; \greeknumeral{6000}&amp; \greeknumeral{7000}&amp; \greeknumeral{8000}&amp; \greeknumeral{9000} \\[0.3em]

10000 &amp; 20000 &amp; 30000 &amp; 40000 &amp; 50000 &amp; 60000 &amp; 70000 &amp; 80000 &amp; 90000 \\
\greeknumeral{10000}&amp;\greeknumeral{20000}&amp;\greeknumeral{30000}&amp;\greeknumeral{40000}&amp;
\greeknumeral{50000}&amp;\greeknumeral{60000}&amp;\greeknumeral{70000}&amp;\greeknumeral{80000}&amp;\greeknumeral{90000} \\[0.3em]

100000 &amp; 200000 &amp; 300000 &amp; 400000 &amp; 500000 &amp; 600000 &amp; 700000 &amp; 800000 &amp; 900000 \\
\greeknumeral{100000}&amp;\greeknumeral{200000}&amp;\greeknumeral{300000}&amp;\greeknumeral{400000}&amp;
\greeknumeral{500000}&amp;\greeknumeral{600000}&amp;\greeknumeral{700000}&amp;\greeknumeral{800000}&amp;\greeknumeral{900000} \\[0.3em]

\bottomrule
\end{tabular}

\begin{tabular}{rrrrrrrrr}
\toprule
1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9 \\
\Greeknumeral{1} &amp; \Greeknumeral{2} &amp; \Greeknumeral{3} &amp; \Greeknumeral{4} &amp;
\Greeknumeral{5} &amp; \Greeknumeral{6} &amp; \Greeknumeral{7} &amp; \Greeknumeral{8} &amp; \Greeknumeral{9} \\[0.3em]

10 &amp; 20 &amp; 30 &amp; 40 &amp; 50 &amp; 60 &amp; 70 &amp; 80 &amp; 90 \\
\Greeknumeral{10} &amp; \Greeknumeral{20} &amp; \Greeknumeral{30} &amp; \Greeknumeral{40} &amp;
\Greeknumeral{50} &amp; \Greeknumeral{60} &amp; \Greeknumeral{70} &amp; \Greeknumeral{80} &amp; \Greeknumeral{90} \\[0.3em]

100 &amp; 200 &amp; 300 &amp; 400 &amp; 500 &amp; 600 &amp; 700 &amp; 800 &amp; 900 \\
\Greeknumeral{100} &amp; \Greeknumeral{200} &amp; \Greeknumeral{300} &amp; \Greeknumeral{400} &amp;
\Greeknumeral{500} &amp; \Greeknumeral{600} &amp; \Greeknumeral{700} &amp; \Greeknumeral{800} &amp; \Greeknumeral{900} \\[0.3em]

1000 &amp; 2000 &amp; 3000 &amp; 4000 &amp; 5000 &amp; 6000 &amp; 7000 &amp; 8000 &amp; 9000 \\
\Greeknumeral{1000}&amp; \Greeknumeral{2000}&amp; \Greeknumeral{3000}&amp; \Greeknumeral{4000}&amp;
\Greeknumeral{5000}&amp; \Greeknumeral{6000}&amp; \Greeknumeral{7000}&amp; \Greeknumeral{8000}&amp; \Greeknumeral{9000} \\[0.3em]

10000 &amp; 20000 &amp; 30000 &amp; 40000 &amp; 50000 &amp; 60000 &amp; 70000 &amp; 80000 &amp; 90000 \\
\Greeknumeral{10000}&amp;\Greeknumeral{20000}&amp;\Greeknumeral{30000}&amp;\Greeknumeral{40000}&amp;
\Greeknumeral{50000}&amp;\Greeknumeral{60000}&amp;\Greeknumeral{70000}&amp;\Greeknumeral{80000}&amp;\Greeknumeral{90000} \\[0.3em]

100000 &amp; 200000 &amp; 300000 &amp; 400000 &amp; 500000 &amp; 600000 &amp; 700000 &amp; 800000 &amp; 900000 \\
\Greeknumeral{100000}&amp;\Greeknumeral{200000}&amp;\Greeknumeral{300000}&amp;\Greeknumeral{400000}&amp;
\Greeknumeral{500000}&amp;\Greeknumeral{600000}&amp;\Greeknumeral{700000}&amp;\Greeknumeral{800000}&amp;\Greeknumeral{900000} \\

\bottomrule
\end{tabular}

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