diff options
author | Karl Berry <karl@freefriends.org> | 2013-09-13 22:08:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-09-13 22:08:33 +0000 |
commit | 85c6a8aa9952fa244dac588d1e2a036ecd7ca772 (patch) | |
tree | 6e994248b566a58d83b1ac450e5fcd34f6401fa5 /Master/texmf-dist/doc/latex/greek-fontenc/alphabeta.sty.html | |
parent | 55ecfa6fbf846c1437ea75881c6fead2cf945736 (diff) |
greek-fontenc (13sep13)
git-svn-id: svn://tug.org/texlive/trunk@31645 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/greek-fontenc/alphabeta.sty.html')
-rw-r--r-- | Master/texmf-dist/doc/latex/greek-fontenc/alphabeta.sty.html | 455 |
1 files changed, 455 insertions, 0 deletions
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> |