diff options
author | Karl Berry <karl@freefriends.org> | 2008-09-16 17:59:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-09-16 17:59:18 +0000 |
commit | 42d691218d8edd24d57cf2ba6406037635be7946 (patch) | |
tree | 9a349caab55fa42e0e66921aff007454ceedcf8b /Master/texmf-dist/tex/latex/kpfonts/kpfonts.sty | |
parent | 15a509f0627543bda1158db0a69cf522d922a0f2 (diff) |
kpfonts 2.3 (15sep08)
git-svn-id: svn://tug.org/texlive/trunk@10613 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 | 142 |
1 files changed, 124 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/kpfonts/kpfonts.sty b/Master/texmf-dist/tex/latex/kpfonts/kpfonts.sty index 714ae2b1c1a..72de321dd36 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/07/07 v2.22] + [ 2008/09/09 v2.3] \newif\ifkp@math \kp@mathtrue \newif\ifkp@text \kp@texttrue @@ -25,7 +25,11 @@ \newif\ifkp@amsmath \kp@amsmathtrue \newif\ifkp@textcomp \kp@textcomptrue \newif\ifkp@narrowiints +\newif\ifkp@partialup \newif\ifkp@largesmallcaps +\newif\ifkp@Dcommand \kp@Dcommandtrue +\newif\ifkp@nofligatures +\newif\ifkp@Qtail \DeclareOption{nomath} {\kp@mathfalse} \DeclareOption{notext} {\kp@textfalse} @@ -41,21 +45,24 @@ \DeclareOption{mathcalasscript} {\kp@calasscrtrue} \DeclareOption{classicReIm} {\kp@oldReImtrue} \DeclareOption{oldstylenums} {\kp@osntrue} -\DeclareOption{oldstyle} {\kp@ostrue} +\DeclareOption{oldstyle} {\kp@ostrue\kp@Qtailtrue} \DeclareOption{oldstylemath} {\kp@osmtrue} \DeclareOption{oldstylenumsmath} {\kp@osnmtrue} \DeclareOption{fulloldstylenums} {\kp@osntrue\kp@osnmtrue} -\DeclareOption{fulloldstyle} {\kp@ostrue\kp@osmtrue} -\DeclareOption{veryoldstyle} {\kp@vostrue} +\DeclareOption{fulloldstyle} {\kp@ostrue\kp@osmtrue\kp@Qtailtrue} +\DeclareOption{veryoldstyle} {\kp@vostrue\kp@Qtailtrue} \DeclareOption{veryoldstylemath} {\kp@vosmtrue} -\DeclareOption{fullveryoldstyle} {\kp@vostrue\kp@vosmtrue} +\DeclareOption{fullveryoldstyle} {\kp@vostrue\kp@vosmtrue\kp@Qtailtrue} \DeclareOption{light} {\kp@lighttrue} \DeclareOption{rmx} {\kp@rmxtrue} \DeclareOption{nowarning} {\kp@warningfalse} \DeclareOption{noamsmath} {\kp@amsmathfalse} \DeclareOption{notextcomp} {\kp@textcompfalse} \DeclareOption{narrowiints} {\kp@narrowiintstrue} +\DeclareOption{partialup} {\kp@partialuptrue} \DeclareOption{largesmallcaps} {\kp@largesmallcapstrue} +\DeclareOption{noDcommand} {\kp@Dcommandfalse} +\DeclareOption{nofligatures} {\kp@nofligaturestrue} \ProcessOptions\relax \ifkp@textcomp\RequirePackage[full]{textcomp}\fi @@ -70,6 +77,8 @@ \ifkp@osn\ifkp@os\kp@osnfalse\fi\fi \ifkp@osn\ifkp@vos\kp@osnfalse\fi\fi \ifkp@os\ifkp@vos\kp@osfalse\fi\fi +\ifkp@os\ifkp@nofligatures\kp@nofligaturesfalse\fi\fi +\ifkp@vos\ifkp@nofligatures\kp@nofligaturesfalse\fi\fi \ifkp@osnm\ifkp@osm\kp@osnmfalse\fi\fi \ifkp@osnm\ifkp@vosm\kp@osnmfalse\fi\fi @@ -100,7 +109,7 @@ \fi % end vos \fi % end warning % -%%% famille, petitesmajuscules and style +%%% famille, petitesmajuscules, style, f-ligatures and Q tail % \ifkp@rmx\def\kp@famille{x} \else @@ -112,20 +121,107 @@ \else\ifkp@osn\def\kp@style{osn} \else\def\kp@style{} \fi\fi\fi - \ifkp@largesmallcaps\def\kp@petitesmajuscules{k}\else\def\kp@petitesmajuscules{}\fi + \ifkp@largesmallcaps\def\kp@petitesmajuscules{k}\def\kp@othersc{} + \else\def\kp@petitesmajuscules{}\def\kp@othersc{k} + \fi + \ifkp@nofligatures\def\kp@flig{f} + \else\def\kp@flig{} + \fi + \ifkp@Qtail\def\kp@othertail{} + \else\def\kp@othertail{os} + \fi % %%% start rm % - \renewcommand{\rmdefault}{jkp\kp@famille\kp@petitesmajuscules\kp@style} + \renewcommand{\rmdefault}{jkp\kp@famille\kp@petitesmajuscules\kp@flig\kp@style} % %%% start sf % - \renewcommand{\sfdefault}{jkpss\kp@petitesmajuscules\kp@style} + \renewcommand{\sfdefault}{jkpss\kp@petitesmajuscules\kp@flig\kp@style} % %%% start tt % \renewcommand{\ttdefault}{jkptt\kp@style} % +%%% New slanted small-caps shape +% + \newcommand{\textscsl}[1]{% + \begingroup% + \fontshape{scsl}\selectfont#1% + \endgroup} + \newcommand{\scslshape}{\fontshape{scsl}\selectfont} +% +%%% Courtesy from Christian Tellechea, package xstring +% +\def\SiFonteContient#1#2{% + \begingroup + \edef\temp@@a{#1}\edef\temp@@a{\detokenize\expandafter{\temp@@a}}% + \edef\temp@@b{#2}\edef\temp@@b{\detokenize\expandafter{\temp@@b}}% + \expandafter\expandafter\expandafter + \endgroup + \expandafter\expandafter\expandafter + \@SiFonteContient + \expandafter\expandafter\expandafter + {\expandafter\temp@@a\expandafter}\expandafter{\temp@@b}} + +\def\@SiFonteContient#1#2#3#4{% + \def\@@SiFonteContient##1#2##2\@nil{\ifx\@empty##2\@empty#4\else#3\fi}% + \@@SiFonteContient#1\@delimit#2\@nil} +% +%%% Other sc, other scsl +% + + \newcommand{\otherscshape}{% + \SiFonteContient{\fontname\the\font}{tt}{}{% + \SiFonteContient{\fontname\the\font}{ss}{\fontfamily{jkpss\kp@othersc\kp@flig\kp@style}}{% + \fontfamily{jkp\kp@famille\kp@othersc\kp@flig\kp@style}}}% + \fontshape{sc}\selectfont% + \ifkp@largesmallcaps\kp@largesmallcapsfalse\else\kp@largesmallcapstrue\fi% + \ifkp@largesmallcaps\def\kp@petitesmajuscules{k}\def\kp@othersc{}% + \else\def\kp@petitesmajuscules{}\def\kp@othersc{k}\fi}% + \newcommand{\textothersc}[1]{% + \begingroup% + \otherscshape#1% + \endgroup} + \newcommand{\otherscslshape}{% + \SiFonteContient{\fontname\the\font}{tt}{}{% + \SiFonteContient{\fontname\the\font}{ss}{\fontfamily{jkpss\kp@othersc\kp@flig\kp@style}}{% + \fontfamily{jkp\kp@famille\kp@othersc\kp@flig\kp@style}}}% + \fontshape{scsl}\selectfont% + \ifkp@largesmallcaps\kp@largesmallcapsfalse\else\kp@largesmallcapstrue\fi% + \ifkp@largesmallcaps\def\kp@petitesmajuscules{k}\def\kp@othersc{}% + \else\def\kp@petitesmajuscules{}\def\kp@othersc{k}\fi}% + \newcommand{\textotherscsl}[1]{% + \begingroup% + \otherscslshape#1% + \endgroup} +% +%%% O ther Q and other smallcap q tails +% + \newcommand{\othertailQ}{% + \begingroup% + \SiFonteContient{\fontname\the\font}{tt}{}{% + \SiFonteContient{\fontname\the\font}{ss}{\fontfamily{jkpss\kp@othertail}}{% + \fontfamily{jkp\kp@famille\kp@othertail}}}% + \selectfont{}Q% + \endgroup} +% + \newcommand{\othertailscq}{% + \begingroup% + \SiFonteContient{\fontname\the\font}{tt}{}{% + \SiFonteContient{\fontname\the\font}{ss}{\fontfamily{jkpss\kp@petitesmajuscules\kp@othertail}}{% + \fontfamily{jkp\kp@famille\kp@petitesmajuscules\kp@othertail}}}% + \fontshape{sc}\selectfont{}q% + \endgroup} +% + \newcommand{\othertailscslq}{% + \begingroup% + \SiFonteContient{\fontname\the\font}{tt}{}{% + \SiFonteContient{\fontname\the\font}{ss}{\fontfamily{jkpss\kp@petitesmajuscules\kp@othertail}}{% + \fontfamily{jkp\kp@famille\kp@petitesmajuscules\kp@othertail}}}% + \fontshape{scsl}\selectfont{}q% + \endgroup} +% \fi % end text % @@ -149,23 +245,26 @@ \else\ifkp@osnm\def\kp@stylem{osn} \else\def\kp@stylem{} \fi\fi\fi + \ifkp@nofligatures\def\kp@fligm{f} + \else\def\kp@fligm{} + \fi % Roman - \DeclareSymbolFont{operators}{OT1}{jkp\kp@famillem\kp@stylem}{m}{n} - \SetSymbolFont{operators}{bold}{OT1}{jkp\kp@famillem\kp@stylem}{b}{n} + \DeclareSymbolFont{operators}{OT1}{jkp\kp@famillem\kp@fligm\kp@stylem}{m}{n} + \SetSymbolFont{operators}{bold}{OT1}{jkp\kp@famillem\kp@fligm\kp@stylem}{b}{n} \def\operator@font{\mathgroup\symoperators} \DeclareSymbolFontAlphabet{\mathrm}{operators} - \DeclareMathAlphabet{\mathbf}{OT1}{jkp\kp@famillem\kp@stylem}{b}{n} - \DeclareMathAlphabet{\mathit}{OT1}{jkp\kp@famillem\kp@stylem}{m}{it} - \SetMathAlphabet{\mathit}{bold}{OT1}{jkp\kp@famillem\kp@stylem}{b}{it} + \DeclareMathAlphabet{\mathbf}{OT1}{jkp\kp@famillem\kp@fligm\kp@stylem}{b}{n} + \DeclareMathAlphabet{\mathit}{OT1}{jkp\kp@famillem\kp@fligm\kp@stylem}{m}{it} + \SetMathAlphabet{\mathit}{bold}{OT1}{jkp\kp@famillem\kp@fligm\kp@stylem}{b}{it} % Sans Serif - \DeclareMathAlphabet{\mathsf}{OT1}{jkpss\kp@stylem}{m}{n} - \SetMathAlphabet{\mathsf}{bold}{OT1}{jkpss\kp@stylem}{b}{n} + \DeclareMathAlphabet{\mathsf}{OT1}{jkpss\kp@fligm\kp@stylem}{m}{n} + \SetMathAlphabet{\mathsf}{bold}{OT1}{jkpss\kp@fligm\kp@stylem}{b}{n} % Typewriter @@ -299,6 +398,13 @@ \DeclareMathAccent{#1}{#2}{#3}{#4}} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Math Italic (jkpmi) Definition % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\ifkp@partialup\re@DeclareMathSymbol{\partial}{\mathord}{letters}{128}\fi + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Math Symbol (jkpsy) Definition % synomymes and \Re, \Im %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -1156,9 +1262,9 @@ % \D close integral %%%%%%%%%%%%%%%%%%% -\def\D#1{\mathclose{\,\ifkp@upRm\mathrm{d}% +\ifkp@Dcommand\def\D#1{\mathclose{\,\ifkp@upRm\mathrm{d}% \else\mathit{d}% - \fi}#1} + \fi}#1}\fi %%%%%%%%%%%% % new arrows |