summaryrefslogtreecommitdiff
path: root/language/greek/greek-fontenc/textalpha.sty.html
diff options
context:
space:
mode:
Diffstat (limited to 'language/greek/greek-fontenc/textalpha.sty.html')
-rw-r--r--language/greek/greek-fontenc/textalpha.sty.html143
1 files changed, 82 insertions, 61 deletions
diff --git a/language/greek/greek-fontenc/textalpha.sty.html b/language/greek/greek-fontenc/textalpha.sty.html
index 6ad667468c..48021df494 100644
--- a/language/greek/greek-fontenc/textalpha.sty.html
+++ b/language/greek/greek-fontenc/textalpha.sty.html
@@ -5,7 +5,7 @@
<meta name="generator" content="Docutils 0.17b.dev: http://docutils.sourceforge.net/" />
<title>textalpha.sty</title>
<meta name="dcterms.rights" content="© 2010 Günter Milde" />
-<link rel="schema.dcterms" href="http://purl.org/dc/terms/">
+<link rel="schema.dcterms" href="http://purl.org/dc/terms/"/>
<style type="text/css">
/* Minimal style sheet for the HTML output of Docutils. */
@@ -50,33 +50,31 @@ p.system-message-title {
font-weight: bold;
}
h1 + p.subtitle,
-h1 + p.section-subtitle {
+h2 + p.section-subtitle {
font-size: 1.6em;
}
-h2 + p.section-subtitle { font-size: 1.28em; }
+h3 + p.section-subtitle {
+ font-size: 1.28em;
+}
p.subtitle,
p.section-subtitle,
p.sidebar-subtitle {
font-weight: bold;
margin-top: -0.5em;
}
-p.sidebar-title,
+p.sidebar-title {
+ font-size: larger;
+}
p.rubric {
font-size: larger;
+ color: maroon;
}
-p.rubric { color: maroon; }
a.toc-backref {
color: black;
text-decoration: none; }
/* Warnings, Errors */
-div.caution p.admonition-title,
-div.attention p.admonition-title,
-div.danger p.admonition-title,
-div.error p.admonition-title,
-div.warning p.admonition-title,
-div.system-messages h1,
-div.error,
+div.system-messages h2,
span.problematic,
p.system-message-title {
color: red;
@@ -213,8 +211,6 @@ object.align-right,
table.align-right {
margin-left: auto;
}
-.figure.align-center, .figure.align-right,
-figure.align-center, figure.align-right,
img.align-center, img.align-right,
object.align-center, object.align-right {
display: block;
@@ -226,18 +222,6 @@ table.align-left, table.align-center, table.align-right {
text-align: inherit;
}
-/* Admonitions and System Messages */
-div.admonition,
-div.system-message,
-aside.sidebar {
- margin: 1em 1.5em;
- border: medium outset;
- padding-top: 0.5em;
- padding-bottom: 0.5em;
- padding-right: 1em;
- padding-left: 1em;
-}
-
/* Sidebar */
aside.sidebar {
width: 30%;
@@ -249,6 +233,8 @@ aside.sidebar {
/* Text Blocks */
blockquote,
div.topic,
+div.admonition,
+div.system-message,
pre.literal-block,
pre.doctest-block,
pre.math,
@@ -322,11 +308,11 @@ body {
div.document,
main {
line-height:1.3;
- counter-reset: table;
- /* counter-reset: figure; */
+ counter-reset: table figure;
/* avoid long lines --> better reading */
+ /* optimum is 45…75 characters/line <http://webtypography.net/2.1.2> */
/* OTOH: lines should not be too short because of missing hyphenation, */
- max-width: 50em;
+ max-width: 50em;
padding: 1px 2%; /* 1px on top avoids grey bar above title (mozilla) */
margin: auto;
background-color: white;
@@ -514,7 +500,35 @@ object.align-right {
margin-left: 1em;
}
/* Stop floating sidebars, images and figures at section level 1,2,3 */
-h1, h2, h3 { clear: both; }
+h1, h2, h3, h4 { clear: both; }
+
+/* Numbered figures */
+figure.numbered > figcaption > p:before {
+ counter-increment: figure;
+ content: "Figure " counter(figure) ": ";
+ font-weight: bold;
+}
+
+
+/* Admonitions and System Messages */
+
+div.admonition,
+div.system-message,
+aside.sidebar {
+ border: medium outset;
+ margin: 1em 1.5em;
+ padding: 0.5em 1em;
+}
+
+div.caution p.admonition-title,
+div.attention p.admonition-title,
+div.danger p.admonition-title,
+div.error p.admonition-title,
+div.warning p.admonition-title,
+div.error {
+ color: red;
+}
+
/* Sidebar */
@@ -607,7 +621,7 @@ version 1.3 of this license or any later version.</p>
<dt class="identification">Identification</dt>
<dd class="identification"><pre class="literal-block">\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{textalpha}
-[2020/02/28 v0.14 macros for Greek letters in text]</pre>
+[2020/09/25 1.0 macros for Greek letters in text]</pre>
</dd>
</dl>
<div class="abstract topic">
@@ -618,7 +632,7 @@ in text mode.</p>
<div class="admonition 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>
+confusion with the <a class="reference external" href="http://ctan.org/pkg/textgreek">textgreek</a> package by Leonard Michlmayr.</p>
</div>
<dl>
<dt>Changelog:</dt>
@@ -648,7 +662,7 @@ confusion with the <a class="reference external" href="http://www.ctan.org/pkg/t
<tr><td><p>0.5</p></td>
<td><p>2013-09-11
..</p></td>
-<td><p>move to <a class="reference external" href="http://www.ctan.org/pkg/greek-fontenc">greek-fontenc</a>,
+<td><p>move to <a class="reference external" href="http://ctan.org/pkg/greek-fontenc">greek-fontenc</a>,
support XeTeX/LuaTeX, add breve below accents.</p></td>
</tr>
<tr><td><p>0.11</p></td>
@@ -682,6 +696,10 @@ in LGR.</p></td>
Rename <span class="docutils literal"><span class="pre">greek-euenc</span></span> to <span class="docutils literal"><span class="pre">tuenc-greek</span></span>.
Don’t use <span class="docutils literal">\LastDeclaredEncoding</span>.</p></td>
</tr>
+<tr><td><p>1.0</p></td>
+<td><p>2020-09-25</p></td>
+<td><p>Also set <span class="docutils literal">\encodingdefault</span> with <span class="docutils literal">\greekscript</span>.</p></td>
+</tr>
</tbody>
</table>
</dd>
@@ -720,7 +738,7 @@ Don’t use <span class="docutils literal">\LastDeclaredEncoding</span>.</p></td
</ul>
</div>
<section id="motivation">
-<h1><a class="toc-backref" href="#id1">Motivation</a></h1>
+<h2><a class="toc-backref" href="#id1">Motivation</a></h2>
<p>By default, TeX macros for Greek letters are only valid in mathematical
mode. This package sets up a suitable <a class="reference internal" href="#font-encoding">font encoding</a> and <cite>LaTeX internal
character representations</cite> (LICR) definitions for Greek (<span class="docutils literal">\textalpha</span> –
@@ -732,17 +750,17 @@ and does “the right thing” to set up Greek text font support:</p>
<li><p>If an Unicode font encoding is declared by <span class="docutils literal">fontspec</span>, add Greek LICR
definitions.</p></li>
<li><p>Otherwise, the <a class="reference external" href="README.html#lgr">LGR font encoding</a> is set as <cite>default font encoding</cite>
-(cf. <a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/fntguide.pdf">fntguide</a> section 5.3) for Greek.</p></li>
+(cf. <a class="reference external" href="http://mirror.ctan.org/macros/latex/base/fntguide.pdf">fntguide</a> section 5.3) for Greek.</p></li>
</ul>
<p>Advantages:</p>
<ul>
-<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
+<li><p>Symbols from a Greek text font (e.g. the <a class="reference external" href="http://ctan.org/pkg/cbgreek-complete">CB fonts</a>) can be accessed
without the need for an explicite font-encoding switch anywhere in the
text.</p></li>
<li><p>Unicode input of Greek characters is supported</p>
<ul>
<li><p>via <span class="docutils literal"><span class="pre">\usepackage[utf8]{inputenc}</span></span> and <span class="docutils literal">lgrenc.dfu</span> from
-<a class="reference external" href="http://www.ctan.org/pkg/greek-inputenc">greek-inputenc</a> for 8-bit TeX or XeTeX/LuaTeX in 8-bit compatibility
+<a class="reference external" href="http://ctan.org/pkg/greek-inputenc">greek-inputenc</a> for 8-bit TeX or XeTeX/LuaTeX in 8-bit compatibility
mode in any font encoding (see <a class="reference external" href="textalpha-doc.tex">textalpha-doc.tex</a>).</p></li>
<li><p>natively by XeTeX/LuaTeX for Unicode fonts.</p>
<p>If 8-bit font encodings like LGR are used alongside Unicode fonts, text
@@ -758,14 +776,14 @@ literal Unicode characters</em> (see <a class="reference external" href="tuenc-g
However, with 8-bit TeX engines, 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 <span class="docutils literal">greek</span>) or wrapped in the
-provided <span class="docutils literal">ensuregreek</span> 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
+<p>Therefore, Greek text should be written with the help of <a class="reference external" href="http://ctan.org/pkg/babel">babel</a> or
+<a class="reference external" href="http://ctan.org/pkg/polyglossia">polyglossia</a> (setting the language to <span class="docutils literal">greek</span>) or wrapped in the
+provided <span class="docutils literal">ensuregreek</span> macro. Using <a class="reference external" href="http://ctan.org/pkg/babel">babel</a> or <a class="reference external" href="http://ctan.org/pkg/polyglossia">polyglossia</a> also helps
to ensure correct hyphenation of Greek text.</p>
</div>
</section>
<section id="usage">
-<h1><a class="toc-backref" href="#id2">Usage</a></h1>
+<h2><a class="toc-backref" href="#id2">Usage</a></h2>
<p>Ensure support for Greek characters in text mode with</p>
<pre class="code latex literal-block"><code><span class="keyword">\usepackage</span><span class="name builtin">{</span>textalpha<span class="name builtin">}</span></code></pre>
<p>eventually with the <a class="reference internal" href="#options">options</a> to normalize symbols variants</p>
@@ -773,7 +791,7 @@ to ensure correct hyphenation of Greek text.</p>
<p>and/or to use the semicolon as <a class="reference external" href="https://en.wikipedia.org/wiki/Question_mark#Erotimatiko">erotimatiko</a> also in 8-bit TeX</p>
<pre class="code latex literal-block"><code><span class="keyword">\usepackage</span><span class="name attribute">[normalize-symbols,keep-semicolon]</span><span class="name builtin">{</span>textalpha<span class="name builtin">}</span></code></pre>
<p>To give <span class="docutils literal">textalpha.sty</span> a chance of finding out which <a class="reference internal" href="#font-encodings">font encodings</a>
-are used, load it after <a class="reference external" href="http://www.ctan.org/pkg/fontspec">fontspec</a> and/or <a class="reference external" href="http://www.ctan.org/pkg/fontenc">fontenc</a>.</p>
+are used, load it after <a class="reference external" href="http://ctan.org/pkg/fontspec">fontspec</a> and/or <a class="reference external" href="http://ctan.org/pkg/fontenc">fontenc</a>.</p>
<p>For detailled examples see <a class="reference external" href="textalpha-doc.tex">textalpha-doc.tex</a> and <a class="reference external" href="textalpha-doc.pdf">textalpha-doc.pdf</a>
(8-bit TeX and XeTeX/LuaTeX in 8-bit compatibility mode) as well as
<a class="reference external" href="tuenc-greek-doc.tex">tuenc-greek-doc.tex</a> and <a class="reference external" href="tuenc-greek-doc.pdf">tuenc-greek-doc.pdf</a> (XeTeX/LuaTeX with
@@ -782,11 +800,11 @@ Unicode fonts).</p>
in the same document (see <a class="reference external" href="tuenc-greek-doc.tex">tuenc-greek-doc.tex</a>).</p>
</section>
<section id="implementation">
-<h1><a class="toc-backref" href="#id3">Implementation</a></h1>
+<h2><a class="toc-backref" href="#id3">Implementation</a></h2>
<section id="options">
-<h2><a class="toc-backref" href="#id4">Options</a></h2>
+<h3><a class="toc-backref" href="#id4">Options</a></h3>
<section id="normalize-symbols">
-<h3><a class="toc-backref" href="#id5">normalize-symbols</a></h3>
+<h4><a class="toc-backref" href="#id5">normalize-symbols</a></h4>
<p>The “variant shape” symbol characters like <span class="docutils literal">03D1 GREEK THETA SYMBOL</span> are
mathematical charcters for mathematical use
(similar to <span class="docutils literal">1D440 MATHEMATICAL ITALIC CAPITAL M</span>).
@@ -807,7 +825,7 @@ errors to prevent information loss in cases where the distinction between
\DeclareOption{normalize-symbols}{\textalpha&#64;normalizeSymbolstrue}</pre>
</section>
<section id="keep-semicolon">
-<h3><a class="toc-backref" href="#id6">keep-semicolon</a></h3>
+<h4><a class="toc-backref" href="#id6">keep-semicolon</a></h4>
<p>The <a class="reference external" href="https://en.wikipedia.org/wiki/Question_mark#Erotimatiko">erotimatiko</a> looks like a semicolon but is a
<strong>Greek question mark</strong>:</p>
<ul class="simple">
@@ -828,14 +846,14 @@ With XeTeX/LuaTeX and Unicode fonts, this option is ignored.</p>
</section>
</section>
<section id="font-encodings">
-<span id="font-encoding"></span><h2><a class="toc-backref" href="#id7">Font encodings</a></h2>
+<span id="font-encoding"></span><h3><a class="toc-backref" href="#id7">Font encodings</a></h3>
<p>With 8-bit LaTeX, the <a class="reference external" href="README.html#lgr">LGR font encoding</a> is used for Greek characters. If
no Greek-supporting font encoding (TU, EU1, EU2, or LGR) is declared, LGR is
loaded and set up as default Greek font encoding by this package.</p>
<p>With XeTeX or LuaTeX, there is one common input and font encoding –
Unicode. 8-bit TeX font encodings are only used in compatibility mode or for
fonts not available otherwise. For compatibility with the LaTeX font
-selection system, <a class="reference external" href="http://www.ctan.org/pkg/fontspec">fontspec</a> defines the TU font encoding or the (pseudo)
+selection system, <a class="reference external" href="http://ctan.org/pkg/fontspec">fontspec</a> defines the TU font encoding or the (pseudo)
font encodings EU1 and EU2 for XeTeX and LuaTeX respectively. However
<cite>fontspec</cite> does not define Greek LICR macros. We therefore explicitely
load Greek LICR definitions for XeTeX/LuaTeX from <a class="reference external" href="tuenc-greek.def.html">tuenc-greek.def</a> which in turn includes <a class="reference external" href="greek-fontenc.def.html">greek-fontenc.def</a>.</p>
@@ -855,7 +873,7 @@ or EU2 is detected.</p></li>
\input{lgrenc.def}
}
\fi</pre>
-<p>The package <a class="reference external" href="http://www.ctan.org/pkg/hyperref">hyperref</a> defines the PU font encoding which also supports
+<p>The package <a class="reference external" href="http://ctan.org/pkg/hyperref">hyperref</a> defines the PU font encoding which also supports
(monotonic) Greek. It currently misses polytonic greek and the
<span class="docutils literal">\greekscript</span> and <span class="docutils literal">\ensuregreek</span> TextCommands:</p>
<pre class="literal-block">\&#64;ifl&#64;aded{def}{puenc}
@@ -866,7 +884,7 @@ or EU2 is detected.</p></li>
{}</pre>
</section>
<section id="symbol-macros-for-breathings">
-<h2><a class="toc-backref" href="#id8">Symbol macros for breathings</a></h2>
+<h3><a class="toc-backref" href="#id8">Symbol macros for breathings</a></h3>
<p>In the Latin transcription provided by LGR, breathing accents (Dasia and
Psili) are input as &lt; and &gt;. We provide the corresponding NFSS macro accents
(moved here from <a class="reference external" href="greek-fontenc.def.html">greek-fontenc.def</a>).</p>
@@ -896,7 +914,7 @@ macros twice, for LGR and Unicode font encodings (if they are defined):</p>
}{}</pre>
</section>
<section id="default-declarations">
-<h2><a class="toc-backref" href="#id9">Default declarations</a></h2>
+<h3><a class="toc-backref" href="#id9">Default declarations</a></h3>
<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. Abort here, if the LGR font encoding is not defined:</p>
@@ -905,15 +923,16 @@ default font encoding. Abort here, if the LGR font encoding is not defined:</p>
% else return:
{\expandafter\endinput}</pre>
<section id="greekscript-ensuregreek">
-<h3><a class="toc-backref" href="#id10">greekscript, ensuregreek</a></h3>
+<h4><a class="toc-backref" href="#id10">greekscript, ensuregreek</a></h4>
<p>The <span class="docutils literal">\greekscript</span> declaration ensures the current font encoding supports
the Greek script. <span class="docutils literal"><span class="pre">greek-fontenc.def</span></span> sets this to the empty declaration
for font encodings that do so. This is currently used by <span class="docutils literal">lgrenc.def</span>
(LGR) and <span class="docutils literal"><span class="pre">tuenc-greek.def</span></span> (Greek LICR macros for TU, EU1, or EU2).</p>
<p>We define LGR as default encoding for Greek text. We use
<span class="docutils literal">\ProvideTextCommandDefault</span> to enable the author or other packages to use
-an alternative definition (see [<a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/fntguide.pdf">fntguide</a>]):</p>
-<pre class="literal-block">\ProvideTextCommandDefault{\greekscript}{\fontencoding{LGR}\selectfont}</pre>
+an alternative definition (see [<a class="reference external" href="http://mirror.ctan.org/macros/latex/base/fntguide.pdf">fntguide</a>]):</p>
+<pre class="literal-block">\ProvideTextCommandDefault{\greekscript}{\fontencoding{LGR}\selectfont
+ \def\encodingdefault{\greekfontencoding}}</pre>
<p>The <span class="docutils literal">\ensuregreek</span> command can be used to ensure that its argument is set in
a font encoding with support for Greek. Again the default is LGR:</p>
<pre class="literal-block">\ProvideTextCommandDefault{\ensuregreek}[1]{\leavevmode{\greekscript #1}}</pre>
@@ -934,7 +953,7 @@ argument unchanged. This way, kerning and selection of precomposed glyphs
would work also for cases like <span class="docutils literal"><span class="pre">\ensuregreek{\'A}U</span></span>.</p>
</section>
<section id="greek-alphabet">
-<h3><a class="toc-backref" href="#id11">Greek Alphabet</a></h3>
+<h4><a class="toc-backref" href="#id11">Greek Alphabet</a></h4>
<p>Define the <span class="docutils literal">text*</span> marcos as default for all font encodings:</p>
<pre class="literal-block">\DeclareTextSymbolDefault{\textAlpha}{LGR}
\DeclareTextSymbolDefault{\textBeta}{LGR}
@@ -990,7 +1009,7 @@ would work also for cases like <span class="docutils literal"><span class="pre">
\DeclareTextSymbolDefault{\textomega}{LGR}</pre>
</section>
<section id="additional-greek-symbols">
-<h3><a class="toc-backref" href="#id12">Additional Greek symbols</a></h3>
+<h4><a class="toc-backref" href="#id12">Additional Greek symbols</a></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
@@ -1018,10 +1037,12 @@ would work also for cases like <span class="docutils literal"><span class="pre">
\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)
+<pre class="literal-block">\DeclareTextSymbolDefault{\textdexiakeraia}{LGR} % ʹ (Dexia keraia)
+\DeclareTextSymbolDefault{\textnumeralsigngreek}{LGR} % (puenc.def)
+\DeclareTextSymbolDefault{\textaristerikeraia}{LGR} % ͵ (Aristeri keraia)
\DeclareTextSymbolDefault{\textnumeralsignlowergreek}{LGR} % (puenc.def)</pre>
<section id="variant-shape-symbols">
-<h4><a class="toc-backref" href="#id13">variant shape symbols</a></h4>
+<h5><a class="toc-backref" href="#id13">variant shape symbols</a></h5>
<p>Mathematical notation uses variant shapes of some Greek letters as
additional symbols. There are separate code points for the symbol variants
in Unicode but not in the LGR font encoding used for Greek in 8-bit TeX.
@@ -1048,7 +1069,7 @@ The variations have no syntactic meaning in Greek text.</p>
</section>
</section>
<section id="diacritics">
-<h3><a class="toc-backref" href="#id14">Diacritics</a></h3>
+<h4><a class="toc-backref" href="#id14">Diacritics</a></h4>
<p>Greek diacritics via “named” macros:</p>
<pre class="literal-block">\DeclareTextAccentDefault{\accdasia}{LGR}
\DeclareTextAccentDefault{\accpsili}{LGR}
@@ -1078,7 +1099,7 @@ The variations have no syntactic meaning in Greek text.</p>
\DeclareTextAccentDefault{\accbrevebelow}{LGR} % BREVE BELOW</pre>
</section>
<section id="auxiliary-macros">
-<h3><a class="toc-backref" href="#id15">Auxiliary macros</a></h3>
+<h4><a class="toc-backref" href="#id15">Auxiliary macros</a></h4>
<p><span class="docutils literal">\MakeUppercase</span> requires four internal commands:</p>
<pre class="literal-block">\DeclareTextAccentDefault{\LGR&#64;accdropped}{LGR}
\DeclareTextAccentDefault{\LGR&#64;accDialytika}{LGR}
@@ -1086,7 +1107,7 @@ The variations have no syntactic meaning in Greek text.</p>
\DeclareTextSymbolDefault{\LGR&#64;ypogegrammeni}{LGR}</pre>
</section>
<section id="semicolon-as-erotimatiko">
-<h3><a class="toc-backref" href="#id16">semicolon as erotimatiko</a></h3>
+<h4><a class="toc-backref" href="#id16">semicolon as erotimatiko</a></h4>
<p>The text command <span class="docutils literal">\textsemicolon</span> inserts <span class="docutils literal">\texterotimatiko</span>
in LGR font encoding and a “normal” semicolon else:</p>
<pre class="literal-block">\ProvideTextCommandDefault{\textsemicolon}{;}