summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.tex')
-rw-r--r--Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.tex78
1 files changed, 33 insertions, 45 deletions
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.tex b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.tex
index e9daa7c5f1d..4a69d5a4644 100644
--- a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.tex
+++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-doc.tex
@@ -27,6 +27,7 @@
\setmonofont{Liberation Mono}[Scale=MatchLowercase]
\usepackage[libertine,slantedGreek]{newtxmath}
% \usepackage{unicode-math} % package conflict
+ \newcommand{\fontset}{fontspec with Unicode fonts}
}
\newcommand{\setupTeXFonts}{
\usepackage[LGR,T1]{fontenc}
@@ -39,6 +40,7 @@
% \usepackage{substitutefont}
% \substitutefont{LGR}{\rmdefault}{artemisia}
\usepackage{isomath}
+ \newcommand{\fontset}{fontenc with TeX fonts}
}
\ifdefined\XeTeXrevision
\newcommand{\engine}{XeTeX}
@@ -58,10 +60,6 @@
% Fallback macros:
-% Avoid warnigns with PDF string generation for "alphabeta" commands:
-% let \TextOrMath (from fixltx2e) return the "text" argument:
-\pdfstringdefDisableCommands{\let\TextOrMath\@firstoftwo}
-
% varstigma only defined with 8-bit LGR fonts
\providecommand*{\varstigma}{$\oslash$}
% varkappa, only defined with newtxmath, other var... only with unicode-math
@@ -97,9 +95,9 @@ literal Unicode charactes can also be used in mathematical mode.
The \emph{alphabeta} package depends on
\emph{\href{textalpha-doc.pdf}{textalpha}} (both are part of
-\emph{\href{http://www.ctan.org/pkg/greek-fontenc}{greek-fontenc}}).
-It can be used under 8-bit TeX as well as XeTeX/LuaTeX (this document is
-typeset with \engine). Depending on the converter and fonts, different
+\emph{\href{http://www.ctan.org/pkg/greek-fontenc}{greek-fontenc}}). It can
+be used under 8-bit TeX as well as XeTeX/LuaTeX (this document is typeset
+with \engine{} and \fontset). Depending on the converter and fonts, different
\hyperref[sec:limitations]{limitations} apply.
The package conflicts with
@@ -181,10 +179,10 @@ Unicode defines separate code points for the symbol variants. TeX supports
some of the variant shape symbols in mathematical mode, but its concept of
“standard” vs. “variant” symbols differs from the distinction between
“GREEK LETTER ...” vs. “GREEK ... SYMBOL” in the Unicode standard.
-See \href{greek-euenc-doc.pdf}{greek-euenc-doc}.
+See \href{tuenc-greek-doc.pdf}{tuenc-greek-doc}.
The \emph{alphabeta} package defines generic macros for these variants that
-are short forms of the set defined in \texttt{greek-euenc.def}:
+are short forms of the set defined in \texttt{tuenc-greek.def}:
\begin{quote}
\verb|\<name>| selects the Unicode GREEK LETTER ... variant,
@@ -203,12 +201,11 @@ With 8-bit TeX, the limitations described in the
in section \hyperref[sec:8-bit-limitations]{8 bit limitations}.
With XeTeX/LuaTeX and Unicode fonts, literal Unicode characters cannot be
-used in formulas (the log file reports missing characters)
-This is a generic TeX limitation which \emph{alphabeta} overcomes if used
-under 8-bit TeX. Under XeTeX/LuaTeX it may be lifted using the
-\href{http://www.ctan.org/pkg/unicode-math}{\emph{unicode-math}}
-package, but unfortunately, \emph{alphabeta} conflicts
-with \emph{unicode-math}.
+used in formulas (the log file reports missing characters) This is a generic
+TeX limitation which \emph{alphabeta} overcomes if used under 8-bit TeX.
+Under XeTeX/LuaTeX it may be lifted using the
+\href{http://www.ctan.org/pkg/unicode-math}{\emph{unicode-math}} package.
+However, \emph{unicode-math} conflicts with \emph{alphabeta}.
\section{Tests and examples}
@@ -234,7 +231,7 @@ switch:
\koppa{} \qoppa{} \Qoppa{}
\Stigma{} \Sampi{} \sampi{}
\end{quote}
-
+%
Greek letters via Unicode input without language/font-encoding switch:
\begin{quote}
@@ -293,17 +290,6 @@ Greek. (Here, the dasia is dropped at the start of the word in parentheses in
the PDF toc. The warning ``\texttt{Glyph not defined in PU encoding,
removing `\textbackslash<' on input line 145.}'' is written to the log.)
-Warnings like
-\begin{verbatim}
- Token not allowed in a PDF string (Unicode):
- removing `\textbackslash TextOrMath ' on input line 145.
-\end{verbatim}
-can be ignored or avoided with the preamble code:
-
-\begin{verbatim}
- \pdfstringdefDisableCommands{\let\TextOrMath\@firstoftwo}
-\end{verbatim}
-
\subsection{Greek in math $\Gamma = \sin\alpha / \cos{\beta}$}
@@ -354,20 +340,22 @@ With the \texttt{utf8} option of \emph{inputenc} and
\href{http://www.ctan.org/pkg/greek-inputenc}{\emph{greek-inputenc}},
literal Greek Unicode characters are supported also in
mathematical mode:
-\[
- Γ = \frac{\sin α}{\cos β}.
-\]
-Greek letters and symbols in math input as Unicode literals:
-\begin{align*}
- \ifdefined\DeclareUnicodeCharacter
- & Γ ΔΘΛΞΠΣΥ ΦΨ Ω \\
- & αβγδεζηθικλμνξπρσςτυφχψω \\
- & ϑϕϖϝϱϵ
- \else
- \text{This does not work with XeTeX/LuaTeX (unless in 8-bit emulation
- mode).}
- \fi
-\end{align*}
+
+\ifdefined\DeclareUnicodeCharacter
+ \[
+ Γ = \frac{\sin α}{\cos β}.
+ \]
+ Greek letters and symbols in math input as Unicode literals:
+ \begin{align*}
+ & Γ ΔΘΛΞΠΣΥ ΦΨ Ω \\
+ & αβγδεζηθικλμνξπρσςτυφχψω \\
+ & ϑϕϖϝϱϵ
+ \end{align*}
+\fi
+
+This does not work with XeTeX/LuaTeX (unless in 8-bit emulation mode).
+
+
The ``normal'' vs. ``variant'' shape of phi and epsilon is inverted when using
traditional makros or Unicode letter vs. symbol characters respectively.
This is to keep backwards compatibility of the math macros as well
@@ -400,10 +388,10 @@ These limitations are lifted, if the document is compiled with XeTeX/LuaTeX.
% }
\item There is no kerning between Greek letters, if the font encoding does not
- support Greek: compare \ensuregreek{\Alpha\Upsilon\Alpha
- (\currentEncoding)} to \Alpha\Upsilon\Alpha{} (\currentEncoding). Because
- of this (and for proper hyphenation), use of the Babel package and
- correct language setting is recommended for Greek quotes.
+ support Greek: compare \ensuregreek{\Alpha\Upsilon\Alpha{}
+ (\currentEncoding)} to \Alpha\Upsilon\Alpha{} (\currentEncoding).
+ Because of this (and for proper hyphenation), use of the Babel package
+ and correct language setting is recommended for Greek quotes.
\end{itemize}