diff options
Diffstat (limited to 'Master/texmf-dist')
19 files changed, 3004 insertions, 308 deletions
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/README b/Master/texmf-dist/doc/latex/greek-fontenc/README index 498b30c0e16..aa03bac981c 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/README +++ b/Master/texmf-dist/doc/latex/greek-fontenc/README @@ -9,11 +9,10 @@ Greek font encoding definition files :Licence: 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. -: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. + +:Abstract: This package provides Greek LICR macro definitions and encoding + definition files for `Greek text font encodings`_ for use with + fontenc_. .. note:: The LICR macro names for Greek symbols are chosen pending endorsement by the TeX community and related packages. @@ -27,20 +26,24 @@ News .. class:: borderless ========== ===== ========================================================== -2013-07-03 0.9 greek-fontenc.def "outsourced" from lgrxenc.def +2013-07-03 0.9 greek-fontenc.def_ "outsourced" from lgrxenc.def .. experimental files xunicode-greek.sty and - greek-euenc.def: LICRs for XeTeX/LuaTeX. + greek-euenc.def_: LICRs for XeTeX/LuaTeX. 2013-07-18 0.9.1 bugfix: wrong breathings psilioxia -> dasiaoxia. 2013-07-19 0.9.2 bugfix: Disable composite defs starting with char macro, .. fix "hiatus" handling. 2013-07-24 0.9.3 fix "input" path in xunicode-greek and greek-euenc.def. 2013-09-10 0.9.4 greek-fontenc.sty: Greek text font encoding setup package, .. 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. +.. greek-fontenc.sty removed (obsoleted by textalpha.sty). ========== ===== ========================================================== -Files -===== + +LaTeX files +=========== `<greek-fontenc.def>`_ `Common Greek font encoding definitions <greek-fontenc.def.html>`_. @@ -52,6 +55,26 @@ Files comes with babel_'s Greek support and ``lgrxenc.def`` from the lgrx_ bundle. +`<textalpha.sty>`_ + `Greek symbols in text <textalpha.sty.html>`_ + independent of font encoding and TeX engine. + +`<alphabeta.sty>`_ + Generic macros for `Greek symbols in text and math <alphabeta.sty.html>`_. + +Literate source files were converted with PyLit_ to reStructuredText and +with Docutils_ to the HTML documentation. + + +Documentation and test documents +================================ + +`<textalpha-test.tex>`__, `<textalpha-test.pdf>`_ + `The textalpha package`. + +`<alphabeta-test.tex>`__ `<alphabeta-test.pdf>`_ + `The alphabeta package`. + `<lgrenc-test.tex>`_, `<lgrenc-test.pdf>`_ Test and usage example. @@ -61,14 +84,15 @@ Files The package hyperref_ defines the PU font encoding which also supports (monotonic) Greek. -Experimental files that are still in development and will eventually be -moved to/merged with other packages or removed in future versions: +Experimental files +================== -`<greek-fontenc.sty>`_ - `Greek text font encoding setup <greek-fontenc.sty.html>`_ +These files are still in development and will eventually be moved to/merged +with other packages or removed in future versions: `<greek-euenc.def>`_ - `Greek LICR definitions for XeTeX and LuaTeX <greek-euenc.def.html>`_ + `Greek LICR definitions for XeTeX and LuaTeX <greek-euenc.def.html>`_. + Requires euenc_. `<test-euenc.tex>`_ Example for use of the experimental Greek LICR definitions with XeTeX or @@ -77,8 +101,6 @@ moved to/merged with other packages or removed in future versions: `<lgr2licr.lua>`_ `LGR Transcription to Greek LICR transformation <lgr2licr.lua.html>`_ -Literate source files were converted with PyLit_ to reStructuredText and -with Docutils_ to the HTML documentation. Installation @@ -98,27 +120,30 @@ Otherwise, make sure LaTeX can find the package and definition files: Usage ===== -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 :: +To ensure Greek support independent of the TeX engine write :: - \usepackage[LGR,T1]{fontenc} + \usepackage{textalpha} -See [fntguide]_ for details and `<lgrenc-test.tex>`_ for an example. +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). -For XeTeX/LuaTeX, you can specify the EU1/EU2 encoding and -load the experimental ``greek-euenc.def``:: +To use the established macro names (``\alpha`` ... ``\Omega``) in text and +math mode, write :: - \usepackage[EU1]{fontenc} % XeTeX - % \usepackage[EU2]{fontenc} % LuaTeX - \makeatletter - \input{greek-euenc.def} - \makeatother + \usepackage{alphabeta} -XeTeX/LuaTeX usage details are likely to change in the future!!! +For details see `<alphabeta-test.tex>`_ and `<alphabeta-test.pdf>`_. -To ensure Greek support independent of the TeX engine, you may write :: +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. - \usepackage{fontenc-greek} Greek text font encodings @@ -351,6 +376,7 @@ as-is). .. _GFS font collection: http://www.ctan.org/pkg/gfs .. _Kerkis: http://www.ctan.org/pkg/kerkis .. _babel: http://www.ctan.org/pkg/babel +.. _euenc: http://www.ctan.org/pkg/euenc .. _fontenc: http://www.ctan.org/pkg/fontenc .. _grtimes: http://www.ctan.org/pkg/grtimes .. _hyperref: http://www.ctan.org/pkg/hyperref diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/README.html b/Master/texmf-dist/doc/latex/greek-fontenc/README.html index 6082f87adc6..791cad0f71a 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/README.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/README.html @@ -31,11 +31,9 @@ version 1.3 of this license or any later version.</p> </dl> <div class="abstract topic"> <p class="topic-title first">Abstract</p> -<p>The <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a> standard package supports TeX font encodings via -<cite>encoding definition files</cite>. The mechanism is explained in -[<a class="reference internal" href="#fntguide">fntguide</a>], section 5. This package provides encoding definition -files for <a class="reference internal" href="#greek-text-font-encodings">Greek text font encodings</a> for use with <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a> and -8-bit TeX engines. Currently, only <a class="reference internal" href="#lgr">LGR</a> is supported.</p> +<p>This package provides Greek LICR macro definitions and encoding +definition files for <a class="reference internal" href="#greek-text-font-encodings">Greek text font encodings</a> for use with +<a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a>.</p> </div> <div class="note"> <p class="admonition-title">Note</p> @@ -55,13 +53,13 @@ punctuation may change in future versions.</p> <tbody> <tr><td><p>2013-07-03</p></td> <td><p>0.9</p></td> -<td><p>greek-fontenc.def “outsourced” from lgrxenc.def</p></td> +<td><p><a class="reference external" href="greek-fontenc.def">greek-fontenc.def</a> “outsourced” from lgrxenc.def</p></td> </tr> <tr><td><!-- --> </td> <td> </td> <td><p>experimental files xunicode-greek.sty and -greek-euenc.def: LICRs for XeTeX/LuaTeX.</p></td> +<a class="reference external" href="greek-euenc.def">greek-euenc.def</a>: LICRs for XeTeX/LuaTeX.</p></td> </tr> <tr><td><p>2013-07-18</p></td> <td><p>0.9.1</p></td> @@ -89,11 +87,21 @@ greek-euenc.def: LICRs for XeTeX/LuaTeX.</p></td> <td> </td> <td><p>remove xunicode-greek.sty.</p></td> </tr> +<tr><td><p>2013-09-13</p></td> +<td><p>0.10</p></td> +<td><p><a class="reference external" href="textalpha.sty">textalpha.sty</a> and <a class="reference external" href="alphabeta.sty">alphabeta.sty</a> moved here from lgrx and +updated to work with XeTeX/LuaTeX.</p></td> +</tr> +<tr><td><!-- --> +</td> +<td> </td> +<td><p>remove greek-fontenc.sty (obsoleted by textalpha.sty).</p></td> +</tr> </tbody> </table> </div> -<div class="section" id="files"> -<h1>Files</h1> +<div class="section" id="latex-files"> +<h1>LaTeX files</h1> <dl class="docutils"> <dt><a class="reference external" href="greek-fontenc.def">greek-fontenc.def</a></dt> <dd><p><a class="reference external" href="greek-fontenc.def.html">Common Greek font encoding definitions</a>.</p> @@ -104,6 +112,26 @@ greek-euenc.def: LICRs for XeTeX/LuaTeX.</p></td> comes with <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a>’s Greek support and <tt class="literal">lgrxenc.def</tt> from the <a class="reference external" href="http://www.ctan.org/pkg/lgrx">lgrx</a> bundle.</p> </dd> +<dt><a class="reference external" href="textalpha.sty">textalpha.sty</a></dt> +<dd><p><a class="reference external" href="textalpha.sty.html">Greek symbols in text</a> +independent of font encoding and TeX engine.</p> +</dd> +<dt><a class="reference external" href="alphabeta.sty">alphabeta.sty</a></dt> +<dd><p>Generic macros for <a class="reference external" href="alphabeta.sty.html">Greek symbols in text and math</a>.</p> +</dd> +</dl> +<p>Literate source files were converted with <a class="reference external" href="http://pylit.berlios.de">PyLit</a> to reStructuredText and +with <a class="reference external" href="http://docutils.sourceforge.net/rst.html">Docutils</a> to the HTML documentation.</p> +</div> +<div class="section" id="documentation-and-test-documents"> +<h1>Documentation and test documents</h1> +<dl class="docutils"> +<dt><a class="reference external" href="textalpha-test.tex">textalpha-test.tex</a>, <a class="reference external" href="textalpha-test.pdf">textalpha-test.pdf</a></dt> +<dd><p><cite>The textalpha package</cite>.</p> +</dd> +<dt><a class="reference external" href="alphabeta-test.tex">alphabeta-test.tex</a> <a class="reference external" href="alphabeta-test.pdf">alphabeta-test.pdf</a></dt> +<dd><p><cite>The alphabeta package</cite>.</p> +</dd> <dt><a class="reference external" href="lgrenc-test.tex">lgrenc-test.tex</a>, <a class="reference external" href="lgrenc-test.pdf">lgrenc-test.pdf</a></dt> <dd><p>Test and usage example.</p> </dd> @@ -113,14 +141,15 @@ bundle.</p> (monotonic) Greek.</p> </dd> </dl> -<p>Experimental files that are still in development and will eventually be -moved to/merged with other packages or removed in future versions:</p> +</div> +<div class="section" id="experimental-files"> +<h1>Experimental files</h1> +<p>These files are still in development and will eventually be moved to/merged +with other packages or removed in future versions:</p> <dl class="docutils"> -<dt><a class="reference external" href="greek-fontenc.sty">greek-fontenc.sty</a></dt> -<dd><p><a class="reference external" href="greek-fontenc.sty.html">Greek text font encoding setup</a></p> -</dd> <dt><a class="reference external" href="greek-euenc.def">greek-euenc.def</a></dt> -<dd><p><a class="reference external" href="greek-euenc.def.html">Greek LICR definitions for XeTeX and LuaTeX</a></p> +<dd><p><a class="reference external" href="greek-euenc.def.html">Greek LICR definitions for XeTeX and LuaTeX</a>. +Requires <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a>.</p> </dd> <dt><a class="reference external" href="test-euenc.tex">test-euenc.tex</a></dt> <dd><p>Example for use of the experimental Greek LICR definitions with XeTeX or @@ -130,8 +159,6 @@ LuaTeX.</p> <dd><p><a class="reference external" href="lgr2licr.lua.html">LGR Transcription to Greek LICR transformation</a></p> </dd> </dl> -<p>Literate source files were converted with <a class="reference external" href="http://pylit.berlios.de">PyLit</a> to reStructuredText and -with <a class="reference external" href="http://docutils.sourceforge.net/rst.html">Docutils</a> to the HTML documentation.</p> </div> <div class="section" id="installation"> <h1>Installation</h1> @@ -147,23 +174,23 @@ directory (e.g. for testing).</p></li> </div> <div class="section" id="usage"> <h1>Usage</h1> -<p>For 8-bit TeX, pass the encoding name as option to <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a>. For example, -specify T1 (Latin) as default font encoding and LGR for Greek with</p> -<pre class="literal-block">\usepackage[LGR,T1]{fontenc} +<p>To ensure Greek support independent of the TeX engine write</p> +<pre class="literal-block">\usepackage{textalpha} </pre> -<p>See <a class="citation-reference" href="#fntguide" id="id1">[fntguide]</a> for details and <a class="reference external" href="lgrenc-test.tex">lgrenc-test.tex</a> for an example.</p> -<p>For XeTeX/LuaTeX, you can specify the EU1/EU2 encoding and -load the experimental <tt class="literal"><span class="pre">greek-euenc.def</span></tt>:</p> -<pre class="literal-block">\usepackage[EU1]{fontenc} % XeTeX -% \usepackage[EU2]{fontenc} % LuaTeX -\makeatletter -\input{greek-euenc.def} -\makeatother +<p>For details see <a class="reference external" href="textalpha-test.tex">textalpha-test.tex</a> and <a class="reference external" href="textalpha-test.pdf">textalpha-test.pdf</a> (8-bit +TeX) as well as <a class="reference external" href="test-euenc.tex">test-euenc.tex</a> and <a class="reference external" href="test-euenc.pdf">test-euenc.pdf</a> (XeTeX/LuaTeX).</p> +<p>To use the established macro names (<tt class="literal">\alpha</tt> … <tt class="literal">\Omega</tt>) in text and +math mode, write</p> +<pre class="literal-block">\usepackage{alphabeta} </pre> -<p>XeTeX/LuaTeX usage details are likely to change in the future!!!</p> -<p>To ensure Greek support independent of the TeX engine, you may write</p> -<pre class="literal-block">\usepackage{fontenc-greek} +<p>For details see <a class="reference external" href="alphabeta-test.tex">alphabeta-test.tex</a> and <a class="reference external" href="alphabeta-test.pdf">alphabeta-test.pdf</a>.</p> +<p>For 8-bit TeX, you may also pass LGR as option to <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a>. For example, +specify T1 (Latin) as default font encoding and LGR for Greek with</p> +<pre class="literal-block">\usepackage[LGR,T1]{fontenc} </pre> +<p>In this case, using Greek text macros without explicite font switch will +lead to errors.</p> +<p>See <a class="citation-reference" href="#fntguide" id="id4">[fntguide]</a> for details and <a class="reference external" href="lgrenc-test.tex">lgrenc-test.tex</a> for an example.</p> </div> <div class="section" id="greek-text-font-encodings"> <h1>Greek text font encodings</h1> @@ -172,7 +199,7 @@ Greek letters and symbols are also defined in the Unicode-based font encodings EU1 (XeTeX), EU2 (LuaTeX) and PU (<a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a>).</p> <div class="section" id="t7"> <h2>T7</h2> -<p>The <a class="citation-reference" href="#encguide" id="id3">[encguide]</a> reserves the name T7 for a Greek <cite>standard font encoding</cite>. +<p>The <a class="citation-reference" href="#encguide" id="id6">[encguide]</a> reserves the name T7 for a Greek <cite>standard font encoding</cite>. 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.</p> @@ -187,7 +214,7 @@ is facilitated by the <a class="reference external" href="http://www.ctan.org/pk <p>The LGR font encoding allows to access Greek characters via an ASCII transliteration. This enables simple input with a Latin keyboard. Characters with diacritics can be selected by ligature definitions in the -font (see <a class="citation-reference" href="#greek-usage" id="id4">[greek-usage]</a>, <a class="citation-reference" href="#teubner-doc" id="id5">[teubner-doc]</a>, <a class="citation-reference" href="#cbfonts" id="id6">[cbfonts]</a>).</p> +font (see <a class="citation-reference" href="#greek-usage" id="id7">[greek-usage]</a>, <a class="citation-reference" href="#teubner-doc" id="id8">[teubner-doc]</a>, <a class="citation-reference" href="#cbfonts" id="id9">[cbfonts]</a>).</p> <p>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 <cite>Babel</cite> language <tt class="literal">greek</tt> or <tt class="literal">polutionikogreek</tt>). @@ -199,7 +226,7 @@ Unicode (with XeTeX or LuaTeX).</p> <div class="section" id="lgi"> <h2>LGI</h2> <p>The ‘Ibycus’ fonts from the package <a class="reference external" href="http://www.ctan.org/pkg/ibygrk">ibygrk</a> implement an alternative -transliteration scheme (also explained in <a class="citation-reference" href="#babel-patch" id="id7">[babel-patch]</a>). +transliteration scheme (also explained in <a class="citation-reference" href="#babel-patch" id="id10">[babel-patch]</a>). It is currently not supported by <cite>greek-fontenc</cite>.</p> <p>The font encoding file <tt class="literal">lgienc.def</tt> from <a class="reference external" href="http://www.ctan.org/pkg/ibycus-babel">ibycus-babel</a> provides a basic setup (without any LICR macros or composite definitions).</p> @@ -351,40 +378,40 @@ from the <a class="reference external" href="http://www.ctan.org/pkg/unicode">uc <p>Aliases from <tt class="literal">puenc.def</tt> ensure that the <a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a> package can convert Greek text in “LICR encoding” to a PDF-string (utf-8 encoded input is used as-is).</p> -<dl class="citation"><dt class="label"><a class="fn-backref" href="#id1">[fntguide]</a></dt> +<dl class="citation"><dt class="label"><a class="fn-backref" href="#id4">[fntguide]</a></dt> <dd id="fntguide"> <p class="first last">LaTeX3 Project Team, <cite>LaTeX2ε font selection</cite>, 2005. <a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/fntguide.pdf">http://mirror.ctan.org/macros/latex/doc/fntguide.pdf</a></p> </dd> </dl> -<dl class="citation"><dt class="label"><a class="fn-backref" href="#id3">[encguide]</a></dt> +<dl class="citation"><dt class="label"><a class="fn-backref" href="#id6">[encguide]</a></dt> <dd id="encguide"> <p class="first last">Frank Mittelbach, Robin Fairbairns, Werner Lemberg, LaTeX3 Project Team, <cite>LaTeX font encodings</cite>, 2006. <a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/encguide.pdf">http://mirror.ctan.org/macros/latex/doc/encguide.pdf</a></p> </dd> </dl> -<dl class="citation"><dt class="label"><a class="fn-backref" href="#id4">[greek-usage]</a></dt> +<dl class="citation"><dt class="label"><a class="fn-backref" href="#id7">[greek-usage]</a></dt> <dd id="greek-usage"> <p class="first last">Apostolos Syropoulos, <cite>Writing Greek with the greek option of the babel package</cite>, 1997. <a class="reference external" href="http://www.tug.org/texlive/Contents/live/texmf-dist/doc/generic/babel/greek-usage.pdf">http://www.tug.org/texlive/Contents/live/texmf-dist/doc/generic/babel/greek-usage.pdf</a></p> </dd> </dl> -<dl class="citation"><dt class="label"><a class="fn-backref" href="#id6">[cbfonts]</a></dt> +<dl class="citation"><dt class="label"><a class="fn-backref" href="#id9">[cbfonts]</a></dt> <dd id="cbfonts"> <p class="first last">Claudio Beccari, <cite>The CB Greek fonts</cite>, Εὔτυπον, τεῦχος № 21, 2008. <a class="reference external" href="http://www.eutypon.gr/eutypon/pdf/e2008-21/e21-a01.pdf">http://www.eutypon.gr/eutypon/pdf/e2008-21/e21-a01.pdf</a></p> </dd> </dl> -<dl class="citation"><dt class="label"><a class="fn-backref" href="#id5">[teubner-doc]</a></dt> +<dl class="citation"><dt class="label"><a class="fn-backref" href="#id8">[teubner-doc]</a></dt> <dd id="teubner-doc"> <p class="first last">Claudio Beccari, <tt class="literal">teubner.sty</tt> <cite>An extension to the greek option of the babel package</cite>, 2011. <a class="reference external" href="http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf">http://mirror.ctan.org/macros/latex/contrib/teubner/teubner-doc.pdf</a></p> </dd> </dl> -<dl class="citation"><dt class="label"><a class="fn-backref" href="#id7">[babel-patch]</a></dt> +<dl class="citation"><dt class="label"><a class="fn-backref" href="#id10">[babel-patch]</a></dt> <dd id="babel-patch"> <p class="first last">Werner Lemberg, <cite>Unicode support for the Greek LGR encoding</cite> Εὔτυπον, τεῦχος № 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 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" /> +<title>alphabeta-euenc.def: Composite definitions for XeTeX and LuaTeX</title> +<meta name="copyright" content="© 2013 Günter Milde" /> +<link rel="stylesheet" href="../../../../../Python/docutils-svn/docutils/docutils/writers/html4strict/html4css1.css" type="text/css" /> +<link rel="stylesheet" href="../../../../../Python/docutils-svn/docutils/docutils/writers/html4strict/html4css2.css" type="text/css" /> +</head> +<body> +<div class="document" id="alphabeta-euenc-def-composite-definitions-for-xetex-and-luatex"> +<h1 class="title">alphabeta-euenc.def: Composite definitions for XeTeX and LuaTeX</h1> + +<dl class="docinfo"> +<dt class="copyright">Copyright</dt> +<dd class="copyright">© 2013 Günter Milde</dd> +<dt>Licence</dt> +<dd><p>This work may be distributed and/or modified under the +conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either +version 1.3 of this license or any later version.</p> +</dd> +<dt>Identification</dt> +<dd><pre class="literal-block">\ProvidesFile{alphabeta-euenc} +[2013/07/24 0.1.3 Composite definitions for XeTeX and LuaTeX] +</pre> +</dd> +</dl> +<p>Domposite definitions for <tt class="literal">alphabeta.sty</tt> with XeTeX and LuaTeX.</p> +<dl class="docutils"> +<dt>Changelog:</dt> +<dd><table class="borderless"> +<colgroup> +<col width="14%" /> +<col width="7%" /> +<col width="79%" /> +</colgroup> +<tbody> +<tr><td><p>2013-09-12</p></td> +<td><p>0.1</p></td> +<td><p>initial version</p></td> +</tr> +</tbody> +</table> +</dd> +</dl> +<p>The <a class="reference external" href="http://www.ctan.org/pkg/lgrx">alphabeta</a> 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.</p> +<p>The NFSS TextComposite mechanism looks for the next token without expanding +it. In order to let compositions like <tt class="literal"><span class="pre">\>"\alpha</span></tt> work as expected we +define TextComposites with the <cite>letter name commands</cite>.</p> +<p>For use with Unicode fonts (XeTeX/LuaTeX), we need to define composite +commands for the EU1 and EU2 encoding</p> +<div class="section" id="greek-and-coptic"> +<h1>Greek and Coptic</h1> +<pre class="literal-block">\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}{ώ} +</pre> +</div> +<div class="section" id="greek-extended"> +<h1>Greek Extended</h1> +<pre class="literal-block">\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}{ῼ} +</pre> +<!-- References --> +</div> +</div> +</body> +</html> diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.pdf Binary files differnew file mode 100644 index 00000000000..d041e4a197d --- /dev/null +++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.pdf diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.tex b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.tex new file mode 100644 index 00000000000..3bebcd475c7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.tex @@ -0,0 +1,253 @@ +\documentclass{article} + +\usepackage{hyperref} +\hypersetup{colorlinks=true,linkcolor=blue,urlcolor=blue,pdfencoding=auto} +\usepackage{bookmark} +\usepackage{parskip} +\usepackage{amsmath} + +\ifdefined\XeTeXrevision + \usepackage[no-math]{fontspec} + \setmainfont{Linux Libertine O} + \usepackage[libertine,slantedGreek ]{newtxmath} +\else\ifdefined\luatexversion + \usepackage{fontspec} + \setmainfont{Linux Libertine O} + \usepackage[libertine,slantedGreek ]{newtxmath} +\else + \usepackage{textcomp} + \usepackage{lmodern} + % \usepackage{gfsdidot} + % \usepackage{kerkis} + \usepackage{fixmath} + \usepackage[T1]{fontenc} + \usepackage[utf8]{inputenc} +\fi\fi + +% No section numbers but PDF bookmarks for sections +\setcounter{secnumdepth}{0} + +% load alphabeta after math setup and encoding setup! +\usepackage{alphabeta} + +% Avoid warnigns with PDF string generation for "alphabeta" commands: + +% PU supports (monotonic) Greek LICR macros +\DeclareTextCommand{\ensuregreek}{PU}[1]{#1} + +% let \TextOrMath (from fixltx2e) return the "text" argument: +\pdfstringdefDisableCommands{% + \let\TextOrMath\@firstoftwo% +} + +% \varstigma is not defined with Xe/LuaTeX: +\providecommand*{\varstigma}{$\oslash$} + + +\begin{document} + +\title{The \emph{alphabeta} package} +\author{Günter Milde} +\maketitle + +With the \emph{alphabeta} package, you can write Greek letters ``by name'' +or as literal Unicode characters in both, ``text'' and ``math'' mode. The +mode determines whether the letters are taken from the text or math font. +Just like Latin letters, the Greek counterparts are by default italic in +math mode (capital letters upright without \emph{fixmath} or +\emph{\href{http://www.ctan.org/pkg/isomath}{isomath}}) and upright in text: + +\begin{quote} + Text: L \Gamma{} l \gamma, + emphasized text: \emph{L \Gamma{} l \gamma}, + mathematics: $ L \ \Gamma \ l \ \gamma $ +\end{quote} + +This makes it easy to write a single Greek symbol (like \Psi{} or \mu{}) or +a \lambda\omicron\gamma\omicron\varsigma{} in non-Greek text as well as +ISO-conforming formulas with upright symbols for constants like $A = +\text{\pi} r^2$ instead of $A = \pi r^2$.\footnote{% + The \emph{\href{http://www.ctan.org/pkg/isomath}{isomath}} package + documentation describes more alternatives for upright Greek symbols in + math mode.} + +\section{Tests and examples} + +\subsection{Greek alphabet} + +Greek letters via Latin transscription in LGR font encoding: + +\begin{quote} + \ensuregreek{A B G D E Z H J I K L M N X O P R S T U F Q Y W}\\ + \ensuregreek{a b g d e z h j i k l m n x o p r s c t u f q y w} +\end{quote} + +Greek letters via default macros without language/font-encoding switch: + +\begin{quote} + \Alpha{} \Beta{} \Gamma{} \Delta{} \Epsilon{} \Zeta{} \Eta{} \Theta{} + \Iota{} \Kappa{} \Lambda{} \Mu{} \Nu{} \Xi{} \Omicron{} \Pi{} \Rho{} + \Sigma{} \Tau{} \Upsilon{} \Phi{} \Chi{} \Psi{} \Omega{} + \\ + \alpha{} \beta{} \gamma{} \delta{} \epsilon{} \zeta{} \eta{} \theta{} + \iota{} \kappa{} \lambda{} \mu{} \nu{} \xi{} \omicron{} \pi{} \rho{} + \sigma{} \varsigma{} \tau{} \upsilon{} \phi{} \chi{} \psi{} \omega{} + \\ + \digamma{} \Digamma{} \stigma{} \varstigma{}% + \footnote{\texttt{\textbackslash varstigma} is not defined with Xe/LuaTeX.} + \koppa{} \qoppa{} \Qoppa{} + \Stigma{} \Sampi{} \sampi{} +\end{quote} + +Greek letters via Unicode input without language/font-encoding switch: + +\begin{quote} + Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω\\ + α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω\\ + ϝ Ϝ ϛ ϟ ϙ Ϙ Ϛ Ϡ ϡ +\end{quote} + + +\subsection{\ensuregreek{% + Ἑλληνικά (\<\Epsilon\lambda\lambda\eta\nu\iota\kappa\'\alpha{})} + in PDF strings} + +With the alphabeta package, you get Greek letters in both, the document body +and PDF metadata generated by hyperref if the input uses Unicode literals or +macros. Wrapping in \verb+\ensuregreek+ ensures the right placement of the +accents and breathings (before, not above capital letters). With LICR input +(accent macros + symbol macros), non-standard diacritics are missing in the +PDF data, as hyperref's PU encoding currently does not support polytonic +Greek. (Here, the dasia dropped at the start of the word in parentheses in +the PDF toc. The warning ``\texttt{Glyph not defined in PU encoding, +removing `\textbackslash<' on input line 145.}'' is written to the log.) + +Warnings like \texttt{Token not allowed in a PDF string +(Unicode): removing `\textbackslash TextOrMath ' on input line 145.} +can be ignored or avoided with the preamble code: + +\begin{verbatim} +\pdfstringdefDisableCommands{% + \let\TextOrMath\@firstoftwo% +} +\end{verbatim} + + +\subsection{Greek in math $\Gamma = \sin\alpha / \cos{\beta}$} + +In the main document, Greek in math mode should work as usual: + +\[\Gamma = \frac{\sin\alpha}{\cos{\beta}}. +\] + +With 8-bit TeX, literal Greek Unicode characters are supported also in +mathematical mode (for XeTeX/LuaTeX use unicode-math): + +\[ Γ = \frac{\sin α}{\cos{β}}. +\] + +Greek letters in math (there are no math macros for Greek letters wich exist +with similar shape in the Latin alphabet): + +\begin{align*} + & + % \Alpha{} \Beta{} + \Gamma{} \Delta{} + % \Epsilon{} \Zeta{} \Eta{} + \Theta{} + % \Iota{} \Kappa{} + \Lambda{} + % \Mu{} \Nu{} + \Xi{} + % \Omicron{} + \Pi{} + % \Rho{} + \Sigma{} + % \Tau{} + \Upsilon{} \Phi{} + % \Chi{} + \Psi{} \Omega{} +\\& + \alpha{} \beta{} \gamma{} \delta{} \epsilon{} \zeta{} \eta{} \theta{} + \iota{} \kappa{} \lambda{} \mu{} \nu{} \xi{} + % \omicron{} + \pi{} \rho{} + \sigma{} \varsigma{} \tau{} \upsilon{} \phi{} \chi{} \psi{} \omega{} + \, \digamma{} +\end{align*} + +Unicode input in math mode works with 8-bit TeX. With XeTeX/LuaTeX, it requires the unicode-math +package. + +\begin{align*} & Γ ΔΘΛΞΠΣΥ ΦΨ Ω \\ + & αβγδεζηθικλμνξπρσςτ υφχψω \, ϝ +\end{align*} + + +PDF strings do not know math mode. The content of a formula or equation is +evaluated in text mode with non-valid commands discarded (and warnings +written to the log). This works resonably well for simple formulas (but not, +e.g., for super-/subscripts). With the \emph{alphabeta} package, it works +also for Greek letters. + + +\subsection{Diacritics} + +Accent macros are set up for use with the generic macros by definition of +``TextComposite'' commands. + +Diacritics (except the dialytika) should placed +before capital letters and dropped with MakeUppercase: + +\ensuregreek{ +\<{\alpha} \>{\epsilon} \"'{\iota} \>`{\eta} +\'<{\omicron} \~<{\upsilon} \~>{\omega} +\\ +\<{\Alpha} \>{\Epsilon} \'{\Iota} \>`{\Eta} +\'<{\Omicron} \~<{\Upsilon} \~>{\Omega} +\\ +\MakeUppercase{% + \<{\alpha} \>{\epsilon} \"'{\iota} \>`\eta{} + \'<{\omicron} \~<{\upsilon} \~>{\omega} +}} + +\subsection{Limitations} + +With 8-bit TeX, the following limitations known from +\emph{\href{textalpha-test.pdf}{textalpha}} apply if the current font +encoding is not LGR: + +\begin{itemize} + +\item Composition of diacritics (like \verb+\>\'+) fails: + + \<{\alpha} \>{\epsilon} \"'{\iota} \>`\eta{} + \'<{\omicron} \~<{\upsilon} \~>{\omega} + + Long names (like \verb+\accdasiaoxia+) work in any font encoding, + however they do not select precomposed characters (the difference + becomes obvious if you drag-and-drop text from the PDF version of this + document): + % + \ensuregreek{\<'\alpha{} \accdasia\acctonos\alpha{} \accdasiaoxia\alpha{}} + (LGR) vs. \accdasiaoxia\alpha{} (T1) + +\item MakeUppercase fails with composite diacritics in other font encodings. + % \MakeUppercase{% + % \<\alpha{} \>\epsilon{} \'\iota{} \`\eta{} \~\upsilon{} + % } + +\item There is no kerning between Greek letters, if the font encoding is not + LGR: compare \ensuregreek{\Alpha\Upsilon\Alpha} (LGR) to \Alpha\Upsilon\Alpha (T1). + Because of this (and for proper hyphenation), use of the Babel package + and correct language setting is recommended for Greek quotes. + +\end{itemize} + +The \verb+\ensuregreek+ macro ensures that the argument is typeset with a +font encoding supporting Greek. This keeps kerning (if the kerning pair is +inside the argument, \ensuregreek{\Alpha\Upsilon\Alpha}), and allows +iterative accent macros where pre-composed characters are selected +(\ensuregreek{\<'\alpha}). + +\end{document} diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta.sty.html b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta.sty.html new file mode 100644 index 00000000000..41e37920df7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta.sty.html @@ -0,0 +1,455 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" /> +<title>alphabeta: Greek symbols in text and math</title> +<meta name="copyright" content="© 2010 Günter Milde" /> +<link rel="stylesheet" href="../../../../../Python/docutils-svn/docutils/docutils/writers/html4strict/html4css1.css" type="text/css" /> +<link rel="stylesheet" href="../../../../../Python/docutils-svn/docutils/docutils/writers/html4strict/html4css2.css" type="text/css" /> +</head> +<body> +<div class="document" id="alphabeta-greek-symbols-in-text-and-math"> +<h1 class="title">alphabeta: Greek symbols in text and math</h1> + +<dl class="docinfo"> +<dt class="copyright">Copyright</dt> +<dd class="copyright">© 2010 Günter Milde</dd> +<dt>Licence</dt> +<dd><p>This work may be distributed and/or modified under the +conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either +version 1.3 of this license or any later version.</p> +</dd> +<dt>Identification</dt> +<dd><pre class="literal-block">\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{alphabeta} +[2013/09/11 v0.4 macros for Greek letters in text and math] +</pre> +</dd> +</dl> +<div class="abstract topic"> +<p class="topic-title first">Abstract</p> +<p>Use <tt class="literal">\alpha, \beta, ...</tt> for Greek letters in text and math +mode.</p> +</div> +<dl class="docutils"> +<dt>Changelog:</dt> +<dd><table class="borderless"> +<colgroup> +<col width="14%" /> +<col width="7%" /> +<col width="79%" /> +</colgroup> +<tbody> +<tr><td><p>2012-06-26</p></td> +<td><p>0.1</p></td> +<td><p>initial version</p></td> +</tr> +<tr><td><p>2013-05-03</p></td> +<td><p>0.2</p></td> +<td><p>new accent macro names with <tt class="literal">lgrxenc.def</tt> 0.7</p></td> +</tr> +<tr><td><p>2013-05-28</p></td> +<td><p>0.3</p></td> +<td><p>use <tt class="literal">lgrenc.def</tt> from greek-fontenc,</p></td> +</tr> +<tr><td><!-- --> +</td> +<td> </td> +<td><p>enable Unicode input in math mode.</p></td> +</tr> +<tr><td><p>2013-09-11</p></td> +<td><p>0.4</p></td> +<td><p>move to <a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a>, support XeTeX/LuaTeX.</p></td> +</tr> +</tbody> +</table> +</dd> +</dl> +<div class="section" id="motivation"> +<h1>Motivation</h1> +<p>By default, the <tt class="literal">\alpha, \beta, ...</tt> macros for Greek letters +are only valid in mathematical mode.</p> +<p>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.</p> +<p>If used together with the <tt class="literal">utf8</tt> option of <a class="reference external" href="http://www.ctan.org/pkg/inputenc">inputenc</a>, literal Unicode +characters can be used for Greek symbols in mathematical formulas.</p> +<div class="attention"> +<p class="admonition-title">Attention!</p> +<p>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.</p> +<p>Therefore, Greek text should be written with the help of <a class="reference external" href="http://www.ctan.org/cgi-bin/ctanPackageInformation.py?id=babel">babel</a> or +<a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> (setting the language to <tt class="literal">greek</tt>) or wrapped in the +provided <tt class="literal">ensuregreek</tt> macro. Using <a class="reference external" href="http://www.ctan.org/cgi-bin/ctanPackageInformation.py?id=babel">babel</a> or <a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> also helps +to ensure proper hyphenation.</p> +</div> +</div> +<div class="section" id="usage"> +<h1>Usage</h1> +<pre class="code latex literal-block"><span class="keyword">\usepackage</span><span class="name builtin">{</span>alphabeta<span class="name builtin">}</span> +</pre> +<p>For details see <a class="reference external" href="alphabeta-test.tex">alphabeta-test.tex</a> and <a class="reference external" href="alphabeta-test.pdf">alphabeta-test.pdf</a>.</p> +</div> +<div class="section" id="implementation"> +<h1>Implementation</h1> +<div class="section" id="requirements"> +<h2>Requirements</h2> +<p>This package extends the <a class="reference external" href="textalpha.sty.html">textalpha</a> package:</p> +<pre class="literal-block">\RequirePackage{textalpha} +</pre> +<p><cite>textalpha</cite> depends on <a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a> and (with 8-bit TeX) recommends +<a class="reference external" href="http://www.ctan.org/pkg/greek-inputenc">greek-inputenc</a>.</p> +<p>This package requires the <a class="reference external" href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=etex">e-TeX</a> extensions (i.e. a not too old TeX +distribution) for the <tt class="literal">\ifdefined</tt> test.</p> +<p>It uses the <tt class="literal">\TextOrMath</tt> test from the <a class="reference external" href="http://www.ctan.org/pkg/fixltx2e">fixltx2e</a> standard LaTeX +package:</p> +<pre class="literal-block">\RequirePackage{fixltx2e} +</pre> +</div> +<div class="section" id="postpone-the-re-definitions"> +<h2>Postpone the re-definitions</h2> +<p>To prevent other packages overwriting the re-defined commands we postpone +the next steps until the start of the document body:</p> +<pre class="literal-block">\AtBeginDocument{ +</pre> +</div> +<div class="section" id="save-math-macros"> +<h2>Save math macros</h2> +<p>Provide an alias for the standard math commands:</p> +<pre class="literal-block">\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 +</pre> +</div> +<div class="section" id="commands-to-access-greek-letters-by-name"> +<h2>Commands to access Greek letters by name</h2> +<p>For letters defined in math mode, the commands work in both, text and math.</p> +<p>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 <tt class="literal"><span class="pre">\text...</span></tt> +command.</p> +<pre class="literal-block">\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}} +</pre> +<div class="section" id="archaic-letters"> +<h3>Archaic letters</h3> +<pre class="literal-block">\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} % ϡ +</pre> +</div> +</div> +<div class="section" id="textcompositecommands-for-the-generic-macros"> +<h2>TextCompositeCommands for the generic macros</h2> +<p>The NFSS TextComposite mechanism looks for the next token without expanding +it. In order to let compositions like <tt class="literal"><span class="pre">\ensuregreek{\'\Alpha}</span></tt> or +<tt class="literal"><span class="pre">\ensuregreek{\>"\alpha}</span></tt> work as expected we define TextComposites with the +<cite>letter name commands</cite>. (Composition only works if the active font encoding +is LGR).</p> +<pre class="literal-block">\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 +</pre> +</div> +<div class="section" id="re-definition-for-greek-unicode-input-in-math-mode"> +<h2>Re-definition for Greek Unicode input in math mode</h2> +<p>Check with <tt class="literal">\ifdefined</tt> for the definition of +<tt class="literal">\DeclareUnicodeCharacter</tt>. In contrast to <tt class="literal">\@ifdefined</tt>, this works +without side-effects. It makes, however, the package dependent on the <cite>e-TeX</cite> +extensions.</p> +<p>Map Greek characters that are also defined in math mode to the generic +macros:</p> +<pre class="literal-block">\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 +</pre> +<pre class="literal-block">} % close the \AtBeginDocument macro +</pre> +<!-- References +- - - - - - - - - - --> +</div> +</div> +</div> +</body> +</html> diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.pdf Binary files differindex 6686acaa33d..d605f3bae95 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.pdf +++ b/Master/texmf-dist/doc/latex/greek-fontenc/diacritics.pdf diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc.def.html b/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc.def.html index e1416a27516..3d1cdd9f12a 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc.def.html +++ b/Master/texmf-dist/doc/latex/greek-fontenc/greek-euenc.def.html @@ -3,7 +3,7 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<meta name="generator" content="Docutils 0.11: http://docutils.sourceforge.net/" /> +<meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" /> <title>greek-euenc.def: Greek LICR definitions for XeTeX and LuaTeX</title> <meta name="copyright" content="© 2013 Günter Milde" /> <link rel="stylesheet" href="../../../../../Python/docutils-svn/docutils/docutils/writers/html4strict/html4css1.css" type="text/css" /> diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/greek-fontenc.sty.html b/Master/texmf-dist/doc/latex/greek-fontenc/greek-fontenc.sty.html deleted file mode 100644 index c5a1d17ce26..00000000000 --- a/Master/texmf-dist/doc/latex/greek-fontenc/greek-fontenc.sty.html +++ /dev/null @@ -1,106 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> -<head> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" /> -<title>greek-fontenc: Greek text font encoding setup</title> -<meta name="copyright" content="© 2013 Günter Milde" /> -<link rel="stylesheet" href="../../../../../Python/docutils-svn/docutils/docutils/writers/html4strict/html4css1.css" type="text/css" /> -<link rel="stylesheet" href="../../../../../Python/docutils-svn/docutils/docutils/writers/html4strict/html4css2.css" type="text/css" /> -</head> -<body> -<div class="document" id="greek-fontenc-greek-text-font-encoding-setup"> -<h1 class="title">greek-fontenc: Greek text font encoding setup</h1> - -<dl class="docinfo"> -<dt class="copyright">Copyright</dt> -<dd class="copyright">© 2013 Günter Milde</dd> -<dt>Licence</dt> -<dd><p>This work may be distributed and/or modified under the -conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either -version 1.3 of this license or any later version.</p> -</dd> -<dt>Identification</dt> -<dd><pre class="literal-block">\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{greek-fontenc} -[2013/09/10 v0.1 Greek text font encoding setup] -</pre> -</dd> -</dl> -<div class="abstract topic"> -<p class="topic-title first">Abstract</p> -<p>This package sets up a suitable font encoding and Greek LICR -definitions depending on the used TeX engine.</p> -</div> -<div class="section" id="motivation"> -<h1>Motivation</h1> -<p>With 8-bit TeX, you usually pass the font encoding name(s) as option to -<a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a> which then loads the corresponding <tt class="literal">*.def</tt> file(s). -The last option indicates the document’s default font encoding. -(See <a class="citation-reference" href="#fntguide" id="id1">[fntguide]</a> for details and <a class="reference external" href="lgrenc-test.tex">lgrenc-test.tex</a> for an example.)</p> -<p>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 <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> -defines the (pseudo) font encodings EU1 and EU2 for XeTeX and LuaTeX -respectively, however <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> does not (yet) define LICR macros. The package -<a class="reference external" href="http://www.ctan.org/pkg/xunicode">xunicode</a> defines LICR macros for use with XeTeX but does not support Greek.</p> -<p>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 -<tt class="literal">\ifdefined</tt> command provided by the e-TeX extension) and does “the right -thing” to set up Greek text font support for the detected engine.</p> -</div> -<div class="section" id="xetex"> -<h1>XeTeX</h1> -<ul class="simple"> -<li><p>Use the EU1 font encoding. This is the only font encoding used with -XeTeX, so loading it with <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a> cannot mix up the default font -encoding.</p></li> -<li><p>Ensure EU1 is the <tt class="literal">\LastDeclaredEncoding</tt>. 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 <tt class="literal">\LastDeclaredEncoding</tt> at <tt class="literal">T3</tt> (tipa), because it -inputs <tt class="literal">t3enc.def</tt>.</p></li> -<li><p>load the Greek LICR definitions for XeTeX/LuaTeX. In an ideal world, this -should be done in the eu1enc.def file of the <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> package.</p></li> -</ul> -<pre class="literal-block">\ifdefined\XeTeXrevision - \usepackage[EU1]{fontenc} - \renewcommand{\LastDeclaredEncoding}{EU1} - \input{greek-euenc.def} -</pre> -</div> -<div class="section" id="luatex"> -<h1>LuaTeX</h1> -<p>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 <tt class="literal">*.fd</tt> files (see <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> for details).</p> -<pre class="literal-block">\else\ifdefined\luatexversion - \usepackage[EU2]{fontenc} - \renewcommand{\LastDeclaredEncoding}{EU1} - \input{greek-euenc.def} -</pre> -</div> -<div class="section" id="bit-tex"> -<h1>8-bit TeX</h1> -<p>Wit 8-bit TeX (TeX, PDFTeX), we do not know the documents main font -encoding, so we cannot use <tt class="literal"><span class="pre">\usepackage[LGR]{inputenc}</span></tt>. However, the file -<tt class="literal">lgrenc.def</tt> contains code to prevent re-definition if it is already -loaded, so we can simply input:</p> -<pre class="literal-block">\else - \input{lgrenc.def} -\fi\fi -</pre> -</div> -<div class="section" id="references"> -<h1>References</h1> -<dl class="citation"><dt class="label"><a class="fn-backref" href="#id1">[fntguide]</a></dt> -<dd id="fntguide"> -<p class="first last">LaTeX3 Project Team, <cite>LaTeX 2ε font selection</cite>, 2005. -<a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/fntguide.pdf">http://mirror.ctan.org/macros/latex/doc/fntguide.pdf</a></p> -</dd> -</dl> -</div> -</div> -</body> -</html> diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.pdf Binary files differindex ddead70b026..7d2b1726177 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.pdf +++ b/Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.pdf diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.tex b/Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.tex index d878be48d8f..80ab208797f 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.tex +++ b/Master/texmf-dist/doc/latex/greek-fontenc/test-euenc.tex @@ -13,7 +13,7 @@ % \setmainfont{FreeSerif} % Declare the font encoding and Greek LICR definitions: -\usepackage{greek-fontenc} +\usepackage{textalpha} % Optionally load the xunicode package: % \newcommand{\UTFencname}{\LastDeclaredEncoding} @@ -23,6 +23,11 @@ \section*{Greek LICR definitions with XeTeX/LuaTeX} +The \verb|textalpha| package from the lgrx bundle is a convenient way to +load Greek LICR macros for use anywhere in the document and with any +TeX engine supporting the e-TeX extensions (pdfTeX, XeTeX, or LuaTeX). +With XeTeX or LuaTeX, it loads the file greek-euenc.def. + Typesetting Greek texts requires a font containing Greek letters. With the XeTeX or LuaTeX engines, the user should ensure that the choosen font contains the required glyphs (the default Latin Modern fonts have only @@ -580,5 +585,4 @@ Deja Vu). The “FreeSerif” font works fine. \textpentemuria % GREEK ACROPHONIC ATTIC FIFTY THOUSAND -\end{document} - +\end{document} diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-test.pdf b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-test.pdf Binary files differnew file mode 100644 index 00000000000..74fc6892390 --- /dev/null +++ b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-test.pdf diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-test.tex b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-test.tex new file mode 100644 index 00000000000..1a0f796faad --- /dev/null +++ b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha-test.tex @@ -0,0 +1,266 @@ +\documentclass{article} +\usepackage{parskip} +\usepackage{booktabs} + +\usepackage{lmodern} +\usepackage{textcomp} +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} + +\usepackage[pdfencoding=auto,colorlinks=true]{hyperref} +\usepackage{bookmark} +% hyperrefs PU encoding supports Greek LICR macros +\DeclareTextCommand{\ensuregreek}{PU}[1]{#1} + +\usepackage{textalpha} + +\begin{document} + +\title{The \emph{textalpha} package} +\author{Günter Milde} +\maketitle + +With the \emph{textalpha} package, you can easily write a single Greek +symbol (like \textPsi{} or \textmu{}) or a +\textlambda\textomicron\textgamma\textomicron\textvarsigma{} in non-Greek +text as well as ISO-conforming formulas with upright constants (like +\textpi): $A = \mbox{\textpi} r^2$ vs. $A = \pi r^2$. Input is possible via +LICR macros (\verb|\textalpha| \ldots \verb|\textOmega|) or (with +\emph{\href{http://www.ctan.org/pkg/greek-inputenc}{greek-inputenc}} and the +utf8 option to \emph{\href{http://www.ctan.org/pkg/inputenc}{inputenc}}) +Unicode literals. + +\section{Greek alphabet} + +Greek letters via Latin transcription in LGR font encoding: + +\begin{quote} + \ensuregreek{A B G D E Z H J I K L M N X O P R S T U F Q Y W}\\ + \ensuregreek{a b g d e z h j i k l m n x o p r sv c t u f q y w} +\end{quote} + +Greek letters via default macros in other font encoding (here T1): + +\begin{quote} + \textAlpha{} \textBeta{} \textGamma{} \textDelta{} \textEpsilon{} + \textZeta{} \textEta{} \textTheta{} \textIota{} \textKappa{} + \textLambda{} \textMu{} \textNu{} \textXi{} \textOmicron{} \textPi{} + \textRho{} \textSigma{} \textTau{} \textUpsilon{} \textPhi{} + \textChi{} \textPsi{} \textOmega{} + \\ + \textalpha{} \textbeta{} \textgamma{} \textdelta{} \textepsilon{} + \textzeta{} \texteta{} \texttheta{} \textiota{} \textkappa{} + \textlambda{} \textmu{} \textnu{} \textxi{} \textomicron{} \textpi{} + \textrho{} \textsigma{} \textvarsigma{} \texttau{} \textupsilon{} + \textphi{} \textchi{} \textpsi{} \textomega{} +\end{quote} + +Archaic Greek letters and Greek punctuation + +\begin{quote} + \textDigamma + \textanoteleia + \textQoppa + \textSampi + \textStigma + \textnumeralsigngreek + \texterotimatiko + \\ + \textdigamma + \textkoppa + \textqoppa + \textsampi + \textstigma + \textnumeralsignlowergreek + \textvarstigma +\end{quote} + +Diacritics + +\begin{quote} + Symbol macros:% + \footnote{Composite diacritics require wrapping in + \texttt{\textbackslash ensuregreek}.} + \"{} \'{} \`{} \~{} \<{} \>{} \u{} \={} + \ensuregreek{\"~{} \"'{} \"`{} \<~{} \<`{} \<'{} \>~{} \>'{} \>`{}} + + Named macros: + \accdialytika{} + \acctonos{} + \accvaria{} + \accperispomeni{} + \accdasia{} + \accpsili{} + \ypogegrammeni{} + \prosgegrammeni{} + % + \accdialytikaperispomeni{} + \accdialytikatonos{} + \accdialytikavaria{} + \accdasiaperispomeni{} + \accdasiavaria{} + \accdasiaoxia{} + \accpsiliperispomeni{} + \accpsilioxia{} + \accpsilivaria{} + % + \accinvertedbrevebelow{} % == \textsubarch{} + \accbrevebelow{} + + +\end{quote} + + +\pagebreak{} + +\section{Greek Unicode characters in non-Greek text} + +With the \emph{textalpha} package and input encoding \texttt{utf8}, Greek +Unicode characters can be used in text with any font encoding. + +Kerning is preserved if the font encoding is LGR. This holds also for +pre-composed accented characters: \ensuregreek{AΫA}. + +All characters of the Greek and Coptic Unicode Block present in LGR via +literal Unicode input in T1 font encoding +(legend: * glyph missing in LGR): + +\begin{tabular}{rrrrrrrrrrrrrrrrr} +\toprule + & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & A & B & C & D & E & F\\ +\midrule +370 & * & * & * & * & ʹ & ͵ & * & * & & & ͺ & * & * & * & ; & \\ +380 & & & & & ΄ & ΅ & Ά & · & Έ & Ή & Ί & & Ό & & Ύ & Ώ\\ +390 & ΐ & Α & Β & Γ & Δ & Ε & Ζ & Η & Θ & Ι & Κ & Λ & Μ & Ν & Ξ & Ο\\ +3A0 & Π & Ρ & & Σ & Τ & Υ & Φ & Χ & Ψ & Ω & Ϊ & Ϋ & ά & έ & ή & ί\\ +3B0 & ΰ & α & β & γ & δ & ε & ζ & η & θ & ι & κ & λ & μ & ν & ξ & ο\\ +3C0 & π & ρ & ς & σ & τ & υ & φ & χ & ψ & ω & ϊ & ϋ & ό & ύ & ώ & \\ +3D0 & * & * & * & * & * & * & * & * & Ϙ & ϙ & Ϛ & ϛ & Ϝ & ϝ & * & ϟ\\ +3E0 & Ϡ & ϡ & * & * & * & * & * & * & * & * & * & * & * & * & * & *\\ +3F0 & * & * & * & * & * & * & * & * & * & * & * & * & * & * & * & *\\ +\bottomrule +\end{tabular} + +All characters of the Greek Extended Unicode Block via literal Unicode +input in T1 font encoding: + +\begin{tabular}{rrrrrrrrrrrrrrrrr} +\toprule + & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & A & B & C & D & E & F\\ +\midrule +1F00 & ἀ & ἁ & ἂ & ἃ & ἄ & ἅ & ἆ & ἇ & Ἀ & Ἁ & Ἂ & Ἃ & Ἄ & Ἅ & Ἆ & Ἇ\\ +1F10 & ἐ & ἑ & ἒ & ἓ & ἔ & ἕ & & & Ἐ & Ἑ & Ἒ & Ἓ & Ἔ & Ἕ & & \\ +1F20 & ἠ & ἡ & ἢ & ἣ & ἤ & ἥ & ἦ & ἧ & Ἠ & Ἡ & Ἢ & Ἣ & Ἤ & Ἥ & Ἦ & Ἧ\\ +1F30 & ἰ & ἱ & ἲ & ἳ & ἴ & ἵ & ἶ & ἷ & Ἰ & Ἱ & Ἲ & Ἳ & Ἴ & Ἵ & Ἶ & Ἷ\\ +1F40 & ὀ & ὁ & ὂ & ὃ & ὄ & ὅ & & & Ὀ & Ὁ & Ὂ & Ὃ & Ὄ & Ὅ & & \\ +1F50 & ὐ & ὑ & ὒ & ὓ & ὔ & ὕ & ὖ & ὗ & & Ὑ & & Ὓ & & Ὕ & & Ὗ\\ +1F60 & ὠ & ὡ & ὢ & ὣ & ὤ & ὥ & ὦ & ὧ & Ὠ & Ὡ & Ὢ & Ὣ & Ὤ & Ὥ & Ὦ & Ὧ\\ +1F70 & ὰ & ά & ὲ & έ & ὴ & ή & ὶ & ί & ὸ & ό & ὺ & ύ & ὼ & ώ & & \\ +1F80 & ᾀ & ᾁ & ᾂ & ᾃ & ᾄ & ᾅ & ᾆ & ᾇ & ᾈ & ᾉ & ᾊ & ᾋ & ᾌ & ᾍ & ᾎ & ᾏ\\ +1F90 & ᾐ & ᾑ & ᾒ & ᾓ & ᾔ & ᾕ & ᾖ & ᾗ & ᾘ & ᾙ & ᾚ & ᾛ & ᾜ & ᾝ & ᾞ & ᾟ\\ +1FA0 & ᾠ & ᾡ & ᾢ & ᾣ & ᾤ & ᾥ & ᾦ & ᾧ & ᾨ & ᾩ & ᾪ & ᾫ & ᾬ & ᾭ & ᾮ & ᾯ\\ +1FB0 & ᾰ & ᾱ & ᾲ & ᾳ & ᾴ & & ᾶ & ᾷ & Ᾰ & Ᾱ & Ὰ & Ά & ᾼ & ᾽ & ι & ᾿\\ +1FC0 & ῀ & ῁ & ῂ & ῃ & ῄ & & ῆ & ῇ & Ὲ & Έ & Ὴ & Ή & ῌ & ῍ & ῎ & ῏\\ +1FD0 & ῐ & ῑ & ῒ & ΐ & & & ῖ & ῗ & Ῐ & Ῑ & Ὶ & Ί & & ῝ & ῞ & ῟\\ +1FE0 & ῠ & ῡ & ῢ & ΰ & ῤ & ῥ & ῦ & ῧ & Ῠ & Ῡ & Ὺ & Ύ & Ῥ & ῭ & ΅ & `\\ +1FF0 & & & ῲ & ῳ & ῴ & & ῶ & ῷ & Ὸ & Ό & Ὼ & Ώ & ῼ & ´ & ῾ & \\ +\bottomrule +\end{tabular} + + +Combined Diacritics work ᾅ, diacritics (except diaeresis) are dropped with +MakeUppercase (μαΐστρος $\mapsto$ \MakeUppercase{μαΐστρος}). + + + +\section{PDF strings} + +With \emph{textalpha} and +\emph{\href{http://www.ctan.org/pkg/greek-inputenc}{greek-inputenc}}, there +are two options to get Greek letters in PDF strings: LICR macros and literal +Unicode input. + +\subsection{\textlambda\textomicron\textgamma\textomicron\textvarsigma{}, + λογος and \ensuregreek{logos}} + +The subsection title above uses: LICR macros, Unicode input and the LGR +transcription for the Greek word \ensuregreek{logos}. Check the table of +contents in the PDF viewer: LICR macros and Unicode literals work fine, the +Latin transcription remains Latin in the PDF metadata. + + +\section{Limitations} + +Because the internal font encoding switch interferes with other work behind +the scenes, kerning, diacritics and up/down-casing show problems if Greek +letters are used without explicit change of the font encoding. These +problems can be avoided by use of \emph{babel} and the correct language +setting (greek) or an explicit font encoding switch (e.g. +wrapping the Greek text in \verb|\ensuregreek|% +\footnote{The \texttt{\textbackslash ensuregreek} macro ensures the argument +is set in a font encoding supporting Greek. This can be used to fix these +problems without adverse side-effects if the active font encoding is already +LGR.}). + +\subsection{Diacritics} + +Composition of diacritics (like \verb|\accdasia\acctonos|) fails in other +font encodings. Long names (like \verb|\accdasiaoxia|) work, however they do +not select pre-composed characters. With LGR, pre-composed glyphs are chosen +if available (the difference becomes obvious if you drag-and-drop text from +the PDF version of this document): +% +\ensuregreek{\<'a \accdasia\acctonos a \accdasiaoxia a +\accdasiaoxia\textalpha} (LGR) vs. \accdasiaoxia\textalpha{} (T1). + +According to Greek typographical tradition, diacritics (except the +dialytika) are placed before capital letters in titlecase and dropped in +all-caps: +% +\begin{quote} + \ensuregreek{% + \<{\textalpha} \>{\textepsilon} \"'{\textiota} \`>\texteta{} + \'<{\textomicron} \~<{\textupsilon} \~>{\textomega} + \\ + \<{\textAlpha} \>{\textEpsilon} \"{\textIota} \`>\textEta{} + \'<{\textOmicron} \~<{\textUpsilon} \~>{\textOmega} + \\ + \MakeUppercase{% + \<{\textalpha} \>{\textepsilon} \"'{\textiota} \`\>\texteta{} + \'<{\textomicron} \~<{\textupsilon} \~>{\textomega}. + } + } +\end{quote} +% +This fails if the active font encoding is not LGR: +\ensuregreek{\'\textAlpha} (LGR) vs. \'\textAlpha (T1). +To overcome this, the \verb|\ensuregreek| macro is used in composite Unicode +character definitions: \ensuregreek{Ά} (LGR) = Ά (T1). + + +The dialytika marks a \emph{hiatus} (break-up of a diphthong). It must be +present in UPPERCASE even where it is redundant in lowercase (the hiatus can +also be marked by an accent on the first character of a diphthong). The +auto-hiatus feature works in LGR font encoding only: +\acctonos\textalpha\textupsilon{}, \acctonos\textepsilon\textiota{} $\mapsto$ +\MakeUppercase{\ensuregreek{ + \acctonos\textalpha\textupsilon{}, \acctonos\textepsilon\textiota{} +}} vs. +\MakeUppercase{ + \acctonos\textalpha\textupsilon{}, \acctonos\textepsilon\textiota{}% +}. + +Currently, the second vowel of the diphthong must be given as macro, not +Unicode literal if the auto-hiatus feature should work: +\ensuregreek{ἀ\textupsilon{}πνία} $\mapsto$ +\ensuregreek{\MakeUppercase{\ensuregreek{ἀ\textupsilon{}πνία}}} vs. +\ensuregreek{\MakeUppercase{\ensuregreek{ἀυπνία}}}. + +\subsection{Kerning} + +No kerning occurs between Greek characters in non-Greek text due to the +internal font encoding switch: compare +\ensuregreek{\textAlpha\textUpsilon\textAlpha} (LGR) to +\textAlpha\textUpsilon\textAlpha (T1). + +\end{document} diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/textalpha.sty.html b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha.sty.html new file mode 100644 index 00000000000..49876aeabe7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/greek-fontenc/textalpha.sty.html @@ -0,0 +1,358 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" /> +<title>textalpha: Greek symbols in text</title> +<meta name="copyright" content="© 2010 Günter Milde" /> +<link rel="stylesheet" href="../../../../../Python/docutils-svn/docutils/docutils/writers/html4strict/html4css1.css" type="text/css" /> +<link rel="stylesheet" href="../../../../../Python/docutils-svn/docutils/docutils/writers/html4strict/html4css2.css" type="text/css" /> +</head> +<body> +<div class="document" id="textalpha-greek-symbols-in-text"> +<h1 class="title">textalpha: Greek symbols in text</h1> + +<dl class="docinfo"> +<dt class="copyright">Copyright</dt> +<dd class="copyright">© 2010 Günter Milde</dd> +<dt>Licence</dt> +<dd><p>This work may be distributed and/or modified under the +conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either +version 1.3 of this license or any later version.</p> +</dd> +<dt>Identification</dt> +<dd><pre class="literal-block">\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{textalpha} +[2013/09/11 v0.5 macros for Greek letters in text] +</pre> +</dd> +</dl> +<div class="abstract topic"> +<p class="topic-title first">Abstract</p> +<p>Provide a set of <tt class="literal">\text*</tt> macros for Greek letters +outside math.</p> +</div> +<div class="note"> +<p class="admonition-title">Note</p> +<p>The package was renamed from <cite>textgreek</cite> to <cite>textalpha</cite> to prevent +confusion with the <a class="reference external" href="http://www.ctan.org/pkg/textgreek">textgreek</a> package by Leonard Michlmayr.</p> +</div> +<dl class="docutils"> +<dt>Changelog:</dt> +<dd><table class="borderless"> +<colgroup> +<col width="14%" /> +<col width="7%" /> +<col width="79%" /> +</colgroup> +<tbody> +<tr><td><p>2010-06-16</p></td> +<td><p>0.1</p></td> +<td><p>initial version</p></td> +</tr> +<tr><td><p>2012-06-27</p></td> +<td><p>0.2</p></td> +<td><p>support for compound Unicode definitions outside LGR</p></td> +</tr> +<tr><td><p>2013-05-03</p></td> +<td><p>0.3</p></td> +<td><p>new accent macro names with <tt class="literal">lgrxenc.def</tt> 0.7</p></td> +</tr> +<tr><td><p>2013-05-28</p></td> +<td><p>0.4</p></td> +<td><p>use <tt class="literal">lgrenc.def</tt> from greek-fontenc.</p></td> +</tr> +<tr><td><p>2013-09-11</p></td> +<td><p>0.5</p></td> +<td><p>move to <a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a>,</p></td> +</tr> +<tr><td><!-- --> +</td> +<td> </td> +<td><p>support XeTeX/LuaTeX, add breve below accents.</p></td> +</tr> +</tbody> +</table> +</dd> +</dl> +<div class="section" id="motivation"> +<h1>Motivation</h1> +<p>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 (<tt class="literal">\textalpha</tt> – <tt class="literal">\textOmega</tt>).</p> +<p>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 +<tt class="literal">\ifdefined</tt> command provided by the <a class="reference external" href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=etex">e-TeX</a> extension) and does “the right +thing” to set up Greek text font support for the detected engine.</p> +<p>For 8-bit TeX, this package also declares the LGR font encoding as default +for Greek LICR macros (cf. <a class="reference external" href="http://www.ctan.org/tex-archive/macros/latex/doc/fntguide.pdf">fntguide</a> section 5.3):</p> +<ul class="simple"> +<li><p>Symbols from a Greek text font (e.g. the <a class="reference external" href="http://www.ctan.org/pkg/cbgreek-complete">CB fonts</a>) can be accessed +without the need for an explicite font-encoding switch.</p></li> +<li><p>In combination with <tt class="literal"><span class="pre">\usepackage[utf8]{inputenc}</span></tt> and <tt class="literal">lgrenc.dfu</tt> +from <a class="reference external" href="http://www.ctan.org/pkg/greek-inputenc">greek-inputenc</a>, Unicode input of Greek characters is supported in +any font encoding.</p></li> +</ul> +<div class="attention"> +<p class="admonition-title">Attention!</p> +<p>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.</p> +<p>Therefore, Greek text should be written with the help of <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a> or +<a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> (setting the language to <tt class="literal">greek</tt>) or wrapped in the +provided <tt class="literal">ensuregreek</tt> macro. Using <a class="reference external" href="http://www.ctan.org/pkg/babel">babel</a> or <a class="reference external" href="http://www.ctan.org/pkg/polyglossia">polyglossia</a> also helps +to ensure proper hyphenation.</p> +</div> +</div> +<div class="section" id="usage"> +<h1>Usage</h1> +<pre class="code latex literal-block"><span class="keyword">\usepackage</span><span class="name builtin">{</span>textalpha<span class="name builtin">}</span> +</pre> +<p>For details see <a class="reference external" href="textalpha-test.tex">textalpha-test.tex</a> and <a class="reference external" href="textalpha-test.pdf">textalpha-test.pdf</a> (8-bit +TeX) as well as <a class="reference external" href="test-euenc.tex">test-euenc.tex</a> and <a class="reference external" href="test-euenc.pdf">test-euenc.pdf</a> (XeTeX/LuaTeX).</p> +</div> +<div class="section" id="implementation"> +<h1>Implementation</h1> +<div class="section" id="requirements"> +<h2>Requirements</h2> +<p>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 <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> +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 <a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a>.</p> +<div class="section" id="xetex"> +<h3>XeTeX</h3> +<p>Use the EU1 font encoding. This is the only font encoding used with XeTeX, +so loading it with <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a> cannot mix up the default font encoding:</p> +<pre class="literal-block">\ifdefined\XeTeXrevision + \usepackage[EU1]{fontenc} +</pre> +<p>Load the Greek LICR definitions for XeTeX/LuaTeX. In an ideal world, this +should be done in the eu1enc.def file of the <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> package.</p> +<p>Before that, we must ensure EU1 is the <tt class="literal">\LastDeclaredEncoding</tt>: Beacause +fontenc loads font encoding definition files only once, it may happen that +another font encoding is defined after EU1 — for example <a class="reference external" href="http://www.ctan.org/pkg/fontspec">fontspec</a> +declares EU1 but leaves <tt class="literal">\LastDeclaredEncoding</tt> at <tt class="literal">T3</tt> (tipa), because +it later inputs the <a class="reference external" href="http://www.ctan.org/pkg/xunicode">xunicode</a> package which in turn loads <tt class="literal">t3enc.def</tt>.</p> +<pre class="literal-block">\renewcommand{\LastDeclaredEncoding}{EU1} +\input{greek-euenc.def} +</pre> +<p>No other action is required with Unicode-aware TeX engines:</p> +<pre class="literal-block"> \expandafter\endinput % "return" +\fi +</pre> +</div> +<div class="section" id="luatex"> +<h3>LuaTeX</h3> +<p>Similar actions to XeTeX, but use the font encoding EU2:<a class="footnote-reference" href="#eu" id="id1"><sup>1</sup></a></p> +<pre class="literal-block">\ifdefined\luatexversion + \usepackage[EU2]{fontenc} + \renewcommand{\LastDeclaredEncoding}{EU2} + \input{greek-euenc.def} + \expandafter\endinput % "return" +\fi +</pre> +<dl class="footnote"><dt class="label"><a class="fn-backref" href="#id1">1</a></dt> +<dd id="eu"> +<p class="first last">The two different (pseudo) font encodings allow different font setups for +XeTeX vs. LuaTeX using differently named <tt class="literal">*.fd</tt> files (see <a class="reference external" href="http://www.ctan.org/pkg/euenc">euenc</a> for +details).</p> +</dd> +</dl> +</div> +<div class="section" id="bit-tex"> +<h3>8-bit TeX</h3> +<p>With 8-bit TeX, you usually pass the font encoding name(s) as option to +<a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a> which then loads the corresponding <tt class="literal">*.def</tt> file(s). The last +option indicates the document’s default font encoding. (See <a class="citation-reference" href="#" id="id2">[fntguide]</a> for +details and <a class="reference external" href="lgrenc-test.tex">lgrenc-test.tex</a> for an example.) Therefore, we do not know +the documents main font encoding and hence cannot use +<tt class="literal"><span class="pre">\usepackage[LGR]{inputenc}</span></tt>. We load <tt class="literal">lgrenc.def</tt> directly, if it is +not already done and re-set <tt class="literal">\LastDeclaredEncoding</tt> else.</p> +<div class="note"> +<p class="admonition-title">Note</p> +<p>The use of <tt class="literal">\@ifundefined</tt> has the side-effect that the tested +macro becomes defined and set to <tt class="literal">\relax</tt> (polluting the namespace and +interfering with tests via eTeX’s <tt class="literal">\ifdefined</tt>). However, in this case +no harm is done as the macro is defined by <tt class="literal">lgrenc.def</tt> anyway.</p> +</div> +<pre class="literal-block">\@ifundefined{ver@lgrenc.def} + {\input{lgrenc.def}} + {\renewcommand{\LastDeclaredEncoding}{EU1}} +</pre> +</div> +</div> +<div class="section" id="default-declarations"> +<h2>Default declarations</h2> +<p>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.</p> +<div class="section" id="ensuregreek"> +<h3>ensuregreek</h3> +<p>The <tt class="literal">\ensuregreek</tt> 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:</p> +<pre class="literal-block">\DeclareTextCommandDefault{\ensuregreek}[1]{{\fontencoding{LGR}\selectfont #1}} +</pre> +<!-- The [fntguide_] writes + + Note that ``\DeclareTextAccentDefault`` can be used on any + one-argument encoding-specific command, not just those defined with + ``\DeclareTextAccent``. + +However, the simpler alternative +``\DeclareTextAccentDefault{\ensuregreek}{LGR}`` fails with the table of +Unicode characters in the test document `<textalpha-test.tex>`__: + + ``! You can't use a prefix with `end-group character }'.`` --> +<p>Eventually, all font encodings supporting Greek script (e.g. LGI, PU, EU1, +EU2) will declare <tt class="literal">\ensuregreek</tt> as text command that passes the argument +unchanged. This way, kerning and selection of precomposed glyphs would work +also for cases like <tt class="literal"><span class="pre">\ensuregreek{\'A}U</span></tt>.</p> +<!-- Do this for PU here? ``\DeclareTextCommand{\ensuregreek}{PU}[1]{#1}`` + +Can lead to infinite recursion (``TeX capacity exeeded``) without the +``unicode=true`` hyperref option. +(How about a test whether the PU font encoding is defined?). --> +</div> +<div class="section" id="greek-alphabet"> +<h3>Greek Alphabet</h3> +<p>Define the <tt class="literal">text*</tt> marcos as default for all font encodings:</p> +<pre class="literal-block">\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} +</pre> +<div class="section" id="additional-greek-symbols"> +<h4>Additional Greek symbols</h4> +<p>Including alias names for compatibility with hyperref’s puenc.def.</p> +<p>Ancient Greek Numbers (Athenian Numerals):</p> +<pre class="literal-block">\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 +</pre> +<p>Archaic letters:</p> +<pre class="literal-block">\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) +</pre> +<p>numeral signs: <a class="reference external" href="http://en.wikipedia.org/wiki/Greek_numerals">http://en.wikipedia.org/wiki/Greek_numerals</a></p> +<pre class="literal-block">\DeclareTextSymbolDefault{\textnumeralsigngreek}{LGR} % (puenc.def) +\DeclareTextSymbolDefault{\textnumeralsignlowergreek}{LGR} % (puenc.def) +</pre> +</div> +</div> +<div class="section" id="diacritics"> +<h3>Diacritics</h3> +<p>Greek diacritics via “named” macros:</p> +<pre class="literal-block">\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} +</pre> +<p>Postfix accents:</p> +<pre class="literal-block">\DeclareTextSymbolDefault{\ypogegrammeni}{LGR} % "small" sub-iota +\DeclareTextSymbolDefault{\prosgegrammeni}{LGR} % "capital" sub-iota +</pre> +<p>Other accents in LGR:</p> +<pre class="literal-block">\DeclareTextAccentDefault{\accinvertedbrevebelow}{LGR} % INVERTED BREVE BELOW +\DeclareTextAccentDefault{\textsubarch}{LGR} % tipa, Teubner name: ut +\DeclareTextAccentDefault{\accbrevebelow}{LGR} % BREVE BELOW +</pre> +</div> +<div class="section" id="auxiliary-macros"> +<h3>Auxiliary macros</h3> +<p><tt class="literal">\MakeUppercase</tt> requires two internal commands:</p> +<pre class="literal-block">\DeclareTextAccentDefault{\LGR@hiatus}{LGR} +\DeclareTextAccentDefault{\LGR@Dialytika}{LGR} +</pre> +<!-- References +- - - - - - - - - - --> +</div> +</div> +</div> +</div> +</body> +</html> diff --git a/Master/texmf-dist/tex/latex/greek-fontenc/alphabeta-euenc.def b/Master/texmf-dist/tex/latex/greek-fontenc/alphabeta-euenc.def new file mode 100644 index 00000000000..0c3bbe5507d --- /dev/null +++ b/Master/texmf-dist/tex/latex/greek-fontenc/alphabeta-euenc.def @@ -0,0 +1,339 @@ +% alphabeta-euenc.def: Composite definitions for XeTeX and LuaTeX +% *************************************************************** +% +% :Copyright: © 2013 Günter Milde +% :Licence: 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. +% :Identification: +% :: + +\ProvidesFile{alphabeta-euenc} +[2013/07/24 0.1.3 Composite definitions for XeTeX and LuaTeX] + +% Domposite definitions for ``alphabeta.sty`` with XeTeX and LuaTeX. +% +% Changelog: +% .. class:: borderless +% +% ========== ===== ========================================================= +% 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 +% +% Greek and Coptic +% ~~~~~~~~~~~~~~~~ +% :: + +\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}{ώ} + + +% Greek Extended +% ~~~~~~~~~~~~~~ +% :: + +\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}{ῼ} + + +% .. References +% +% .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt +% .. _alphabeta: http://www.ctan.org/pkg/lgrx diff --git a/Master/texmf-dist/tex/latex/greek-fontenc/alphabeta.sty b/Master/texmf-dist/tex/latex/greek-fontenc/alphabeta.sty new file mode 100644 index 00000000000..c76e60f0ae0 --- /dev/null +++ b/Master/texmf-dist/tex/latex/greek-fontenc/alphabeta.sty @@ -0,0 +1,458 @@ +% alphabeta: Greek symbols in text and math +% ***************************************** +% +% :Copyright: © 2010 Günter Milde +% :Licence: 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. +% +% :Abstract: Use ``\alpha, \beta, ...`` for Greek letters in text and math +% mode. +% +% :Identification: +% :: + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{alphabeta} +[2013/09/11 v0.4 macros for Greek letters in text and math] + +% Changelog: +% .. class:: borderless +% +% ========== ===== ========================================================= +% 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. +% ========== ===== ========================================================= +% +% Motivation +% ========== +% +% 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. +% +% +% Usage +% ===== +% +% .. code:: latex +% +% \usepackage{alphabeta} +% +% For details see `<alphabeta-test.tex>`_ and `<alphabeta-test.pdf>`_. +% +% +% Implementation +% ============== +% +% Requirements +% ------------ +% +% This package extends the `textalpha <textalpha.sty.html>`_ 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} + + +% Postpone the re-definitions +% --------------------------- +% +% To prevent other packages overwriting the re-defined commands we postpone +% the next steps until the start of the document body:: + +\AtBeginDocument{ + +% Save math macros +% ---------------- +% +% 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 + + +% Commands to access Greek letters by name +% ---------------------------------------- +% +% 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}} + + +% Archaic letters +% ''''''''''''''' +% +% :: + +\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} % ϡ + + +% TextCompositeCommands for the generic macros +% -------------------------------------------- +% +% 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} + \expandafter\endinput % "return" +\fi +\ifdefined\luatexversion + \input{alphabeta-euenc.def} + \expandafter\endinput % "return" +\fi + +% No other action is required with Unicode-aware TeX engines. +% +% Composite commands for 8-bit TeX:: + + +\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} + + +% Re-definition for Greek Unicode input in math mode +% -------------------------------------------------- +% +% 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 + +% .. References +% ---------- +% .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt +% .. _CB Fonts: http://www.ctan.org/pkg/cbgreek-complete +% .. _babel: http://www.ctan.org/cgi-bin/ctanPackageInformation.py?id=babel +% .. _e-TeX: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=etex +% .. _greek-fontenc: http://www.ctan.org/pkg/greek-fontenc +% .. _greek-inputenc: http://www.ctan.org/pkg/greek-inputenc +% .. _inputenc: http://www.ctan.org/pkg/inputenc +% .. _fixltx2e: http://www.ctan.org/pkg/fixltx2e +% .. _polyglossia: http://www.ctan.org/pkg/polyglossia diff --git a/Master/texmf-dist/tex/latex/greek-fontenc/greek-euenc.def b/Master/texmf-dist/tex/latex/greek-fontenc/greek-euenc.def index 54875983470..76c710e55cb 100644 --- a/Master/texmf-dist/tex/latex/greek-fontenc/greek-euenc.def +++ b/Master/texmf-dist/tex/latex/greek-fontenc/greek-euenc.def @@ -1,6 +1,6 @@ % greek-euenc.def: Greek LICR definitions for XeTeX and LuaTeX % *************************************************************** -% +% % :Copyright: © 2013 Günter Milde % :Licence: This work may be distributed and/or modified under the % conditions of the `LaTeX Project Public License`_, either @@ -13,10 +13,10 @@ % Experimental support for Greek LICR macros with XeTeX and LuaTeX. % Based on `lgrenc.def` and `lgrenc.dfu`. -% +% % Changelog: % .. class:: borderless -% +% % ========== ===== ========================================================= % 2013-07-16 0.1 initial version % 2013-07-18 0.1.1 bugfix: wrong breathings psilioxia -> dasiaoxia @@ -24,32 +24,32 @@ % .. fix "hiatus" handling. % 2013-07-24 0.1.3 fix "input" path. % ========== ===== ========================================================= -% +% % Requires XeTeX or LuaTeX and a font with Greek characters. See % `<test-euenc.tex>`_ and `<test-euenc.pdf>`_ for usage details and % example. -% +% % `xunicode.sty` defines several commands for the declaration of UTF % characters, composites and accents. These are (sparsely) documented in the % source. Unfortunately, they do not work seamless with the standard NFSS % commands described in the fntguide. -% +% % This file sets up LaTeX Internal Character Representaction (LICR) macros % based on standard LaTeX commands. It should work independed of `xunicode`. % (Currently, it only works if `fontspec` is loaded. TODO: Why?) -% -% +% +% % Greek Diacritics % ================ -% +% % Define "named macros" for simple and combined diacritics. -% +% % * Named accent macros can be used instead of the ``\@tabacckludge`` by % to-LaTeX converters to ensure working also inside the tabbing environment. -% +% % * Named macros are required for upcasing according to Greek typesetting % conventions and in the definition of composite commands. -% +% % Greek alias names for standard accents:: \DeclareTextCommand{\acctonos}{\LastDeclaredEncoding}{\@tabacckludge'} @@ -58,7 +58,7 @@ \DeclareTextCommand{\accperispomeni}{\LastDeclaredEncoding}{\@tabacckludge~} % Breathings: -% +% % (The COMBINING GREEK KORONIS is a legacy character, discarded in favour of % COMBINING COMMA ABOVE) :: @@ -75,7 +75,7 @@ % \DeclareTextAccentCombined{\accypogegrammeni}{\LastDeclaredEncoding}{0837} % Sub-iota: -% +% % ``\ypogegrammeni`` is a postfix accent (ligature in LGR) :: \DeclareTextSymbol{\ypogegrammeni}{\LastDeclaredEncoding}{0837} % COMBINING GREEK YPOGEGRAMMENI @@ -98,7 +98,7 @@ % Composite Diacritics % ==================== -% +% % Use the `common Greek font encoding definitions`_:: \input{greek-fontenc.def} @@ -106,14 +106,14 @@ % Character Definitions % ===================== -% -% +% +% % \DeclareTextSymbol{\textcompwordmark}{\LastDeclaredEncoding}{8204} -% -% +% +% % Greek and Coptic % ~~~~~~~~~~~~~~~~ -% +% % :: % NR Unicode Name % babel name, % PU name @@ -520,10 +520,10 @@ % ~~~~~~~~~~~~~~~~~~~~~ % TODO: map other chars to corresponding Greek letters. % See also the grnumalt_ package. -% +% % Definition with literal Unicode characters, because the code-point has 5 % hexadecimal digits: -% +% % :: \DeclareTextCommand{\textpentedeka}{\LastDeclaredEncoding}{𐅄} % GREEK ACROPHONIC ATTIC FIFTY @@ -534,19 +534,19 @@ % UPPERCASE % ~~~~~~~~~ -% +% % The `common Greek font encoding definitions`_ in ``greek-fontenc.def`` extend % the `uclclist` with Greek LICR macros. Here, we add EU1 specific "hiatus" % handling. -% +% % Mark hiatus % """"""""""" -% +% % Tonos and dasia mark a hiatus if placed on the % first vowel of a diphthong (ΑΙ, ΑΥ, ΕΙ). A dialytika must be placed on the % second vowel if they are dropped (άυλος → ΑΫΛΟΣ, μάινα → ΜΑΪΝΑ, κέικ → ΚΕΪΚ, % ἀυπνία → ΑΫΠΝΙΑ). -% +% % Look ahead and place a diaeresis on Ι or Υ % (copied from lgrenc.def and changed Latin transcription to Unicode literals):: @@ -571,10 +571,10 @@ } % .. References -% +% % .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt % .. _inputenc: http://www.ctan.org/pkg/inputenc % .. _greek-fontenc: http://www.ctan.org/pkg/greek-fontenc % .. _grnumalt: http://www.ctan.org/pkg/grnumalt -% +% % .. _common Greek font encoding definitions: greek-fontenc.def.html diff --git a/Master/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.sty b/Master/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.sty deleted file mode 100644 index 6f8646d7936..00000000000 --- a/Master/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.sty +++ /dev/null @@ -1,100 +0,0 @@ -% greek-fontenc: Greek text font encoding setup -% ********************************************* -% -% :Copyright: © 2013 Günter Milde -% :Licence: 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. -% -% :Abstract: This package sets up a suitable font encoding and Greek LICR -% definitions depending on the used TeX engine. -% -% -% :Identification: -% :: - -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{greek-fontenc} -[2013/09/10 v0.1 Greek text font encoding setup] - - -% Motivation -% ========== -% -% 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. -% -% XeTeX -% ===== -% -% * 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} - -% LuaTeX -% ====== -% -% 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} - -% 8-bit TeX -% ========= -% -% 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 - - -% References -% ========== -% -% .. [fntguide] LaTeX3 Project Team, `LaTeX 2ε font selection`, 2005. -% http://mirror.ctan.org/macros/latex/doc/fntguide.pdf -% -% .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt -% .. _euenc: http://www.ctan.org/pkg/euenc -% .. _fontenc: http://www.ctan.org/pkg/fontenc -% .. _xunicode: http://www.ctan.org/pkg/xunicode -% -% diff --git a/Master/texmf-dist/tex/latex/greek-fontenc/textalpha.sty b/Master/texmf-dist/tex/latex/greek-fontenc/textalpha.sty new file mode 100644 index 00000000000..dcac9f746b6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/greek-fontenc/textalpha.sty @@ -0,0 +1,359 @@ +% textalpha: Greek symbols in text +% ******************************** +% +% :Copyright: © 2010 Günter Milde +% :Licence: 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. +% +% :Abstract: Provide a set of ``\text*`` macros for Greek letters +% outside math. +% +% :Identification: +% :: + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{textalpha} +[2013/09/11 v0.5 macros for Greek letters in text] + +% .. note:: +% +% The package was renamed from `textgreek` to `textalpha` to prevent +% confusion with the textgreek_ package by Leonard Michlmayr. +% +% +% Changelog: +% .. class:: borderless +% +% ========== ===== ========================================================= +% 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. +% ========== ===== ========================================================= +% +% Motivation +% ========== +% +% 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. +% +% +% Usage +% ===== +% +% .. code:: latex +% +% \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). +% +% +% Implementation +% ============== +% +% +% Requirements +% ------------ +% +% 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_. +% +% XeTeX +% """"" +% +% 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 + + +% LuaTeX +% """""" +% +% Similar actions to XeTeX, but use the font encoding EU2: [#EU]_ :: + +\ifdefined\luatexversion + \usepackage[EU2]{fontenc} + \renewcommand{\LastDeclaredEncoding}{EU2} + \input{greek-euenc.def} + \expandafter\endinput % "return" +\fi + +% .. [#EU] The two different (pseudo) font encodings allow different font setups for +% XeTeX vs. LuaTeX using differently named ``*.fd`` files (see euenc_ for +% details). +% +% +% 8-bit TeX +% """"""""" +% +% 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}} + + +% Default declarations +% -------------------- +% +% 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. +% +% ensuregreek +% """"""""""" +% +% 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}} + +% .. The [fntguide_] writes +% +% Note that ``\DeclareTextAccentDefault`` can be used on any +% one-argument encoding-specific command, not just those defined with +% ``\DeclareTextAccent``. +% +% However, the simpler alternative +% ``\DeclareTextAccentDefault{\ensuregreek}{LGR}`` fails with the table of +% Unicode characters in the test document `<textalpha-test.tex>`__: +% +% ``! You can't use a prefix with `end-group character }'.`` +% +% 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``. +% +% .. Do this for PU here? ``\DeclareTextCommand{\ensuregreek}{PU}[1]{#1}`` +% +% Can lead to infinite recursion (``TeX capacity exeeded``) without the +% ``unicode=true`` hyperref option. +% (How about a test whether the PU font encoding is defined?). +% +% +% Greek Alphabet +% """""""""""""" +% +% 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} + +% Additional Greek symbols +% '''''''''''''''''''''''' +% +% 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) + +% Diacritics +% """""""""" +% +% 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 + + +% Auxiliary macros +% """""""""""""""" +% +% ``\MakeUppercase`` requires two internal commands:: + +\DeclareTextAccentDefault{\LGR@hiatus}{LGR} +\DeclareTextAccentDefault{\LGR@Dialytika}{LGR} + + +% .. References +% ---------- +% .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt +% .. _CB fonts: http://www.ctan.org/pkg/cbgreek-complete +% .. _babel: http://www.ctan.org/pkg/babel +% .. _euenc: http://www.ctan.org/pkg/euenc +% .. _e-TeX: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=etex +% .. _fontenc: http://www.ctan.org/pkg/fontenc +% .. _fontspec: http://www.ctan.org/pkg/fontspec +% .. _fntguide: http://www.ctan.org/tex-archive/macros/latex/doc/fntguide.pdf +% .. _greek-fontenc: http://www.ctan.org/pkg/greek-fontenc +% .. _greek-inputenc: http://www.ctan.org/pkg/greek-inputenc +% .. _polyglossia: http://www.ctan.org/pkg/polyglossia +% .. _textgreek: http://www.ctan.org/pkg/textgreek +% .. _xunicode: http://www.ctan.org/pkg/xunicode |