summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html')
-rw-r--r--Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html210
1 files changed, 129 insertions, 81 deletions
diff --git a/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html b/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html
index 3aee638ad16..3ba29bad7af 100644
--- a/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html
+++ b/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html
@@ -3,14 +3,14 @@
<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.10: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.11: http://docutils.sourceforge.net/" />
<title>textalpha: Greek symbols in text</title>
<meta name="copyright" content="© 2010 Günter Milde" />
<style type="text/css">
/*
:Author: David Goodger (goodger@python.org)
-:Id: $Id: html4css1.css 7434 2012-05-11 21:06:27Z milde $
+:Id: $Id: html4css1.css 7614 2013-02-21 15:55:51Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
@@ -78,7 +78,7 @@ div.tip p.admonition-title {
div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
-div.warning p.admonition-title {
+div.warning p.admonition-title, .code .error {
color: red ;
font-weight: bold ;
font-family: sans-serif }
@@ -254,13 +254,14 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
-pre.code .ln { /* line numbers */
- color: grey;
-}
-
-.code {
- background-color: #eeeeee
-}
+pre.code .ln { color: grey; } /* line numbers */
+pre.code, code { background-color: #eeeeee }
+pre.code .comment, code .comment { color: #5C6576 }
+pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
+pre.code .literal.string, code .literal.string { color: #0C5404 }
+pre.code .name.builtin, code .name.builtin { color: #352B84 }
+pre.code .deleted, code .deleted { background-color: #DEB0A1}
+pre.code .inserted, code .inserted { background-color: #A3D289}
span.classifier {
font-family: sans-serif ;
@@ -313,6 +314,21 @@ table.docutils th.field-name, table.docinfo th.docinfo-name {
white-space: nowrap ;
padding-left: 0 }
+/* "booktabs" style (no vertical lines) */
+table.docutils.booktabs {
+ border: 0px;
+ border-top: 2px solid;
+ border-bottom: 2px solid;
+ border-collapse: collapse;
+}
+table.docutils.booktabs * {
+ border: 0px;
+}
+table.docutils.booktabs th {
+ border-bottom: thin solid;
+ text-align: left;
+}
+
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
font-size: 100% }
@@ -512,7 +528,7 @@ resulting list resembles the list-style 'outside' with a hanging indent.
*/
/* New ordered list: reset counter, suppress the default label */
-ol, ol.arabic, ol.loweralpha, ol.upperalpha,
+ol, ol.arabic, ol.loweralpha, ol.upperalpha,
ol.lowerroman, ol.upperroman {
counter-reset: item;
list-style: none
@@ -590,8 +606,9 @@ dd > ul, dd > ol {
/* margins and borders for "normal" tables */
table {
- margin-top: 0.5em ;
- margin-bottom: 0.5em;
+/* background: magenta; */
+ margin-top: 1em ;
+ margin-bottom: 1em;
/* border-style: outset; */
border-style: solid;
border-color: silver;
@@ -628,6 +645,7 @@ table.booktabs {
border: 0;
border-top: 2px solid;
border-bottom: 2px solid;
+ border-collapse: collapse;
}
table.booktabs * {
@@ -635,10 +653,12 @@ table.booktabs * {
}
table.booktabs th {
border-bottom: thin solid;
+ text-align: left;
}
table > caption {
text-align: left;
+ margin-bottom: 0.25em
/* padding: 2em 0 1em 0; */
}
@@ -708,7 +728,7 @@ version&nbsp;1.3 of this license or any later version.</p>
<dt>Identification</dt>
<dd><pre class="literal-block">\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{textalpha}
-[2012/07/03 v0.2 macros for Greek letters in text]
+[2013/05/03 v0.3 macros for Greek letters in text]
</pre>
<p>This package is part of the <a class="reference external" href="http://www.ctan.org/pkg/lgrx">lgrx</a> bundle.</p>
</dd>
@@ -721,7 +741,7 @@ outside math.</p>
<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 internal" href="#textgreek">textgreek</a> package by Leonard Michlmayr.</p>
+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>
@@ -731,7 +751,7 @@ confusion with the <a class="reference internal" href="#textgreek">textgreek</a>
<col width="7%" />
<col width="79%" />
</colgroup>
-<tbody valign="top">
+<tbody>
<tr><td><p>2010-06-16</p></td>
<td><p>0.1</p></td>
<td><p>initial version</p></td>
@@ -740,46 +760,47 @@ confusion with the <a class="reference internal" href="#textgreek">textgreek</a>
<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 lgrxenc.def 0.7</p></td>
+</tr>
</tbody>
</table>
</dd>
</dl>
<div class="section" id="motivation">
<h1>Motivation</h1>
-<p>By default, macros for Greek letters</p>
+<p>By default, TeX macros for Greek letters</p>
<ul class="simple">
<li><p>are only valid in mathematical mode,</p></li>
<li><p>do not change shape (default shape is italic).</p></li>
</ul>
-<p>In Greek text fonts with the LGR font encoding, letters are
-accessible by a Latin transcription.</p>
-<p>This package provides a set of macros that can be used to access Greek
-symbols from a font in LGR encoding (e.g. the <a class="reference external" href="http://www.ctan.org/pkg/cbgreek-complete">CB fonts</a>) without the
-need for an explicite font-encoding switch.</p>
-<p>The macro names follow the established scheme to prepend <tt class="literal">\text*</tt> to
-the Adobe glyph name (if it exists) or the corresponding math-macro, so
-<tt class="literal">\textalpha</tt> -- <tt class="literal">\textOmega</tt> prints α – Ω.</p>
+<p>In Greek text fonts with the LGR font encoding, letters are accessible by a
+Latin transcription or, with <a class="reference external" href="http://www.ctan.org/pkg/lgrx">lgrx</a>, <tt class="literal">\textalpha</tt> – <tt class="literal">\textOmega</tt>
+LICR macros.</p>
+<p>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 <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>
<ul class="simple">
-<li><p>In combination with the <tt class="literal">\text</tt> macro from amsmath, this can be
-used to get matching upright and bold upright Greek symbols in math
-as well.</p></li>
-<li><p>In combination with <tt class="literal"><span class="pre">\usepackage[utf8]{inputenc}</span></tt> and the
-accompanying <tt class="literal">lgrenc.dfu</tt> file, Unicode input of Greek characters
-is supported.</p></li>
+<li><p>In combination with the <tt class="literal">\text</tt> macro from amsmath, this can be used to
+get matching upright and bold upright Greek symbols in math mode.</p></li>
+<li><p>In combination with <tt class="literal"><span class="pre">\usepackage[utf8]{inputenc}</span></tt> and the accompanying
+<tt class="literal">lgrenc.dfu</tt> file, Unicode input of Greek characters is supported.</p></li>
</ul>
-<p>This is done using NFSS default definitions as explained in the
-<a class="reference external" href="http://www.ctan.org/tex-archive/macros/latex/doc/fntguide.pdf">fntguide</a> (section 5.3).</p>
<dl class="docutils">
<dt>Attention</dt>
-<dd><p>While the macros work reasonably well for single letters, the automatic
-font-encoding switches behind the doors interferes with the kerning
-between the letters and replacement of accent+character with a
-pre-composed character.</p>
+<dd><p>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.</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>, setting
the language to either <tt class="literal">greek</tt> or <tt class="literal">polutonikogreek</tt> or wrapped in the
-provided <tt class="literal">\TextGreek</tt> macro.</p>
+provided <tt class="literal">\ensuregreek</tt> macro.</p>
</dd>
</dl>
+<p>The package uses NFSS default definitions as explained in the <a class="reference external" href="http://www.ctan.org/tex-archive/macros/latex/doc/fntguide.pdf">fntguide</a>
+(section 5.3).</p>
</div>
<div class="section" id="implementation">
<h1>Implementation</h1>
@@ -789,12 +810,12 @@ provided <tt class="literal">\TextGreek</tt> macro.</p>
<pre class="literal-block">\input{lgrxenc.def}
</pre>
</div>
-<div class="section" id="textgreek">
-<h2>TextGreek</h2>
-<p>The <tt class="literal">\TextGreek</tt> command can be used to ensure that its argument is set in
+<div class="section" id="ensuregreek">
+<h2>ensuregreek</h2>
+<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{\TextGreek}[1]{{\fontencoding{LGR}\selectfont #1}}
+<pre class="literal-block">\DeclareTextCommandDefault{\ensuregreek}[1]{{\fontencoding{LGR}\selectfont #1}}
</pre>
<!-- The [fntguide_] writes
@@ -802,20 +823,24 @@ Greek text:</p>
one-argument encoding-specific command, not just those defined with
``\DeclareTextAccent``.
-However, the simpler alternative:
-``\DeclareTextAccentDefault{\TextGreek}{LGR}`` this fails with the table
-of Unicode characters in the test document `<textalpha-test.tex>`__:
+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>Font encodings supporting Greek script (e.g. LGI) may declare a specific
-text command that passes the argument unchanged. This way, kerning and
-selection of precomposed glyphs work also for cases like
-<tt class="literal"><span class="pre">\TextGreek{\'A}U</span></tt>.</p>
-<!-- Do this for PU here? ``\DeclareTextCommand{\TextGreek}{PU}[1]{#1}``
-
-Rather not: Not required, as hyperref's PDF string preparation
-ignores unknown commands. Can lead to infinite recursion (``TeX capacity
-exeeded``) without the ``unicode=true`` hyperref option.: -->
+<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?). -->
+<p>Backwards compatibility definition: versions &lt; 0.3 used the macro
+name <tt class="literal">\TextGreek</tt>:</p>
+<pre class="literal-block">\DeclareTextCommandDefault{\TextGreek}[1]{{\fontencoding{LGR}\selectfont #1}}
+</pre>
</div>
<div class="section" id="greek-alphabet">
<h2>Greek Alphabet</h2>
@@ -864,6 +889,8 @@ exeeded``) without the ``unicode=true`` hyperref option.: -->
\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}
@@ -873,6 +900,8 @@ exeeded``) without the ``unicode=true`` hyperref option.: -->
</pre>
<div class="section" id="additional-greek-symbols">
<h3>Additional Greek symbols</h3>
+<p>Including alias names for compatibility with hyperref’s puenc.def and babel’s
+greek.ldf.</p>
<p>Ancient Greek Numbers (Athenian Numerals):</p>
<pre class="literal-block">\DeclareTextSymbolDefault{\PiDelta}{LGR} % GREEK ACROPHONIC ATTIC FIFTY
\DeclareTextSymbolDefault{\PiEta}{LGR} % GREEK ACROPHONIC ATTIC FIVE HUNDRED
@@ -900,55 +929,74 @@ exeeded``) without the ``unicode=true`` hyperref option.: -->
\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{\textdigamma}{LGR} % ϝ alias using &quot;text&quot; prefix
-\DeclareTextSymbolDefault{\textDigamma}{LGR} % Ϝ alias using &quot;text&quot; prefix
\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)
-% alias names for compatibility with hyperref's puenc.def:
-\DeclareTextSymbolDefault{\textnumeralsigngreek}{LGR}
-\DeclareTextSymbolDefault{\textnumeralsignlowergreek}{LGR}
+\DeclareTextSymbolDefault{\textnumeralsigngreek}{LGR} % (puenc.def)
+\DeclareTextSymbolDefault{\textnumeralsignlowergreek}{LGR} % (puenc.def)
</pre>
</div>
</div>
<div class="section" id="diacritics">
<h2>Diacritics</h2>
-<p>Diacritics are defined via &quot;named&quot; macros in <tt class="literal">lgrxenc.def</tt>. Make them
+<p>Diacritics are defined via “named” macros in <tt class="literal">lgrxenc.def</tt>. Make them
default in any encoding:</p>
-<pre class="literal-block">\DeclareTextAccentDefault{\Dasia}{LGR}
-\DeclareTextAccentDefault{\Psili}{LGR}
-\DeclareTextAccentDefault{\Tonos}{LGR}
-\DeclareTextAccentDefault{\Varia}{LGR}
-\DeclareTextAccentDefault{\Perispomeni}{LGR}
-\DeclareTextAccentDefault{\Dialytika}{LGR}
+<pre class="literal-block">\DeclareTextAccentDefault{\accdasia}{LGR}
+\DeclareTextAccentDefault{\accpsili}{LGR}
+\DeclareTextAccentDefault{\acctonos}{LGR}
+\DeclareTextAccentDefault{\accvaria}{LGR}
+\DeclareTextAccentDefault{\accperispomeni}{LGR}
+\DeclareTextAccentDefault{\accdialytika}{LGR}
\DeclareTextAccentDefault{\&lt;}{LGR}
\DeclareTextAccentDefault{\&gt;}{LGR}
%
-\DeclareTextAccentDefault{\DasiaOxia}{LGR}
-\DeclareTextAccentDefault{\DasiaVaria}{LGR}
-\DeclareTextAccentDefault{\DasiaPerispomeni}{LGR}
-\DeclareTextAccentDefault{\PsiliOxia}{LGR}
-\DeclareTextAccentDefault{\PsiliVaria}{LGR}
-\DeclareTextAccentDefault{\PsiliPerispomeni}{LGR}
-\DeclareTextAccentDefault{\DialytikaTonos}{LGR}
-\DeclareTextAccentDefault{\DialytikaVaria}{LGR}
-\DeclareTextAccentDefault{\DialytikaPerispomeni}{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} % &quot;small&quot; sub-iota
-\DeclareTextSymbolDefault{\Prosgegrammeni}{LGR} % &quot;capital&quot; sub-iota
+<pre class="literal-block">\DeclareTextSymbolDefault{\ypogegrammeni}{LGR} % &quot;small&quot; sub-iota
+\DeclareTextSymbolDefault{\prosgegrammeni}{LGR} % &quot;capital&quot; sub-iota
</pre>
</div>
-<div class="section" id="auxiliary-commands">
-<h2>Auxiliary commands</h2>
-<p><tt class="literal">\MakeUppercase</tt> requires some internal commands:</p>
+<div class="section" id="auxiliary-macros">
+<h2>Auxiliary macros</h2>
+<p><tt class="literal">\MakeUppercase</tt> requires two internal commands:</p>
<pre class="literal-block">\DeclareTextAccentDefault{\&#64;hiatus}{LGR}
-\DeclareTextAccentDefault{\up&#64;Dialytika}{LGR}
+\DeclareTextAccentDefault{\&#64;Dialytika}{LGR}
+</pre>
+<p>Backwards compatibility with LGRx versions &lt; 0.7:</p>
+<pre class="literal-block">\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}
</pre>
<!-- References
- - - - - - - - - - -->