From 5850fed93904f9c801051e5315f42df42b066580 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 28 Mar 2013 23:07:19 +0000 Subject: sansmathaccent (28mar13) git-svn-id: svn://tug.org/texlive/trunk@29541 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/sansmathaccent/ot1mathkerncmss.fd | 104 +++++++++------------ .../tex/latex/sansmathaccent/sansmathaccent.sty | 77 +++++++++++++-- 2 files changed, 110 insertions(+), 71 deletions(-) (limited to 'Master/texmf-dist/tex/latex/sansmathaccent') diff --git a/Master/texmf-dist/tex/latex/sansmathaccent/ot1mathkerncmss.fd b/Master/texmf-dist/tex/latex/sansmathaccent/ot1mathkerncmss.fd index deb242a3fb7..1726b794f9d 100644 --- a/Master/texmf-dist/tex/latex/sansmathaccent/ot1mathkerncmss.fd +++ b/Master/texmf-dist/tex/latex/sansmathaccent/ot1mathkerncmss.fd @@ -1,64 +1,46 @@ -%% -%% This is file `ot1mathkerncmss.fd', -%% based on the file `ot1cmss.fd' -%% which is part of the LaTeX base distribution. -%% -%% It has been edited by replacing the family name `cmss' by `mathkerncmss' -%% and by replacing some of the fonts `cmssi' by `mathkerncmssi' -%% -%% This file is part of the sansmathaccent package. -%% -%% It may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3c -%% 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.3c or later is part of all distributions of LaTeX -%% version 2005/12/01 or later. -%% +%Filename: ot1mathkerncmss.fd +%Created by: tex installfonts +%Created using fontinst v1.933 + +%THIS FILE SHOULD BE PUT IN A TEX INPUTS DIRECTORY + \ProvidesFile{ot1mathkerncmss.fd} - [2012/04/26] -\DeclareFontFamily{OT1}{mathkerncmss}{\skewchar\font127 } -\DeclareFontShape{OT1}{mathkerncmss}{m}{n} - {% - <5><6><7><8>cmss8% - <9>cmss9% - <10><10.95>cmss10% - <12><14.4>cmss12% - <17.28><20.74><24.88>cmss17% - }{} -% Font undefined, therefore substituted -\DeclareFontShape{OT1}{mathkerncmss}{m}{it} - {<->sub*mathkerncmss/m/sl}{} -\DeclareFontShape{OT1}{mathkerncmss}{m}{sl} - {% - <5><6><7><8>mathkerncmssi8<9>mathkerncmssi9% - <10><10.95>mathkerncmssi10% - <12><14.4>mathkerncmssi12% - <17.28><20.74><24.88>mathkerncmssi17% - }{} -%%%%%%% Font/shape undefined, therefore substituted -\DeclareFontShape{OT1}{mathkerncmss}{m}{sc} - {<->sub*cmr/m/sc}{} -%%%%%%% Font/shape undefined, therefore substituted -\DeclareFontShape{OT1}{mathkerncmss}{m}{ui} - {<->sub*cmr/m/ui}{} -%%%%%%%% semibold condensed series -\DeclareFontShape{OT1}{mathkerncmss}{sbc}{n} - {% - <5><6><7><8><9>cmssdc10% - <10><10.95><12><14.4><17.28><20.74><24.88>cmssdc10% - }{} + [2013/03/27 Fontinst v1.933 font definitions for OT1/mathkerncmss.] + +\DeclareFontFamily{OT1}{mathkerncmss}{\skewchar \font 127 } + +\DeclareFontShape{OT1}{mathkerncmss}{m}{n}{ + <-8.5> cmss8 + <8.5-9.5> cmss9 + <9.5-11.5> cmss10 + <11.5-15.7> cmss12 + <15.7-> cmss17 +}{} + +\DeclareFontShape{OT1}{mathkerncmss}{m}{sl}{ + <-8.5> mathkerncmssi8 + <8.5-9.5> mathkerncmssi9 + <9.5-11.5> mathkerncmssi10 + <11.5-15.7> mathkerncmssi12 + <15.7-> mathkerncmssi17 +}{} + +\DeclareFontShape{OT1}{mathkerncmss}{bx}{n}{ + <-> cmssbx10 +}{} + +\DeclareFontShape{OT1}{mathkerncmss}{bx}{sl}{ + <-8.5> mathkerncmssxi8 + <8.5-9.5> mathkerncmssxi9 + <9.5-11.5> mathkerncmssxi10 + <11.5-15.7> mathkerncmssxi12 + <15.7-> mathkerncmssxi17 +}{} + +\DeclareFontShape{OT1}{mathkerncmss}{m}{it}{<->ssub * mathkerncmss/m/sl}{} +\DeclareFontShape{OT1}{mathkerncmss}{b}{n}{<->ssub * mathkerncmss/bx/n}{} +\DeclareFontShape{OT1}{mathkerncmss}{b}{sl}{<->ssub * mathkerncmss/bx/sl}{} +\DeclareFontShape{OT1}{mathkerncmss}{bx}{it}{<->ssub * mathkerncmss/bx/sl}{} +\DeclareFontShape{OT1}{mathkerncmss}{b}{it}{<->ssub * mathkerncmss/bx/it}{} -%%%%%%%%% bold extended series -\DeclareFontShape{OT1}{mathkerncmss}{bx}{n} - {% - <5><6><7><8><9>cmssbx10% - <10><10.95><12><14.4><17.28><20.74><24.88>cmssbx10% - }{} -%%%%%%% Font/shape undefined, therefore substituted -\DeclareFontShape{OT1}{mathkerncmss}{bx}{ui} - {<->sub*cmr/bx/ui}{} \endinput -%% -%% End of file `ot1mathkerncmss.fd'. diff --git a/Master/texmf-dist/tex/latex/sansmathaccent/sansmathaccent.sty b/Master/texmf-dist/tex/latex/sansmathaccent/sansmathaccent.sty index c0e8ff60909..f7f06374fbe 100644 --- a/Master/texmf-dist/tex/latex/sansmathaccent/sansmathaccent.sty +++ b/Master/texmf-dist/tex/latex/sansmathaccent/sansmathaccent.sty @@ -1,10 +1,10 @@ -% sansmathaccent.sty +% sansmathaccent.sty, version 2 % % Fixes a problem with accent placement in beamer and sfmath % % author: Ariel Barton % -% Copyright Ariel Barton, 2012 +% Copyright Ariel Barton, 2012, 2013 % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -20,31 +20,88 @@ % The complete list of files considered part of this work is in % the file `sansmathaccent.pdf' and its source code `sansmathaccent.tex'. % -\ProvidesPackage{sansmathaccent}[2012/04/26] +\ProvidesPackage{sansmathaccent}[2013/03/28] -\def\sansmathaccent@warning{sansmathaccent is not a standalone package; it should be used with beamer or sfmath.} +\def\sansmathaccent@warning{sansmathaccent is not a standalone package; it should be used with beamer or sfmath} + +\@ifpackageloaded{bm}{\PackageWarning{sansmathaccent}{Please load bm after loading sansmathaccent}} + +\providecommand\beamer@font@check{ + % Code borrowed from beamerbasefont + % to see if we are using any font packages + \def\beamer@cmr{cmr} + \edef\beamer@fmdef{\mathfamilydefault} + % supress for standard cm + \ifx\beamer@fmdef\beamer@cmr\beamer@suppressreplacementstrue\fi + % supress for mathtime serif and math minion serif + \@ifpackageloaded{arevmath}{\ifbeamer@sansmath\else\beamer@suppressreplacementstrue\fi}{} + \@ifpackageloaded{hvmath}{\ifbeamer@sansmath\else\beamer@suppressreplacementstrue\fi}{} + \@ifpackageloaded{kpfonts}{\ifbeamer@sansmath\else\beamer@suppressreplacementstrue\fi}{} + \@ifpackageloaded{lucidabr}{\ifbeamer@sansmath\else\beamer@suppressreplacementstrue\fi}{} + \@ifpackageloaded{lucimatx}{\ifbeamer@sansmath\else\beamer@suppressreplacementstrue\fi}{} + \@ifpackageloaded{mathpmnt}{\ifbeamer@sansmath\else\beamer@suppressreplacementstrue\fi}{} + \@ifpackageloaded{mathpple}{\ifbeamer@sansmath\else\beamer@suppressreplacementstrue\fi}{} + \@ifpackageloaded{mathtime}{\ifbeamer@sansmath\else\beamer@suppressreplacementstrue\fi}{} + \@ifpackageloaded{mtpro}{\ifbeamer@sansmath\else\beamer@suppressreplacementstrue\fi}{} + \@ifpackageloaded{mtpro2}{\ifbeamer@sansmath\else\beamer@suppressreplacementstrue\fi}{} +} % Check to see if we are a Beamer document \@ifpackageloaded{beamerbasefont}{% \def\sansmathaccent@warning{} + + % Ensure proper placement of accents with bm + % but don't waste a mathgroup unless we will in fact use + % bm and pureletters + \IfFileExists{filehook.sty}{ + \RequirePackage{filehook} + \AtBeginOfFile{bm.sty}{ + \beamer@font@check \ifbeamer@suppressreplacements\else + \DeclareSymbolFont{pureletters}{OT1}{mathkerncmss}{m}{sl} + \SetSymbolFont{pureletters}{bold}{OT1}{mathkerncmss}{bx}{sl} + \fi + } + }{ + \DeclareSymbolFont{pureletters}{OT1}{mathkerncmss}{m}{sl} + \SetSymbolFont{pureletters}{bold}{OT1}{mathkerncmss}{bx}{sl} + \PackageWarning{sansmathaccent}{Could not find 'filehooks' package: one mathgroup may be wasted} + } + \AtBeginDocument{ - \def\sansmathaccent@cmss{cmss} - \ifx\beamer@fmdef\sansmathaccent@cmss % Check to see if we are using cmss for math - \DeclareSymbolFont{pureletters}{OT1}{mathkerncmss}{m}{sl} + \ifbeamer@suppressreplacements\else + % Check to see if we are using cmss for math + \def\sansmathaccent@cmss{cmss} + \ifx\beamer@fmdef\sansmathaccent@cmss + % Use properly kerned alphabets + \DeclareSymbolFont{pureletters}{OT1}{mathkerncmss}{m}{sl}% + \ifx\mv@bold\@undefined\else % Compatibility with the bm package + \SetSymbolFont{pureletters}{bold}{OT1}{mathkerncmss}{bx}{sl} + \fi + \else + % If we are using sans serif, but not cmss, for math, + % make sure bm doesn't accidentally end up using bold cmss + \ifx \symboldpureletters \undefined \else + \DeclareSymbolFont{boldpureletters}{\encodingdefault} {\mathfamilydefault}{bx}{it} + \fi + \fi \fi } }{} % Check to see if we are a sfmath document +% This is less fancy, because sfmath doesn't delay with AtBeginDocument \@ifpackageloaded{sfmath}{% \def\sansmathaccent@warning{} \edef\tmp@sfdefault{\math@sfdefault} \def\tmp@compare{cmss} \ifx\tmp@sfdefault\tmp@compare % Check to see if we are using cmss for math - \DeclareSymbolFont{SFMath}{OT1}{mathkerncmss}{m}{sl} - \SetSymbolFont{SFMath}{normal}{OT1}{mathkerncmss}{m}{sl} + \DeclareSymbolFont{SFMath}{OT1}{mathkerncmss}{m}{sl} + \SetSymbolFont{SFMath}{normal}{OT1}{mathkerncmss}{m}{sl} + \SetSymbolFont{SFMath}{bold}{OT1}{mathkerncmss}{bx}{sl} \fi }{} -\ifx \sansmathaccent@warning\empty \else \typeout{\sansmathaccent@warning} \fi \ No newline at end of file +\ifx \sansmathaccent@warning\empty \else + \PackageWarning{sansmathaccent}{\sansmathaccent@warning} +\fi \ No newline at end of file -- cgit v1.2.3