summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/sansmathaccent/sansmathaccent.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-05-05 00:39:07 +0000
committerKarl Berry <karl@freefriends.org>2012-05-05 00:39:07 +0000
commiteec0646ed5dc50127d8b041759c9f48add56df9f (patch)
treeb61a02c2f96e69ca94690247e402056c261c975b /Master/texmf-dist/tex/latex/sansmathaccent/sansmathaccent.sty
parent69763be32bfe1e90e08819dfc251c1fbf1d0b8a7 (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/sansmathaccent.sty')
-rw-r--r--Master/texmf-dist/tex/latex/sansmathaccent/sansmathaccent.sty50
1 files changed, 50 insertions, 0 deletions
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