summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/xelatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-09-29 23:43:43 +0000
committerKarl Berry <karl@freefriends.org>2011-09-29 23:43:43 +0000
commit7320c39b3943cac8ea4e08425e2c51f6238075bb (patch)
tree2d5db381c4d9d6315d4a01d1733ed858440ccb7f /Master/texmf-dist/source/xelatex
parentc16b83c6785e81ae8a34b87155fc8d7d98edadaa (diff)
xgreek (27sep11)
git-svn-id: svn://tug.org/texlive/trunk@24147 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
-rw-r--r--Master/texmf-dist/source/xelatex/xgreek/xgreek.dtx51
1 files changed, 33 insertions, 18 deletions
diff --git a/Master/texmf-dist/source/xelatex/xgreek/xgreek.dtx b/Master/texmf-dist/source/xelatex/xgreek/xgreek.dtx
index f854aa7bede..954ac1cef8f 100644
--- a/Master/texmf-dist/source/xelatex/xgreek/xgreek.dtx
+++ b/Master/texmf-dist/source/xelatex/xgreek/xgreek.dtx
@@ -29,13 +29,13 @@
% Apostolos Syropoulos (asyropoulos@yahoo.com)
%
%\fi
-% \CheckSum{1843}
-% \changes{xgreek~2.2}{2010/12/28}{Removed first entry of \refname in \@ncientn@mes}
+% \CheckSum{1847}
+% \changes{xgreek~2.3}{2011/09/27}{Removed first entry of \refname in \@ncientn@mes}
% \iffalse This is a Metacomment
%
%<xgreek, >\ProvidesFile{xgreek.sty}
%
-%<xgreek, > [2010/12/28 v2.2 Package `xgreek.sty']
+%<xgreek, > [2011/09/27 v2.3 Package `xgreek.sty']
%
% \begin{macrocode}
%<*driver>
@@ -58,7 +58,7 @@
%\author{Apostolos Syropoulos\\
% Xanthi, Greece\\
% \texttt{asyropoulos@yahoo.com}}
-% \date{2009/11/23\\ Updated 2011/01/05}
+% \date{2009/11/23\\ Last Updated 2011/09/27}
%\maketitle
% \begin{abstract}
% The \textsf{xgreek} package provides rudimentary support for Greek language
@@ -87,7 +87,7 @@
% we first need to set up the correct |\uccode|s and |\lccode|s.
% \begin{macrocode}
%<*xgreek>
-\message{Package `xgreek' version 2.2 by Apostolos Syropoulos}
+\message{Package `xgreek' version 2.3 by Apostolos Syropoulos}
\global\lccode"0370="0371 \global\uccode"0370="0370
\global\lccode"0371="0371 \global\uccode"0371="0370
\global\lccode"0372="0373 \global\uccode"0372="0372
@@ -489,6 +489,24 @@
Μαΐου\or Ἰουνίου\or Ἰουλίου\or Αὐγούστου\or Σεπτεμβρίου\or
Ὀκτωβρίου\or Νοεμβρίου\or Δεκεμβρίου\fi}
% \end{macrocode}
+% Next we define a few macros, which allow one to access characters
+% that are not usually easily accessible from the keyboard (e.g., the sampi or the
+% koppa symbol).
+% \begin{macrocode}
+\def\anwtonos{\char"0374\relax}
+\def\katwtonos{\char"0375\relax}
+\def\koppa{\char"03DF\relax}
+\def\sampi{\char"03E1\relax}
+\def\Digamma{\char"03DC\relax}
+\def\ddigamma{\char"03DD\relax}
+\def\euro{\char"20AC\relax}
+\def\permill{\char"2030\relax}
+% \end{macrocode}
+% Many users prefer the use of the letters sigma and tau instead of the stigma symbol in
+% Greek numerals, therefore, by default the |\stigmna| command expands to ``στ''.
+% \begin{macrocode}
+\def\stigma{στ\relax}
+% \end{macrocode}
% Now that we have defined the language dependant macros, we can safely define the various
% supported options. Note we follow the standard mechanims to load hyphenation patterns.
% \begin{macrocode}
@@ -505,6 +523,16 @@
\@ncientn@mes%
\let\gr@month\gr@c@month%
}
+% \end{macrocode}
+% If a user wants to use the stigma symbol in Greek numerals, she should use the
+% |stigna| option.
+% \begin{macrocode}
+\DeclareOption{stigma}{%
+ \def\stigma{\char"03DA\relax}
+}
+% \end{macrocode}
+% By default the |monogreek| option is activated.
+% \begin{macrocode}
\ExecuteOptions{monogreek}
\ProcessOptions
% \end{macrocode}
@@ -514,19 +542,6 @@
\let\@afterindentfalse\@afterindenttrue
\@afterindenttrue
% \end{macrocode}
-% Before we proceed let us define a few macros, which allow one to access characters
-% that are not usually easily accessible such as the sampi or koppa symbols.
-% \begin{macrocode}
-\def\anwtonos{\char"0374\relax}
-\def\katwtonos{\char"0375\relax}
-\def\koppa{\char"03DF\relax}
-\def\stigma{\char"03DA\relax}
-\def\sampi{\char"03E1\relax}
-\def\Digamma{\char"03DC\relax}
-\def\ddigamma{\char"03DD\relax}
-\def\euro{\char"20AC\relax}
-\def\permill{\char"2030\relax}
-% \end{macrocode}
% Now we are going to define the macros that typeset alphabetic Greek numerals. The code
% is borrowed from the greek option for the babel package.
% \begin{macro}{\gr@ill@value}