diff options
author | Karl Berry <karl@freefriends.org> | 2012-05-05 00:39:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-05-05 00:39:07 +0000 |
commit | eec0646ed5dc50127d8b041759c9f48add56df9f (patch) | |
tree | b61a02c2f96e69ca94690247e402056c261c975b /Master/texmf-dist/tex/latex/sansmathaccent | |
parent | 69763be32bfe1e90e08819dfc251c1fbf1d0b8a7 (diff) |
new font sansmathaccent (27apr12)
git-svn-id: svn://tug.org/texlive/trunk@26200 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/sansmathaccent')
-rw-r--r-- | Master/texmf-dist/tex/latex/sansmathaccent/ot1mathkerncmss.fd | 64 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/sansmathaccent/sansmathaccent.sty | 50 |
2 files changed, 114 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/sansmathaccent/ot1mathkerncmss.fd b/Master/texmf-dist/tex/latex/sansmathaccent/ot1mathkerncmss.fd new file mode 100644 index 00000000000..deb242a3fb7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/sansmathaccent/ot1mathkerncmss.fd @@ -0,0 +1,64 @@ +%% +%% 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<size>' by `mathkerncmssi<size>' +%% +%% 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. +%% +\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% + }{} + +%%%%%%%%% 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 new file mode 100644 index 00000000000..c0e8ff60909 --- /dev/null +++ b/Master/texmf-dist/tex/latex/sansmathaccent/sansmathaccent.sty @@ -0,0 +1,50 @@ +% sansmathaccent.sty +% +% Fixes a problem with accent placement in beamer and sfmath +% +% author: Ariel Barton +% +% Copyright Ariel Barton, 2012 +% +% This work 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 the 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/06/01 or later. +% +% This work has the LPPL maintenance status "author-maintained". +% +% 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] + +\def\sansmathaccent@warning{sansmathaccent is not a standalone package; it should be used with beamer or sfmath.} + +% Check to see if we are a Beamer document +\@ifpackageloaded{beamerbasefont}{% + \def\sansmathaccent@warning{} + \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} + \fi +} +}{} + +% Check to see if we are a sfmath document +\@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} + \fi +}{} + + +\ifx \sansmathaccent@warning\empty \else \typeout{\sansmathaccent@warning} \fi
\ No newline at end of file |