diff options
author | Karl Berry <karl@freefriends.org> | 2009-03-23 23:51:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-03-23 23:51:45 +0000 |
commit | 7c3f2bb14d2593c80109a9f0d28f3310dcb60c9b (patch) | |
tree | e52c9996b8ba0fcef459ebab44a77ec82d75e461 /Master/texmf-dist/tex/latex/kpfonts/kpfonts.sty | |
parent | 65f1c49e016a267ad2fdabc1e07ad38a8c6e10a5 (diff) |
kpfonts 3.0 (16mar09)
git-svn-id: svn://tug.org/texlive/trunk@12502 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/kpfonts/kpfonts.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/kpfonts/kpfonts.sty | 82 |
1 files changed, 58 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/kpfonts/kpfonts.sty b/Master/texmf-dist/tex/latex/kpfonts/kpfonts.sty index 9b5ecfaebfe..e0cf999655e 100644 --- a/Master/texmf-dist/tex/latex/kpfonts/kpfonts.sty +++ b/Master/texmf-dist/tex/latex/kpfonts/kpfonts.sty @@ -1,7 +1,7 @@ \NeedsTeXFormat{LaTeX2e} % \ProvidesPackage{kpfonts} - [ 2008/11/18 v2.32] + [ 2009/03/03 v3.0] \newif\ifkp@math \kp@mathtrue \newif\ifkp@text \kp@texttrue @@ -30,6 +30,7 @@ \newif\ifkp@Dcommand \kp@Dcommandtrue \newif\ifkp@nofligatures \newif\ifkp@Qtail +\newif\ifkp@widermath \DeclareOption{nomath} {\kp@mathfalse} \DeclareOption{notext} {\kp@textfalse} @@ -63,6 +64,7 @@ \DeclareOption{largesmallcaps} {\kp@largesmallcapstrue} \DeclareOption{noDcommand} {\kp@Dcommandfalse} \DeclareOption{nofligatures} {\kp@nofligaturestrue} +\DeclareOption{widermath} {\kp@widermathtrue} \ProcessOptions\relax \ifkp@textcomp\RequirePackage[full]{textcomp}\fi @@ -238,7 +240,7 @@ % -%%% \kp@famillem and \kp@stylem +%%% \kp@famillemn \kp@stylem and \kp@widerm % \ifkp@light\def\kp@famillem{l} @@ -252,6 +254,9 @@ \ifkp@nofligatures\def\kp@fligm{f} \else\def\kp@fligm{} \fi + \ifkp@widermath\def\kp@widerm{w} + \else\def\kp@widerm{} + \fi % Roman @@ -285,26 +290,26 @@ % Math Italic - \DeclareSymbolFont{letters}{OML}{jkp\kp@famillem\kp@stylemi}{m}{it} - \SetSymbolFont{letters}{bold}{OML}{jkp\kp@famillem\kp@stylemi}{bx}{it} - \DeclareFontSubstitution{OML}{jkp\kp@famillem\kp@stylemi}{m}{it} + \DeclareSymbolFont{letters}{OML}{jkp\kp@famillem\kp@stylemi\kp@widerm}{m}{it} + \SetSymbolFont{letters}{bold}{OML}{jkp\kp@famillem\kp@stylemi\kp@widerm}{bx}{it} + \DeclareFontSubstitution{OML}{jkp\kp@famillem\kp@stylemi\kp@widerm}{m}{it} % Math Italic A - \DeclareSymbolFont{lettersA}{U}{jkp\kp@famillem mia}{m}{it} - \SetSymbolFont{lettersA}{bold}{U}{jkp\kp@famillem mia}{bx}{it} - \DeclareFontSubstitution{U}{jkp\kp@famillem mia}{m}{it} + \DeclareSymbolFont{lettersA}{U}{jkp\kp@famillem mia\kp@widerm}{m}{it} + \SetSymbolFont{lettersA}{bold}{U}{jkp\kp@famillem mia\kp@widerm}{bx}{it} + \DeclareFontSubstitution{U}{jkp\kp@famillem mia\kp@widerm}{m}{it} \DeclareSymbolFontAlphabet{\mathfrak}{lettersA} % Math Symbol - \DeclareSymbolFont{symbols}{OMS}{jkp\kp@famillem}{m}{n} - \SetSymbolFont{symbols}{bold}{OMS}{jkp\kp@famillem}{bx}{n} - \DeclareFontSubstitution{OMS}{jkp\kp@famillem}{m}{n} + \DeclareSymbolFont{symbols}{OMS}{jkp\kp@famillem\kp@widerm}{m}{n} + \SetSymbolFont{symbols}{bold}{OMS}{jkp\kp@famillem\kp@widerm}{bx}{n} + \DeclareFontSubstitution{OMS}{jkp\kp@famillem\kp@widerm}{m}{n} \renewcommand{\AmSfont}{% - \usefont{OMS}{jkp\kp@famillem}{\if\@xp\@car\f@series\@nil bb\else m\fi}{n}} + \usefont{OMS}{jkp\kp@famillem\kp@widerm}{\if\@xp\@car\f@series\@nil bb\else m\fi}{n}} \DeclareSymbolFontAlphabet{\symb@ls@lph@}{symbols} @@ -319,9 +324,9 @@ % Math Symbols B (AMSb) - \DeclareSymbolFont{AMSb}{U}{jkp\kp@famillem syb}{m}{n} - \SetSymbolFont{AMSb}{bold}{U}{jkp\kp@famillem syb}{bx}{n} - \DeclareFontSubstitution{U}{jkp\kp@famillem syb}{m}{n} + \DeclareSymbolFont{AMSb}{U}{jkp\kp@famillem syb\kp@widerm}{m}{n} + \SetSymbolFont{AMSb}{bold}{U}{jkp\kp@famillem syb\kp@widerm}{bx}{n} + \DeclareFontSubstitution{U}{jkp\kp@famillem syb\kp@widerm}{m}{n} \DeclareSymbolFontAlphabet{\mathbb}{AMSb} @@ -337,15 +342,15 @@ \ifkp@calasscr \let\mathcal\undefined - \DeclareMathAlphabet{\mathcal}{U}{jkp\kp@famillem syd}{m}{n} - \SetMathAlphabet{\mathcal}{bold}{U}{jkp\kp@famillem syd}{bx}{n} + \DeclareMathAlphabet{\mathcal}{U}{jkp\kp@famillem syd\kp@widerm}{m}{n} + \SetMathAlphabet{\mathcal}{bold}{U}{jkp\kp@famillem syd\kp@widerm}{bx}{n} \ifkp@mathscr \DeclareSymbolFontAlphabet{\mathscr}{symbols} \fi \else \ifkp@mathscr - \DeclareMathAlphabet{\mathscr}{U}{jkp\kp@famillem syd}{m}{n} - \SetMathAlphabet{\mathscr}{bold}{U}{jkp\kp@famillem syd}{bx}{n} + \DeclareMathAlphabet{\mathscr}{U}{jkp\kp@famillem syd\kp@widerm}{m}{n} + \SetMathAlphabet{\mathscr}{bold}{U}{jkp\kp@famillem syd\kp@widerm}{bx}{n} \fi \fi @@ -363,7 +368,7 @@ \DeclareFontSubstitution{U}{jkp\kp@famillem exa}{m}{n} -% Mat fonts Sizes and Additional Math Spaces +% Math fonts Sizes and Additional Math Spaces \def\defaultscriptratio{.76} @@ -381,10 +386,16 @@ \DeclareMathSizes{17.28}{17.28}{12} {9} \DeclareMathSizes{20.74}{20.74}{14.4}{10} \DeclareMathSizes{24.88}{24.88}{17.28}{12} -\thinmuskip=2mu -\medmuskip=3mu plus 1.5mu minus 3mu -\thickmuskip=4mu plus 3mu +\ifkp@widermath + \thinmuskip=3mu + \medmuskip=4mu plus 1.5mu minus 3mu + \thickmuskip=5mu plus 4mu +\else + \thinmuskip=2mu + \medmuskip=3mu plus 1.5mu minus 3mu + \thickmuskip=4mu plus 3mu +\fi % Common Macros @@ -903,6 +914,9 @@ \re@DeclareMathSymbol{\varsigmaup}{\mathord}{lettersA}{38} \re@DeclareMathSymbol{\varphiup}{\mathord}{lettersA}{39} +\let\varkappaup\varkappa +\let\digammaup\digamma + \re@DeclareMathSymbol{\alphasl}{\mathord}{letters}{11} \re@DeclareMathSymbol{\betasl}{\mathord}{letters}{12} \re@DeclareMathSymbol{\gammasl}{\mathord}{letters}{13} @@ -933,6 +947,9 @@ \re@DeclareMathSymbol{\varsigmasl}{\mathord}{letters}{38} \re@DeclareMathSymbol{\varphisl}{\mathord}{letters}{39} +\let\varkappasl\varkappa +\let\digammasl\digamma + % Relative reference \ifkp@upgrk % lowercase @@ -1061,6 +1078,9 @@ \fi +\let\othervarkappa\varkappa +\let\otherdigamma\digamma + \ifkp@slGrk % uppercase \re@DeclareMathSymbol{\Gamma}{\mathord}{letters}{0} @@ -1139,6 +1159,18 @@ \fi +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Math Extension (jkpex) Definition % largesymbols +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\DeclareMathAccent{\widearc}{\mathord}{largesymbols}{134} +\DeclareMathAccent{\widearcarrow}{\mathord}{largesymbols}{140} +\DeclareMathAccent{\wideOarc}{\mathord}{largesymbols}{140} +\DeclareMathAccent{\wideparen}{\mathord}{largesymbols}{146} + +\newcommand{\widering}[1]{\overset{\smash{\vbox to .2ex{% + \hbox{$\mathring{}$}}}}{\wideparen{#1}}} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Math Extension A (jkpexa) Definition % largesymbolsA %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1344,4 +1376,6 @@ \fi \fi -\endinput
\ No newline at end of file +\endinput + +
\ No newline at end of file |