diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html')
-rw-r--r-- | Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html | 145 |
1 files changed, 125 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html b/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html index 12308b76711..3aee638ad16 100644 --- a/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html +++ b/Master/texmf-dist/doc/latex/lgrx/textalpha.sty.html @@ -4,13 +4,13 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.10: http://docutils.sourceforge.net/" /> -<title>Greek symbols in text</title> +<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 7056 2011-06-17 10:50:48Z milde $ +:Id: $Id: html4css1.css 7434 2012-05-11 21:06:27Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. @@ -250,10 +250,18 @@ pre.address { margin-top: 0 ; font: inherit } -pre.literal-block, pre.doctest-block, pre.math { +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 +} + span.classifier { font-family: sans-serif ; font-style: oblique } @@ -504,9 +512,10 @@ resulting list resembles the list-style 'outside' with a hanging indent. */ /* New ordered list: reset counter, suppress the default label */ -ol { +ol, ol.arabic, ol.loweralpha, ol.upperalpha, +ol.lowerroman, ol.upperroman { counter-reset: item; - list-style-type: none ! important; + list-style: none } /* Set the negative indent of the list label as feature of the list item */ @@ -568,6 +577,7 @@ ol.nested > li:before, ol.nested ol > li:before { dd > ul, dd > ol { padding-left: 0pt; +} /* TODO: prefix, suffix? */ @@ -684,8 +694,8 @@ div.hint, div.important, div.note, div.tip, div.warning { </style> </head> <body> -<div class="document" id="greek-symbols-in-text"> -<h1 class="title">Greek symbols in text</h1> +<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> @@ -698,8 +708,9 @@ version 1.3 of this license or any later version.</p> <dt>Identification</dt> <dd><pre class="literal-block">\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{textalpha} -[2010/08/04 v0.1 macros for Greek letters in text] +[2012/07/03 v0.2 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> </dl> <div class="abstract topic"> @@ -707,6 +718,11 @@ version 1.3 of this license or any later version.</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 internal" href="#textgreek">textgreek</a> package by Leonard Michlmayr.</p> +</div> <dl class="docutils"> <dt>Changelog:</dt> <dd><table class="borderless"> @@ -720,16 +736,20 @@ outside math.</p> <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> </tbody> </table> </dd> </dl> <div class="section" id="motivation"> <h1>Motivation</h1> -<p>By default, the <tt class="literal">\alpha</tt> -- <tt class="literal">\Omega</tt> macros for Greek letters</p> +<p>By default, 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> +<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> @@ -751,22 +771,52 @@ is supported.</p></li> <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 destroy the -kerning between the letters.</p> -<p>Text composites (replacement of accent+character with a pre-composed -character) work in LGR, but not in other encodings (due to the -forth-and-back font encoding switch).</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>.</p> +<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> +<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> </dd> </dl> </div> <div class="section" id="implementation"> <h1>Implementation</h1> -<p>This package requires the extended font encoding definitions:</p> +<div class="section" id="requirements"> +<h2>Requirements</h2> +<p>This package requires the extended font encoding definitions</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 +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> +<!-- 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{\TextGreek}{LGR}`` this 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.: --> +</div> <div class="section" id="greek-alphabet"> <h2>Greek Alphabet</h2> <p>Define the <tt class="literal">text*</tt> marcos as default for all font encodings:</p> @@ -821,6 +871,50 @@ setting the language to either <tt class="literal">greek</tt> or <tt class="lite \DeclareTextSymbolDefault{\textpsi}{LGR} \DeclareTextSymbolDefault{\textomega}{LGR} </pre> +<div class="section" id="additional-greek-symbols"> +<h3>Additional Greek symbols</h3> +<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 +\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{\stigma}{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{\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{\textSampigreek}{LGR} % Ϡ (puenc.def) +\DeclareTextSymbolDefault{\sampi}{LGR} % ϡ +\DeclareTextSymbolDefault{\textsampigreek}{LGR} % ϡ (puenc.def) +\DeclareTextSymbolDefault{\anoteleia}{LGR} % · +\DeclareTextSymbolDefault{\erotimatiko}{LGR} % ; +% \digamma used by amsmath! +\DeclareTextSymbolDefault{\ddigamma}{LGR} % ϝ (greek.ldf) +\DeclareTextSymbolDefault{\Digamma}{LGR} % Ϝ +\DeclareTextSymbolDefault{\textdigamma}{LGR} % ϝ alias using "text" prefix +\DeclareTextSymbolDefault{\textDigamma}{LGR} % Ϝ alias using "text" 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} +</pre> +</div> </div> <div class="section" id="diacritics"> <h2>Diacritics</h2> @@ -845,6 +939,17 @@ default in any encoding:</p> \DeclareTextAccentDefault{\DialytikaVaria}{LGR} \DeclareTextAccentDefault{\DialytikaPerispomeni}{LGR} </pre> +<p>Postfix accents:</p> +<pre class="literal-block">\DeclareTextSymbolDefault{\Ypogegrammeni}{LGR} % "small" sub-iota +\DeclareTextSymbolDefault{\Prosgegrammeni}{LGR} % "capital" 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> +<pre class="literal-block">\DeclareTextAccentDefault{\@hiatus}{LGR} +\DeclareTextAccentDefault{\up@Dialytika}{LGR} +</pre> <!-- References - - - - - - - - - - --> </div> |