From 85c6a8aa9952fa244dac588d1e2a036ecd7ca772 Mon Sep 17 00:00:00 2001
From: Karl Berry
Abstract
-The fontenc standard package supports TeX font encodings via -encoding definition files. The mechanism is explained in -[fntguide], section 5. This package provides encoding definition -files for Greek text font encodings for use with fontenc and -8-bit TeX engines. Currently, only LGR is supported.
+This package provides Greek LICR macro definitions and encoding +definition files for Greek text font encodings for use with +fontenc.
Note
@@ -55,13 +53,13 @@ punctuation may change in future versions.2013-07-03
0.9
greek-fontenc.def “outsourced” from lgrxenc.def
greek-fontenc.def “outsourced” from lgrxenc.def
experimental files xunicode-greek.sty and -greek-euenc.def: LICRs for XeTeX/LuaTeX.
2013-07-18
0.9.1
remove xunicode-greek.sty.
2013-09-13
0.10
textalpha.sty and alphabeta.sty moved here from lgrx and +updated to work with XeTeX/LuaTeX.
remove greek-fontenc.sty (obsoleted by textalpha.sty).
Common Greek font encoding definitions.
@@ -104,6 +112,26 @@ greek-euenc.def: LICRs for XeTeX/LuaTeX. comes with babel’s Greek support and lgrxenc.def from the lgrx bundle.Greek symbols in text +independent of font encoding and TeX engine.
+Generic macros for Greek symbols in text and math.
+Literate source files were converted with PyLit to reStructuredText and +with Docutils to the HTML documentation.
+The textalpha package.
+The alphabeta package.
+Test and usage example.
Experimental files that are still in development and will eventually be -moved to/merged with other packages or removed in future versions:
+These files are still in development and will eventually be moved to/merged +with other packages or removed in future versions:
Greek LICR definitions for XeTeX and LuaTeX
+Greek LICR definitions for XeTeX and LuaTeX. +Requires euenc.
Example for use of the experimental Greek LICR definitions with XeTeX or @@ -130,8 +159,6 @@ LuaTeX.
Literate source files were converted with PyLit to reStructuredText and -with Docutils to the HTML documentation.
For 8-bit TeX, pass the encoding name as option to fontenc. For example, -specify T1 (Latin) as default font encoding and LGR for Greek with
-\usepackage[LGR,T1]{fontenc} +To ensure Greek support independent of the TeX engine write
+\usepackage{textalpha}-See [fntguide] for details and lgrenc-test.tex for an example.
-For XeTeX/LuaTeX, you can specify the EU1/EU2 encoding and -load the experimental greek-euenc.def:
-\usepackage[EU1]{fontenc} % XeTeX -% \usepackage[EU2]{fontenc} % LuaTeX -\makeatletter -\input{greek-euenc.def} -\makeatother +For details see textalpha-test.tex and textalpha-test.pdf (8-bit +TeX) as well as test-euenc.tex and test-euenc.pdf (XeTeX/LuaTeX).
+To use the established macro names (\alpha … \Omega) in text and +math mode, write
+\usepackage{alphabeta}-XeTeX/LuaTeX usage details are likely to change in the future!!!
-To ensure Greek support independent of the TeX engine, you may write
-\usepackage{fontenc-greek} +For details see alphabeta-test.tex and alphabeta-test.pdf.
+For 8-bit TeX, you may also pass LGR as option to fontenc. For example, +specify T1 (Latin) as default font encoding and LGR for Greek with
+\usepackage[LGR,T1]{fontenc}+In this case, using Greek text macros without explicite font switch will +lead to errors.
+See [fntguide] for details and lgrenc-test.tex for an example.
The [encguide] reserves the name T7 for a Greek standard font encoding. +
The [encguide] reserves the name T7 for a Greek standard font encoding. However, up to now, there is no agreement on an implementation because the restrictions for general text encodings are too severe for typesetting polytonic Greek.
@@ -187,7 +214,7 @@ is facilitated by the [greek-usage], [teubner-doc], [cbfonts]). +font (see [greek-usage], [teubner-doc], [cbfonts]).A major drawback of the transliteration is, that you cannot access Latin letters if LGR is the active font encoding (e.g. in documents or parts of documents given the Babel language greek or polutionikogreek). @@ -199,7 +226,7 @@ Unicode (with XeTeX or LuaTeX).
The ‘Ibycus’ fonts from the package ibygrk implement an alternative -transliteration scheme (also explained in [babel-patch]). +transliteration scheme (also explained in [babel-patch]). It is currently not supported by greek-fontenc.
The font encoding file lgienc.def from ibycus-babel provides a basic setup (without any LICR macros or composite definitions).
@@ -351,40 +378,40 @@ from the ucAliases from puenc.def ensure that the hyperref package can convert Greek text in “LICR encoding” to a PDF-string (utf-8 encoded input is used as-is).
-LaTeX3 Project Team, LaTeX2ε font selection, 2005. http://mirror.ctan.org/macros/latex/doc/fntguide.pdf
Frank Mittelbach, Robin Fairbairns, Werner Lemberg, LaTeX3 Project Team, LaTeX font encodings, 2006. http://mirror.ctan.org/macros/latex/doc/encguide.pdf
Apostolos Syropoulos, Writing Greek with the greek option of the babel package, 1997. http://www.tug.org/texlive/Contents/live/texmf-dist/doc/generic/babel/greek-usage.pdf
Claudio Beccari, The CB Greek fonts, Εὔτυπον, τεῦχος № 21, 2008. http://www.eutypon.gr/eutypon/pdf/e2008-21/e21-a01.pdf
Claudio Beccari, teubner.sty An extension to the greek option of the babel package, 2011. http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf
Werner Lemberg, Unicode support for the Greek LGR encoding Εὔτυπον, τεῦχος № 20, 2008. diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-euenc.def.html b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-euenc.def.html new file mode 100644 index 00000000000..2a6ded6df26 --- /dev/null +++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-euenc.def.html @@ -0,0 +1,357 @@ + + + +
+ + +This work may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either +version 1.3 of this license or any later version.
+\ProvidesFile{alphabeta-euenc} +[2013/07/24 0.1.3 Composite definitions for XeTeX and LuaTeX] ++
Domposite definitions for alphabeta.sty with XeTeX and LuaTeX.
+2013-09-12 |
+0.1 |
+initial version |
+
The alphabeta package re-defines the math macros for Greek letters to work +in both, text and math mode, so that Greek letters can be specified with +the established command names in text, too.
+The NFSS TextComposite mechanism looks for the next token without expanding +it. In order to let compositions like \>"\alpha work as expected we +define TextComposites with the letter name commands.
+For use with Unicode fonts (XeTeX/LuaTeX), we need to define composite +commands for the EU1 and EU2 encoding
+\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Alpha}{Ά} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Epsilon}{Έ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Eta}{Ή} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Iota}{Ί} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Omicron}{Ό} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Upsilon}{Ύ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Omega}{Ώ} +\DeclareTextCompositeCommand{\accdialytikatonos}{\LastDeclaredEncoding}{\iota}{ΐ} + +\DeclareTextCompositeCommand{\"}{\LastDeclaredEncoding}{\Iota}{Ϊ} +\DeclareTextCompositeCommand{\"}{\LastDeclaredEncoding}{\Upsilon}{Ϋ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\alpha}{ά} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\epsilon}{έ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\eta}{ή} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\iota}{ί} +\DeclareTextCompositeCommand{\accdialytikatonos}{\LastDeclaredEncoding}{\upsilon}{ΰ} + +\DeclareTextCompositeCommand{\"}{\LastDeclaredEncoding}{\iota}{ϊ} +\DeclareTextCompositeCommand{\"}{\LastDeclaredEncoding}{\upsilon}{ϋ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\omicron}{ό} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\upsilon}{ύ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\omega}{ώ} ++
\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\alpha}{ἀ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\alpha}{ἁ} +\DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\alpha}{ἂ} +\DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\alpha}{ἃ} +\DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\alpha}{ἄ} +\DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\alpha}{ἅ} +\DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\alpha}{ἆ} +\DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\alpha}{ἇ} +\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Alpha}{Ἀ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Alpha}{Ἁ} +\DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Alpha}{Ἂ} +\DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Alpha}{Ἃ} +\DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Alpha}{Ἄ} +\DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Alpha}{Ἅ} +\DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Alpha}{Ἆ} +\DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Alpha}{Ἇ} + +\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\epsilon}{ἐ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\epsilon}{ἑ} +\DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\epsilon}{ἒ} +\DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\epsilon}{ἓ} +\DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\epsilon}{ἔ} +\DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\epsilon}{ἕ} +\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Epsilon}{Ἐ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Epsilon}{Ἑ} +\DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Epsilon}{Ἒ} +\DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Epsilon}{Ἓ} +\DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Epsilon}{Ἔ} +\DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Epsilon}{Ἕ} + +\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\eta}{ἠ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\eta}{ἡ} +\DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\eta}{ἢ} +\DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\eta}{ἣ} +\DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\eta}{ἤ} +\DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\eta}{ἥ} +\DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\eta}{ἦ} +\DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\eta}{ἧ} +\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Eta}{Ἠ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Eta}{Ἡ} +\DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Eta}{Ἢ} +\DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Eta}{Ἣ} +\DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Eta}{Ἤ} +\DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Eta}{Ἥ} +\DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Eta}{Ἦ} +\DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Eta}{Ἧ} + +\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\iota}{ἰ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\iota}{ἱ} +\DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\iota}{ἲ} +\DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\iota}{ἳ} +\DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\iota}{ἴ} +\DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\iota}{ἵ} +\DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\iota}{ἶ} +\DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\iota}{ἷ} +\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Iota}{Ἰ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Iota}{Ἱ} +\DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Iota}{Ἲ} +\DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Iota}{Ἳ} +\DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Iota}{Ἴ} +\DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Iota}{Ἵ} +\DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Iota}{Ἶ} +\DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Iota}{Ἷ} + +\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\omicron}{ὀ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\omicron}{ὁ} +\DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\omicron}{ὂ} +\DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\omicron}{ὃ} +\DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\omicron}{ὄ} +\DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\omicron}{ὅ} +\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Omicron}{Ὀ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Omicron}{Ὁ} +\DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Omicron}{Ὂ} +\DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Omicron}{Ὃ} +\DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Omicron}{Ὄ} +\DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Omicron}{Ὅ} + +\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\upsilon}{ὐ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\upsilon}{ὑ} +\DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\upsilon}{ὒ} +\DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\upsilon}{ὓ} +\DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\upsilon}{ὔ} +\DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\upsilon}{ὕ} +\DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\upsilon}{ὖ} +\DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\upsilon}{ὗ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Upsilon}{Ὑ} +\DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Upsilon}{Ὓ} +\DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Upsilon}{Ὕ} +\DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Upsilon}{Ὗ} + +\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\omega}{ὠ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\omega}{ὡ} +\DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\omega}{ὢ} +\DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\omega}{ὣ} +\DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\omega}{ὤ} +\DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\omega}{ὥ} +\DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\omega}{ὦ} +\DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\omega}{ὧ} +\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Omega}{Ὠ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Omega}{Ὡ} +\DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Omega}{Ὢ} +\DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Omega}{Ὣ} +\DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Omega}{Ὤ} +\DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Omega}{Ὥ} +\DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Omega}{Ὦ} +\DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Omega}{Ὧ} + +\DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\alpha}{ὰ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\alpha}{ά} +\DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\epsilon}{ὲ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\epsilon}{έ} +\DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\eta}{ὴ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\eta}{ή} +\DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\iota}{ὶ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\iota}{ί} +\DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\omicron}{ὸ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\omicron}{ό} +\DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\upsilon}{ὺ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\upsilon}{ύ} +\DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\omega}{ὼ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\omega}{ώ} + +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\alpha}{ὰ} +\DeclareTextCompositeCommand{\acctonos}{\LastDeclaredEncoding}{\alpha}{ά} +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\epsilon}{ὲ} +\DeclareTextCompositeCommand{\acctonos}{\LastDeclaredEncoding}{\epsilon}{έ} +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\eta}{ὴ} +\DeclareTextCompositeCommand{\acctonos}{\LastDeclaredEncoding}{\eta}{ή} +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\iota}{ὶ} +\DeclareTextCompositeCommand{\acctonos}{\LastDeclaredEncoding}{\iota}{ί} +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\omicron}{ὸ} +\DeclareTextCompositeCommand{\acctonos}{\LastDeclaredEncoding}{\omicron}{ό} +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\upsilon}{ὺ} +\DeclareTextCompositeCommand{\acctonos}{\LastDeclaredEncoding}{\upsilon}{ύ} +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\omega}{ὼ} +\DeclareTextCompositeCommand{\acctonos}{\LastDeclaredEncoding}{\omega}{ώ} + +%% postfix ypogegrammeni cannot be second part of composite defs. +% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾀ} +% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾁ} +% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾂ} +% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾃ} +% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾄ} +% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾅ} +% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾆ} +% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾇ} +% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾈ} +% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾉ} +% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾊ} +% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾋ} +% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾌ} +% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾍ} +% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾎ} +% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Alpha\prosgegrammeni}{ᾏ} +% +% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾐ} +% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾑ} +% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾒ} +% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾓ} +% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾔ} +% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾕ} +% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾖ} +% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ᾗ} +% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾘ} +% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾙ} +% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾚ} +% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾛ} +% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾜ} +% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾝ} +% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾞ} +% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Eta\prosgegrammeni}{ᾟ} +% +% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾠ} +% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾡ} +% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾢ} +% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾣ} +% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾤ} +% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾥ} +% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾦ} +% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ᾧ} +% \DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾨ} +% \DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾩ} +% \DeclareTextCompositeCommand{\accpsilivaria}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾪ} +% \DeclareTextCompositeCommand{\accdasiavaria}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾫ} +% \DeclareTextCompositeCommand{\accpsilioxia}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾬ} +% \DeclareTextCompositeCommand{\accdasiaoxia}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾭ} +% \DeclareTextCompositeCommand{\accpsiliperispomeni}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾮ} +% \DeclareTextCompositeCommand{\accdasiaperispomeni}{\LastDeclaredEncoding}{\Omega\prosgegrammeni}{ᾯ} + +\DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\alpha}{ᾰ} +\DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\alpha}{ᾱ} +% \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾲ} +% \DeclareTextCompositeCommand{\alpha}{\LastDeclaredEncoding}{\ypogegrammeni}{ᾳ} +% \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾴ} +\DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\alpha}{ᾶ} +\DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\alpha}{ᾶ} +% \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\alpha\ypogegrammeni}{ᾷ} +\DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\Alpha}{Ᾰ} +\DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\Alpha}{Ᾱ} +\DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Alpha}{Ὰ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Alpha}{Ά} +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Alpha}{Ὰ} +\DeclareTextCompositeCommand{\acctonos}{\LastDeclaredEncoding}{\Alpha}{Ά} +% \DeclareTextCompositeCommand{\Alpha}{\LastDeclaredEncoding}{\prosgegrammeni}{ᾼ} + +% \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ῂ} +% \DeclareTextCompositeCommand{\eta}{\LastDeclaredEncoding}{\ypogegrammeni}{ῃ} +% \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ῄ} +\DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\eta}{ῆ} +\DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\eta}{ῆ} +% \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\eta\ypogegrammeni}{ῇ} +\DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Epsilon}{Ὲ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Epsilon}{Έ} +\DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Eta}{Ὴ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Eta}{Ή} +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Epsilon}{Ὲ} +\DeclareTextCompositeCommand{\acctonos}{\LastDeclaredEncoding}{\Epsilon}{Έ} +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Eta}{Ὴ} +\DeclareTextCompositeCommand{\acctonos}{\LastDeclaredEncoding}{\Eta}{Ή} +% \DeclareTextCompositeCommand{\Eta}{\LastDeclaredEncoding}{\prosgegrammeni}{ῌ} + + +\DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\iota}{ῐ} +\DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\iota}{ῑ} +\DeclareTextCompositeCommand{\accdialytikavaria}{\LastDeclaredEncoding}{\iota}{ῒ} +\DeclareTextCompositeCommand{\accdialytikaoxia}{\LastDeclaredEncoding}{\iota}{ΐ} +\DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\iota}{ῖ} +\DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\iota}{ῖ} +\DeclareTextCompositeCommand{\accdialytikaperispomeni}{\LastDeclaredEncoding}{\iota}{ῗ} +\DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\Iota}{Ῐ} +\DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\Iota}{Ῑ} +\DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Iota}{Ὶ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Iota}{Ί} +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Iota}{Ὶ} +\DeclareTextCompositeCommand{\acctonos}{\LastDeclaredEncoding}{\Iota}{Ί} + +\DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\upsilon}{ῠ} +\DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\upsilon}{ῡ} +\DeclareTextCompositeCommand{\accdialytikavaria}{\LastDeclaredEncoding}{\upsilon}{ῢ} +\DeclareTextCompositeCommand{\accdialytikaoxia}{\LastDeclaredEncoding}{\upsilon}{ΰ} +\DeclareTextCompositeCommand{\accpsili}{\LastDeclaredEncoding}{\rho}{ῤ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\rho}{ῥ} +\DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\upsilon}{ῦ} +\DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\upsilon}{ῦ} +\DeclareTextCompositeCommand{\accdialytikaperispomeni}{\LastDeclaredEncoding}{\upsilon}{ῧ} +\DeclareTextCompositeCommand{\u}{\LastDeclaredEncoding}{\Upsilon}{Ῠ} +\DeclareTextCompositeCommand{\=}{\LastDeclaredEncoding}{\Upsilon}{Ῡ} +\DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Upsilon}{Ὺ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Upsilon}{Ύ} +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Upsilon}{Ὺ} +\DeclareTextCompositeCommand{\acctonos}{\LastDeclaredEncoding}{\Upsilon}{Ύ} +\DeclareTextCompositeCommand{\accdasia}{\LastDeclaredEncoding}{\Rho}{Ῥ} + +% \DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ῲ} +% \DeclareTextCompositeCommand{\omega}{\LastDeclaredEncoding}{\ypogegrammeni}{ῳ} +% \DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ῴ} +\DeclareTextCompositeCommand{\~}{\LastDeclaredEncoding}{\omega}{ῶ} +\DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\omega}{ῶ} +% \DeclareTextCompositeCommand{\accperispomeni}{\LastDeclaredEncoding}{\omega\ypogegrammeni}{ῷ} +\DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Omicron}{Ὸ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Omicron}{Ό} +\DeclareTextCompositeCommand{\`}{\LastDeclaredEncoding}{\Omega}{Ὼ} +\DeclareTextCompositeCommand{\'}{\LastDeclaredEncoding}{\Omega}{Ώ} +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Omicron}{Ὸ} +\DeclareTextCompositeCommand{\acctonos}{\LastDeclaredEncoding}{\Omicron}{Ό} +\DeclareTextCompositeCommand{\accvaria}{\LastDeclaredEncoding}{\Omega}{Ὼ} +\DeclareTextCompositeCommand{\acctonos}{\LastDeclaredEncoding}{\Omega}{Ώ} +% \DeclareTextCompositeCommand{\Omega}{\LastDeclaredEncoding}{\prosgegrammeni}{ῼ} ++ +
This work may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either +version 1.3 of this license or any later version.
+\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{alphabeta} +[2013/09/11 v0.4 macros for Greek letters in text and math] ++
Abstract
+Use \alpha, \beta, ... for Greek letters in text and math +mode.
+2012-06-26 |
+0.1 |
+initial version |
+
2013-05-03 |
+0.2 |
+new accent macro names with lgrxenc.def 0.7 |
+
2013-05-28 |
+0.3 |
+use lgrenc.def from greek-fontenc, |
+
+ | ++ | enable Unicode input in math mode. |
+
2013-09-11 |
+0.4 |
+move to greek-fontenc, support XeTeX/LuaTeX. |
+
By default, the \alpha, \beta, ... macros for Greek letters +are only valid in mathematical mode.
+With this package, the math macros are redefined to work in both, text and +math mode, so that Greek letters can be specified with the established +command names in text, too.
+If used together with the utf8 option of inputenc, literal Unicode +characters can be used for Greek symbols in mathematical formulas.
+Attention!
+The macros work well in any font encoding for single symbols. +However, with 8-bit TeX, the automatic font-encoding switches behind the +doors interfere with kerning between letters and replacement of +accent+character with a pre-composed character.
+Therefore, Greek text should be written with the help of babel or +polyglossia (setting the language to greek) or wrapped in the +provided ensuregreek macro. Using babel or polyglossia also helps +to ensure proper hyphenation.
+This package extends the textalpha package:
+\RequirePackage{textalpha} ++
textalpha depends on greek-fontenc and (with 8-bit TeX) recommends +greek-inputenc.
+This package requires the e-TeX extensions (i.e. a not too old TeX +distribution) for the \ifdefined test.
+It uses the \TextOrMath test from the fixltx2e standard LaTeX +package:
+\RequirePackage{fixltx2e} ++
To prevent other packages overwriting the re-defined commands we postpone +the next steps until the start of the document body:
+\AtBeginDocument{ ++
Provide an alias for the standard math commands:
+\let\mathGamma\Gamma +\let\mathDelta\Delta +\let\mathTheta\Theta +\let\mathLambda\Lambda +\let\mathXi\Xi +\let\mathPi\Pi +\let\mathSigma\Sigma +\let\mathUpsilon\Upsilon +\let\mathPhi\Phi +\let\mathPsi\Psi +\let\mathOmega\Omega +% +\let\mathalpha\alpha +\let\mathbeta\beta +\let\mathgamma\gamma +\let\mathdelta\delta +\let\mathepsilon\epsilon +\let\mathzeta\zeta +\let\matheta\eta +\let\maththeta\theta +\let\mathiota\iota +\let\mathkappa\kappa +\let\mathlambda\lambda +\let\mathmu\mu +\let\mathnu\nu +\let\mathxi\xi +\let\mathpi\pi +\let\mathrho\rho +\let\mathsigma\sigma +\let\mathvarsigma\varsigma +\let\mathtau\tau +\let\mathupsilon\upsilon +\let\mathphi\phi +\let\mathchi\chi +\let\mathpsi\psi +\let\mathomega\omega +% ``\digamma`` is defined by amsmath, provide a fallback +\providecommand*{\digamma}{\textit{\textdigamma}} +\let\mathdigamma\digamma ++
For letters defined in math mode, the commands work in both, text and math.
+Some Greek letters look identical to Latin letters and can therefore not be +used as variable symbols in math formulas. These letters are not defined in +TeX’s math mode, we provide an alias to the corrsponding \text... +command.
+\providecommand*{\Alpha}{\textAlpha} +\providecommand*{\Beta}{\textBeta} +\renewcommand*{\Gamma}{\TextOrMath{\textGamma}{\mathGamma}} +\renewcommand*{\Delta}{\TextOrMath{\textDelta}{\mathDelta}} +\providecommand*{\Epsilon}{\textEpsilon} +\providecommand*{\Zeta}{\textZeta} +\providecommand*{\Eta}{\textEta} +\renewcommand*{\Theta}{\TextOrMath{\textTheta}{\mathTheta}} +\providecommand*{\Iota}{\textIota} +\providecommand*{\Kappa}{\textKappa} +\renewcommand*{\Lambda}{\TextOrMath{\textLambda}{\mathLambda}} +\providecommand*{\Mu}{\textMu} +\providecommand*{\Nu}{\textNu} +\renewcommand*{\Xi}{\TextOrMath{\textXi}{\mathXi}} +\providecommand*{\Omicron}{\textOmicron} +\renewcommand*{\Pi}{\TextOrMath{\textPi}{\mathPi}} +\providecommand*{\Rho}{\textRho} +\renewcommand*{\Sigma}{\TextOrMath{\textSigma}{\mathSigma}} +\providecommand*{\Tau}{\textTau} +\renewcommand*{\Upsilon}{\TextOrMath{\textUpsilon}{\mathUpsilon}} +\renewcommand*{\Phi}{\TextOrMath{\textPhi}{\mathPhi}} +\providecommand*{\Chi}{\textChi} +\renewcommand*{\Psi}{\TextOrMath{\textPsi}{\mathPsi}} +\renewcommand*{\Omega}{\TextOrMath{\textOmega}{\mathOmega}} +% +\renewcommand*{\alpha}{\TextOrMath{\textalpha}{\mathalpha}} +\renewcommand*{\beta}{\TextOrMath{\textbeta}{\mathbeta}} +\renewcommand*{\gamma}{\TextOrMath{\textgamma}{\mathgamma}} +\renewcommand*{\delta}{\TextOrMath{\textdelta}{\mathdelta}} +\renewcommand*{\epsilon}{\TextOrMath{\textepsilon}{\mathepsilon}} +\renewcommand*{\zeta}{\TextOrMath{\textzeta}{\mathzeta}} +\renewcommand*{\eta}{\TextOrMath{\texteta}{\matheta}} +\renewcommand*{\theta}{\TextOrMath{\texttheta}{\maththeta}} +\renewcommand*{\iota}{\TextOrMath{\textiota}{\mathiota}} +\renewcommand*{\kappa}{\TextOrMath{\textkappa}{\mathkappa}} +\renewcommand*{\lambda}{\TextOrMath{\textlambda}{\mathlambda}} +\renewcommand*{\mu}{\TextOrMath{\textmu}{\mathmu}} +\renewcommand*{\nu}{\TextOrMath{\textnu}{\mathnu}} +\renewcommand*{\xi}{\TextOrMath{\textxi}{\mathxi}} +\providecommand*{\omicron}{\textomicron} +\renewcommand*{\pi}{\TextOrMath{\textpi}{\mathpi}} +\renewcommand*{\rho}{\TextOrMath{\textrho}{\mathrho}} +\renewcommand*{\sigma}{\TextOrMath{\textsigma}{\mathsigma}} +\renewcommand*{\varsigma}{\TextOrMath{\textvarsigma}{\mathvarsigma}} +\providecommand*{\finalsigma}{\varsigma} +\renewcommand*{\tau}{\TextOrMath{\texttau}{\mathtau}} +\renewcommand*{\upsilon}{\TextOrMath{\textupsilon}{\mathupsilon}} +\renewcommand*{\phi}{\TextOrMath{\textphi}{\mathphi}} +\renewcommand*{\chi}{\TextOrMath{\textchi}{\mathchi}} +\renewcommand*{\psi}{\TextOrMath{\textpsi}{\mathpsi}} +\renewcommand*{\omega}{\TextOrMath{\textomega}{\mathomega}} ++
\renewcommand*{\digamma}{\TextOrMath{\textdigamma}{\mathdigamma}} % ϝ +\providecommand*{\Digamma}{\textDigamma} % Ϝ +\providecommand*{\stigma}{\textstigma} % ϛ +\providecommand*{\varstigma}{\textvarstigma} % stigma variant (CB.enc, teubner) +\providecommand*{\koppa}{\textkoppa} % ϟ (greek small letter koppa) +\providecommand*{\qoppa}{\textqoppa} % ϙ (archaic koppa) +\providecommand*{\Qoppa}{\textQoppa} % Ϙ (archaic Koppa) +\providecommand*{\Stigma}{\textStigma} % Ϛ (in some fonts ϹΤ ligature) +\providecommand*{\Sampi}{\textSampi} % Ϡ +\providecommand*{\sampi}{\textsampi} % ϡ ++
The NFSS TextComposite mechanism looks for the next token without expanding +it. In order to let compositions like \ensuregreek{\'\Alpha} or +\ensuregreek{\>"\alpha} work as expected we define TextComposites with the +letter name commands. (Composition only works if the active font encoding +is LGR).
+\ifdefined\XeTeXrevision + \input{alphabeta-euenc.def} +\else\ifdefined\luatexversion + \input{alphabeta-euenc.def} +\else + \DeclareTextComposite{\accvaria}{LGR}{\alpha}{128} + \DeclareTextComposite{\accdasia}{LGR}{\alpha}{129} + \DeclareTextComposite{\accpsili}{LGR}{\alpha}{130} + \DeclareTextComposite{\accdasiavaria}{LGR}{\alpha}{131} + \DeclareTextComposite{\acctonos}{LGR}{\alpha}{136} + \DeclareTextComposite{\accdasiaoxia}{LGR}{\alpha}{137} + \DeclareTextComposite{\accpsilioxia}{LGR}{\alpha}{138} + \DeclareTextComposite{\accpsilivaria}{LGR}{\alpha}{139} + \DeclareTextComposite{\accperispomeni}{LGR}{\alpha}{144} + \DeclareTextComposite{\accdasiaperispomeni}{LGR}{\alpha}{145} + \DeclareTextComposite{\accpsiliperispomeni}{LGR}{\alpha}{146} + \DeclareTextComposite{\accvaria}{LGR}{\eta}{152} + \DeclareTextComposite{\accdasia}{LGR}{\eta}{153} + \DeclareTextComposite{\accpsili}{LGR}{\eta}{154} + \DeclareTextComposite{\acctonos}{LGR}{\eta}{160} + \DeclareTextComposite{\accdasiaoxia}{LGR}{\eta}{161} + \DeclareTextComposite{\accpsilioxia}{LGR}{\eta}{162} + \DeclareTextComposite{\accdasiavaria}{LGR}{\eta}{163} + \DeclareTextComposite{\accperispomeni}{LGR}{\eta}{168} + \DeclareTextComposite{\accdasiaperispomeni}{LGR}{\eta}{169} + \DeclareTextComposite{\accpsiliperispomeni}{LGR}{\eta}{170} + \DeclareTextComposite{\accpsilivaria}{LGR}{\eta}{171} + \DeclareTextComposite{\accvaria}{LGR}{\omega}{176} + \DeclareTextComposite{\accdasia}{LGR}{\omega}{177} + \DeclareTextComposite{\accpsili}{LGR}{\omega}{178} + \DeclareTextComposite{\accdasiavaria}{LGR}{\omega}{179} + \DeclareTextComposite{\acctonos}{LGR}{\omega}{184} + \DeclareTextComposite{\accdasiaoxia}{LGR}{\omega}{185} + \DeclareTextComposite{\accpsilioxia}{LGR}{\omega}{186} + \DeclareTextComposite{\accpsilivaria}{LGR}{\omega}{187} + \DeclareTextComposite{\accperispomeni}{LGR}{\omega}{192} + \DeclareTextComposite{\accdasiaperispomeni}{LGR}{\omega}{193} + \DeclareTextComposite{\accpsiliperispomeni}{LGR}{\omega}{194} + \DeclareTextComposite{\accvaria}{LGR}{\iota}{200} + \DeclareTextComposite{\accdasia}{LGR}{\iota}{201} + \DeclareTextComposite{\accpsili}{LGR}{\iota}{202} + \DeclareTextComposite{\accdasiavaria}{LGR}{\iota}{203} + \DeclareTextComposite{\acctonos}{LGR}{\iota}{208} + \DeclareTextComposite{\accdasiaoxia}{LGR}{\iota}{209} + \DeclareTextComposite{\accpsilioxia}{LGR}{\iota}{210} + \DeclareTextComposite{\accpsilivaria}{LGR}{\iota}{211} + \DeclareTextComposite{\accperispomeni}{LGR}{\iota}{216} + \DeclareTextComposite{\accdasiaperispomeni}{LGR}{\iota}{217} + \DeclareTextComposite{\accpsiliperispomeni}{LGR}{\iota}{218} + \DeclareTextComposite{\accdialytika}{LGR}{\iota}{240} + \DeclareTextComposite{\accdialytikavaria}{LGR}{\iota}{241} + \DeclareTextComposite{\accdialytikatonos}{LGR}{\iota}{242} + \DeclareTextComposite{\accdialytikaperispomeni}{LGR}{\iota}{243} + \DeclareTextComposite{\accvaria}{LGR}{\upsilon}{204} + \DeclareTextComposite{\accdasia}{LGR}{\upsilon}{205} + \DeclareTextComposite{\accpsili}{LGR}{\upsilon}{206} + \DeclareTextComposite{\accdasiavaria}{LGR}{\upsilon}{207} + \DeclareTextComposite{\acctonos}{LGR}{\upsilon}{212} + \DeclareTextComposite{\accdasiaoxia}{LGR}{\upsilon}{213} + \DeclareTextComposite{\accpsilioxia}{LGR}{\upsilon}{214} + \DeclareTextComposite{\accpsilivaria}{LGR}{\upsilon}{215} + \DeclareTextComposite{\accperispomeni}{LGR}{\upsilon}{220} + \DeclareTextComposite{\accdasiaperispomeni}{LGR}{\upsilon}{221} + \DeclareTextComposite{\accpsiliperispomeni}{LGR}{\upsilon}{222} + \DeclareTextComposite{\accdialytika}{LGR}{\upsilon}{244} + \DeclareTextComposite{\accdialytikavaria}{LGR}{\upsilon}{245} + \DeclareTextComposite{\accdialytikatonos}{LGR}{\upsilon}{246} + \DeclareTextComposite{\accdialytikaperispomeni}{LGR}{\upsilon}{247} + \DeclareTextComposite{\accvaria}{LGR}{\epsilon}{224} + \DeclareTextComposite{\accdasia}{LGR}{\epsilon}{225} + \DeclareTextComposite{\accpsili}{LGR}{\epsilon}{226} + \DeclareTextComposite{\accdasiavaria}{LGR}{\epsilon}{227} + \DeclareTextComposite{\acctonos}{LGR}{\epsilon}{232} + \DeclareTextComposite{\accdasiaoxia}{LGR}{\epsilon}{233} + \DeclareTextComposite{\accpsilioxia}{LGR}{\epsilon}{234} + \DeclareTextComposite{\accpsilivaria}{LGR}{\epsilon}{235} + \DeclareTextComposite{\accvaria}{LGR}{\omicron}{228} + \DeclareTextComposite{\accdasia}{LGR}{\omicron}{229} + \DeclareTextComposite{\accpsili}{LGR}{\omicron}{230} + \DeclareTextComposite{\accdasiavaria}{LGR}{\omicron}{231} + \DeclareTextComposite{\acctonos}{LGR}{\omicron}{236} + \DeclareTextComposite{\accdasiaoxia}{LGR}{\omicron}{237} + \DeclareTextComposite{\accpsilioxia}{LGR}{\omicron}{238} + \DeclareTextComposite{\accpsilivaria}{LGR}{\omicron}{239} + \DeclareTextCompositeCommand{\accdasia}{LGR}{\Alpha}{<A} + \DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\Alpha}{<`A} + \DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\Alpha}{<'A} + \DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\Alpha}{<\char126A} + \DeclareTextCompositeCommand{\accpsili}{LGR}{\Alpha}{>A} + \DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\Alpha}{>`A} + \DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\Alpha}{>'A} + \DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\Alpha}{>\char126A} + \DeclareTextCompositeCommand{\acctonos}{LGR}{\Alpha}{'A} + \DeclareTextCompositeCommand{\accvaria}{LGR}{\Alpha}{`A} + \DeclareTextCompositeCommand{\accdasia}{LGR}{\Epsilon}{<E} + \DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\Epsilon}{<'E} + \DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\Epsilon}{<`E} + \DeclareTextCompositeCommand{\accpsili}{LGR}{\Epsilon}{>E} + \DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\Epsilon}{>'E} + \DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\Epsilon}{>`E} + \DeclareTextCompositeCommand{\acctonos}{LGR}{\Epsilon}{'E} + \DeclareTextCompositeCommand{\accvaria}{LGR}{\Epsilon}{`E} + \DeclareTextCompositeCommand{\accdasia}{LGR}{\Eta}{<H} + \DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\Eta}{<`H} + \DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\Eta}{<'H} + \DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\Eta}{<\char126H} + \DeclareTextCompositeCommand{\accpsili}{LGR}{\Eta}{>H} + \DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\Eta}{>`H} + \DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\Eta}{>'H} + \DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\Eta}{>\char126H} + \DeclareTextCompositeCommand{\acctonos}{LGR}{\Eta}{'H} + \DeclareTextCompositeCommand{\accvaria}{LGR}{\Eta}{`H} + \DeclareTextCompositeCommand{\accdasia}{LGR}{\Iota}{<I} + \DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\Iota}{<`I} + \DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\Iota}{<'I} + \DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\Iota}{<\char126I} + \DeclareTextCompositeCommand{\accpsili}{LGR}{\Iota}{>I} + \DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\Iota}{>`I} + \DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\Iota}{>'I} + \DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\Iota}{>\char126I} + \DeclareTextCompositeCommand{\acctonos}{LGR}{\Iota}{'I} + \DeclareTextCompositeCommand{\accvaria}{LGR}{\Iota}{`I} + \DeclareTextCompositeCommand{\accdasia}{LGR}{\Omicron}{<O} + \DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\Omicron}{<`O} + \DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\Omicron}{<'O} + \DeclareTextCompositeCommand{\accpsili}{LGR}{\Omicron}{>O} + \DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\Omicron}{>`O} + \DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\Omicron}{>'O} + \DeclareTextCompositeCommand{\acctonos}{LGR}{\Omicron}{'O} + \DeclareTextCompositeCommand{\accvaria}{LGR}{\Omicron}{`O} + \DeclareTextCompositeCommand{\accdasia}{LGR}{\Upsilon}{<U} + \DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\Upsilon}{<`U} + \DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\Upsilon}{<'U} + \DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\Upsilon}{<\char126U} + \DeclareTextCompositeCommand{\acctonos}{LGR}{\Upsilon}{'U} + \DeclareTextCompositeCommand{\accvaria}{LGR}{\Upsilon}{`U} + \DeclareTextCompositeCommand{\accdasia}{LGR}{\Omega}{<W} + \DeclareTextCompositeCommand{\accdasiavaria}{LGR}{\Omega}{<`W} + \DeclareTextCompositeCommand{\accdasiaoxia}{LGR}{\Omega}{<'W} + \DeclareTextCompositeCommand{\accdasiaperispomeni}{LGR}{\Omega}{<\char126W} + \DeclareTextCompositeCommand{\accpsili}{LGR}{\Omega}{>W} + \DeclareTextCompositeCommand{\accpsilivaria}{LGR}{\Omega}{>`W} + \DeclareTextCompositeCommand{\accpsilioxia}{LGR}{\Omega}{>'W} + \DeclareTextCompositeCommand{\accpsiliperispomeni}{LGR}{\Omega}{>\char126W} + \DeclareTextCompositeCommand{\acctonos}{LGR}{\Omega}{'W} + \DeclareTextCompositeCommand{\accvaria}{LGR}{\Omega}{`W} + \DeclareTextComposite{\accdialytika}{LGR}{\Iota}{219} + \DeclareTextComposite{\accdialytika}{LGR}{\Upsilon}{223} + \DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{\Alpha}{\LGR@A@hiatus} + \DeclareTextCompositeCommand{\LGR@hiatus}{LGR}{\Epsilon}{\LGR@E@hiatus} +\fi\fi ++
Check with \ifdefined for the definition of +\DeclareUnicodeCharacter. In contrast to \@ifdefined, this works +without side-effects. It makes, however, the package dependent on the e-TeX +extensions.
+Map Greek characters that are also defined in math mode to the generic +macros:
+\ifdefined\DeclareUnicodeCharacter + \DeclareUnicodeCharacter{0393}{\Gamma} % Γ + \DeclareUnicodeCharacter{0394}{\Delta} % Δ + \DeclareUnicodeCharacter{0398}{\Theta} % Θ + \DeclareUnicodeCharacter{039B}{\Lambda} % Λ + \DeclareUnicodeCharacter{039E}{\Xi} % Ξ + \DeclareUnicodeCharacter{03A0}{\Pi} % Π + \DeclareUnicodeCharacter{03A3}{\Sigma} % Σ + \DeclareUnicodeCharacter{03A5}{\Upsilon} % Υ + \DeclareUnicodeCharacter{03A6}{\Phi} % Φ + \DeclareUnicodeCharacter{03A8}{\Psi} % Ψ + \DeclareUnicodeCharacter{03A9}{\Omega} % Ω + + \DeclareUnicodeCharacter{03B1}{\alpha} % α + \DeclareUnicodeCharacter{03B2}{\beta} % β + \DeclareUnicodeCharacter{03B3}{\gamma} % γ + \DeclareUnicodeCharacter{03B4}{\delta} % δ + \DeclareUnicodeCharacter{03B5}{\epsilon} % ε + \DeclareUnicodeCharacter{03B6}{\zeta} % ζ + \DeclareUnicodeCharacter{03B7}{\eta} % η + \DeclareUnicodeCharacter{03B8}{\theta} % θ + \DeclareUnicodeCharacter{03B9}{\iota} % ι + \DeclareUnicodeCharacter{03BA}{\kappa} % κ + \DeclareUnicodeCharacter{03BB}{\lambda} % λ + \DeclareUnicodeCharacter{03BC}{\mu} % μ + \DeclareUnicodeCharacter{03BD}{\nu} % ν + \DeclareUnicodeCharacter{03BE}{\xi} % ξ + \DeclareUnicodeCharacter{03C0}{\pi} % π + \DeclareUnicodeCharacter{03C1}{\rho} % ρ + \DeclareUnicodeCharacter{03C2}{\varsigma} % ς + \DeclareUnicodeCharacter{03C3}{\sigma} % σ + \DeclareUnicodeCharacter{03C4}{\tau} % τ + \DeclareUnicodeCharacter{03C5}{\upsilon} % υ + \DeclareUnicodeCharacter{03C6}{\phi} % φ + \DeclareUnicodeCharacter{03C7}{\chi} % χ + \DeclareUnicodeCharacter{03C8}{\psi} % ψ + \DeclareUnicodeCharacter{03C9}{\omega} % ω + + \DeclareUnicodeCharacter{03DD}{\digamma} % ϝ +\fi ++
} % close the \AtBeginDocument macro ++ +
This work may be distributed and/or modified under the -conditions of the LaTeX Project Public License, either -version 1.3 of this license or any later version.
-\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{greek-fontenc} -[2013/09/10 v0.1 Greek text font encoding setup] --
Abstract
-This package sets up a suitable font encoding and Greek LICR -definitions depending on the used TeX engine.
-With 8-bit TeX, you usually pass the font encoding name(s) as option to -fontenc which then loads the corresponding *.def file(s). -The last option indicates the document’s default font encoding. -(See [fntguide] for details and lgrenc-test.tex for an example.)
-However, with XeTeX or LuaTeX, there is one common input and font encoding -– Unicode. 8-bit TeX font encodings should generally not be used. For -compatibility with the LaTeX font selection system, the package euenc -defines the (pseudo) font encodings EU1 and EU2 for XeTeX and LuaTeX -respectively, however euenc does not (yet) define LICR macros. The package -xunicode defines LICR macros for use with XeTeX but does not support Greek.
-To allow documents using Greek LICR macros without worrying about the TeX -engine used to compile them, this package does a simple test (based on the -\ifdefined command provided by the e-TeX extension) and does “the right -thing” to set up Greek text font support for the detected engine.
-Use the EU1 font encoding. This is the only font encoding used with -XeTeX, so loading it with fontenc cannot mix up the default font -encoding.
Ensure EU1 is the \LastDeclaredEncoding. As fontenc does not load font -encoding definition files twice, it may happen that another font encoding -is defined after EU1 – for example the xunicode package (also loaded by -fontspec) leaves \LastDeclaredEncoding at T3 (tipa), because it -inputs t3enc.def.
load the Greek LICR definitions for XeTeX/LuaTeX. In an ideal world, this -should be done in the eu1enc.def file of the euenc package.
\ifdefined\XeTeXrevision - \usepackage[EU1]{fontenc} - \renewcommand{\LastDeclaredEncoding}{EU1} - \input{greek-euenc.def} --
Similar actions to XeTeX, but use the font encoding EU2. (The two different -(pseudo) encodings allow different font setups for XeTeX vs. LuaTeX using -differently named *.fd files (see euenc for details).
-\else\ifdefined\luatexversion - \usepackage[EU2]{fontenc} - \renewcommand{\LastDeclaredEncoding}{EU1} - \input{greek-euenc.def} --
Wit 8-bit TeX (TeX, PDFTeX), we do not know the documents main font -encoding, so we cannot use \usepackage[LGR]{inputenc}. However, the file -lgrenc.def contains code to prevent re-definition if it is already -loaded, so we can simply input:
-\else - \input{lgrenc.def} -\fi\fi --
LaTeX3 Project Team, LaTeX 2ε font selection, 2005. -http://mirror.ctan.org/macros/latex/doc/fntguide.pdf
-This work may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either +version 1.3 of this license or any later version.
+\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{textalpha} +[2013/09/11 v0.5 macros for Greek letters in text] ++
Abstract
+Provide a set of \text* macros for Greek letters +outside math.
+Note
+The package was renamed from textgreek to textalpha to prevent +confusion with the textgreek package by Leonard Michlmayr.
+2010-06-16 |
+0.1 |
+initial version |
+
2012-06-27 |
+0.2 |
+support for compound Unicode definitions outside LGR |
+
2013-05-03 |
+0.3 |
+new accent macro names with lgrxenc.def 0.7 |
+
2013-05-28 |
+0.4 |
+use lgrenc.def from greek-fontenc. |
+
2013-09-11 |
+0.5 |
+move to greek-fontenc, |
+
+ | ++ | support XeTeX/LuaTeX, add breve below accents. |
+
By default, TeX macros for Greek letters are only valid in mathematical +mode. This package sets up a suitable font encoding and Greek LICR +definitions (\textalpha – \textOmega).
+To allow documents using Greek LICR macros without worrying about the TeX +engine used to compile them, this package does a simple test (based on the +\ifdefined command provided by the e-TeX extension) and does “the right +thing” to set up Greek text font support for the detected engine.
+For 8-bit TeX, this package also declares the LGR font encoding as default +for Greek LICR macros (cf. fntguide section 5.3):
+Symbols from a Greek text font (e.g. the CB fonts) can be accessed +without the need for an explicite font-encoding switch.
In combination with \usepackage[utf8]{inputenc} and lgrenc.dfu +from greek-inputenc, Unicode input of Greek characters is supported in +any font encoding.
Attention!
+The macros work well in any font encoding for single symbols. +However, with 8-bit TeX, the automatic font-encoding switches behind the +doors interfere with kerning between letters and replacement of +accent+character with a pre-composed character.
+Therefore, Greek text should be written with the help of babel or +polyglossia (setting the language to greek) or wrapped in the +provided ensuregreek macro. Using babel or polyglossia also helps +to ensure proper hyphenation.
+\usepackage{textalpha} ++
For details see textalpha-test.tex and textalpha-test.pdf (8-bit +TeX) as well as test-euenc.tex and test-euenc.pdf (XeTeX/LuaTeX).
+With XeTeX or LuaTeX, there is one common input and font encoding – +Unicode. 8-bit TeX font encodings should generally not be used. For +compatibility with the LaTeX font selection system, the package euenc +defines the (pseudo) font encodings EU1 and EU2 for XeTeX and LuaTeX +respectively. However euenc does not (yet) define LICR macros. We therefore +explicitely load Greek LICR definitions for XeTeX/LuaTeX from greek-fontenc.
+Use the EU1 font encoding. This is the only font encoding used with XeTeX, +so loading it with fontenc cannot mix up the default font encoding:
+\ifdefined\XeTeXrevision + \usepackage[EU1]{fontenc} ++
Load the Greek LICR definitions for XeTeX/LuaTeX. In an ideal world, this +should be done in the eu1enc.def file of the euenc package.
+Before that, we must ensure EU1 is the \LastDeclaredEncoding: Beacause +fontenc loads font encoding definition files only once, it may happen that +another font encoding is defined after EU1 — for example fontspec +declares EU1 but leaves \LastDeclaredEncoding at T3 (tipa), because +it later inputs the xunicode package which in turn loads t3enc.def.
+\renewcommand{\LastDeclaredEncoding}{EU1} +\input{greek-euenc.def} ++
No other action is required with Unicode-aware TeX engines:
+\expandafter\endinput % "return" +\fi ++
Similar actions to XeTeX, but use the font encoding EU2:1
+\ifdefined\luatexversion + \usepackage[EU2]{fontenc} + \renewcommand{\LastDeclaredEncoding}{EU2} + \input{greek-euenc.def} + \expandafter\endinput % "return" +\fi ++ +
With 8-bit TeX, you usually pass the font encoding name(s) as option to +fontenc which then loads the corresponding *.def file(s). The last +option indicates the document’s default font encoding. (See [fntguide] for +details and lgrenc-test.tex for an example.) Therefore, we do not know +the documents main font encoding and hence cannot use +\usepackage[LGR]{inputenc}. We load lgrenc.def directly, if it is +not already done and re-set \LastDeclaredEncoding else.
+Note
+The use of \@ifundefined has the side-effect that the tested +macro becomes defined and set to \relax (polluting the namespace and +interfering with tests via eTeX’s \ifdefined). However, in this case +no harm is done as the macro is defined by lgrenc.def anyway.
+\@ifundefined{ver@lgrenc.def} + {\input{lgrenc.def}} + {\renewcommand{\LastDeclaredEncoding}{EU1}} ++
The following definitions ensure that the Greek LICR macros can be used +anywhere in the document also with 8-bit TeX by declaring LGR as their +default font encoding.
+The \ensuregreek command can be used to ensure that its argument is set in +a font encoding with support for Greek. We define LGR as default encoding for +Greek text:
+\DeclareTextCommandDefault{\ensuregreek}[1]{{\fontencoding{LGR}\selectfont #1}} ++ +
Eventually, all font encodings supporting Greek script (e.g. LGI, PU, EU1, +EU2) will declare \ensuregreek as text command that passes the argument +unchanged. This way, kerning and selection of precomposed glyphs would work +also for cases like \ensuregreek{\'A}U.
+ +Define the text* marcos as default for all font encodings:
+\DeclareTextSymbolDefault{\textAlpha}{LGR} +\DeclareTextSymbolDefault{\textBeta}{LGR} +\DeclareTextSymbolDefault{\textGamma}{LGR} +\DeclareTextSymbolDefault{\textDelta}{LGR} +\DeclareTextSymbolDefault{\textEpsilon}{LGR} +\DeclareTextSymbolDefault{\textZeta}{LGR} +\DeclareTextSymbolDefault{\textEta}{LGR} +\DeclareTextSymbolDefault{\textTheta}{LGR} +\DeclareTextSymbolDefault{\textIota}{LGR} +\DeclareTextSymbolDefault{\textKappa}{LGR} +\DeclareTextSymbolDefault{\textLambda}{LGR} +\DeclareTextSymbolDefault{\textMu}{LGR} +\DeclareTextSymbolDefault{\textNu}{LGR} +\DeclareTextSymbolDefault{\textXi}{LGR} +\DeclareTextSymbolDefault{\textOmicron}{LGR} +\DeclareTextSymbolDefault{\textPi}{LGR} +\DeclareTextSymbolDefault{\textRho}{LGR} +\DeclareTextSymbolDefault{\textSigma}{LGR} +\DeclareTextSymbolDefault{\textTau}{LGR} +\DeclareTextSymbolDefault{\textUpsilon}{LGR} +\DeclareTextSymbolDefault{\textPhi}{LGR} +\DeclareTextSymbolDefault{\textChi}{LGR} +\DeclareTextSymbolDefault{\textPsi}{LGR} +\DeclareTextSymbolDefault{\textOmega}{LGR} +% +\DeclareTextSymbolDefault{\textalpha}{LGR} +\DeclareTextSymbolDefault{\textbeta}{LGR} +\DeclareTextSymbolDefault{\textgamma}{LGR} +\DeclareTextSymbolDefault{\textdelta}{LGR} +\DeclareTextSymbolDefault{\textepsilon}{LGR} +\DeclareTextSymbolDefault{\textzeta}{LGR} +\DeclareTextSymbolDefault{\texteta}{LGR} +\DeclareTextSymbolDefault{\texttheta}{LGR} +\DeclareTextSymbolDefault{\textiota}{LGR} +\DeclareTextSymbolDefault{\textkappa}{LGR} +\DeclareTextSymbolDefault{\textlambda}{LGR} +\DeclareTextSymbolDefault{\textmu}{LGR} +\DeclareTextSymbolDefault{\textnu}{LGR} +\DeclareTextSymbolDefault{\textxi}{LGR} +\DeclareTextSymbolDefault{\textomicron}{LGR} +\DeclareTextSymbolDefault{\textpi}{LGR} +\DeclareTextSymbolDefault{\textrho}{LGR} +\DeclareTextSymbolDefault{\textsigma}{LGR} +\DeclareTextSymbolDefault{\textvarsigma}{LGR} +\DeclareTextSymbolDefault{\textfinalsigma}{LGR} % alias for \textvarsigma +\DeclareTextSymbolDefault{\textautosigma}{LGR} % char 115 in LGR +\DeclareTextSymbolDefault{\texttau}{LGR} +\DeclareTextSymbolDefault{\textupsilon}{LGR} +\DeclareTextSymbolDefault{\textphi}{LGR} +\DeclareTextSymbolDefault{\textchi}{LGR} +\DeclareTextSymbolDefault{\textpsi}{LGR} +\DeclareTextSymbolDefault{\textomega}{LGR} ++
Including alias names for compatibility with hyperref’s puenc.def.
+Ancient Greek Numbers (Athenian Numerals):
+\DeclareTextSymbolDefault{\textpentedeka}{LGR} % GREEK ACROPHONIC ATTIC FIFTY +\DeclareTextSymbolDefault{\textpentehekaton}{LGR} % GREEK ACROPHONIC ATTIC FIVE HUNDRED +\DeclareTextSymbolDefault{\textpenteqilioi}{LGR} % GREEK ACROPHONIC ATTIC FIVE THOUSAND +\DeclareTextSymbolDefault{\textpentemurioi}{LGR} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND ++
Archaic letters:
+\DeclareTextSymbolDefault{\textstigma}{LGR} % ϛ +\DeclareTextSymbolDefault{\textstigmagreek}{LGR} % ϛ (puenc.def) +\DeclareTextSymbolDefault{\textvarstigma}{LGR} % stigma variant +\DeclareTextSymbolDefault{\textkoppa}{LGR} % ϟ (greek small letter koppa) +\DeclareTextSymbolDefault{\textkoppagreek}{LGR} % ϟ (puenc.def) +\DeclareTextSymbolDefault{\textqoppa}{LGR} % ϙ (archaic koppa) +\DeclareTextSymbolDefault{\textQoppa}{LGR} % Ϙ (archaic Koppa) +\DeclareTextSymbolDefault{\textStigma}{LGR} % Ϛ ϹΤ ligature in some fonts +\DeclareTextSymbolDefault{\textStigmagreek}{LGR} % Ϛ (puenc.def) +\DeclareTextSymbolDefault{\textSampi}{LGR} % Ϡ +\DeclareTextSymbolDefault{\textSampigreek}{LGR} % Ϡ (puenc.def) +\DeclareTextSymbolDefault{\textsampi}{LGR} % ϡ +\DeclareTextSymbolDefault{\textsampigreek}{LGR} % ϡ (puenc.def) +\DeclareTextSymbolDefault{\textanoteleia}{LGR} % · +\DeclareTextSymbolDefault{\texterotimatiko}{LGR} % ; (003B is the preferred character) +\DeclareTextSymbolDefault{\textdigamma}{LGR} % ϝ +\DeclareTextSymbolDefault{\textDigamma}{LGR} % Ϝ +\DeclareTextSymbolDefault{\textdigammagreek}{LGR} % ϝ (puenc.def) +\DeclareTextSymbolDefault{\textDigammagreek}{LGR} % Ϝ (puenc.def) ++
numeral signs: http://en.wikipedia.org/wiki/Greek_numerals
+\DeclareTextSymbolDefault{\textnumeralsigngreek}{LGR} % (puenc.def) +\DeclareTextSymbolDefault{\textnumeralsignlowergreek}{LGR} % (puenc.def) ++
Greek diacritics via “named” macros:
+\DeclareTextAccentDefault{\accdasia}{LGR} +\DeclareTextAccentDefault{\accpsili}{LGR} +\DeclareTextAccentDefault{\acctonos}{LGR} +\DeclareTextAccentDefault{\accvaria}{LGR} +\DeclareTextAccentDefault{\accperispomeni}{LGR} +\DeclareTextAccentDefault{\accdialytika}{LGR} +\DeclareTextAccentDefault{\<}{LGR} +\DeclareTextAccentDefault{\>}{LGR} +% +\DeclareTextAccentDefault{\accdasiaoxia}{LGR} +\DeclareTextAccentDefault{\accdasiavaria}{LGR} +\DeclareTextAccentDefault{\accdasiaperispomeni}{LGR} +\DeclareTextAccentDefault{\accpsilioxia}{LGR} +\DeclareTextAccentDefault{\accpsilivaria}{LGR} +\DeclareTextAccentDefault{\accpsiliperispomeni}{LGR} +\DeclareTextAccentDefault{\accdialytikatonos}{LGR} +\DeclareTextAccentDefault{\accdialytikavaria}{LGR} +\DeclareTextAccentDefault{\accdialytikaperispomeni}{LGR} ++
Postfix accents:
+\DeclareTextSymbolDefault{\ypogegrammeni}{LGR} % "small" sub-iota +\DeclareTextSymbolDefault{\prosgegrammeni}{LGR} % "capital" sub-iota ++
Other accents in LGR:
+\DeclareTextAccentDefault{\accinvertedbrevebelow}{LGR} % INVERTED BREVE BELOW +\DeclareTextAccentDefault{\textsubarch}{LGR} % tipa, Teubner name: ut +\DeclareTextAccentDefault{\accbrevebelow}{LGR} % BREVE BELOW ++
\MakeUppercase requires two internal commands:
+\DeclareTextAccentDefault{\LGR@hiatus}{LGR} +\DeclareTextAccentDefault{\LGR@Dialytika}{LGR} ++ +