Debian Codegraph @

texmf-dist/source/latex/libgreek/libgreek.dtx

raw
1 % -*- coding: utf-8; time-stamp-format: "%02d-%02m-%:y at %02H:%02M:%02S %Z" -*-
2 % Execute etex on this file to extract package files.
3 % See in README for more build instructions.
4 %<*dtx>
5 \def\dtxtimestamp {Time-stamp: <13-11-2022 at 17:14:21 CET>}
6 %%
7 %% Package: libgreek
8 %% Greek in math mode via Libertinus or Linux Libertine (JFB)
9 %% Version: 1.1
10 %% License: LPPL 1.3c
11 %% Copyright (C) 2011-2012, 2022 Jean-Francois Burnol
12 %% <jfbu at free dot fr>
13 %%
14 %</dtx>
15 %<*tex>
16 \def\libgreekversion{1.1}
17 \def\libgreekdate{2022/11/11}
18 %</tex>
19 %<*dtx>
20 \iffalse
21 %</dtx>
22 %<*tex>
23 %% This is a generated file. Run latexmk on this file libgreek.tex then
24 %% run dvipdfmx on libgreek.dvi to produce the documentation libgreek.pdf,
25 %% with the package source code included.
26 %%
27 %% Customize as desired the class options and the two toggles below.
28 %%
29 %% See libgreek.dtx for the copyright and the conditions for distribution
30 %% and/or modification of this Work.
31 %%
32 \NeedsTeXFormat{LaTeX2e}
33 \ProvidesFile{libgreek.tex}%
34 [\libgreekdate\space v\libgreekversion\space
35 driver file for libgreek documentation (JFB)]%
36 \PassOptionsToClass{a4paper,fontsize=11pt}{scrartcl}
37 \chardef\Withdvipdfmx \ifdefined\pdfoutput\ifnum\pdfoutput>0 0\else1\fi\else0\fi\relax
38 \chardef\NoSourceCode 0 % replace 0<space> by 1<space> for no source code
39 \input libgreek.dtx
40 %%% Local Variables:
41 %%% mode: latex
42 %%% End:
43 %</tex>
44 %<*dtx>
45 \fi
46 \chardef\noetex 0
47 \ifx\numexpr\undefined\chardef\noetex 1 \fi
48 \ifnum\noetex=1 \chardef\extractfiles 0 % extract files, then stop
49 \else
50 \ifx\ProvidesFile\undefined
51 \chardef\extractfiles 0 % etex etc.. on libgreek.dtx
52 \else % latex/pdflatex on libgreek.tex or on libgreek.dtx
53 \ifx\Withdvipdfmx\undefined
54 % (lua|xe|pdf)latex run is on libgreek.dtx, we will extract all files
55 \chardef\extractfiles 1 % 1 = extract all and typeset doc
56 \chardef\Withdvipdfmx
57 \ifdefined\pdfoutput\ifnum\pdfoutput>0 0\else1\fi\else0\fi\relax
58 \chardef\NoSourceCode 1 %
59 \NeedsTeXFormat{LaTeX2e}%
60 \PassOptionsToClass{a4paper,fontsize=11pt}{scrartcl}%
61 \else % latex run is on libgreek.tex,
62 \chardef\extractfiles 2 % no extractions
63 \fi
64 \ProvidesFile{libgreek.dtx}%
65 [libgreek source (\libgreekversion\space of \libgreekdate) (JFB)]%
66 \fi
67 \fi
68 \ifnum\extractfiles<2 % extract files
69 \def\MessageDeFin{\newlinechar10 \let\Msg\message
70 \Msg{^^J}%
71 \Msg{********************************************************************^^J}%
72 \Msg{*^^J}%
73 \Msg{* To finish the installation you have to move the following^^J}%
74 \Msg{* files into a directory searched by TeX:^^J}%
75 \Msg{*^^J}%
76 \Msg{*\space\space\space\space libgreek.sty^^J}%
77 \Msg{*\space\space\space\space libgreek-legacy.sty^^J}%
78 \Msg{*^^J}%
79 \Msg{* To produce the documentation with source code included run latexmk^^J}%
80 \Msg{* on extracted libgreek.tex and then dvipdfmx on libgreek.dvi^^J}%
81 \Msg{*^^J}%
82 \Msg{* Happy TeXing!^^J}%
83 \Msg{*^^J}%
84 \Msg{********************************************************************^^J}%
85 }%
86 \begingroup
87 \input docstrip.tex
88 \askforoverwritefalse
89 \generate{\nopreamble
90 \usepostamble\defaultpostamble
91 \file{libgreek.tex}{\from{libgreek.dtx}{tex}}%
92 \usepreamble\defaultpreamble
93 \file{libgreek-legacy.sty}{\from{libgreek.dtx}{legacy}}%
94 \file{libgreek.sty}{\from{libgreek.dtx}{sty}}%
95 }
96 \endgroup
97 \fi % end of file extractions
98 \ifnum\extractfiles=0
99 % tex/etex/xetex/etc on libgreek.dtx, files are now extracted, stop
100 \MessageDeFin\expandafter\end
101 \fi
102 % no file extractions if latex compilation was on libgreek.tex
103 \ifdefined\MessageDeFin\AtEndDocument{\MessageDeFin}\fi
104 \ifnum\Withdvipdfmx>0
105 \documentclass [dvipdfmx]{scrartcl}
106 \else
107 \documentclass {scrartcl}
108 \fi
109 \tracinglostchars=3
110
111 % use doc with v2 because hyperref option clash with hypdoc
112 % or warning of hypdoc is simply TOO MUCH OF A BIG PAIN
113 \usepackage{doc}[=v2]
114 % but the v2 does not define \cs, it got defined in ltxdoc
115 \def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}}
116 \def\cmd@to@cs#1#2{\char\number`#2\relax}
117 \DeclareRobustCommand\cs[1]{\texttt{\bslash#1}}
118 \AtBeginDocument{%
119 \pdfstringdefDisableCommands{\def\cs#1{\textbackslash\detokenize{#1}}}%
120 }%
121 % these are not defined by doc package
122 \providecommand\marg[1]{%
123 {\ttfamily\char`\{}\meta{#1}{\ttfamily\char`\}}}
124 \providecommand\oarg[1]{%
125 {\ttfamily[}\meta{#1}{\ttfamily]}}
126 \providecommand\parg[1]{%
127 {\ttfamily(}\meta{#1}{\ttfamily)}}
128
129 \CodelineNumbered
130 \AtBeginDocument{\MakeShortVerb\|}
131 \ifnum\NoSourceCode=1
132 \OnlyDescription
133 \fi
134 \usepackage[LGR,T1]{fontenc}
135
136 \usepackage{hologo}
137 %% \hologoFontSetup{general=\upshape\rmfamily}
138 \DeclareRobustCommand*{\pdfLaTeX}{\hologo{pdfLaTeX}}%
139 % \DeclareRobustCommand*{\eTeX}{\hologo{eTeX}}%
140 % \DeclareRobustCommand*{\LuaTeX}{\hologo{LuaTeX}}%
141 % \DeclareRobustCommand*{\LuaLaTeX}{\hologo{LuaLaTeX}}%
142 % \DeclareRobustCommand*{\XeTeX}{\hologo{XeTeX}}%
143 % \DeclareRobustCommand*{\XeLaTeX}{\hologo{XeLaTeX}}%
144
145 \usepackage{geometry}
146 \usepackage[english]{babel}
147
148 \usepackage{multicol}
149 \usepackage{framed}
150
151 \usepackage{color}
152 \definecolor{joli}{RGB}{225,95,0}
153 \definecolor{JOLI}{RGB}{225,95,0}
154 \definecolor{urlcolor}{RGB}{38,128,192}
155
156 \usepackage{hyperref}
157 \hypersetup{%
158 linktoc=all,%
159 breaklinks=true,%
160 colorlinks=true,%
161 linkcolor={red},%
162 urlcolor={urlcolor},
163 pdfauthor={Jean-François Burnol},%
164 pdftitle={The libgreek package},%
165 pdfstartview=FitH,%
166 pdfpagemode=UseNone,%
167 }
168 \usepackage{hypcap}
169 \usepackage{bookmark}
170 \usepackage{enumerate}
171
172 \usepackage{mlmodern}
173 \DeclareEncodingSubset{TS1}{mlmtt}{0}% fix \textasciigrave related latex2e#905
174
175 % useless with doc.sty
176 % \usepackage{upquote}
177 % as \verb, verbatim and macrocode do not use \@noligs
178 \begingroup
179 \catcode`\'\active\catcode`\`\active
180 \gdef\MakePrivateLetters{\makeatletter\def`{\textasciigrave}\def'{\textquotesingle}}
181 \endgroup
182 % https://github.com/latex3/latex2e/issues/953, for the record
183
184 \usepackage{xspace}
185
186 \newcommand\ctanpkg[1]{\href{https://ctan.org/pkg/#1}{#1}}
187
188 % Vendredi 11 novembre 2022 : impossible d'utiliser \hypersetup{urlcolor=joli}
189 % dans \section (même sans le \texorpdfstring).
190 % même si la macro \libgreek est déclarée robuste mais avec \protected c'est bon
191 % \DeclareRobustCommand\libgreek{{\hypersetup{urlcolor=joli}libgreek}}% <-- BAD
192 % ceci ok (mais il faudra ajouter \texorpdfstring)
193 % \protected\def\libgreek{{\hypersetup{urlcolor=joli}libgreek}}% <-- OK
194 % L'erreur est
195 % Argument of \KVS@@CommaComma has an extra }
196 % mais je n'ai pas cherché à en savoir plus. De plus dans le code ci-dessous
197 % on avait plutôt un stack overflow dû à boucle infinie.
198
199 % le \texorpdfstring ne sert à rien si \protected dans \section
200 \protected\def\libgreek{%
201 {\hypersetup{urlcolor=joli}\bfseries \ctanpkg{libgreek}}\xspace
202 }
203 \pdfstringdefDisableCommands{\def\libgreek{libgreek\xspace}}
204
205 \usepackage{centeredline}
206 \usepackage[libertinus]{libgreek}
207 \usepackage{libgreek-legacy}
208 % don't do this double loading at home!
209 % it overwrites all Greek letters to use libertine-legacy ufxl03,
210 % but we will use the internal \libgreek@setgreekcs in a local scope
211 % to still get the LibertinusSerif when needed for display.
212 % The greek, Greek and style options of libgreek are broken by this
213 % so we can't use \libgreeksetup.
214
215 \begin{document}\renewcommand\familydefault\sfdefault
216 \begin{center}
217 {\Large The \libgreek package}\\
218 Jean-François \textsc{Burnol}\\
219 \texttt{jfbu (at) free (dot) fr}\\
220 \footnotesize
221 This is \libgreekversion\ (\libgreekdate) from
222 source file having \dtxtimestamp
223 \end{center}
224
225 {
226 \addtocontents{toc}{\protect\hypersetup{hidelinks}}
227 \addtocontents{lot}{\protect\hypersetup{hidelinks}}
228
229 \tableofcontents
230
231 \listoftables
232 }
233
234 \section{Description}
235
236 The \libgreek package sets the Greek letters {in math mode} (\textbf{only}) to use glyphs
237 ultimately from the Libertinus%
238 %
239 \footnote{Khaled~\textsc{Hosny} originated
240 the \url{https://github.com/alerque/libertinus} project, now maintained by
241 Caleb~\textsc{Maclennan}, as a fork of
242 the \href{https://en.wikipedia.org/wiki/Linux_Libertine}{Linux Libertine}
243 fonts designed by Philipp~H.~\textsc{Poll}.}
244 %
245 Unicode font, as made available to the ``8bit'' traditional \TeX{} engines
246 thanks to the \ctanpkg{libertinus-type1} package%
247 %
248 \footnote{Bob~\textsc{Tennent}, \emph{Support for using Libertinus fonts with
249 \LaTeX/\pdfLaTeX}, \url{https://ctan.org/pkg/libertinus-type1}}.
250 %
251 The package \ctanpkg{libertinus-type1} is not loaded, but must be present.
252
253 Thus \libgreek is for people who want \emph{only} to adjust Greek letters in math
254 mode (and easily configure usage of upright or italic/slanted shapes), perhaps
255 in the context of having changed Latin letters as well, e.g.\@ from using the
256 \ctanpkg{mathastext} or the \ctanpkg{frenchmath} packages.
257
258 Nota bene: complete math configuration is provided by the
259 \ctanpkg{libertinust1math} package%
260 %
261 \footnote{Michael \textsc{Sharpe}, \emph{A Type 1 font and \LaTeX\ support for Libertinus
262 Math}, \url{https://ctan.org/pkg/libertinust1math}.},
263 %
264 and you very probably do not want using \libgreek if already loading
265 \ctanpkg{libertinust1math}!
266
267
268 The Greek letters all come with \cs{...up} and \cs{...it} named variants, and
269 whether ``bare'' control sequences map to the `|up|' or `|it|' ones can be
270 configured via package options, even midway in the document via
271 \cs{libgreeksetup}. Further, the package optionally defines two math
272 alphabets \cs{libgreekup} and \cs{libgreekit}. What `|up|' and `|it|'
273 actually mean can be configured using the |upshape| and |itshape| keys at
274 package loading time.
275
276
277 On old systems where the (now obsolete) \ctanpkg{libertine-legacy}%
278 %
279 \footnote{Bob~\textsc{Tennent}, \emph{Linux Libertine fonts for \hologo{(La)TeX} and
280 %{\upshape\rmfamily pdf}
281 pdf\hologo{(La)TeX} users}, \url{https://ctan.org/pkg/libertine-legacy}}
282 %
283 is installed, \libgreek will switch automatically for backwards compatibility
284 to a ``legacy'' mode which uses rather the font support files as provided by
285 \ctanpkg{libertine-legacy}. This ``legacy'' package |libgreek-legacy| uses
286 almost unchanged the code from the original 2011 release.
287
288 On \LaTeX{} installations with \ctanpkg{libertine-legacy} present you can
289 author new documents using directly
290 \centeredline{|\usepackage|\oarg{options}|{libgreek-legacy}|}
291 but they
292 will not be portable to installations lacking \ctanpkg{libertine-legacy}.
293
294 The ``legacy'' package does not provide the \cs{...up} and
295 \cs{...it} control sequences nor does it provide the \cs{libgreekup} and
296 \cs{libgreekit} math alphabets, or the \cs{libgreeksetup} command.
297
298 To author new documents which will always use \ctanpkg{libertinus-type1} even
299 if moved to systems having kept in some local |texmf| tree the obsolete (and not
300 included in \TeX Live for some years) \ctanpkg{libertine-legacy} package
301 files, use
302 %
303 \centeredline{|\usepackage[libertinus,|\meta{options}|]{libgreek}|}
304 %
305 This is not needed if anyone of the options recognized only by \libgreek and
306 not by \libgreek-legacy is used: i.e.\@ |serif|, |sans|, |upshape|,
307 |itshape| and |alphabets|.
308
309 \section{Documentation of the \libgreek package}
310
311 Here are the options recognized by the package:
312 \begin{description}
313 \item[libertinus] This option forces usage of the font support
314 files from package \ctanpkg{libertinus-type1} even if
315 \ctanpkg{libertine-legacy} is avalable on the \LaTeX{} installation.
316 \item[serif] Configures the package to use the (type1) Libertinus Serif font. This is
317 the default behaviour (if the ``legacy''
318 mode is not activated).
319 \item[libertine] This is a deprecated alias for |serif|, which is provided for
320 backwards compatibility with existing documents and does not inhibit the
321 ``legacy'' mode: on a system having the \ctanpkg{libertine-legacy} files it
322 will end up being handed over to \libgreek-legacy, except if some other
323 option inhibits this.
324 \item[sans] Configures the package to use the (type1) Libertinus Sans font.
325 \item[biolinum] Configures the package to use either the Libertinus Sans font
326 or the (type1) Biolinum font if the ``legacy'' mode kicks in.
327 \item[upshape=\meta{shape}] Declares the shape to be used by the \cs{...up}
328 Greek letters and the \cs{libgreekup} math alphabet. Defaults to `|n|'
329 (without the quotes).
330 \item[itshape=\meta{shape}] Declares the shape to be used by the \cs{...it}
331 Greek letters and the \cs{libgreekit} math alphabet. Defaults to `|it|'.
332 \item[scale=\meta{factor}] will scale the font by the given
333 factor, relative to nominal size.
334
335 Example: scale=1.2 will scale by 20\%.\DeleteShortVerb{\|}
336 \item[style=\meta{\upshape\ttfamily ISO|French|TeX}] specifies the shape style
337 of the Greek letters.\MakeShortVerb{\|}
338
339 |ISO| means `italic' for lowercase
340 and uppercase, |French| means `upright' for lowercase and uppercase, |TeX|
341 means `italic' for lowercase and `upright' for uppercase.
342
343 This option will
344 override any |greek| or |Greek| option. The package defaults to |style=TeX|.
345
346 What `upright' and `italic' mean is configured by the |upshape| and
347 |itshape| respective settings.\DeleteShortVerb\|
348 \item[greek=\meta{\ttfamily\upshape up|it|...}] Says\MakeShortVerb{\|} whether
349 Greek letters will be `upright' or `italic' i.e.\@ whether they obey the
350 |upshape| or |itshape| setting, i.e.\@ whether \cs{alpha} et al.\@ are
351 \cs{let} to \cs{alphaup} (et al.) or to \cs{alphait} (et
352 al.).\MakeShortVerb{\|}
353
354 So |greek=it| is like |style=ISO|, and |greek=up| is like |style=French|.
355
356 For backwards compatibility with the behaviour of the 2011 release, other
357 shape values, such as `|n|' and `|sl|' or even `|sc|', are accepted. For
358 more details, see the explanations for |Greek|. For example |greek=n| is
359 like |style=French|.
360
361 This option is ignored if |style| is used (order does not matter).
362 \DeleteShortVerb\|
363 \item[Greek=\meta{\ttfamily\upshape up|it|...}] Says\MakeShortVerb{\|}
364 whether uppercase Greek
365 letters (and only them) will be `upright' or `italic' i.e.\@ whether they
366 use |upshape| or |itshape|, i.e.\@ whether \cs{Alpha} et al.\@ are \cs{let}
367 to \cs{Alphaup} (et al.) or to \cs{Alphait} (et al.).\MakeShortVerb{\|}
368
369 So to obtain lowercase to be `upright' and uppercase to be `italic', use
370 |greek=up| and then |Greek=it| (|Greek| must appear after |greek| else it will be
371 shadowed by it). Alternatively, do not use the |greek/Greek| keys but set
372 |upshape=it|, |itshape=n|, as the package by default assigns `italic' to
373 lowercase and `upright' to uppercase.
374
375 This option, like the |greek| option, is ignored if the |style| option is used.
376
377 For backwards compatibility with the behaviour of the 2011 release, other
378 shape values, such as `|n|' and `|sl|', are accepted. They will then
379 override the |upshape| setting for it to match it. For example |Greek=sc|
380 will force |upshape| to be |sc|, because the assumed style is the \TeX{} one
381 of italic lowercase and upright uppercase, so setting the shape of uppercase
382 must update the |upshape| value.
383
384 \DeleteShortVerb{\|}
385 It is however recommended to use rather the \verb+upshape|itshape|style+ keys.
386 \MakeShortVerb{\|}
387
388 Using |greek=up| or |Greek=up| does not inhibit ``legacy'' mode although the
389 legacy package did not a priori accept that value `|up|'. But since
390 \LaTeX{} 2020-02-02, the `|up|' shape is recognized and triggers
391 |up|$\to$|n| substitutions, so one can use that syntax even in contexts
392 which will let the package fall back to ``legacy'' mode. Not recommended, though.
393
394 % Actually |greek| and |Greek| are provided mainly as compatibility stubs with
395 % legacy behaviour, in order for the package, even if not using ``legacy''
396 % mode, to behave similarly regarding shapes as was doing its initial release.
397
398 \item[series=\meta{series}] This tells which series to use. The default is the
399 value of \cs{seriesdefault} at the time of loading the package. There is no interface to configure distinct series for the `upright' and `italic' shapes.
400 \item[boldseries=\meta{series}] This tells which series to use in bold
401 math. Default is \cs{bfdefault} at the time of loading the package. There is no interface to configure distinct series for the `upright' and `italic' shapes.
402 \item[alphabets] Says whether to define \cs{libgreekup} and \cs{libgreekit}.
403 \end{description}
404
405 \begin{table}[htbp]
406 \capstart
407 \DeleteShortVerb\|% a effet global !
408 \let\s\string
409 \ttfamily
410 \makeatletter
411 \libgreek@upper@uptrue
412 \libgreek@lower@uptrue
413 \libgreek@setgreekcs
414 \begin{multicols}{3}\def\foo{\kern1cm}\raggedcolumns
415 \s\alphatonos\hfill$\alphatonos$ \foo\\
416 \s\epsilontonos\hfill$\epsilontonos$ \foo\\
417 \s\etatonos\hfill$\etatonos$ \foo\\
418 \s\iotatonos\hfill$\iotatonos$ \foo\\
419 \s\omicrontonos\hfill$\omicrontonos$ \foo\\
420 \s\upsilontonos\hfill$\upsilontonos$ \foo\\
421 \s\omegatonos\hfill$\omegatonos$ \foo\\
422 \s\upsilondieresistonos\hfill$\upsilondieresistonos$ \foo\\
423 \s\iotadieresis\hfill$\iotadieresis$ \foo\\
424 \s\iotadieresistonos\hfill$\iotadieresistonos$ \foo\\
425 \s\upsilondieresis\hfill$\upsilondieresis$ \foo\\
426 \end{multicols}
427 \medskip
428 \centeredline{%
429 \begin{tabular}{|lc|lc|lc|lc|}
430 \hline
431 \s\Alpha&$\Alpha$ &\s\Nu&$\Nu$ &\s\alpha&$\alpha$ &\s\nu&$\nu$\\
432 \s\Beta&$\Beta$ &\s\Xi&$\Xi$ &\s\beta&$\beta$ &\s\xi&$\xi$\\
433 \s\Gamma&$\Gamma$ &\s\Omicron&$\Omicron$&\s\gamma&$\gamma$ &\s\omicron&$\omicron$\\
434 \s\Delta&$\Delta$ &\s\Pi&$\Pi$ &\s\delta&$\delta$ &\s\pi&$\pi$\\
435 \s\Epsilon&$\Epsilon$&\s\Rho&$\Rho$ &\s\epsilon&$\epsilon$&\s\rho&$\rho$\\
436 \s\Zeta&$\Zeta$ &\s\Sigma&$\Sigma$ &\s\zeta&$\zeta$ &\s\sigma&$\sigma$\\
437 \s\Eta&$\Eta$ &\s\Tau&$\Tau$ &\s\eta&$\eta$ &\s\tau&$\tau$\\
438 \s\Theta&$\Theta$ &\s\Upsilon&$\Upsilon$&\s\theta&$\theta$ &\s\upsilon&$\upsilon$\\
439 \s\Iota&$\Iota$ &\s\Phi&$\Phi$ &\s\iota&$\iota$ &\s\phi&$\phi$\\
440 \s\Kappa&$\Kappa$ &\s\Chi&$\Chi$ &\s\kappa&$\kappa$ &\s\chi&$\chi$\\
441 \s\Lambda&$\Lambda$ &\s\Psi&$\Psi$ &\s\lambda&$\lambda$ &\s\psi&$\psi$\\
442 \s\Mu&$\Mu$ &\s\Omega&$\Omega$ &\s\mu&$\mu$ &\s\omega&$\omega$\\
443 \hline
444 \end{tabular}}
445 \medskip
446 % il faut mettre le \columnbreak avant le \\ ...
447 \begin{multicols}{3}\def\foo{\kern1cm}\raggedcolumns
448 \s\varsigma\hfill$\varsigma$ \foo\\
449 \s\varvarsigma\hfill$\varvarsigma$ \foo\\
450 \s\sampi\hfill$\sampi$ \foo\\
451 \s\digamma\hfill$\digamma$ \foo\\
452 \s\koppa\hfill$\koppa$ \foo\\
453 \s\varSigma\hfill$\varSigma$ \foo\\
454 \s\Sampi\hfill$\Sampi$ \foo\\
455 \s\Digamma\hfill$\Digamma$ \foo
456 \par
457 \end{multicols}
458 % il y a bien sûr d'horribles espacement verticaux typiques de LaTeX
459 \vspace*{-\baselineskip}
460 \caption[Greek letters via Libertinus Serif (upright)]{Greek letters from LibertinusSerif in LGR encoding, upright shapes}
461 \label{table:LibertinusSerif upright}
462 \MakeShortVerb\|
463 \end{table}
464
465 \begin{table}[htbp]
466 \capstart
467 \DeleteShortVerb\|% a effet global !
468 \let\s\string
469 \ttfamily
470 \makeatletter
471 % comme j'ai utilise libertine-legacy, le comportement des clés
472 % greek et Greek a été changé, donc je ne peux pas utiliser \libgreeksetup
473 \libgreek@upper@upfalse
474 \libgreek@lower@upfalse
475 \libgreek@setgreekcs
476 \begin{multicols}{3}\def\foo{\kern1cm}\raggedcolumns
477 \s\alphatonos\hfill$\alphatonos$ \foo\\
478 \s\epsilontonos\hfill$\epsilontonos$ \foo\\
479 \s\etatonos\hfill$\etatonos$ \foo\\
480 \s\iotatonos\hfill$\iotatonos$ \foo\\
481 \s\omicrontonos\hfill$\omicrontonos$ \foo\\
482 \s\upsilontonos\hfill$\upsilontonos$ \foo\\
483 \s\omegatonos\hfill$\omegatonos$ \foo\\
484 \s\upsilondieresistonos\hfill$\upsilondieresistonos$ \foo\\
485 \s\iotadieresis\hfill$\iotadieresis$ \foo\\
486 \s\iotadieresistonos\hfill$\iotadieresistonos$ \foo\\
487 \s\upsilondieresis\hfill$\upsilondieresis$ \foo\\
488 \end{multicols}
489 \medskip
490 \centeredline{%
491 \begin{tabular}{|lc|lc|lc|lc|}
492 \hline
493 \s\Alpha&$\Alpha$ &\s\Nu&$\Nu$ &\s\alpha&$\alpha$ &\s\nu&$\nu$\\
494 \s\Beta&$\Beta$ &\s\Xi&$\Xi$ &\s\beta&$\beta$ &\s\xi&$\xi$\\
495 \s\Gamma&$\Gamma$ &\s\Omicron&$\Omicron$&\s\gamma&$\gamma$ &\s\omicron&$\omicron$\\
496 \s\Delta&$\Delta$ &\s\Pi&$\Pi$ &\s\delta&$\delta$ &\s\pi&$\pi$\\
497 \s\Epsilon&$\Epsilon$&\s\Rho&$\Rho$ &\s\epsilon&$\epsilon$&\s\rho&$\rho$\\
498 \s\Zeta&$\Zeta$ &\s\Sigma&$\Sigma$ &\s\zeta&$\zeta$ &\s\sigma&$\sigma$\\
499 \s\Eta&$\Eta$ &\s\Tau&$\Tau$ &\s\eta&$\eta$ &\s\tau&$\tau$\\
500 \s\Theta&$\Theta$ &\s\Upsilon&$\Upsilon$&\s\theta&$\theta$ &\s\upsilon&$\upsilon$\\
501 \s\Iota&$\Iota$ &\s\Phi&$\Phi$ &\s\iota&$\iota$ &\s\phi&$\phi$\\
502 \s\Kappa&$\Kappa$ &\s\Chi&$\Chi$ &\s\kappa&$\kappa$ &\s\chi&$\chi$\\
503 \s\Lambda&$\Lambda$ &\s\Psi&$\Psi$ &\s\lambda&$\lambda$ &\s\psi&$\psi$\\
504 \s\Mu&$\Mu$ &\s\Omega&$\Omega$ &\s\mu&$\mu$ &\s\omega&$\omega$\\
505 \hline
506 \end{tabular}}
507 \medskip
508 % il faut mettre le \columnbreak avant le \\ ...
509 \begin{multicols}{3}\def\foo{\kern1cm}\raggedcolumns
510 \s\varsigma\hfill$\varsigma$ \foo\\
511 \s\varvarsigma\hfill$\varvarsigma$ \foo\\
512 \s\sampi\hfill$\sampi$ \foo\\
513 \s\digamma\hfill$\digamma$ \foo\\
514 \s\koppa\hfill$\koppa$ \foo\\
515 \s\varSigma\hfill$\varSigma$ \foo\\
516 \s\Sampi\hfill$\Sampi$ \foo\\
517 \s\Digamma\hfill$\Digamma$ \foo
518 \par
519 \end{multicols}
520 % il y a bien sûr d'horribles espacement verticaux typiques de LaTeX
521 \vspace*{-\baselineskip}
522 \caption[Greek letters via Libertinus Serif (italic)]{Greek letters from LibertinusSerif in LGR encoding, italic shapes}
523 \label{table:LibertinusSerif italic}
524 \MakeShortVerb\|
525 \end{table}
526
527 \begin{table}[htbp]
528 \capstart
529 \DeleteShortVerb\|% a effet global !
530 % ah que TeX est mieux avec tt
531 \def\s#1{{\usefont{T1}{mlmtt}{m}{n}\string#1}}%
532 \usefont{LGR}{LibertinusSans-TLF}{m}{n}%
533 \begin{multicols}{3}\def\foo{\kern1cm}\raggedcolumns
534 \s\alphatonos\hfill\char136 \foo\\
535 \s\epsilontonos\hfill\char232 \foo\\
536 \s\etatonos\hfill\char160 \foo\\
537 \s\iotatonos\hfill\char208 \foo\\
538 \s\omicrontonos\hfill\char236 \foo\\
539 \s\upsilontonos\hfill\char212 \foo\\
540 \s\omegatonos\hfill\char184 \foo\\
541 \s\upsilondieresistonos\hfill\char246 \foo\\
542 \s\iotadieresis\hfill\char240 \foo\\
543 \s\iotadieresistonos\hfill\char242 \foo\\
544 \s\upsilondieresis\hfill\char244 \foo\\
545 \end{multicols}
546 \medskip
547 \centeredline{%
548 \begin{tabular}{|lc|lc|lc|lc|}
549 \hline
550 \s\Alpha&\char65 &\s\Nu&\char78 &\s\alpha&\char97 &\s\nu&\char110 \\
551 \s\Beta&\char66 &\s\Xi&\char88 &\s\beta&\char98 &\s\xi&\char120 \\
552 \s\Gamma&\char71 &\s\Omicron&\char79 &\s\gamma&\char103 &\s\omicron&\char111 \\
553 \s\Delta&\char68 &\s\Pi&\char80 &\s\delta&\char100 &\s\pi&\char112 \\
554 \s\Epsilon&\char69 &\s\Rho&\char82 &\s\epsilon&\char101 &\s\rho&\char114 \\
555 \s\Zeta&\char90 &\s\Sigma&\char83 &\s\zeta&\char122 &\s\sigma&\char115 \\
556 \s\Eta&\char72 &\s\Tau&\char84 &\s\eta&\char104 &\s\tau&\char116 \\
557 \s\Theta&\char74 &\s\Upsilon&\char85 &\s\theta&\char106 &\s\upsilon&\char117 \\
558 \s\Iota&\char73 &\s\Phi&\char70 &\s\iota&\char105 &\s\phi&\char102 \\
559 \s\Kappa&\char75 &\s\Chi&\char81 &\s\kappa&\char107 &\s\chi&\char113 \\
560 \s\Lambda&\char76 &\s\Psi&\char89 &\s\lambda&\char108 &\s\psi&\char121 \\
561 \s\Mu&\char77 &\s\Omega&\char87 &\s\mu&\char109 &\s\omega&\char119 \\
562 \hline
563 \end{tabular}}
564 \medskip
565 % il faut mettre le \columnbreak avant le \\ ...
566 \begin{multicols}{3}\def\foo{\kern1cm}\raggedcolumns
567 \s\varsigma\hfill\char99 \foo\\
568 \s\varvarsigma\hfill\char6 \foo\\
569 \s\sampi\hfill\char27 \foo\\
570 \s\digamma\hfill\char147 \foo\\
571 \s\koppa\hfill\char18 \foo\\
572 \s\varSigma\hfill\char22 \foo\\
573 \s\Sampi\hfill\char23 \foo\\
574 \s\Digamma\hfill\char195 \foo
575 \par
576 \end{multicols}
577 % il y a bien sûr d'horribles espacement verticaux typiques de LaTeX
578 \vspace*{-\baselineskip}
579 \caption[Greek letters via Libertinus Sans (upright)]{Greek letters from LibertinusSans in LGR encoding, upright shapes}
580 \label{table:LibertinusSans upright}
581 \MakeShortVerb\|
582 \end{table}
583
584 \begin{table}[htbp]
585 \capstart
586 \DeleteShortVerb\|% a effet global !
587 % ah que TeX est mieux avec tt
588 \def\s#1{{\usefont{T1}{mlmtt}{m}{n}\string#1}}%
589 \usefont{LGR}{LibertinusSans-TLF}{m}{it}%
590 \begin{multicols}{3}\def\foo{\kern1cm}\raggedcolumns
591 \s\alphatonos\hfill\char136 \foo\\
592 \s\epsilontonos\hfill\char232 \foo\\
593 \s\etatonos\hfill\char160 \foo\\
594 \s\iotatonos\hfill\char208 \foo\\
595 \s\omicrontonos\hfill\char236 \foo\\
596 \s\upsilontonos\hfill\char212 \foo\\
597 \s\omegatonos\hfill\char184 \foo\\
598 \s\upsilondieresistonos\hfill\char246 \foo\\
599 \s\iotadieresis\hfill\char240 \foo\\
600 \s\iotadieresistonos\hfill\char242 \foo\\
601 \s\upsilondieresis\hfill\char244 \foo\\
602 \end{multicols}
603 \medskip
604 \centeredline{%
605 \begin{tabular}{|lc|lc|lc|lc|}
606 \hline
607 \s\Alpha&\char65 &\s\Nu&\char78 &\s\alpha&\char97 &\s\nu&\char110 \\
608 \s\Beta&\char66 &\s\Xi&\char88 &\s\beta&\char98 &\s\xi&\char120 \\
609 \s\Gamma&\char71 &\s\Omicron&\char79 &\s\gamma&\char103 &\s\omicron&\char111 \\
610 \s\Delta&\char68 &\s\Pi&\char80 &\s\delta&\char100 &\s\pi&\char112 \\
611 \s\Epsilon&\char69 &\s\Rho&\char82 &\s\epsilon&\char101 &\s\rho&\char114 \\
612 \s\Zeta&\char90 &\s\Sigma&\char83 &\s\zeta&\char122 &\s\sigma&\char115 \\
613 \s\Eta&\char72 &\s\Tau&\char84 &\s\eta&\char104 &\s\tau&\char116 \\
614 \s\Theta&\char74 &\s\Upsilon&\char85 &\s\theta&\char106 &\s\upsilon&\char117 \\
615 \s\Iota&\char73 &\s\Phi&\char70 &\s\iota&\char105 &\s\phi&\char102 \\
616 \s\Kappa&\char75 &\s\Chi&\char81 &\s\kappa&\char107 &\s\chi&\char113 \\
617 \s\Lambda&\char76 &\s\Psi&\char89 &\s\lambda&\char108 &\s\psi&\char121 \\
618 \s\Mu&\char77 &\s\Omega&\char87 &\s\mu&\char109 &\s\omega&\char119 \\
619 \hline
620 \end{tabular}}
621 \medskip
622 % il faut mettre le \columnbreak avant le \\ ...
623 \begin{multicols}{3}\def\foo{\kern1cm}\raggedcolumns
624 \s\varsigma\hfill\char99 \foo\\
625 \s\varvarsigma\hfill\char6 \foo\\
626 \s\sampi\hfill\char27 \foo\\
627 \s\digamma\hfill\char147 \foo\\
628 \s\koppa\hfill\char18 \foo\\
629 \s\varSigma\hfill\char22 \foo\\
630 \s\Sampi\hfill\char23 \foo\\
631 \s\Digamma\hfill\char195 \foo
632 \par
633 \end{multicols}
634 % il y a bien sûr d'horribles espacement verticaux typiques de LaTeX
635 \vspace*{-\baselineskip}
636 \caption[Greek letters via Libertinus Sans (italic)]{Greek letters from LibertinusSans in LGR encoding, italic shapes}
637 \label{table:LibertinusSans italic}
638 \MakeShortVerb\|
639 \end{table}
640
641 Here are the commands defined by the package:
642 \begin{description}
643 \item[\cs{libgreeksetup}\marg{key=value,...}] The only allowed keys are
644 |style|, |greek| and |Greek|. And for the latter two only the values |up|
645 or |it| should be used (or values matching the |upshape| or |itshape|
646 settings), as it is only possible after package loading time to toggle
647 between `upright' and `italic' depending on whether the letter is uppercase
648 or lowercase, but one can not switch to an altogether different shape as
649 this would require re-declaring the symbol fonts.
650
651 If the |style| key is used, then |greek/Greek| are ignored. However,
652 one can always naturally reuse later \cs{libgreeksetup} using only the
653 |greek| and/or |Greek| keys.
654 \item[\cs{libgreekup}] This is a math alphabet. It is defined only if the
655 package received the |alphabets| option.
656 \item[\cs{libgreekit}] This is a math alphabet. It is defined only if the
657 package received the |alphabets| option.
658 \end{description}
659
660 Miscellaneous remarks:
661 \begin{enumerate}
662 \item Even if not receiving the option |alphabets|, the package will declare
663 all Greek letters to be of type \cs{mathalpha}. The legacy package on the
664 other hand declares them all to be of type \cs{mathord}.
665 \item The \libgreek package ignores global class options. It handles only
666 options originating from the \cs{usepackage} preamble declaration (or some
667 options handed over via \cs{PassOptionsToPackage} or options passed to
668 \cs{libgreeksetup} in the preamble or body). The \libgreek-legacy package
669 on the other hand handles global class options if it recognizes them.
670 \end{enumerate}
671
672 \section{Documentation of the \libgreek-legacy package}
673
674 Except for a fix to a problem with \cs{varvarsigma} and \cs{varvarkappa}, and
675 the handling of option |libertine| (which formerly would have remained
676 effectless if used after |biolinum|) \libgreek-legacy is functionally
677 equivalent with the original |1.0| release of \libgreek from |2011/03/14|.
678
679 Compared to the 2022 \libgreek, and apart from the fact that the legacy mode
680 relies on presence of the files of \ctanpkg{libertine-legacy}, the main
681 difference is that this legacy version does not define \cs{...up} and
682 \cs{...it} shape variants, does not provide \cs{libgreekup} and
683 \cs{libgreekit} math alphabets, and does not define a command
684 \cs{libgreeksetup} allowing to change the shapes midway in a document. All
685 Greek letters are defined as math symbols of type \cs{mathord}, whereas the
686 2022 \libgreek uses type \cs{mathalpha}.
687
688 Also, the legacy package defines even more
689 control sequences for letters with diacritics or special variant
690 glyphs, than does the 2022 \libgreek relying on \ctanpkg{libertinus-type1}
691 LGR-encoded fonts.
692
693 Now to the decription of the recognized options.
694
695 With the exception of |libertine| and |biolinum|, all options are of the
696 |key=value| type.
697 \begin{description}
698 \item[libertine] Configures the package to use the (type1) Libertine font
699 (i.e.\@ the serif font). This is the default behaviour.
700 \item[biolinum] Configures the package to use the (type1) Biolinum font
701 (i.e.\@ the sans serif font).
702 \item[scale=\meta{factor}] will scale the font by the given
703 factor, relative to nominal size (when the
704 Libertine/Biolinum fonts are used elsewhere in the
705 document, they will also be scaled by this
706 factor). Note that the similar option of the
707 \ctanpkg{libertine-legacy} package is called |scaled| and has
708 precisely the same effect. Example: scale=1.2 will
709 scale by 20\%.\DeleteShortVerb{\|}
710 \item[style=\meta{\upshape\ttfamily ISO|French|TeX}]
711 specifies the shape of the Greek\MakeShortVerb{\|}
712 letters. |ISO| means italic for lowercase and
713 uppercase, |French| means upright for lowercase and
714 uppercase, |TeX| means italic for lowercase and upright
715 for uppercase. This option will
716 override any |greek| or |Greek|
717 option. The package defaults to |style=TeX|.
718 \item[greek=\meta{shape}] specifies the shape (|n|, |it|, or |sl|) for both
719 the lowercase and uppercase Greek letters. So |greek=it| is
720 like |style=ISO|, and |greek=n| is like |style=French|.
721 \item[Greek=\meta{shape}] specifies the shape (|n|, |it|, or |sl|)
722 for only the uppercase Greek letters. To have lowercase
723 upright and uppercase italic, use |greek=n,Greek=it|.
724 \item[series=\meta{series}] tells which series to use. The
725 default is the value of \cs{seriesdefault} at the time of
726 loading the package. See the \ctanpkg{libertine-legacy} package
727 documentation for the admissible values (they include |m|,
728 |b|, |bx| (=|b|) for Libertine and |m|, |b|, |bx| (=|b|), |o|, |s| for
729 Biolinum).
730 \item[boldseries=\meta{series}] tells which series to use in
731 bold math. Default is
732 \cs{bfdefault} at the time of loading the
733 package.
734 \end{description}
735 \begin{enumerate}[(1)]
736 \item the bold italic Greek Libertine glyphs are missing from |libertine v5|
737 and later versions up to |libertine-legacy| (or some bug in the font
738 definition files triggers usage of \TeX{} font files not having the glyphs):
739 the log file will contain ``Missing character'' entries, and the PDF will
740 simply display nothing. With |\tracinglostchars=3| and \TeX Live 2021 or
741 later, these ``Missing character'''s will be reported as build errors by \TeX,
742 as they should. Use bold slanted instead.
743 \item the bold lowercase Greek Biolinum letters
744 are in fact not bold.
745 \end{enumerate}
746
747 Advanced example of use (we use slanted rather than italic
748 to circumvent the problem mentioned above):
749 \begin{verbatim}
750 \documentclass{article}
751 \usepackage[scale=2,series=b,greek=sl,Greek=n]{libgreek}
752 \begin{document}
753 $\alpha\beta\gamma\phi\psi \Alpha\Beta\Gamma\Phi\Psi$
754 \end{document}
755 \end{verbatim}
756
757 As shown in the \autoref{table:libertine}, the package also defines control
758 sequences to access quite a few letters with diacritics. The displayed glyphs
759 correspond to using |libgreek-legacy| with its default, i.e.\@ the serif font
760 (Libertine) is used, the lowercase italic letters are italic, and the
761 uppercase are upright.
762
763 \begin{table}[htbp]
764 \capstart
765 \DeleteShortVerb\|% a effet global !
766 \let\s\string
767 \ttfamily
768 % attention un center modifierait le \\ aussi pour l'intérieur de multicols
769 % (je suppose que j'aurais dû essayer en mettant le multicols dans un minipage)
770 \begin{multicols}{3}
771 \s\Alphatonos\hfill$\Alphatonos$\kern1em\\
772 \s\Epsilontonos\hfill$\Epsilontonos$\kern1em\\
773 \s\Etatonos\hfill$\Etatonos$\kern1em\\
774 \s\Iotadieresis\hfill$\Iotadieresis$\kern1em\\
775 \s\Iotatonos\hfill$\Iotatonos$\kern1em\\
776 \s\Omicrontonos\hfill$\Omicrontonos$\kern1em\\
777 \s\Upsilontonos\hfill$\Upsilontonos$\kern1em\\
778 \s\varUpsilontonos\hfill$\varUpsilontonos$\kern1em\\
779 \s\Upsilondieresis\hfill$\Upsilondieresis$\kern1em\\
780 \s\varUpsilondieresis\hfill$\varUpsilondieresis$\kern1em\\
781 \s\Omegatonos\hfill$\Omegatonos$\kern1em\\
782 \s\alphatonos\hfill$\alphatonos$\kern1em\\
783 \s\epsilontonos\hfill$\epsilontonos$\kern1em\\
784 \s\etatonos\hfill$\etatonos$\kern1em\\
785 \s\iotatonos\hfill$\iotatonos$\kern1em\\
786 \s\iotadieresis\hfill$\iotadieresis$\kern1em\\
787 \s\iotadieresistonos\hfill$\iotadieresistonos$\kern1em\\
788 \s\upsilontonos\hfill$\upsilontonos$\kern1em\\
789 \s\upsilondieresis\hfill$\upsilondieresis$\kern1em\\
790 \s\upsilondieresistonos\hfill$\upsilondieresistonos$\kern1em\\
791 \s\omicrontonos\hfill$\omicrontonos$\kern1em\\
792 \s\omegatonos\hfill$\omegatonos$\kern1em\\
793 \s\anoteleia\hfill$\anoteleia$\kern1em\\
794 \s\tonos\hfill$\tonos$\kern1em\\
795 \s\dieresistonos\hfill$\dieresistonos$\kern1em\par
796 \end{multicols}
797 \medskip
798 \centeredline{%
799 \begin{tabular}{|lc|lc|lc|lc|}
800 \hline
801 % heureusement qu'il y a Emacs et les copié-collés rectangulaires
802 % j'ai envisagé plusieurs autres approches dont du \halign à l'intérieur
803 % de multicols mais finalement je fais donc un tabular
804 \s\Alpha&$\Alpha$& \s\Nu&$\Nu$& \s\alpha&$\alpha$& \s\nu&$\nu$\\
805 \s\Beta&$\Beta$& \s\Xi&$\Xi$& \s\beta&$\beta$& \s\xi&$\xi$\\
806 \s\Gamma&$\Gamma$& \s\Omicron&$\Omicron$& \s\gamma&$\gamma$& \s\omicron&$\omicron$\\
807 \s\Delta&$\Delta$& \s\Pi&$\Pi$& \s\delta&$\delta$& \s\pi&$\pi$\\
808 \s\Epsilon&$\Epsilon$& \s\Rho&$\Rho$& \s\epsilon&$\epsilon$& \s\rho&$\rho$\\
809 \s\Zeta&$\Zeta$& \s\Sigma&$\Sigma$& \s\zeta&$\zeta$& \s\sigma&$\sigma$\\
810 \s\Eta&$\Eta$& \s\Tau&$\Tau$& \s\eta&$\eta$& \s\tau&$\tau$\\
811 \s\Theta&$\Theta$& \s\Upsilon&$\Upsilon$& \s\theta&$\theta$& \s\upsilon&$\upsilon$\\
812 \s\Iota&$\Iota$& \s\Phi&$\Phi$& \s\iota&$\iota$& \s\phi&$\phi$\\
813 \s\Kappa&$\Kappa$& \s\Chi&$\Chi$& \s\kappa&$\kappa$& \s\chi&$\chi$\\
814 \s\Lambda&$\Lambda$& \s\Psi&$\Psi$& \s\lambda&$\lambda$& \s\psi&$\psi$\\
815 \s\Mu&$\Mu$& \s\Omega&$\Omega$& \s\mu&$\mu$& \s\omega&$\omega$\\
816 \hline
817 \end{tabular}}
818 \medskip
819 % il faut mettre le \columnbreak avant le \\ ...
820 \begin{multicols}{3}\def\foo{\kern1cm}\raggedcolumns
821 \s\varsigma\hfill$\varsigma$\foo\\
822 \s\varvarsigma\hfill$\varvarsigma$\foo\\
823 \s\vartheta\hfill$\vartheta$\foo\\
824 \s\varphi\hfill$\varphi$\foo\\
825 \s\varpi\hfill$\varpi$\foo\\
826 \s\varkappa\hfill$\varkappa$\foo\\
827 \s\varvarkappa\hfill$\varvarkappa$\foo\columnbreak\\
828 \s\varepsilon\hfill$\varepsilon$\foo\\
829 \s\reversedvarepsilon\hfill$\reversedvarepsilon$\foo\\
830 \s\varrho\hfill$\varrho$\foo\\
831 \s\digamma\hfill$\digamma$\foo\\
832 \s\koppa\hfill$\koppa$\foo\\
833 \s\sampi\hfill$\sampi$\foo\columnbreak\\
834 \s\varTheta\hfill$\varTheta$\foo\\
835 \s\varUpsilon\hfill$\varUpsilon$\foo\\
836 \s\Digamma\hfill$\Digamma$\foo\\
837 \s\Koppa\hfill$\Koppa$\foo\\
838 \s\Sampi\hfill$\Sampi$\foo
839 \par
840 \end{multicols}
841 % il y a bien sûr d'horribles espacements verticaux typiques de LaTeX
842 \vspace*{-\baselineskip}
843 \caption[Greek letters via libgreek-legacy and Linux Libertine]
844 {Greek letters via libgreek-legacy and default configuration
845 (i.e. no options, or equivalently options \texttt{[libertine,style=TeX]} giving
846 upright uppercase, italic lowercase, and usage of the Libertine glyphs). In
847 the \texttt{1.0} \libgreek release of 2011 the \cs{varvarkappa} and
848 \cs{varvarsigma} would have been upright like the uppercase letters, due to
849 a bug which was fixed for the 2022 transformation into \libgreek-legacy.}
850 \label{table:libertine}
851 \end{table}
852
853
854 \MakeShortVerb\|
855
856 \section{Release history}
857
858 \libgreek was initially developed on a computer equipped with \TeX Live 2010
859 and was released on March 14, 2011. It got a documentation update on September 23,
860 2012, but its source code and version number 1.0 did not change then.
861
862 The initial release used files as included in the v4 version of the
863 \ctanpkg{libertine} package then maintained by Michael~\textsc{Niedermair} and
864 which allowed traditional non-Unicode \TeX{} engines to access glyphs of the
865 Unicode Linux Libertine fonts as designed by Philipp~H.~\textsc{Poll}.
866
867 By the time of \TeX Live 2012 (and even earlier), the files needed by \libgreek
868 had been moved to the \ctanpkg{libertine-legacy} package (maintained by
869 Bob~\textsc{Tennent}). This documentation was updated in September 2012
870 to mention this.
871
872 But around circa 2018 (I think) \ctanpkg{libertine-legacy} package was moved
873 to the ``Obsolete'' section of CTAN, and stopped being included in new \TeX
874 Live releases. This means that \ctanpkg{libgreek}, although still included in
875 \TeX Live, was actually broken on new installations. Theoretically the user
876 could still install \ctanpkg{libertine-legacy}
877 manually, but this is not easy
878 as it is not distributed as a |.tds.zip| archive on CTAN mirrors, and
879 furthermore the |libertine.map| may need to be renamed before being listed in
880 some |updmap.cfg| file, else it would clash with the |libertine.map| from the
881 current \ctanpkg{libertine} package (maintained by Bob~\textsc{Tennent}, and
882 which now can be used on all engines as it auto-detects the context).
883
884 This situation, and the fact that the \ctanpkg{libertinus-type1} package
885 (also maintained by Bob~\textsc{Tennent}, thanks Bob!) provides support files
886 for the LGR encoding, thus allowing to access Greek glyphs, motivated the 2022
887 release of \libgreek.
888
889 Thanks to Antoine~\textsc{Missier} (author of \ctanpkg{frenchmath}) for making
890 the author aware that \libgreek had ceased functioning and was in need of an
891 update, and indeed for quite some years already.
892
893
894 \StopEventually{\end{document}\endinput}
895 \cleardoublepage
896 %\newgeometry{hmarginratio=3:2}
897 \small
898
899 \makeatletter
900
901 \section{Implementation of the \libgreek package}
902
903 % https://github.com/latex3/latex2e/issues/563
904 \AddToHook{env/macrocode/after}{\@nobreakfalse}
905 \AddToHook{env/macrocode/begin}{\partopsep0pt\relax}
906
907 % The catcode hackery next is to avoid to have the guard be listed
908 % in the commented source code... (here <*legacy>)
909 % (c) 2012/11/19 jf burnol ;-)
910
911 \def\gardesactifs {\catcode`\<=0 \catcode`\>=11 \catcode`\*=11 \catcode`\/=11 }
912 \def\gardesinactifs {\catcode`\<=12 \catcode`\>=12 \catcode`\*=12 \catcode`\/=12 }
913 \gardesactifs
914 \let</dtx>\relax
915 \let<*sty>\gardesinactifs
916
917 \MakePercentIgnore
918 %</dtx>
919 %<*sty>
920 % \begin{macrocode}
921 \NeedsTeXFormat{LaTeX2e}
922 \ProvidesPackage{libgreek}
923 [2022/11/11 1.1 Greek in math mode via libertinus-type1 (JFB)]
924 \@ifpackageloaded{libgreek-legacy}{%
925 \PackageWarning{libgreek}%
926 {libgreek-legacy loaded previously, now aborting\@gobble}%
927 \endinput
928 }{}%
929 % \end{macrocode}
930 % We will use \ctanpkg{kvoptions} to handle options with |key=value| syntax.
931 % First let's check for some hint that \ctanpkg{libertine-legacy} is present
932 % and then hand over to the |libgreek-legacy|, but only if only legacy
933 % options have been used.
934 % \begin{macrocode}
935 \RequirePackage{kvoptions}
936 \IfFileExists{ufxl03.fd}{%
937 \define@key{libgreek}{libertinus}[0]{\global\let\libgreek@nolegacy\@empty}
938 \define@key{libgreek}{serif}[0]{\global\let\libgreek@nolegacy\@empty}
939 \define@key{libgreek}{libertine}[0]{}
940 \define@key{libgreek}{sans}[0]{\global\let\libgreek@nolegacy\@empty}
941 \define@key{libgreek}{biolinum}[0]{}
942 \define@key{libgreek}{scale}[0]{}
943 \define@key{libgreek}{upshape}[0]{\global\let\libgreek@nolegacy\@empty}
944 \define@key{libgreek}{itshape}[0]{\global\let\libgreek@nolegacy\@empty}
945 \define@key{libgreek}{style}[0]{}
946 \define@key{libgreek}{Greek}[0]{}
947 \define@key{libgreek}{greek}[0]{}
948 \define@key{libgreek}{series}[0]{}
949 \define@key{libgreek}{boldseries}[0]{}
950 \define@key{libgreek}{alphabets}[0]{\global\let\libgreek@nolegacy\@empty}
951 % \end{macrocode}
952 % Good that this will do only scope-obeying things.
953 % \begin{macrocode}
954 {\ProcessLocalKeyvalOptions*}%
955 \ifdefined\libgreek@nolegacy\expandafter\@gobble\else\expandafter\@firstofone\fi
956 {%
957 \PackageInfo{libgreek}{%
958 ****************************************************\MessageBreak
959 File ufxl03.fd exists!\MessageBreak
960 Thus, now handing over to libgreek-legacy.\MessageBreak
961 To avoid this, use libertinus option.\MessageBreak
962 ****************************************************\@gobbletwo
963 }%
964 % \end{macrocode}
965 % Let's transfer all options to |libgreek-legacy| without trying some shortcut.
966 % \begin{macrocode}
967 \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{libgreek-legacy}}%
968 \ProcessOptions\relax
969 \endinput
970 \RequirePackage{libgreek-legacy}%
971 }%
972 }{}%
973 % \end{macrocode}
974 % To minimize the author's task, we keep close to original code with minimal
975 % adaptations. In particular I decided to keep the fact that |style| option
976 % makes the |Greek| and |greek| options ignored. But there are some
977 % complications originating in the addition of the \cs{libgreeksetup}, which
978 % requires to keep a trace of various things, for example if |style| option is
979 % used at package level and then later on using \cs{libgreeksetup} the user
980 % employs the |Greek/greek| options.
981 %
982 % Although the user interface is kept in a maximally backwards compatible way
983 % (i.e.\@{} even if not falling back to ``legacy'' the option behaviour should
984 % be stable), the underlying architecture of the symbol fonts is completely
985 % different because this package assigns two symbol fonts, one for upright,
986 % the other one for italic-like, whereas the legacy package assigns one or two
987 % symbol fonts depending on whether lowercase and uppercase letters have been
988 % assigned or not the same shape. In the legacy package the symbol fonts are
989 % mapped to either lowercase or uppercase, but in this more modern package,
990 % the symbol fonts are for the `upright' and `italic' shapes.
991 %
992 % The new |upshape| and |itshape| keys allow to configure what the \cs{...up}
993 % and \cs{...it} macros will actually use as shapes.
994 % \begin{macrocode}
995 \def\libgreek@fontfamily{LibertinusSerif}
996 \def\libgreek@scale{1}
997 \def\libgreek@upshape{n}
998 \def\libgreek@itshape{it}
999 \newif\iflibgreek@upper@up\libgreek@upper@uptrue
1000 \newif\iflibgreek@lower@up
1001 \edef\libgreek@series{\seriesdefault}
1002 \edef\libgreek@boldseries{\bfdefault}
1003 \def\libgreek@upper@shape{\libgreek@upshape}
1004 \def\libgreek@lower@shape{\libgreek@itshape}
1005 \def\libgreek@style{TeX}
1006 \newif\iflibgreek@sty
1007 % \end{macrocode}
1008 % We use the \ctanpkg{keyval} interface mostly to not have to rework
1009 % everything, if at all possible, into the \ctanpkg{kvoptions} declarative
1010 % interface. It is a very good thing that the latter package can be used
1011 % without forcing on the user its own declarative interface... however this
1012 % means that inputs such as |serif=false| do not generate errors but are
1013 % handled exactly the same as |serif=true|...
1014 % \begin{macrocode}
1015 \define@key{libgreek}{libertinus}[true]{}
1016 \define@key{libgreek}{serif}[true]{\def\libgreek@fontfamily{LibertinusSerif}}
1017 \define@key{libgreek}{libertine}[true]{\def\libgreek@fontfamily{LibertinusSerif}}
1018 \define@key{libgreek}{sans}[true]{\def\libgreek@fontfamily{LibertinusSans}}
1019 \define@key{libgreek}{biolinum}[true]{\def\libgreek@fontfamily{LibertinusSans}}
1020 \define@key{libgreek}{scale}[1]{\def\libgreek@scale{#1}}
1021 \define@key{libgreek}{upshape}{\edef\libgreek@upshape{#1}}
1022 \define@key{libgreek}{itshape}{\edef\libgreek@itshape{#1}}
1023 \define@key{libgreek}{style}{\edef\libgreek@style{#1}\libgreek@stytrue}
1024 \define@key{libgreek}{Greek}{\edef\libgreek@upper@shape{#1}}
1025 \define@key{libgreek}{greek}{\edef\libgreek@lower@shape{#1}%
1026 \edef\libgreek@upper@shape{#1}}
1027 \define@key{libgreek}{series}{\edef\libgreek@series{#1}}
1028 \define@key{libgreek}{boldseries}{\edef\libgreek@boldseries{#1}}
1029 % \end{macrocode}
1030 % The single truly Boolean option...
1031 % \begin{macrocode}
1032 \DeclareBoolOption[false]{alphabets}
1033 % \end{macrocode}
1034 % We need some auxiliaries to handle the |style| values. As mentioned
1035 % already, some extra stuff is executed for reasons of various scenarii
1036 % with \cs{libgreeksetup}.
1037 % \begin{macrocode}
1038 \def\libgreek@style@ISO{%
1039 \libgreek@upper@upfalse
1040 \libgreek@lower@upfalse
1041 \let\libgreek@upper@shape\libgreek@itshape
1042 \let\libgreek@lower@shape\libgreek@itshape
1043 }
1044 \def\libgreek@style@French{%
1045 \libgreek@upper@uptrue
1046 \libgreek@lower@uptrue
1047 \let\libgreek@upper@shape\libgreek@upshape
1048 \let\libgreek@lower@shape\libgreek@upshape
1049 }
1050 \def\libgreekk@style@TeX{%
1051 \libgreek@upper@uptrue
1052 \libgreek@lower@upfalse
1053 \let\libgreek@upper@shape\libgreek@upshape
1054 \let\libgreek@lower@shape\libgreek@itshape
1055 }
1056 % \end{macrocode}
1057 % This always resets the \cs{iflibgreek@sty} to false for \cs{libgreeksetup}
1058 % being usable with |greek| and |Greek| keys.
1059 % \begin{macrocode}
1060 \def\libgreek@process@style{%
1061 \libgreek@styfalse
1062 \ifcsname libgreek@style@\libgreek@style\endcsname
1063 \csname libgreek@style@\libgreek@style\endcsname
1064 \else
1065 \PackageWarning{libgreek}{Unknown style `\libgreek@style'}%
1066 \fi
1067 }
1068 % \end{macrocode}
1069 % This stuff is a bit involved, but this is done for maximal backwards
1070 % compatibility in terms of stability of behaviour (of course the real maximal
1071 % stability is when the ``legacy'' mode gets activated).
1072 % \begin{macrocode}
1073 \def\libgreek@process@shapes{%
1074 \edef\libgreek@upper@shape{\libgreek@upper@shape}%
1075 \edef\libgreek@lower@shape{\libgreek@lower@shape}%
1076 \ifx\libgreek@upper@shape\libgreek@upshape
1077 \libgreek@upper@uptrue
1078 \else
1079 \ifx\libgreek@upper@shape\libgreek@itshape
1080 \libgreek@upper@upfalse
1081 \else
1082 \expandafter\in@\expandafter{\expandafter.\libgreek@upper@shape,}{.up,}%
1083 \ifin@\libgreek@upper@uptrue
1084 \else
1085 \expandafter\in@\expandafter{\expandafter.\libgreek@upper@shape,}{.it,}%
1086 \ifin@\libgreek@upper@upfalse
1087 \else
1088 \libgreek@process@upper@lastresort
1089 \fi\fi\fi\fi
1090 \ifx\libgreek@lower@shape\libgreek@itshape
1091 \libgreek@lower@upfalse
1092 \else
1093 \ifx\libgreek@lower@shape\libgreek@upshape
1094 \libgreek@lower@uptrue
1095 \else
1096 \expandafter\in@\expandafter{\expandafter.\libgreek@lower@shape,}{.it,}%
1097 \ifin@\libgreek@lower@upfalse
1098 \else
1099 \expandafter\in@\expandafter{\expandafter.\libgreek@lower@shape,}{.up,}%
1100 \ifin@\libgreek@lower@uptrue
1101 \else
1102 \libgreek@process@lower@lastresort
1103 \fi\fi\fi\fi
1104 }%
1105 \def\libgreek@process@upper@lastresort{%
1106 \libgreek@upper@uptrue
1107 \let\libgreek@upshape\libgreek@upper@shape
1108 }
1109 \def\libgreek@process@lower@lastresort{%
1110 \libgreek@lower@upfalse
1111 \let\libgreek@itshape\libgreek@lower@shape
1112 }
1113 % \end{macrocode}
1114 % The fact that packages may be handed global options is rather dangerous.
1115 % Fortunately \ctanpkg{kvoptions} has an interface to handle only local options.
1116 % \begin{macrocode}
1117 \ProcessLocalKeyvalOptions*
1118 % \end{macrocode}
1119 % This is as per the |libertinus-type1.sty| code.
1120 % \begin{macrocode}
1121 \expandafter\edef\csname\libgreek@fontfamily @scale\endcsname{\libgreek@scale}
1122 % \end{macrocode}
1123 % We now do the post-processing regarding the shape configuration after
1124 % option parsing. Once this is done we will reconfigure slightly
1125 % \cs{libgreek@process@shapes} for usability in the document preamble or body,
1126 % after the symbol fonts have been declared. As is well-known the \LaTeX{}
1127 % interface to math fonts is full of ``only-preamble'' restrictions.
1128 % \begin{macrocode}
1129 \iflibgreek@sty
1130 \libgreek@process@style
1131 \else
1132 \libgreek@process@shapes
1133 \fi
1134 \def\libgreek@process@upper@lastresort{%
1135 \PackageWarning{libgreek}{%
1136 Too late for the shape `\libgreek@upper@shape'\MessageBreak
1137 originating in Greek or greek option. Ignored.\MessageBreak
1138 Use `up' or `it'}%
1139 }
1140 \def\libgreek@process@lower@lastresort{%
1141 \PackageWarning{libgreek}{%
1142 Too late for the shape `\libgreek@lower@shape'\MessageBreak
1143 originating in greek option. Ignored.\MessageBreak
1144 Use `up' or `it'}%
1145 }
1146 \def\libgreeksetup#1{%
1147 \setkeys{libgreek}{#1}%
1148 \iflibgreek@sty\libgreek@process@style\else\libgreek@process@shapes\fi
1149 \libgreek@setgreekcs
1150 }
1151 % \end{macrocode}
1152 % Almost all options must be restricted to the package loading time only.
1153 % \begin{macrocode}
1154 \DisableKeyvalOption{libgreek}{libertinus}
1155 \DisableKeyvalOption{libgreek}{serif}
1156 \DisableKeyvalOption{libgreek}{libertine}
1157 \DisableKeyvalOption{libgreek}{sans}
1158 \DisableKeyvalOption{libgreek}{biolinum}
1159 \DisableKeyvalOption{libgreek}{scale}
1160 \DisableKeyvalOption{libgreek}{upshape}
1161 \DisableKeyvalOption{libgreek}{itshape}
1162 \DisableKeyvalOption{libgreek}{series}
1163 \DisableKeyvalOption{libgreek}{boldseries}
1164 \DisableKeyvalOption{libgreek}{alphabets}
1165 % \end{macrocode}
1166 % Declarations of the two symbol fonts, one for `upright' (or whatever is
1167 % configured by the |upshape| key), one for `italic' (or whatever is configured
1168 % by the |itshape| key). One can not specify distinct series, both
1169 % `upright' and `italic' use the same font series. This could be added but I
1170 % doubt anyone will use the package to start with...
1171 % \begin{macrocode}
1172 \DeclareFontEncoding{LGR}{}{}
1173 \DeclareSymbolFont{libgreekup}{LGR}{\libgreek@fontfamily-TLF}
1174 {\libgreek@series}
1175 {\libgreek@upshape}
1176 \SetSymbolFont{libgreekup}{bold}{LGR}{\libgreek@fontfamily-TLF}
1177 {\libgreek@boldseries}
1178 {\libgreek@upshape}
1179 \DeclareSymbolFont{libgreekit}{LGR}{\libgreek@fontfamily-TLF}
1180 {\libgreek@series}
1181 {\libgreek@itshape}
1182 \SetSymbolFont{libgreekit}{bold}{LGR}{\libgreek@fontfamily-TLF}
1183 {\libgreek@boldseries}
1184 {\libgreek@itshape}
1185 % \end{macrocode}
1186 % As all Greek letters are already available in \cs{...up} and \cs{...it}
1187 % variants, it is indeed not immediately pressing to have math alphabets, so
1188 % let's not do it by default.
1189 % \begin{macrocode}
1190 \iflibgreek@alphabets
1191 \DeclareSymbolFontAlphabet{\libgreekup}{libgreekup}
1192 \DeclareSymbolFontAlphabet{\libgreekit}{libgreekit}
1193 \fi
1194 % \end{macrocode}
1195 % Definition of the `|up|' \cs{mathchar}'s. There are 48 `standard'
1196 % ones plus 8 extras and 11 with diacritics for a total of 67 ones.
1197 %
1198 % Hesitation whether I should declare with \cs{mathalpha} \emph{only} if
1199 % |alphabets| is passed to the package.
1200 % \begin{macrocode}
1201 \DeclareMathSymbol{\Alphaup}{\mathalpha}{libgreekup}{65}
1202 \DeclareMathSymbol{\Betaup}{\mathalpha}{libgreekup}{66}
1203 \DeclareMathSymbol{\Gammaup}{\mathalpha}{libgreekup}{71}
1204 \DeclareMathSymbol{\Deltaup}{\mathalpha}{libgreekup}{68}
1205 \DeclareMathSymbol{\Epsilonup}{\mathalpha}{libgreekup}{69}
1206 \DeclareMathSymbol{\Zetaup}{\mathalpha}{libgreekup}{90}
1207 \DeclareMathSymbol{\Etaup}{\mathalpha}{libgreekup}{72}
1208 \DeclareMathSymbol{\Thetaup}{\mathalpha}{libgreekup}{74}
1209 \DeclareMathSymbol{\Iotaup}{\mathalpha}{libgreekup}{73}
1210 \DeclareMathSymbol{\Kappaup}{\mathalpha}{libgreekup}{75}
1211 \DeclareMathSymbol{\Lambdaup}{\mathalpha}{libgreekup}{76}
1212 \DeclareMathSymbol{\Muup}{\mathalpha}{libgreekup}{77}
1213 \DeclareMathSymbol{\Nuup}{\mathalpha}{libgreekup}{78}
1214 \DeclareMathSymbol{\Xiup}{\mathalpha}{libgreekup}{88}
1215 \DeclareMathSymbol{\Omicronup}{\mathalpha}{libgreekup}{79}
1216 \DeclareMathSymbol{\Piup}{\mathalpha}{libgreekup}{80}
1217 \DeclareMathSymbol{\Rhoup}{\mathalpha}{libgreekup}{82}
1218 \DeclareMathSymbol{\Sigmaup}{\mathalpha}{libgreekup}{83}
1219 \DeclareMathSymbol{\Tauup}{\mathalpha}{libgreekup}{84}
1220 \DeclareMathSymbol{\Upsilonup}{\mathalpha}{libgreekup}{85}
1221 \DeclareMathSymbol{\Phiup}{\mathalpha}{libgreekup}{70}
1222 \DeclareMathSymbol{\Chiup}{\mathalpha}{libgreekup}{81}
1223 \DeclareMathSymbol{\Psiup}{\mathalpha}{libgreekup}{89}
1224 \DeclareMathSymbol{\Omegaup}{\mathalpha}{libgreekup}{87}
1225 \DeclareMathSymbol{\alphaup}{\mathalpha}{libgreekup}{97}
1226 \DeclareMathSymbol{\betaup}{\mathalpha}{libgreekup}{98}
1227 \DeclareMathSymbol{\gammaup}{\mathalpha}{libgreekup}{103}
1228 \DeclareMathSymbol{\deltaup}{\mathalpha}{libgreekup}{100}
1229 \DeclareMathSymbol{\epsilonup}{\mathalpha}{libgreekup}{101}
1230 \DeclareMathSymbol{\zetaup}{\mathalpha}{libgreekup}{122}
1231 \DeclareMathSymbol{\etaup}{\mathalpha}{libgreekup}{104}
1232 \DeclareMathSymbol{\thetaup}{\mathalpha}{libgreekup}{106}
1233 \DeclareMathSymbol{\iotaup}{\mathalpha}{libgreekup}{105}
1234 \DeclareMathSymbol{\kappaup}{\mathalpha}{libgreekup}{107}
1235 \DeclareMathSymbol{\lambdaup}{\mathalpha}{libgreekup}{108}
1236 \DeclareMathSymbol{\muup}{\mathalpha}{libgreekup}{109}
1237 \DeclareMathSymbol{\nuup}{\mathalpha}{libgreekup}{110}
1238 \DeclareMathSymbol{\xiup}{\mathalpha}{libgreekup}{120}
1239 \DeclareMathSymbol{\omicronup}{\mathalpha}{libgreekup}{111}
1240 \DeclareMathSymbol{\piup}{\mathalpha}{libgreekup}{112}
1241 \DeclareMathSymbol{\rhoup}{\mathalpha}{libgreekup}{114}
1242 \DeclareMathSymbol{\sigmaup}{\mathalpha}{libgreekup}{115}
1243 \DeclareMathSymbol{\tauup}{\mathalpha}{libgreekup}{116}
1244 \DeclareMathSymbol{\upsilonup}{\mathalpha}{libgreekup}{117}
1245 \DeclareMathSymbol{\phiup}{\mathalpha}{libgreekup}{102}
1246 \DeclareMathSymbol{\chiup}{\mathalpha}{libgreekup}{113}
1247 \DeclareMathSymbol{\psiup}{\mathalpha}{libgreekup}{121}
1248 \DeclareMathSymbol{\omegaup}{\mathalpha}{libgreekup}{119}
1249 % \end{macrocode}
1250 % Defintion of the `|it|' \cs{mathchar}'s.
1251 % \begin{macrocode}
1252 \DeclareMathSymbol{\Alphait}{\mathalpha}{libgreekit}{65}
1253 \DeclareMathSymbol{\Betait}{\mathalpha}{libgreekit}{66}
1254 \DeclareMathSymbol{\Gammait}{\mathalpha}{libgreekit}{71}
1255 \DeclareMathSymbol{\Deltait}{\mathalpha}{libgreekit}{68}
1256 \DeclareMathSymbol{\Epsilonit}{\mathalpha}{libgreekit}{69}
1257 \DeclareMathSymbol{\Zetait}{\mathalpha}{libgreekit}{90}
1258 \DeclareMathSymbol{\Etait}{\mathalpha}{libgreekit}{72}
1259 \DeclareMathSymbol{\Thetait}{\mathalpha}{libgreekit}{74}
1260 \DeclareMathSymbol{\Iotait}{\mathalpha}{libgreekit}{73}
1261 \DeclareMathSymbol{\Kappait}{\mathalpha}{libgreekit}{75}
1262 \DeclareMathSymbol{\Lambdait}{\mathalpha}{libgreekit}{76}
1263 \DeclareMathSymbol{\Muit}{\mathalpha}{libgreekit}{77}
1264 \DeclareMathSymbol{\Nuit}{\mathalpha}{libgreekit}{78}
1265 \DeclareMathSymbol{\Xiit}{\mathalpha}{libgreekit}{88}
1266 \DeclareMathSymbol{\Omicronit}{\mathalpha}{libgreekit}{79}
1267 \DeclareMathSymbol{\Piit}{\mathalpha}{libgreekit}{80}
1268 \DeclareMathSymbol{\Rhoit}{\mathalpha}{libgreekit}{82}
1269 \DeclareMathSymbol{\Sigmait}{\mathalpha}{libgreekit}{83}
1270 \DeclareMathSymbol{\Tauit}{\mathalpha}{libgreekit}{84}
1271 \DeclareMathSymbol{\Upsilonit}{\mathalpha}{libgreekit}{85}
1272 \DeclareMathSymbol{\Phiit}{\mathalpha}{libgreekit}{70}
1273 \DeclareMathSymbol{\Chiit}{\mathalpha}{libgreekit}{81}
1274 \DeclareMathSymbol{\Psiit}{\mathalpha}{libgreekit}{89}
1275 \DeclareMathSymbol{\Omegait}{\mathalpha}{libgreekit}{87}
1276 \DeclareMathSymbol{\alphait}{\mathalpha}{libgreekit}{97}
1277 \DeclareMathSymbol{\betait}{\mathalpha}{libgreekit}{98}
1278 \DeclareMathSymbol{\gammait}{\mathalpha}{libgreekit}{103}
1279 \DeclareMathSymbol{\deltait}{\mathalpha}{libgreekit}{100}
1280 \DeclareMathSymbol{\epsilonit}{\mathalpha}{libgreekit}{101}
1281 \DeclareMathSymbol{\zetait}{\mathalpha}{libgreekit}{122}
1282 \DeclareMathSymbol{\etait}{\mathalpha}{libgreekit}{104}
1283 \DeclareMathSymbol{\thetait}{\mathalpha}{libgreekit}{106}
1284 \DeclareMathSymbol{\iotait}{\mathalpha}{libgreekit}{105}
1285 \DeclareMathSymbol{\kappait}{\mathalpha}{libgreekit}{107}
1286 \DeclareMathSymbol{\lambdait}{\mathalpha}{libgreekit}{108}
1287 \DeclareMathSymbol{\muit}{\mathalpha}{libgreekit}{109}
1288 \DeclareMathSymbol{\nuit}{\mathalpha}{libgreekit}{110}
1289 \DeclareMathSymbol{\xiit}{\mathalpha}{libgreekit}{120}
1290 \DeclareMathSymbol{\omicronit}{\mathalpha}{libgreekit}{111}
1291 \DeclareMathSymbol{\piit}{\mathalpha}{libgreekit}{112}
1292 \DeclareMathSymbol{\rhoit}{\mathalpha}{libgreekit}{114}
1293 \DeclareMathSymbol{\sigmait}{\mathalpha}{libgreekit}{115}
1294 \DeclareMathSymbol{\tauit}{\mathalpha}{libgreekit}{116}
1295 \DeclareMathSymbol{\upsilonit}{\mathalpha}{libgreekit}{117}
1296 \DeclareMathSymbol{\phiit}{\mathalpha}{libgreekit}{102}
1297 \DeclareMathSymbol{\chiit}{\mathalpha}{libgreekit}{113}
1298 \DeclareMathSymbol{\psiit}{\mathalpha}{libgreekit}{121}
1299 \DeclareMathSymbol{\omegait}{\mathalpha}{libgreekit}{119}
1300 % \end{macrocode}
1301 % Alternate shapes and other glyphs.
1302 % \begin{macrocode}
1303 \DeclareMathSymbol{\varsigmaup}{\mathalpha}{libgreekup}{99}
1304 \DeclareMathSymbol{\varvarsigmaup}{\mathalpha}{libgreekup}{6}
1305 \DeclareMathSymbol{\varSigmaup}{\mathalpha}{libgreekup}{22}
1306 \DeclareMathSymbol{\Sampiup}{\mathalpha}{libgreekup}{23}
1307 \DeclareMathSymbol{\sampiup}{\mathalpha}{libgreekup}{27}
1308 \DeclareMathSymbol{\digammaup}{\mathalpha}{libgreekup}{147}
1309 \DeclareMathSymbol{\Digammaup}{\mathalpha}{libgreekup}{195}
1310 \DeclareMathSymbol{\koppaup}{\mathalpha}{libgreekup}{18}
1311 \DeclareMathSymbol{\varsigmait}{\mathalpha}{libgreekit}{99}
1312 \DeclareMathSymbol{\varvarsigmait}{\mathalpha}{libgreekit}{6}
1313 \DeclareMathSymbol{\varSigmait}{\mathalpha}{libgreekit}{22}
1314 \DeclareMathSymbol{\Sampiit}{\mathalpha}{libgreekit}{23}
1315 \DeclareMathSymbol{\sampiit}{\mathalpha}{libgreekit}{27}
1316 \DeclareMathSymbol{\digammait}{\mathalpha}{libgreekit}{147}
1317 \DeclareMathSymbol{\Digammait}{\mathalpha}{libgreekit}{195}
1318 \DeclareMathSymbol{\koppait}{\mathalpha}{libgreekit}{18}
1319 % \end{macrocode}
1320 % Some glyphs with diacritics. I hesitated keeping this,
1321 % which comes from some file I had constituted in September 2011
1322 % to use LGR encoded fonts, and which I am reusing here.
1323 % I hesitated also defining for them both `|up|' and `|it|' shapes.
1324 % \begin{macrocode}
1325 \DeclareMathSymbol{\alphatonosup}{\mathalpha}{libgreekup}{136}
1326 \DeclareMathSymbol{\epsilontonosup}{\mathalpha}{libgreekup}{232}
1327 \DeclareMathSymbol{\etatonosup}{\mathalpha}{libgreekup}{160}
1328 \DeclareMathSymbol{\iotatonosup}{\mathalpha}{libgreekup}{208}
1329 \DeclareMathSymbol{\omicrontonosup}{\mathalpha}{libgreekup}{236}
1330 \DeclareMathSymbol{\upsilontonosup}{\mathalpha}{libgreekup}{212}
1331 \DeclareMathSymbol{\omegatonosup}{\mathalpha}{libgreekup}{184}
1332 \DeclareMathSymbol{\upsilondieresistonosup}{\mathalpha}{libgreekup}{246}
1333 \DeclareMathSymbol{\iotadieresisup}{\mathalpha}{libgreekup}{240}
1334 \DeclareMathSymbol{\iotadieresistonosup}{\mathalpha}{libgreekup}{242}
1335 \DeclareMathSymbol{\upsilondieresisup}{\mathalpha}{libgreekup}{244}
1336 \DeclareMathSymbol{\alphatonosit}{\mathalpha}{libgreekit}{136}
1337 \DeclareMathSymbol{\epsilontonosit}{\mathalpha}{libgreekit}{232}
1338 \DeclareMathSymbol{\etatonosit}{\mathalpha}{libgreekit}{160}
1339 \DeclareMathSymbol{\iotatonosit}{\mathalpha}{libgreekit}{208}
1340 \DeclareMathSymbol{\omicrontonosit}{\mathalpha}{libgreekit}{236}
1341 \DeclareMathSymbol{\upsilontonosit}{\mathalpha}{libgreekit}{212}
1342 \DeclareMathSymbol{\omegatonosit}{\mathalpha}{libgreekit}{184}
1343 \DeclareMathSymbol{\upsilondieresistonosit}{\mathalpha}{libgreekit}{246}
1344 \DeclareMathSymbol{\iotadieresisit}{\mathalpha}{libgreekit}{240}
1345 \DeclareMathSymbol{\iotadieresistonosit}{\mathalpha}{libgreekit}{242}
1346 \DeclareMathSymbol{\upsilondieresisit}{\mathalpha}{libgreekit}{244}
1347 % \end{macrocode}
1348 % Definition of the \cs{mathchar}'s without `|up/it|' postfix. There are 27
1349 % uppercase and 40 lowercase letters, for a total of 67 glyphs. Actually, as
1350 % stated above, I had done some work with LGR in September 2011 when I
1351 % realized that bold italic had gone missing from the ``8bit'' font support of
1352 % libertine v5 compared to libertine v4, and was vaguely hoping that going via
1353 % the LGR encoded font definition files would help, but it did not. I kept
1354 % the file around, and basically only had to replace the font family name, or
1355 % so I thought about ten days ago when I started re-examining the matter. But
1356 % at no point did I go back to check if I had done exhaustive work in 2011 and
1357 % whether some other glyphs could be accounted for by LGR (I did re-check an
1358 % old file about the LGR encoding I had from that 2011 work, but did not try
1359 % to check for updates). Anyway, it is very doubtful whether it made any
1360 % sense for \libgreek to define control sequences for Greek letters with
1361 % diacritics...
1362 % \begin{macrocode}
1363 \def\libgreek@setgreekcs{%
1364 \iflibgreek@upper@up
1365 \let\Alpha\Alphaup
1366 \let\Beta\Betaup
1367 \let\Gamma\Gammaup
1368 \let\Delta\Deltaup
1369 \let\Epsilon\Epsilonup
1370 \let\Zeta\Zetaup
1371 \let\Eta\Etaup
1372 \let\Theta\Thetaup
1373 \let\Iota\Iotaup
1374 \let\Kappa\Kappaup
1375 \let\Lambda\Lambdaup
1376 \let\Mu\Muup
1377 \let\Nu\Nuup
1378 \let\Xi\Xiup
1379 \let\Omicron\Omicronup
1380 \let\Pi\Piup
1381 \let\Rho\Rhoup
1382 \let\Sigma\Sigmaup
1383 \let\Tau\Tauup
1384 \let\Upsilon\Upsilonup
1385 \let\Phi\Phiup
1386 \let\Chi\Chiup
1387 \let\Psi\Psiup
1388 \let\Omega\Omegaup
1389 \let\Sampi\Sampiup
1390 \let\Digamma\Digammaup
1391 \let\varSigma\varSigmaup
1392 \else
1393 \let\Alpha\Alphait
1394 \let\Beta\Betait
1395 \let\Gamma\Gammait
1396 \let\Delta\Deltait
1397 \let\Epsilon\Epsilonit
1398 \let\Zeta\Zetait
1399 \let\Eta\Etait
1400 \let\Theta\Thetait
1401 \let\Iota\Iotait
1402 \let\Kappa\Kappait
1403 \let\Lambda\Lambdait
1404 \let\Mu\Muit
1405 \let\Nu\Nuit
1406 \let\Xi\Xiit
1407 \let\Omicron\Omicronit
1408 \let\Pi\Piit
1409 \let\Rho\Rhoit
1410 \let\Sigma\Sigmait
1411 \let\Tau\Tauit
1412 \let\Upsilon\Upsilonit
1413 \let\Phi\Phiit
1414 \let\Chi\Chiit
1415 \let\Psi\Psiit
1416 \let\Omega\Omegait
1417 \let\Sampi\Sampiit
1418 \let\Digamma\Digammait
1419 \let\varSigma\varSigmait
1420 \fi
1421 \iflibgreek@lower@up
1422 \let\alpha\alphaup
1423 \let\beta\betaup
1424 \let\gamma\gammaup
1425 \let\delta\deltaup
1426 \let\epsilon\epsilonup
1427 \let\zeta\zetaup
1428 \let\eta\etaup
1429 \let\theta\thetaup
1430 \let\iota\iotaup
1431 \let\kappa\kappaup
1432 \let\lambda\lambdaup
1433 \let\mu\muup
1434 \let\nu\nuup
1435 \let\xi\xiup
1436 \let\omicron\omicronup
1437 \let\pi\piup
1438 \let\rho\rhoup
1439 \let\sigma\sigmaup
1440 \let\tau\tauup
1441 \let\upsilon\upsilonup
1442 \let\phi\phiup
1443 \let\chi\chiup
1444 \let\psi\psiup
1445 \let\omega\omegaup
1446 \let\varsigma\varsigmaup
1447 \let\varvarsigma\varvarsigmaup
1448 \let\sampi\sampiup
1449 \let\digamma\digammaup
1450 \let\koppa\koppaup
1451 \let\alphatonos\alphatonosup
1452 \let\epsilontonos\epsilontonosup
1453 \let\etatonos\etatonosup
1454 \let\iotatonos\iotatonosup
1455 \let\omicrontonos\omicrontonosup
1456 \let\upsilontonos\upsilontonosup
1457 \let\omegatonos\omegatonosup
1458 \let\upsilondieresistonos\upsilondieresistonosup
1459 \let\iotadieresis\iotadieresisup
1460 \let\iotadieresistonos\iotadieresistonosup
1461 \let\upsilondieresis\upsilondieresisup
1462 \else
1463 \let\alpha\alphait
1464 \let\beta\betait
1465 \let\gamma\gammait
1466 \let\delta\deltait
1467 \let\epsilon\epsilonit
1468 \let\zeta\zetait
1469 \let\eta\etait
1470 \let\theta\thetait
1471 \let\iota\iotait
1472 \let\kappa\kappait
1473 \let\lambda\lambdait
1474 \let\mu\muit
1475 \let\nu\nuit
1476 \let\xi\xiit
1477 \let\omicron\omicronit
1478 \let\pi\piit
1479 \let\rho\rhoit
1480 \let\sigma\sigmait
1481 \let\tau\tauit
1482 \let\upsilon\upsilonit
1483 \let\phi\phiit
1484 \let\chi\chiit
1485 \let\psi\psiit
1486 \let\omega\omegait
1487 \let\varsigma\varsigmait
1488 \let\varvarsigma\varvarsigmait
1489 \let\sampi\sampiit
1490 \let\digamma\digammait
1491 \let\koppa\koppait
1492 \let\alphatonos\alphatonosit
1493 \let\epsilontonos\epsilontonosit
1494 \let\etatonos\etatonosit
1495 \let\iotatonos\iotatonosit
1496 \let\omicrontonos\omicrontonosit
1497 \let\upsilontonos\upsilontonosit
1498 \let\omegatonos\omegatonosit
1499 \let\upsilondieresistonos\upsilondieresistonosit
1500 \let\iotadieresis\iotadieresisit
1501 \let\iotadieresistonos\iotadieresistonosit
1502 \let\upsilondieresis\upsilondieresisit
1503 \fi
1504 }%
1505 \libgreek@setgreekcs
1506 % \end{macrocode}
1507 % And we have now reached the end of the \libgreek package code. The actual
1508 % |.sty| file will contain an \cs{endinput} added by the DocStrip extraction.
1509 %\MakePercentComment
1510 %</sty>
1511 %<*dtx>
1512 \section{Implementation of the \libgreek-legacy package}
1513 \gardesactifs
1514 \let</dtx>\relax
1515 \let<*legacy>\gardesinactifs
1516 \global\c@CodelineNo\z@
1517 \MakePercentIgnore
1518 We use a rather short summary line because the package name is long and we are
1519 maniac and want the thing to occupy only one line in the log file...
1520 %</dtx>
1521 %<*legacy>
1522 % \begin{macrocode}
1523 \NeedsTeXFormat{LaTeX2e}
1524 \ProvidesPackage{libgreek-legacy}
1525 [2022/11/11 1.1 libertine-legacy math Greek (JFB)]
1526 % \end{macrocode}
1527 % The font support from obsolete package \ctanpkg{libertine-legacy} must be
1528 % present. The legacy code used one of two possible font definition files for
1529 % the LaTeX font system with |U| encoding, either associated with Libertine or
1530 % Biolinum. We check if the Libertine-associated file exists, else abort with
1531 % an Error.
1532 % \begin{macrocode}
1533 \IfFileExists{ufxl03.fd}{%
1534 }{%
1535 \PackageError{libgreek-legacy}{%
1536 Required font support file not present%
1537 }{%
1538 Is (now obsolete) libertine-legacy or earlier libertine v4 or v5\MessageBreak
1539 package installed on your system?\MessageBreak
1540 Maybe you meant to use libgreek not libgreek-legacy?\MessageBreak
1541 Try again with libgreek, not libgreek-legacy. Will abort now, sorry}%
1542 \endinput
1543 }
1544 % \end{macrocode}
1545 % Now back to the old 2011 code.
1546 % \begin{macrocode}
1547 \def\libgreek@font{fxl03}
1548 \def\libgreek@shape{it}
1549 \def\libgreek@uppershape{n}
1550 \newif\iflibgreek@twoshapes\libgreek@twoshapestrue
1551 \edef\libgreek@series{\seriesdefault}
1552 \edef\libgreek@boldseries{\bfdefault}
1553 \newif\iflibgreek@sty
1554 % \end{macrocode}
1555 % Original package used only \ctanpkg{keyval} package and handled options via
1556 % a \cs{ProcessOptionsWithKV} which had been copied-pasted from some forgotten
1557 % source. Let's rather load \ctanpkg{kvoptions}. But we will not use its
1558 % declarative interface, only \cs{define@key} directly.
1559 %
1560 % No need for a \cs{fxb@scale} for Biolinum as file |ufxb03.fd| also uses \cs{fxl@scale}.
1561 % \begin{macrocode}
1562 \RequirePackage{kvoptions}
1563 \define@key{libgreek}{scale}[1]{\def\fxl@scale{#1}}
1564 % \end{macrocode}
1565 % The |1.0| code did not let the |libertine| key do the \cs{def} as has been
1566 % added at |1.1|, thus in situation with |biolinum,libertine| it did not
1567 % revert action of |biolinum|.
1568 %
1569 % By the way this \ctanpkg{keyval} strange syntax means that
1570 % |libertine=false| will have exact same effect |libertine=true|... it is only
1571 % there to allow its usage without a |=value| part...
1572 % \begin{macrocode}
1573 \define@key{libgreek}{libertine}[true]{\def\libgreek@font{fxl03}}
1574 \define@key{libgreek}{biolinum}[true]{\def\libgreek@font{fxb03}}
1575 \define@key{libgreek}{style}{\libgreek@stytrue\edef\libgreek@style{#1}}
1576 \define@key{libgreek}{Greek}{\def\libgreek@Greekshape{#1}}
1577 \define@key{libgreek}{greek}{\edef\libgreek@shape{#1}
1578 \edef\libgreek@uppershape{#1}}
1579 \define@key{libgreek}{series}{\edef\libgreek@series{#1}}
1580 \define@key{libgreek}{boldseries}{\edef\libgreek@boldseries{#1}}
1581 % \end{macrocode}
1582 % Now we call the \ctanpkg{kvoptions} interface. We did not change the family
1583 % key from legacy code so we have to inform \ctanpkg{kvoptions} about that.
1584 % Then \cs{ProcessKeyvalOptions} replaces the |1.0| definition of some
1585 % \cs{ProcessOptionsWithKV}. No need to set the |prefix| key as we don't
1586 % use \ctanpkg{kvoptions} declarative interface.
1587 % \begin{macrocode}
1588 \SetupKeyvalOptions{family=libgreek}
1589 \ProcessKeyvalOptions*
1590 % \end{macrocode}
1591 % The |1.0| code uses one or two Symbol fonts, depending on whether the shape
1592 % for uppercase is same or differs from the shape for lowercase. Indeed it
1593 % assigns one symbol font to lowercase and one symbol font for uppercase.
1594 % \begin{macrocode}
1595 \def\lbg@ISO{ISO}
1596 \def\lbg@French{French}
1597 \iflibgreek@sty
1598 \ifx\libgreek@style\lbg@ISO
1599 \def\libgreek@shape{it}
1600 \libgreek@twoshapesfalse
1601 \else
1602 \ifx\libgreek@style\lbg@French
1603 \def\libgreek@shape{n}
1604 \libgreek@twoshapesfalse
1605 \else
1606 \def\libgreek@shape{it}
1607 \def\libgreek@uppershape{n}
1608 \fi\fi
1609 \else
1610 \ifx\libgreek@Greekshape\undefined
1611 \else\edef\libgreek@uppershape{\libgreek@Greekshape}\fi
1612 \ifx\libgreek@shape\libgreek@uppershape\libgreek@twoshapesfalse\fi
1613 \fi
1614 % \end{macrocode}
1615 % The |libgreekfont| is the one for lowercase (and perhaps uppercase).
1616 % \begin{macrocode}
1617 \DeclareSymbolFont{libgreekfont}{U}{\libgreek@font}
1618 {\libgreek@series}
1619 {\libgreek@shape}
1620 \SetSymbolFont{libgreekfont}{bold}{U}{\libgreek@font}
1621 {\libgreek@boldseries}
1622 {\libgreek@shape}
1623 \def\libgreek@Greek{libgreekfont}
1624 % \end{macrocode}
1625 % If a separate one is needed for uppercase it is |libGreekfont|.
1626 % \begin{macrocode}
1627 \iflibgreek@twoshapes
1628 \DeclareSymbolFont{libGreekfont}{U}{\libgreek@font}
1629 {\libgreek@series}
1630 {\libgreek@uppershape}
1631 \SetSymbolFont{libGreekfont}{bold}{U}{\libgreek@font}
1632 {\libgreek@boldseries}
1633 {\libgreek@uppershape}
1634 \def\libgreek@Greek{libGreekfont}
1635 \fi
1636 % \end{macrocode}
1637 % The macro \cs{libgreek@Greek} holds the symbol font name for uppercase.
1638 %
1639 % Here the legacy code has all definitions done in the order of the
1640 % codepoint; this was a bit perilous as lowercase may be intermixed with
1641 % uppercase, and indeed on two occasions (\cs{varvarkappa} and
1642 % \cs{varvarsigma}) the possibly wrong font was assigned.
1643 %
1644 % Apart from that, it is not exactly clear why I decided to define control
1645 % sequences for letters with diacritics; it was not even really documented,
1646 % as the user was only invited to check a |libgreekcheck.tex| file (now not
1647 % included anymore among extracted files from the |.dtx|).
1648 %
1649 % Another thing to notice is that all those Greek letters are here defined to
1650 % be of type \cs{mathord}.
1651 % \begin{macrocode}
1652 \DeclareMathSymbol{\Alphatonos}{\mathord}{\libgreek@Greek}{134}
1653 \DeclareMathSymbol{\anoteleia}{\mathord}{libgreekfont}{135}
1654 \DeclareMathSymbol{\Epsilontonos}{\mathord}{\libgreek@Greek}{136}
1655 \DeclareMathSymbol{\Etatonos}{\mathord}{\libgreek@Greek}{137}
1656 \DeclareMathSymbol{\Iotatonos}{\mathord}{\libgreek@Greek}{138}
1657 \DeclareMathSymbol{\Omicrontonos}{\mathord}{\libgreek@Greek}{140}
1658 \DeclareMathSymbol{\Upsilontonos}{\mathord}{\libgreek@Greek}{142}
1659 \DeclareMathSymbol{\Omegatonos}{\mathord}{\libgreek@Greek}{143}
1660 \DeclareMathSymbol{\iotadieresistonos}{\mathord}{libgreekfont}{144}
1661 \DeclareMathSymbol{\Alpha}{\mathord}{\libgreek@Greek}{145}
1662 \DeclareMathSymbol{\Beta}{\mathord}{\libgreek@Greek}{146}
1663 \DeclareMathSymbol{\Gamma}{\mathord}{\libgreek@Greek}{147}
1664 \DeclareMathSymbol{\Delta}{\mathord}{\libgreek@Greek}{148}
1665 \DeclareMathSymbol{\Epsilon}{\mathord}{\libgreek@Greek}{149}
1666 \DeclareMathSymbol{\Zeta}{\mathord}{\libgreek@Greek}{150}
1667 \DeclareMathSymbol{\Eta}{\mathord}{\libgreek@Greek}{151}
1668 \DeclareMathSymbol{\Theta}{\mathord}{\libgreek@Greek}{152}
1669 \DeclareMathSymbol{\Iota}{\mathord}{\libgreek@Greek}{153}
1670 \DeclareMathSymbol{\Kappa}{\mathord}{\libgreek@Greek}{154}
1671 \DeclareMathSymbol{\Lambda}{\mathord}{\libgreek@Greek}{155}
1672 \DeclareMathSymbol{\Mu}{\mathord}{\libgreek@Greek}{156}
1673 \DeclareMathSymbol{\Nu}{\mathord}{\libgreek@Greek}{157}
1674 \DeclareMathSymbol{\Xi}{\mathord}{\libgreek@Greek}{158}
1675 \DeclareMathSymbol{\Omicron}{\mathord}{\libgreek@Greek}{159}
1676 \DeclareMathSymbol{\Pi}{\mathord}{\libgreek@Greek}{160}
1677 \DeclareMathSymbol{\Rho}{\mathord}{\libgreek@Greek}{161}
1678 \DeclareMathSymbol{\Sigma}{\mathord}{\libgreek@Greek}{163}
1679 \DeclareMathSymbol{\Tau}{\mathord}{\libgreek@Greek}{164}
1680 \DeclareMathSymbol{\Upsilon}{\mathord}{\libgreek@Greek}{165}
1681 \DeclareMathSymbol{\Phi}{\mathord}{\libgreek@Greek}{166}
1682 \DeclareMathSymbol{\Chi}{\mathord}{\libgreek@Greek}{167}
1683 \DeclareMathSymbol{\Psi}{\mathord}{\libgreek@Greek}{168}
1684 \DeclareMathSymbol{\Omega}{\mathord}{\libgreek@Greek}{169}
1685 \DeclareMathSymbol{\Iotadieresis}{\mathord}{\libgreek@Greek}{170}
1686 \DeclareMathSymbol{\Upsilondieresis}{\mathord}{\libgreek@Greek}{171}
1687 \DeclareMathSymbol{\alphatonos}{\mathord}{libgreekfont}{172}
1688 \DeclareMathSymbol{\epsilontonos}{\mathord}{libgreekfont}{173}
1689 \DeclareMathSymbol{\etatonos}{\mathord}{libgreekfont}{174}
1690 \DeclareMathSymbol{\iotatonos}{\mathord}{libgreekfont}{175}
1691 \DeclareMathSymbol{\upsilondieresistonos}{\mathord}{libgreekfont}{176}
1692 \DeclareMathSymbol{\alpha}{\mathord}{libgreekfont}{177}
1693 \DeclareMathSymbol{\beta}{\mathord}{libgreekfont}{178}
1694 \DeclareMathSymbol{\gamma}{\mathord}{libgreekfont}{179}
1695 \DeclareMathSymbol{\delta}{\mathord}{libgreekfont}{180}
1696 \DeclareMathSymbol{\epsilon}{\mathord}{libgreekfont}{181}
1697 \DeclareMathSymbol{\zeta}{\mathord}{libgreekfont}{182}
1698 \DeclareMathSymbol{\eta}{\mathord}{libgreekfont}{183}
1699 \DeclareMathSymbol{\theta}{\mathord}{libgreekfont}{184}
1700 \DeclareMathSymbol{\iota}{\mathord}{libgreekfont}{185}
1701 \DeclareMathSymbol{\kappa}{\mathord}{libgreekfont}{186}
1702 \DeclareMathSymbol{\lambda}{\mathord}{libgreekfont}{187}
1703 \DeclareMathSymbol{\mu}{\mathord}{libgreekfont}{188}
1704 \DeclareMathSymbol{\nu}{\mathord}{libgreekfont}{189}
1705 \DeclareMathSymbol{\xi}{\mathord}{libgreekfont}{190}
1706 \DeclareMathSymbol{\omicron}{\mathord}{libgreekfont}{191}
1707 \DeclareMathSymbol{\pi}{\mathord}{libgreekfont}{192}
1708 \DeclareMathSymbol{\rho}{\mathord}{libgreekfont}{193}
1709 \DeclareMathSymbol{\varsigma}{\mathord}{libgreekfont}{194}
1710 \DeclareMathSymbol{\sigma}{\mathord}{libgreekfont}{195}
1711 \DeclareMathSymbol{\tau}{\mathord}{libgreekfont}{196}
1712 \DeclareMathSymbol{\upsilon}{\mathord}{libgreekfont}{197}
1713 \DeclareMathSymbol{\phi}{\mathord}{libgreekfont}{198}
1714 \DeclareMathSymbol{\chi}{\mathord}{libgreekfont}{199}
1715 \DeclareMathSymbol{\psi}{\mathord}{libgreekfont}{200}
1716 \DeclareMathSymbol{\omega}{\mathord}{libgreekfont}{201}
1717 \DeclareMathSymbol{\iotadieresis}{\mathord}{libgreekfont}{202}
1718 \DeclareMathSymbol{\upsilondieresis}{\mathord}{libgreekfont}{203}
1719 \DeclareMathSymbol{\omicrontonos}{\mathord}{libgreekfont}{204}
1720 \DeclareMathSymbol{\upsilontonos}{\mathord}{libgreekfont}{205}
1721 \DeclareMathSymbol{\omegatonos}{\mathord}{libgreekfont}{206}
1722 \DeclareMathSymbol{\vartheta}{\mathord}{libgreekfont}{209}
1723 \DeclareMathSymbol{\varUpsilon}{\mathord}{\libgreek@Greek}{210}
1724 \DeclareMathSymbol{\varUpsilontonos}{\mathord}{\libgreek@Greek}{211}
1725 \DeclareMathSymbol{\varUpsilondieresis}{\mathord}{\libgreek@Greek}{212}
1726 \DeclareMathSymbol{\varphi}{\mathord}{libgreekfont}{213}
1727 \DeclareMathSymbol{\varpi}{\mathord}{libgreekfont}{214}
1728 % \end{macrocode}
1729 % The |1.0| code used \cs{libgreek@Greek} here for the next two but
1730 % this was a bug, so after some hesitation I fix it for the |1.1| release,
1731 % eleven years later...
1732 % \begin{macrocode}
1733 \DeclareMathSymbol{\varvarkappa}{\mathord}{libgreekfont}{215}
1734 \DeclareMathSymbol{\varvarsigma}{\mathord}{libgreekfont}{219}
1735 \DeclareMathSymbol{\Digamma}{\mathord}{\libgreek@Greek}{220}
1736 \DeclareMathSymbol{\digamma}{\mathord}{libgreekfont}{221}
1737 \DeclareMathSymbol{\Koppa}{\mathord}{\libgreek@Greek}{222}
1738 \DeclareMathSymbol{\koppa}{\mathord}{libgreekfont}{223}
1739 \DeclareMathSymbol{\Sampi}{\mathord}{\libgreek@Greek}{224}
1740 \DeclareMathSymbol{\sampi}{\mathord}{libgreekfont}{225}
1741 \DeclareMathSymbol{\varkappa}{\mathord}{libgreekfont}{240}
1742 \DeclareMathSymbol{\varrho}{\mathord}{libgreekfont}{241}
1743 \DeclareMathSymbol{\varTheta}{\mathord}{\libgreek@Greek}{244}
1744 \DeclareMathSymbol{\varepsilon}{\mathord}{libgreekfont}{245}
1745 \DeclareMathSymbol{\reversedvarepsilon}{\mathord}{libgreekfont}{246}
1746 % \end{macrocode}
1747 % Those for some reason got listed here last, despite having lower
1748 % codepoints.
1749 % \begin{macrocode}
1750 \DeclareMathSymbol{\tonos}{\mathord}{libgreekfont}{132}
1751 \DeclareMathSymbol{\dieresistonos}{\mathord}{libgreekfont}{133}
1752 % \end{macrocode}
1753 % And we have now reached the end of the \libgreek-legacy package code. The actual
1754 % |.sty| file will contain an \cs{endinput} added by the DocStrip extraction.
1755 %\MakePercentComment
1756 %</legacy>
1757 %<*dtx>
1758 \Finale
1759 %%
1760 %% End of file `libgreek.dtx'.