| 1 |
%% |
| 2 |
%% This is file `philokalia.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% philokalia.dtx (with options: `philokalia') |
| 8 |
%% |
| 9 |
%% (c) Copyright 2007-2017 Apostolos Syropoulos |
| 10 |
%% This program can be redistributed and/or modified under the |
| 11 |
%% terms of the LaTeX Project Public License Distributed from |
| 12 |
%% http://www.latex-project.org/lppl.txt; either |
| 13 |
%% version 1.3c of the License, or any later version. |
| 14 |
%% |
| 15 |
%% This work has the LPPL maintenance status `maintained'. |
| 16 |
%% |
| 17 |
%% Please report errors or suggestions for improvement to |
| 18 |
%% |
| 19 |
%% Apostolos Syropoulos ([email protected]) |
| 20 |
%% |
| 21 |
%% \CharacterTable |
| 22 |
%% {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 |
| 23 |
%% 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 |
| 24 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 25 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 26 |
%% Dollar \$ Percent \% Ampersand \& |
| 27 |
%% Acute accent \' Left paren \( Right paren \) |
| 28 |
%% Asterisk \* Plus \+ Comma \, |
| 29 |
%% Minus \- Point \. Solidus \/ |
| 30 |
%% Colon \: Semicolon \; Less than \< |
| 31 |
%% Equals \= Greater than \> Question mark \? |
| 32 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 33 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 34 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 35 |
%% Right brace \} Tilde \~} |
| 36 |
\ProvidesFile{philokalia.sty} |
| 37 |
[2017/09/20 v1.2 Package `philokalia'] |
| 38 |
\RequirePackage{xltxtra} |
| 39 |
\RequirePackage{lettrine} |
| 40 |
\newsavebox{\Pb@x} |
| 41 |
\def\Lettrine@height{% |
| 42 |
\@tempdima=\baselineskip |
| 43 |
\setlength{\L@height}{\theL@lines\@tempdima}% |
| 44 |
\ifnum\theL@lines>1 |
| 45 |
\addtolength{\L@height}{-\@tempdima}% |
| 46 |
\fi |
| 47 |
\sbox{\L@tbox}{\LettrineTextFont "03B1}%%%% Modified here |
| 48 |
\addtolength{\L@height}{\ht\L@tbox}% |
| 49 |
\addtolength{\L@height}{\L@oversize\L@height}} |
| 50 |
\renewcommand*{\LettrineFont}{% |
| 51 |
\Lettrine@height |
| 52 |
\sbox{\L@tbox}{\LettrineFontHook\fontsize{\L@height}{\L@height}% |
| 53 |
\selectfont "0391}%%%% Modified here |
| 54 |
\@tempcntb=\ht\L@tbox |
| 55 |
\@tempcnta=\L@height |
| 56 |
\multiply\@tempcnta by 100 |
| 57 |
\divide\@tempcntb by 100 |
| 58 |
\divide\@tempcnta by \@tempcntb |
| 59 |
\advance\@tempcnta by -9999 |
| 60 |
\ifnum\@tempcnta>0 |
| 61 |
\def\@tempa{1.\the\@tempcnta}% |
| 62 |
\else |
| 63 |
\def\@tempa{1}% |
| 64 |
\fi |
| 65 |
\LettrineFontHook |
| 66 |
\fontsize{\@tempa\L@height}{\@tempa\L@height}% |
| 67 |
\selectfont |
| 68 |
} |
| 69 |
\DeclareOption{global}{% |
| 70 |
\renewcommand{\rmdefault}{plk}% |
| 71 |
\DeclareFontFamily{TU}{plktitl}{}% |
| 72 |
\DeclareFontShape{TU}{plktitl}{m}{n}% |
| 73 |
{<-> "[Philokalia-Regular]/ICU:script=grek,+titl"}{}% |
| 74 |
\newcommand{\textinit}[2]{% |
| 75 |
\savebox{\Pb@x}{\usefont{TU}{plktitl}{m}{n} #1}% |
| 76 |
\lettrine[lines=3]{\usebox{\Pb@x}}{#2}}% |
| 77 |
} |
| 78 |
\DeclareOption{local}{% |
| 79 |
\def\phkl{\fontfamily{plk}\selectfont}% |
| 80 |
\newcommand{\textphlk}[1]{{\phkl #1}}% |
| 81 |
} |
| 82 |
\ExecuteOptions{local} |
| 83 |
\ProcessOptions |
| 84 |
\def\dsubop{{\fontfamily{plk}\selectfont\char"018B}} |
| 85 |
\def\dUnit{{\fontfamily{plk}\selectfont\char"018C}} |
| 86 |
\def\dunit{{\fontfamily{plk}\selectfont\char"018D}} |
| 87 |
\def\dunknown{{\fontfamily{plk}\selectfont\char"018E}} |
| 88 |
\endinput |
| 89 |
%% |
| 90 |
%% End of file `philokalia.sty'. |