summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/eurosans/eurosans.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/eurosans/eurosans.sty')
-rw-r--r--macros/latex/contrib/eurosans/eurosans.sty66
1 files changed, 66 insertions, 0 deletions
diff --git a/macros/latex/contrib/eurosans/eurosans.sty b/macros/latex/contrib/eurosans/eurosans.sty
new file mode 100644
index 0000000000..068ff0e74b
--- /dev/null
+++ b/macros/latex/contrib/eurosans/eurosans.sty
@@ -0,0 +1,66 @@
+\ProvidesPackage{eurosans}[2004/01/26 v3.1 using the Adobe Euro fonts (WaS)]
+
+% Copyright (c) Walter Schmidt, Erlangen, 1998-2004
+
+% This program may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.1
+% 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.1 or later is part of all distributions of LaTeX
+% version 1999/06/01 or later.
+
+\RequirePackage{keyval}
+\let\zpeur@@Scale\@empty
+\define@key{Zpeur}{scaled}[.95]{%
+ \def\zpeur@@Scale{s*[#1]}}
+\def\ProcessOptionsWithKV#1{%
+ \let\@tempc\relax
+ \let\Zpeur@tempa\@empty
+ \@for\CurrentOption:=\@classoptionslist\do{%
+ \@ifundefined{KV@#1@\CurrentOption}%
+ {}%
+ {%
+ \edef\Zpeur@tempa{\Zpeur@tempa,\CurrentOption,}%
+ \@expandtwoargs\@removeelement\CurrentOption
+ \@unusedoptionlist\@unusedoptionlist
+ }%
+ }%
+ \edef\Zpeur@tempa{%
+ \noexpand\setkeys{#1}{%
+ \Zpeur@tempa\@ptionlist{\@currname.\@currext}%
+ }%
+ }%
+ \Zpeur@tempa
+ \let\CurrentOption\@empty
+}
+\ProcessOptionsWithKV{Zpeur}
+\AtEndOfPackage{%
+ \let\@unprocessedoptions\relax
+}
+
+\DeclareFontFamily{U}{eurosans}{}
+\DeclareFontShape{U}{eurosans}{m}{n}{<-> \zpeur@@Scale zpeurs}{}
+\DeclareFontShape{U}{eurosans}{m}{it}{<-> \zpeur@@Scale zpeuris}{}
+\DeclareFontShape{U}{eurosans}{m}{sl}{<->ssub * eurosans/m/it}{}
+\DeclareFontShape{U}{eurosans}{b}{n}{<-> \zpeur@@Scale zpeubs}{}
+\DeclareFontShape{U}{eurosans}{b}{it}{<-> \zpeur@@Scale zpeubis}{}
+\DeclareFontShape{U}{eurosans}{b}{sl}{<->ssub * eurosans/b/it}{}
+\DeclareFontShape{U}{eurosans}{bx}{n}{<->ssub * eurosans/b/n}{}
+\DeclareFontShape{U}{eurosans}{bx}{sl}{<->ssub * eurosans/b/it}{}
+\DeclareFontShape{U}{eurosans}{bx}{it}{<->ssub * eurosans/b/it}{}
+\DeclareFontShape{U}{eurosans}{mc}{n}{<-> \zpeur@@Scale zpeurt}{}
+\DeclareFontShape{U}{eurosans}{mc}{it}{<-> \zpeur@@Scale zpeurit}{}
+\DeclareFontShape{U}{eurosans}{mc}{sl}{<->ssub * eurosans/m/it}{}
+\DeclareFontShape{U}{eurosans}{bc}{n}{<-> \zpeur@@Scale zpeubt}{}
+\DeclareFontShape{U}{eurosans}{bc}{it}{<-> \zpeur@@Scale zpeubit}{}
+\DeclareFontShape{U}{eurosans}{bc}{sl}{<->ssub * eurosans/bc/it}{}
+\DeclareFontShape{U}{eurosans}{sbc}{n}{<->ssub * eurosans/bc/n}{}
+\DeclareFontShape{U}{eurosans}{sbc}{sl}{<->ssub * eurosans/bc/it}{}
+\DeclareFontShape{U}{eurosans}{sbc}{it}{<->ssub * eurosans/bc/it}{}
+
+\DeclareRobustCommand{\euro}%
+ {{\fontencoding{U}\fontfamily{eurosans}\selectfont\symbol{128}}}
+
+\endinput
+