summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/libgreek/libgreek.dtx
blob: 5536365f360ce79a44798d400f3a53fe332946ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
% \iffalse meta-comment
%    File `libgreek.dtx'
%    
%    Copyright (C) 2011, 2012 by Jean-Francois Burnol
%   
%    This file may be distributed and/or modified under the
%    conditions of the LaTeX Project Public License,
%    either version 1.3 of this license or (at your
%    option) any later version.  The latest version of
%    this license is in
%    http://www.latex-project.org/lppl.txt 
%    and version 1.3 or later is part of all distributions of
%    LaTeX version 2003/12/01 or later.  
%
%    Please report errors to jfbu (at) free.fr
%    
% \fi 
% \iffalse
%<*dtx>    
\ProvidesFile{libgreek.dtx}
             [2011/03/14 1.0 Libertine/Biolinum Greek in math mode (jfB)]
%</dtx>
% 
%<*driver>
\documentclass[a4paper]{ltxdoc}
\usepackage{geometry}
\usepackage{enumerate}
\usepackage[pdfstartview=FitH,pdfpagemode=UseNone]{hyperref}
\OnlyDescription
\begin{document}
 \DocInput{libgreek.dtx}
\end{document}
%</driver>
% \fi
%
% \GetFileInfo{libgreek.dtx}
%
% \begin{center}
%   {\Large The \texttt{libgreek} package}\\
%   Jean-Fran\c cois \textsc{Burnol}\\
%   \texttt{jfbu (at) free.fr}
% \end{center}
%
%  \begin{abstract}
%    The |libgreek| package\footnote{This document describes
%    |libgreek| version \fileversion\ (\filedate).} allows
%    (PDF)\LaTeX{} users to use the Greek letters from the
%    Libertine/Biolinum fonts of the
%    |libertine-legacy|\footnote{\url{http://mirrors.ctan.org/help/Catalogue/entries/libertine-legacy.html}}
%    package (or earlier |libertine| version). The typeset
%    document does not need to load  |libertine-legacy| (or
%    an earlier |libertine|) but of course this package
%    must be present on the user's computer.
%  \end{abstract}
%
%  \section{Example}
%
%  Here is a minimal example:
%  \begin{verbatim}
%  \documentclass{article}
%  \usepackage{libgreek}
%  \begin{document}
%  $\alpha\beta\gamma$
%  \end{document}
%  \end{verbatim}
%  If the Libertine fonts (from |legacy| or earlier) are on your
%  system, this should compile without error and the |dvi| or
%  |pdf| document will use these fonts. To use the Biolinum
%  font, use |\usepackage[biolinum]{libgreek}|. The Greek
%  letters are made available only in math mode.
%
%  To see the available symbol names for use in math mode,
%  look at or (pdf)latexify the |libgreekcheck.tex| file
%  included in the package distribution and view the |dvi| or the |pdf|.
%
%  \textbf{Important:} although you definitely can use
%  |\usepackage{libertine-type1}| in your document to enable
%  the use therein of the latest (PDF)\LaTeX{} Libertine text
%  fonts, the |libertine-legacy| (or earlier) package must be
%  installed on your system for |libgreek| to work for math
%  mode. 
%
%  \section{Package options}
%  
%  As seen before  the |biolinum| option declares to use
%  Biolinum. There is also a |libertine| option, it is on by
%  default. All further options are of the key$=$value 
%  type.
%  \begin{description}
%  \item[scale=|factor|] will scale the font by the given
%    factor, relative to nominal size (when the
%    Libertine/Biolinum fonts are used elsewhere in the
%    document, they will also be scaled by this
%    factor). Note that the similar option of the
%    |libertine-legacy| package is called |scaled| and has
%    precisely the same effect. Example: scale=1.2 will
%    scale by 20\%.\DeleteShortVerb{\|}\MakeShortVerb{*}
%  \item[style=\{*ISO*$|$*French*$|$*TeX*\}]\DeleteShortVerb{*}
%    \MakeShortVerb{\|} specifies the shape of the Greek
%    letters. |ISO| means italic for lowercase and
%    uppercase, |French| means upright for lowercase and
%    uppercase, |TeX| means italic for lowercase and upright
%    for uppercase. This option will
%    override any |greek| or |Greek|
%    option. The package defaults to |style=TeX|.
%  \item[greek=|value|] specifies the shape (n, it, or sl) for both
%    the lowercase and uppercase Greek letters. So |greek=it| is
%    like |style=ISO|, and |greek=n| is like |style=French|.
%  \item[Greek=|value|] specifies the shape (n, it, or sl)
%    for only the uppercase Greek letters. To have lowercase
%    upright and uppercase italic, use |greek=n,Greek=it|.
%  \item[series=|value|] tells which series to use. The
%    default is the value of \cs{seriesdefault} at the time of
%    loading the package. See the |libertine-legacy|
%    documentation for the admissible values (they include m,
%    b, bx (bx=b) for Libertine and m, b, bx (bx=b), o, s for
%    Biolinum). 
%  \item[boldseries=|value|] tells which series to use in
%    bold math. Default is
%    \cs{bfdefault} at the time of loading the
%    package.
%  \end{description}
%  \begin{enumerate}[(1)]
%  \item the bold italic Greek Libertine glyphs are missing from
%  |libertine v5| and later versions up to |libertine-legacy|. Use bold
%  slanted instead.
%  \item  the bold lowercase Greek Biolinum letters
%  are in fact not bold. 
%  \end{enumerate}
%
%  Advanced example of use (we use slanted rather than italic
%  to circumvent the problem mentioned above):
%  \begin{verbatim}
%  \documentclass{article}
%  \usepackage[scale=2,series=b,greek=sl,Greek=n]{libgreek}
%  \begin{document}
%  $\alpha\beta\gamma\phi\psi \Alpha\Beta\Gamma\Phi\Psi$
%  \end{document}
%  \end{verbatim}
%
%  \section{Version}
%
%  The documentation has been updated on September 23, 2012.
%  The |libgreek.sty| file has not been changed from its initial
%  March 14, 2011 version.
%  
%  
%
% \StopEventually{}
%  \clearpage
%  \section{Implementation}
%
%
%    \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{libgreek}
         [2011/03/14 1.0 Libertine/Biolinum Greek in math mode (jfB)]
\RequirePackage{keyval}
\def\libgreek@font{fxl03}
\def\libgreek@shape{it}
\def\libgreek@uppershape{n}
\newif\iflibgreek@twoshapes\libgreek@twoshapestrue
\edef\libgreek@series{\seriesdefault}
\edef\libgreek@boldseries{\bfdefault}
\newif\iflibgreek@sty
%%
\define@key{libgreek}{scale}[1]{\def\fxl@scale{#1}}
\define@key{libgreek}{libertine}[true]{}
\define@key{libgreek}{biolinum}[true]{\def\libgreek@font{fxb03}}
\define@key{libgreek}{style}{\libgreek@stytrue\edef\libgreek@style{#1}}
\define@key{libgreek}{Greek}{\def\libgreek@Greekshape{#1}}
\define@key{libgreek}{greek}{\edef\libgreek@shape{#1}
                             \edef\libgreek@uppershape{#1}}
\define@key{libgreek}{series}{\edef\libgreek@series{#1}}
\define@key{libgreek}{boldseries}{\edef\libgreek@boldseries{#1}}
%%
\def\ProcessOptionsWithKV#1{%
  \let\@tempc\relax
  \let\libgreek@tempa\@empty
  \@for\CurrentOption:=\@classoptionslist\do{%
    \@ifundefined{KV@#1@\CurrentOption}%
    {}%
    {%
      \edef\libgreek@tempa{\libgreek@tempa,\CurrentOption,}%
      \@expandtwoargs\@removeelement\CurrentOption
        \@unusedoptionlist\@unusedoptionlist
    }%
  }%
  \edef\libgreek@tempa{%
    \noexpand\setkeys{#1}{%
      \libgreek@tempa\@ptionlist{\@currname.\@currext}%
    }%
  }%
  \libgreek@tempa
  \let\CurrentOption\@empty
}
\ProcessOptionsWithKV{libgreek}
\AtEndOfPackage{%
  \let\@unprocessedoptions\relax
}
%%
\def\lbg@ISO{ISO}
\def\lbg@French{French}
\iflibgreek@sty
   \ifx\libgreek@style\lbg@ISO   
        \def\libgreek@shape{it}
        \libgreek@twoshapesfalse
   \else
   \ifx\libgreek@style\lbg@French   
        \def\libgreek@shape{n}
        \libgreek@twoshapesfalse
   \else 
       \def\libgreek@shape{it}
       \def\libgreek@uppershape{n}
   \fi\fi
\else
 \ifx\libgreek@Greekshape\undefined
         \else\edef\libgreek@uppershape{\libgreek@Greekshape}\fi
 \ifx\libgreek@shape\libgreek@uppershape\libgreek@twoshapesfalse\fi
\fi
%%
\DeclareSymbolFont{libgreekfont}{U}{\libgreek@font}
                                   {\libgreek@series}
                                   {\libgreek@shape}
\SetSymbolFont{libgreekfont}{bold}{U}{\libgreek@font}
                                     {\libgreek@boldseries}
                                     {\libgreek@shape}
\def\libgreek@Greek{libgreekfont}
%%
\iflibgreek@twoshapes
  \DeclareSymbolFont{libGreekfont}{U}{\libgreek@font}
                                     {\libgreek@series}
                                     {\libgreek@uppershape}
  \SetSymbolFont{libGreekfont}{bold}{U}{\libgreek@font}
                                       {\libgreek@boldseries}
                                       {\libgreek@uppershape}
  \def\libgreek@Greek{libGreekfont}
\fi
%%
\DeclareMathSymbol{\Alphatonos}{\mathord}{\libgreek@Greek}{134}
\DeclareMathSymbol{\anoteleia}{\mathord}{libgreekfont}{135}
\DeclareMathSymbol{\Epsilontonos}{\mathord}{\libgreek@Greek}{136}
\DeclareMathSymbol{\Etatonos}{\mathord}{\libgreek@Greek}{137}
\DeclareMathSymbol{\Iotatonos}{\mathord}{\libgreek@Greek}{138}
\DeclareMathSymbol{\Omicrontonos}{\mathord}{\libgreek@Greek}{140}
\DeclareMathSymbol{\Upsilontonos}{\mathord}{\libgreek@Greek}{142}
\DeclareMathSymbol{\Omegatonos}{\mathord}{\libgreek@Greek}{143}
\DeclareMathSymbol{\iotadieresistonos}{\mathord}{libgreekfont}{144}
\DeclareMathSymbol{\Alpha}{\mathord}{\libgreek@Greek}{145}
\DeclareMathSymbol{\Beta}{\mathord}{\libgreek@Greek}{146}
\DeclareMathSymbol{\Gamma}{\mathord}{\libgreek@Greek}{147}
\DeclareMathSymbol{\Delta}{\mathord}{\libgreek@Greek}{148}
\DeclareMathSymbol{\Epsilon}{\mathord}{\libgreek@Greek}{149}
\DeclareMathSymbol{\Zeta}{\mathord}{\libgreek@Greek}{150}
\DeclareMathSymbol{\Eta}{\mathord}{\libgreek@Greek}{151}
\DeclareMathSymbol{\Theta}{\mathord}{\libgreek@Greek}{152}
\DeclareMathSymbol{\Iota}{\mathord}{\libgreek@Greek}{153}
\DeclareMathSymbol{\Kappa}{\mathord}{\libgreek@Greek}{154}
\DeclareMathSymbol{\Lambda}{\mathord}{\libgreek@Greek}{155}
\DeclareMathSymbol{\Mu}{\mathord}{\libgreek@Greek}{156}
\DeclareMathSymbol{\Nu}{\mathord}{\libgreek@Greek}{157}
\DeclareMathSymbol{\Xi}{\mathord}{\libgreek@Greek}{158}
\DeclareMathSymbol{\Omicron}{\mathord}{\libgreek@Greek}{159}
\DeclareMathSymbol{\Pi}{\mathord}{\libgreek@Greek}{160}
\DeclareMathSymbol{\Rho}{\mathord}{\libgreek@Greek}{161}
\DeclareMathSymbol{\Sigma}{\mathord}{\libgreek@Greek}{163}
\DeclareMathSymbol{\Tau}{\mathord}{\libgreek@Greek}{164}
\DeclareMathSymbol{\Upsilon}{\mathord}{\libgreek@Greek}{165}
\DeclareMathSymbol{\Phi}{\mathord}{\libgreek@Greek}{166}
\DeclareMathSymbol{\Chi}{\mathord}{\libgreek@Greek}{167}
\DeclareMathSymbol{\Psi}{\mathord}{\libgreek@Greek}{168}
\DeclareMathSymbol{\Omega}{\mathord}{\libgreek@Greek}{169}
\DeclareMathSymbol{\Iotadieresis}{\mathord}{\libgreek@Greek}{170}
\DeclareMathSymbol{\Upsilondieresis}{\mathord}{\libgreek@Greek}{171}
\DeclareMathSymbol{\alphatonos}{\mathord}{libgreekfont}{172}
\DeclareMathSymbol{\epsilontonos}{\mathord}{libgreekfont}{173}
\DeclareMathSymbol{\etatonos}{\mathord}{libgreekfont}{174}
\DeclareMathSymbol{\iotatonos}{\mathord}{libgreekfont}{175}
\DeclareMathSymbol{\upsilondieresistonos}{\mathord}{libgreekfont}{176}
\DeclareMathSymbol{\alpha}{\mathord}{libgreekfont}{177}
\DeclareMathSymbol{\beta}{\mathord}{libgreekfont}{178}
\DeclareMathSymbol{\gamma}{\mathord}{libgreekfont}{179}
\DeclareMathSymbol{\delta}{\mathord}{libgreekfont}{180}
\DeclareMathSymbol{\epsilon}{\mathord}{libgreekfont}{181}
\DeclareMathSymbol{\zeta}{\mathord}{libgreekfont}{182}
\DeclareMathSymbol{\eta}{\mathord}{libgreekfont}{183}
\DeclareMathSymbol{\theta}{\mathord}{libgreekfont}{184}
\DeclareMathSymbol{\iota}{\mathord}{libgreekfont}{185}
\DeclareMathSymbol{\kappa}{\mathord}{libgreekfont}{186}
\DeclareMathSymbol{\lambda}{\mathord}{libgreekfont}{187}
\DeclareMathSymbol{\mu}{\mathord}{libgreekfont}{188}
\DeclareMathSymbol{\nu}{\mathord}{libgreekfont}{189}
\DeclareMathSymbol{\xi}{\mathord}{libgreekfont}{190}
\DeclareMathSymbol{\omicron}{\mathord}{libgreekfont}{191}
\DeclareMathSymbol{\pi}{\mathord}{libgreekfont}{192}
\DeclareMathSymbol{\rho}{\mathord}{libgreekfont}{193}
\DeclareMathSymbol{\varsigma}{\mathord}{libgreekfont}{194}
\DeclareMathSymbol{\sigma}{\mathord}{libgreekfont}{195}
\DeclareMathSymbol{\tau}{\mathord}{libgreekfont}{196}
\DeclareMathSymbol{\upsilon}{\mathord}{libgreekfont}{197}
\DeclareMathSymbol{\phi}{\mathord}{libgreekfont}{198}
\DeclareMathSymbol{\chi}{\mathord}{libgreekfont}{199}
\DeclareMathSymbol{\psi}{\mathord}{libgreekfont}{200}
\DeclareMathSymbol{\omega}{\mathord}{libgreekfont}{201}
\DeclareMathSymbol{\iotadieresis}{\mathord}{libgreekfont}{202}
\DeclareMathSymbol{\upsilondieresis}{\mathord}{libgreekfont}{203}
\DeclareMathSymbol{\omicrontonos}{\mathord}{libgreekfont}{204}
\DeclareMathSymbol{\upsilontonos}{\mathord}{libgreekfont}{205}
\DeclareMathSymbol{\omegatonos}{\mathord}{libgreekfont}{206}
%%
\DeclareMathSymbol{\vartheta}{\mathord}{libgreekfont}{209}
\DeclareMathSymbol{\varUpsilon}{\mathord}{\libgreek@Greek}{210}
\DeclareMathSymbol{\varUpsilontonos}{\mathord}{\libgreek@Greek}{211}
\DeclareMathSymbol{\varUpsilondieresis}{\mathord}{\libgreek@Greek}{212}
\DeclareMathSymbol{\varphi}{\mathord}{libgreekfont}{213}
\DeclareMathSymbol{\varpi}{\mathord}{libgreekfont}{214}
\DeclareMathSymbol{\varvarkappa}{\mathord}{\libgreek@Greek}{215}
\DeclareMathSymbol{\varvarsigma}{\mathord}{\libgreek@Greek}{219}
\DeclareMathSymbol{\Digamma}{\mathord}{\libgreek@Greek}{220}
\DeclareMathSymbol{\digamma}{\mathord}{libgreekfont}{221}
\DeclareMathSymbol{\Koppa}{\mathord}{\libgreek@Greek}{222}
\DeclareMathSymbol{\koppa}{\mathord}{libgreekfont}{223}
\DeclareMathSymbol{\Sampi}{\mathord}{\libgreek@Greek}{224}
\DeclareMathSymbol{\sampi}{\mathord}{libgreekfont}{225}
\DeclareMathSymbol{\varkappa}{\mathord}{libgreekfont}{240}
\DeclareMathSymbol{\varrho}{\mathord}{libgreekfont}{241}
\DeclareMathSymbol{\varTheta}{\mathord}{\libgreek@Greek}{244}
\DeclareMathSymbol{\varepsilon}{\mathord}{libgreekfont}{245}
\DeclareMathSymbol{\reversedvarepsilon}{\mathord}{libgreekfont}{246}
%%
\DeclareMathSymbol{\tonos}{\mathord}{libgreekfont}{132}
\DeclareMathSymbol{\dieresistonos}{\mathord}{libgreekfont}{133}
\endinput
%    \end{macrocode}
% \iffalse
%</code>
%<*dtx>
% \fi
%
% \CharacterTable
%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%   Digits        \0\1\2\3\4\5\6\7\8\9
%   Exclamation   \!     Double quote  \"     Hash (number) \#
%   Dollar        \$     Percent       \%     Ampersand     \&
%   Acute accent  \'     Left paren    \(     Right paren   \)
%   Asterisk      \*     Plus          \+     Comma         \,
%   Minus         \-     Point         \.     Solidus       \/
%   Colon         \:     Semicolon     \;     Less than     \<
%   Equals        \=     Greater than  \>     Question mark \?
%   Commercial at \@     Left bracket  \[     Backslash     \\
%   Right bracket \]     Circumflex    \^     Underscore    \_
%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%   Right brace   \}     Tilde         \~}
%
% \iffalse
%</dtx>
% \fi
%
% \CheckSum{}
% \Finale
\endinput