diff options
Diffstat (limited to 'Master/texmf-dist/source/generic/babel-greek/athnum.dtx')
-rw-r--r-- | Master/texmf-dist/source/generic/babel-greek/athnum.dtx | 68 |
1 files changed, 40 insertions, 28 deletions
diff --git a/Master/texmf-dist/source/generic/babel-greek/athnum.dtx b/Master/texmf-dist/source/generic/babel-greek/athnum.dtx index 3c1f3f46365..fc199a48960 100644 --- a/Master/texmf-dist/source/generic/babel-greek/athnum.dtx +++ b/Master/texmf-dist/source/generic/babel-greek/athnum.dtx @@ -16,12 +16,12 @@ % The Current Maintainer of this work is Günter Milde <milde@users.sf.net>. % % \fi -%% \CheckSum{150} +%% \CheckSum{146} %\iffalse % %% This is file `athnum.dtx' %% (c) 1997-2007 Apostolos Syropoulos. -%% Changes in version 2.0 © 2022 Günter Milde +%% Changes in version 2 © 2022, 2023 Günter Milde %% All rights reserved. %\fi % @@ -29,6 +29,9 @@ % \begin{macrocode} %<*driver> \documentclass{ltxdoc} +\usepackage{hyperref} +\hypersetup{colorlinks=true,linkcolor=blue,urlcolor=blue,citecolor=black} +% auxiliary macro to keep the documentation independent of Greek text fonts \def\PiIt#1{{% \newdimen\boxW \newdimen\boxH \settowidth{\boxW}{#1}% @@ -45,9 +48,8 @@ %</driver> % \end{macrocode} % \fi -%\title{Attic (or Athenian) Numerals} -% \author{Apostolos Syropoulos\\366, 28th October Str.\\ -% GR-671 00 Xanthi, HELLAS\\ Email:\texttt{apostolo@platon.ee.duth.gr}} +%%\title{Athenian (Attic) Numerals} +% \author{Apostolos Syropoulos} % \date{2003/08/24} %\maketitle % @@ -57,10 +59,12 @@ % % This \LaTeX\ package implements the macro % \DescribeMacro{\athnum} -% |\athnum|. The macro transforms an Arabic numeral, i.e., the kind -% of numerals we all use (e.g., 1, 5, 789 etc), to the corresponding -% {\itshape Athenian} (or \emph{Attic} numeral. Athenian numerals were in -% use mainly in ancient Athens. The package requires a Greek text font and +% |\athnum|. +% The macro transforms an Arabic numeral, i.e., the kind of numerals +% we all use (e.g., 1, 5, 789 etc), to the corresponding +% \href{https://en.wikipedia.org/wiki/Attic_numerals}{\emph{Athenian} numeral}. +% It can also be used to display counters. +% The package requires a Greek text font and % the |greek-fontenc| package.\footnote{% % Up to version 1.1, `athnum' required that Babel was loaded with the % |greek| option. Version 2.0 sets up Greek font support autonomously.} @@ -93,23 +97,16 @@ % % \section{The Code} % -% \changes{athnum-2.0}{2022/12/08}{% -% Do not require Babel to be loaded with the |greek| option.\\ -% Use LICR macros instead of the Latin transliteration for Greek letters -% to fix working with Unicode fonts.\\ -% Drop the backwards compatibility definitions for PiDelta, PiEta, -% PiChi, and PiMu.} -% % Before we do anything further, we have to identify the package. % \StopEventually % % \begin{macrocode} %<*package> \NeedsTeXFormat{LaTeX2e}[1996/01/01] -\ProvidesPackage{athnum}[2022/12/08\space v2.0] -\typeout{Package: `athnum' v2.0\space <2022/12/08> (A. Syropoulos)} +\ProvidesPackage{athnum}[2023/03/17 v2.0.1 Athenian numerals] % \end{macrocode} -% \section{Font setup} +% +% \subsection{Font Setup} % % Typesetting Greek texts requires a font with Greek characters: % @@ -142,10 +139,9 @@ \InputIfFileExists{\athnum@greek@fontencdef .def}{}{% else \PackageError{athnum}{Font support for the Greek script missing.\\ can't typeset Greek symbols.\\ - Install the "greek-fontenc" package\\ - or use XeTeX/LuaTeX.} + Install the "greek-fontenc" package.} {I can't find the \athnum@greek@fontencdef .def file - for the Greek fonts (encoding \greekfontencoding)} + for the Greek fonts (encoding \greekfontencoding).} \@@end } } @@ -160,6 +156,8 @@ % \end{macrocode} % \end{macro} % +% \subsection{Transform Arabic Numeral to Athenian Numeral} +% %\begin{macro}{\@@athnum} % Now, we turn our attention to the definition of the macro % |\@@athnum|. This macro uses one integer variable (or counter in @@ -272,20 +270,32 @@ % \end{macrocode} %\end{macro} %\begin{macro}{\athnum} -% The command |\athnum| is a wrapper that declares -% a new counter in a local scope, assigns to it the argument of the command -% and calls the macro |\@athnum|. This way the command can process correctly -% either a number or a counter. +% The command |\athnum| is a wrapper that declares a new counter +% in a local scope, assigns to it the argument of the command +% and calls the macro |\@athnum|. +% This way the command can process correctly either a number or a counter. +% It also ensures that the argument is set with a Greek text font. % \begin{macrocode} \def\athnum#1{% - \ensuregreek{% + \textrm{\ensuregreek{% \@ath@num#1\relax \@athnum{\@ath@num}}% - } + }} %</package> % \end{macrocode} %\end{macro} % +% \section{Changes} +% \begin{description} +% \item [athnum-2.0 2022/12/08] +% Do not require Babel. +% Support Unicode fonts. +% Drop the backwards compatibility definitions +% for |\PiDelta|, |\PiEta|, |\PiChi|, and |\PiMu|. +% \item [athnum-2.0.1 2023/03/17] +% Fix behaviour in math mode. +% \end{description} +% % \section*{Acknowledgment} % I would like to thank Claudio Beccari for reading the documentation % and for his very helpful suggestions. In addition, Antonis Tsolomitis @@ -294,6 +304,8 @@ % \section*{Dedication} % I would like to dedicate this piece of work to my son % \begin{center}Demetrios-Georgios.\end{center} +% +% % \Finale % \endinput |