summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lgrx/textalpha.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lgrx/textalpha.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lgrx/textalpha.sty205
1 files changed, 83 insertions, 122 deletions
diff --git a/Master/texmf-dist/tex/latex/lgrx/textalpha.sty b/Master/texmf-dist/tex/latex/lgrx/textalpha.sty
index be762209959..11d8a1f5dc2 100644
--- a/Master/texmf-dist/tex/latex/lgrx/textalpha.sty
+++ b/Master/texmf-dist/tex/latex/lgrx/textalpha.sty
@@ -1,88 +1,82 @@
% 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/05/03 v0.3 macros for Greek letters in text]
+[2013/05/28 v0.4 macros for Greek letters in text]
% This package is part of the lgrx_ bundle.
-%
+%
% .. 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-03 0.3 new accent macro names with ``lgrxenc.def`` 0.7
+% 2013-05-28 0.4 use ``lgrenc.def`` from greek-fontenc
% ========== ===== =========================================================
-%
+%
% Motivation
% ==========
-%
-% By default, TeX macros for Greek letters
-%
-% * are only valid in mathematical mode,
-% * do not change shape (default shape is italic).
-%
-% In Greek text fonts with the LGR font encoding, letters are accessible by a
-% Latin transcription or, with lgrx_, ``\textalpha`` -- ``\textOmega``
-% LICR macros.
-%
-% This package declares the LGR font encoding as default for Greek LICR
-% macros. After loading it, symbols from a Greek text font (e.g. the `CB
-% fonts`_) can be accessed without the need for an explicite font-encoding
-% switch.
-%
+%
+% By default, TeX macros for Greek letters are only valid in mathematical
+% mode. This package declares the LGR font encoding as default for Greek LICR
+% macros (``\textalpha`` -- ``\textOmega``).
+%
+% * 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.
+%
% * In combination with the ``\text`` macro from amsmath, this can be used to
% get matching upright and bold upright Greek symbols in math mode.
-%
-% * In combination with ``\usepackage[utf8]{inputenc}`` and the accompanying
-% ``lgrenc.dfu`` file, Unicode input of Greek characters is supported.
-%
+%
% Attention
-% While the font-encoding independent macros work reasonably well for single
-% symbols, the automatic font-encoding switches behind the doors interferes
-% with the kerning between letters and replacement of accent+character
-% with a pre-composed character.
-%
-% Therefore, Greek text should be written with the help of babel_, setting
-% the language to either ``greek`` or ``polutonikogreek`` or wrapped in the
-% provided ``\ensuregreek`` macro.
-%
+% The macros work well in any font encoding for single symbols.
+%
+% However, 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_, setting the language to ``greek`` or wrapped in the
+% provided ensuregreek_ macro.
+%
% The package uses NFSS default definitions as explained in the fntguide_
% (section 5.3).
-%
-%
+%
+%
% Implementation
% ==============
-%
+%
% Requirements
% ------------
-%
-% This package requires the extended font encoding definitions ::
+%
+% This package requires the font encoding definitions from greek-fontenc_::
-\input{lgrxenc.def}
+\input{lgrenc.def}
% 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::
@@ -90,37 +84,32 @@
\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?).
-%
-% Backwards compatibility definition: versions < 0.3 used the macro
-% name ``\TextGreek``::
-
-\DeclareTextCommandDefault{\TextGreek}[1]{{\fontencoding{LGR}\selectfont #1}}
-
-
+%
+%
% Greek Alphabet
% --------------
-%
+%
% Define the ``text*`` marcos as default for all font encodings::
\DeclareTextSymbolDefault{\textAlpha}{LGR}
@@ -178,56 +167,47 @@
% Additional Greek symbols
% """"""""""""""""""""""""
-%
-% Including alias names for compatibility with hyperref's puenc.def and babel's
-% greek.ldf.
-%
+%
+% Including alias names for compatibility with hyperref's puenc.def.
+%
% Ancient Greek Numbers (Athenian Numerals)::
-\DeclareTextSymbolDefault{\PiDelta}{LGR} % GREEK ACROPHONIC ATTIC FIFTY
-\DeclareTextSymbolDefault{\PiEta}{LGR} % GREEK ACROPHONIC ATTIC FIVE HUNDRED
-\DeclareTextSymbolDefault{\PiChi}{LGR} % GREEK ACROPHONIC ATTIC FIVE THOUSAND
-\DeclareTextSymbolDefault{\PiMu}{LGR} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
-% \DeclareTextSymbolDefault{\pentedeka}{LGR} % GREEK ACROPHONIC ATTIC FIFTY
-% \DeclareTextSymbolDefault{\pentehekaton}{LGR} % GREEK ACROPHONIC ATTIC FIVE HUNDRED
-% \DeclareTextSymbolDefault{\penteqilioi}{LGR} % GREEK ACROPHONIC ATTIC FIVE THOUSAND
-% \DeclareTextSymbolDefault{\pentemurioi}{LGR} % GREEK ACROPHONIC ATTIC FIFTY THOUSAND
+\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{\stigma}{LGR} % ϛ
+\DeclareTextSymbolDefault{\textstigma}{LGR} % ϛ
\DeclareTextSymbolDefault{\textstigmagreek}{LGR} % ϛ (puenc.def)
-\DeclareTextSymbolDefault{\varstigma}{LGR} % stigma variant (CB.enc, teubner)
-% \DeclareTextSymbolDefault{\vardigamma}{LGR} % digamma variant (greek.ldf)
-\DeclareTextSymbolDefault{\koppa}{LGR} % ϟ (greek small letter koppa)
+\DeclareTextSymbolDefault{\textvarstigma}{LGR} % stigma variant
+\DeclareTextSymbolDefault{\textkoppa}{LGR} % ϟ (greek small letter koppa)
\DeclareTextSymbolDefault{\textkoppagreek}{LGR} % ϟ (puenc.def)
-\DeclareTextSymbolDefault{\qoppa}{LGR} % ϙ (archaic koppa)
-\DeclareTextSymbolDefault{\Qoppa}{LGR} % Ϙ (archaic Koppa)
-\DeclareTextSymbolDefault{\Stigma}{LGR} % ϹΤ ligature (teubner)
-\DeclareTextSymbolDefault{\textStigmagreek}{LGR} % ϹΤ ligature (puenc.def)
-\DeclareTextSymbolDefault{\Sampi}{LGR} % Ϡ
+\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{\sampi}{LGR} % ϡ
+\DeclareTextSymbolDefault{\textsampi}{LGR} % ϡ
\DeclareTextSymbolDefault{\textsampigreek}{LGR} % ϡ (puenc.def)
-\DeclareTextSymbolDefault{\anoteleia}{LGR} % ·
-\DeclareTextSymbolDefault{\erotimatiko}{LGR} % ;
-% \digamma used by amsmath!
-\DeclareTextSymbolDefault{\textdigamma}{LGR} % ϝ (LGRx)
-\DeclareTextSymbolDefault{\textDigamma}{LGR} % Ϝ
-\DeclareTextSymbolDefault{\ddigamma}{LGR} % ϝ (greek.ldf)
-\DeclareTextSymbolDefault{\Digamma}{LGR} % Ϝ
+\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{\anwtonos}{LGR} % ʹ (Dexia keraia)
-\DeclareTextSymbolDefault{\katwtonos}{LGR} % ͵ (Aristeri keraia)
+% numeral signs: http://en.wikipedia.org/wiki/Greek_numerals ::
+
\DeclareTextSymbolDefault{\textnumeralsigngreek}{LGR} % (puenc.def)
\DeclareTextSymbolDefault{\textnumeralsignlowergreek}{LGR} % (puenc.def)
% Diacritics
% ----------
-%
-% Diacritics are defined via "named" macros in ``lgrxenc.def``. Make them
-% default in any encoding::
+%
+% Greek diacritics via "named" macros::
\DeclareTextAccentDefault{\accdasia}{LGR}
\DeclareTextAccentDefault{\accpsili}{LGR}
@@ -255,39 +235,20 @@
% Auxiliary macros
% ----------------
-%
+%
% ``\MakeUppercase`` requires two internal commands::
-\DeclareTextAccentDefault{\@hiatus}{LGR}
-\DeclareTextAccentDefault{\@Dialytika}{LGR}
-
-% Backwards compatibility with LGRx versions < 0.7::
-
-\DeclareTextSymbolDefault{\Ypogegrammeni}{LGR}
-\DeclareTextSymbolDefault{\Prosgegrammeni}{LGR}
-\DeclareTextAccentDefault{\Dasia}{LGR}
-\DeclareTextAccentDefault{\Psili}{LGR}
-\DeclareTextAccentDefault{\Tonos}{LGR}
-\DeclareTextAccentDefault{\Varia}{LGR}
-\DeclareTextAccentDefault{\Perispomeni}{LGR}
-\DeclareTextAccentDefault{\Dialytika}{LGR}
-
-\DeclareTextAccentDefault{\DialytikaPerispomeni}{LGR}
-\DeclareTextAccentDefault{\DialytikaTonos}{LGR}
-\DeclareTextAccentDefault{\DialytikaVaria}{LGR}
-\DeclareTextAccentDefault{\DasiaPerispomeni}{LGR}
-\DeclareTextAccentDefault{\DasiaVaria}{LGR}
-\DeclareTextAccentDefault{\DasiaOxia}{LGR}
-\DeclareTextAccentDefault{\PsiliPerispomeni}{LGR}
-\DeclareTextAccentDefault{\PsiliOxia}{LGR}
-\DeclareTextAccentDefault{\PsiliVaria}{LGR}
+\DeclareTextAccentDefault{\LGR@hiatus}{LGR}
+\DeclareTextAccentDefault{\LGR@Dialytika}{LGR}
% .. References
% ----------
% .. _LaTeX Project Public License: http://www.latex-project.org/lppl.txt
-% .. _lgrx: http://www.ctan.org/pkg/lgrx
-% .. _textgreek: http://www.ctan.org/pkg/textgreek
+% .. _CB fonts: http://www.ctan.org/pkg/cbgreek-complete
% .. _babel: http://www.ctan.org/cgi-bin/ctanPackageInformation.py?id=babel
% .. _fntguide: http://www.ctan.org/tex-archive/macros/latex/doc/fntguide.pdf
-% .. _CB fonts: http://www.ctan.org/pkg/cbgreek-complete
+% .. _greek-fontenc: http://www.ctan.org/pkg/greek-fontenc
+% .. _greek-inputenc: http://www.ctan.org/pkg/greek-inputenc
+% .. _lgrx: http://www.ctan.org/pkg/lgrx
+% .. _textgreek: http://www.ctan.org/pkg/textgreek