diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.tex | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.tex b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.tex index 3bebcd475c7..b215b016c63 100644 --- a/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.tex +++ b/Master/texmf-dist/doc/latex/greek-fontenc/alphabeta-test.tex @@ -1,27 +1,29 @@ \documentclass{article} -\usepackage{hyperref} +\usepackage{hyperref,bookmark} \hypersetup{colorlinks=true,linkcolor=blue,urlcolor=blue,pdfencoding=auto} -\usepackage{bookmark} \usepackage{parskip} \usepackage{amsmath} \ifdefined\XeTeXrevision \usepackage[no-math]{fontspec} \setmainfont{Linux Libertine O} - \usepackage[libertine,slantedGreek ]{newtxmath} + \usepackage[libertine,slantedGreek]{newtxmath} \else\ifdefined\luatexversion \usepackage{fontspec} \setmainfont{Linux Libertine O} - \usepackage[libertine,slantedGreek ]{newtxmath} + \usepackage[libertine,slantedGreek]{newtxmath} \else + \usepackage[utf8]{inputenc} + \usepackage[LGR,T1]{fontenc} \usepackage{textcomp} - \usepackage{lmodern} + % \usepackage{lmodern} % \usepackage{gfsdidot} % \usepackage{kerkis} - \usepackage{fixmath} - \usepackage[T1]{fontenc} - \usepackage[utf8]{inputenc} + \usepackage{newtxtext,newtxmath} + \usepackage{substitutefont} + \substitutefont{LGR}{\rmdefault}{artemisia} + \usepackage{isomath} \fi\fi % No section numbers but PDF bookmarks for sections @@ -32,9 +34,6 @@ % Avoid warnigns with PDF string generation for "alphabeta" commands: -% PU supports (monotonic) Greek LICR macros -\DeclareTextCommand{\ensuregreek}{PU}[1]{#1} - % let \TextOrMath (from fixltx2e) return the "text" argument: \pdfstringdefDisableCommands{% \let\TextOrMath\@firstoftwo% @@ -57,6 +56,7 @@ Just like Latin letters, the Greek counterparts are by default italic in math mode (capital letters upright without \emph{fixmath} or \emph{\href{http://www.ctan.org/pkg/isomath}{isomath}}) and upright in text: + \begin{quote} Text: L \Gamma{} l \gamma, emphasized text: \emph{L \Gamma{} l \gamma}, @@ -118,7 +118,7 @@ macros. Wrapping in \verb+\ensuregreek+ ensures the right placement of the accents and breathings (before, not above capital letters). With LICR input (accent macros + symbol macros), non-standard diacritics are missing in the PDF data, as hyperref's PU encoding currently does not support polytonic -Greek. (Here, the dasia dropped at the start of the word in parentheses in +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.) @@ -149,6 +149,8 @@ mathematical mode (for XeTeX/LuaTeX use unicode-math): Greek letters in math (there are no math macros for Greek letters wich exist with similar shape in the Latin alphabet): +Input as macro: + \begin{align*} & % \Alpha{} \Beta{} @@ -176,8 +178,8 @@ with similar shape in the Latin alphabet): \, \digamma{} \end{align*} -Unicode input in math mode works with 8-bit TeX. With XeTeX/LuaTeX, it requires the unicode-math -package. +Input as Unicode literals (with XeTeX/LuaTeX, this requires the unicode-math +package): \begin{align*} & Γ ΔΘΛΞΠΣΥ ΦΨ Ω \\ & αβγδεζηθικλμνξπρσςτ υφχψω \, ϝ |