%% Copyright 2011 Luis Marco Adri�n for the Dactilos Project (http://www.dactilos.com)
%% All rights reserved.
%%
%% This file is part of the MathStone package v2.0
%% --------------------------------------------------
%%
%% This program is free software; you can redistribute it and/or
%% modify it under the terms of the GNU General Public License 
%% (http://www.gnu.org/copyleft/gpl.txt) as published by the 
%% Free Software Foundation; either version 3
%% of the License, or (at your option) any later version.

%% This program is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%% GNU General Public License for more details.

%% This file loads the Stone Serif and Stone Sans font families.


% Version 2.0 (2011-02-09)
\ProvidesPackage{mathstone}
\renewcommand{\rmdefault}{pst} % Stone Serif 
\renewcommand{\sfdefault}{ps8} % Stone Sans 
\renewcommand{\ttdefault}{pcr} % Courier 

% Order \textsb for Stone Sans Semibold font
\newcommand{\textsb}[1]{{\fontseries{sb}\selectfont #1}}

% Math Versions
% In addition to the standard math versions: normal and bold
\DeclareMathVersion{semibold}
\DeclareMathVersion{sans}
\DeclareMathVersion{sanssb}
\DeclareMathVersion{sansb}

%Declare Symbol Font
\DeclareSymbolFont{letras}{T1}{pst}{m}{it} % Stone Serif font for letters in all math versions
\SetSymbolFont{letras}{bold}{T1}{pst}{b}{it} % Stone Serif bold font for letters in bold math version
\SetSymbolFont{letras}{semibold}{T1}{pst}{sb}{it} % Stone Serif Semibold font for letters in semibold math version
\SetSymbolFont{letras}{sans}{T1}{ps8}{m}{it} % Stone Sans font for letters in sans math version
\SetSymbolFont{letras}{sanssb}{T1}{ps8}{sb}{it} % Stone Sans Semibold font for letters in sanssb math version
\SetSymbolFont{letras}{sansb}{T1}{ps8}{b}{it} % Stone Sans bold font for letters in sansb math version

\DeclareSymbolFont{simbolos}{T1}{pst}{m}{n} % Stone Serif font for symbols in all math versions
\SetSymbolFont{simbolos}{bold}{T1}{pst}{b}{n} % Stone Serif Semibold font for symbols in semibold math version
\SetSymbolFont{simbolos}{semibold}{T1}{pst}{sb}{n} % Stone Serif Semibold font for symbols in semibold math version
\SetSymbolFont{simbolos}{sans}{T1}{ps8}{m}{n} % Stone Sans font for symbols in sans math version
\SetSymbolFont{simbolos}{sanssb}{T1}{ps8}{sb}{n} % Stone Sans Semibold font for symbols in sanssb math version
\SetSymbolFont{simbolos}{sansb}{T1}{ps8}{b}{n} % Stone Sans bold font for symbols in sansb math version

\DeclareSymbolFont{upright}{OT1}{pst}{m}{n}
\SetSymbolFont{upright}{bold}{OT1}{pst}{b}{n}
\SetSymbolFont{upright}{semibold}{OT1}{pst}{b}{n}
\SetSymbolFont{upright}{sanssb}{OT1}{ps8}{b}{n}
\SetSymbolFont{upright}{sansb}{OT1}{ps8}{b}{n}

\DeclareSymbolFont{griegas}{OT1}{mdbch}{m}{n} % Math Design font for uppercase Greek letters
\SetSymbolFont{griegas}{bold}{OT1}{mdbch}{b}{n} % Math Design font for uppercase Greek letters
\SetSymbolFont{griegas}{semibold}{OT1}{mdbch}{b}{n} % Math Design font for uppercase Greek letters
\SetSymbolFont{griegas}{sanssb}{OT1}{mdbch}{b}{n} % Math Design font for uppercase Greek letters
\SetSymbolFont{griegas}{sansb}{OT1}{mdbch}{b}{n} % Math Design font for uppercase Greek letters

\DeclareSymbolFont{griegasmin}{OML}{mdbch}{m}{n} % Math Design font for lowercase Greek letter
\SetSymbolFont{griegasmin}{bold}{OML}{mdbch}{b}{n} % Math Design font for lowercase Greek letters
\SetSymbolFont{griegasmin}{semibold}{OML}{mdbch}{b}{n} % Math Design font for lowercase Greek letters
\SetSymbolFont{griegasmin}{sanssb}{OML}{mdbch}{b}{n} % Math Design font for lowercase Greek letters
\SetSymbolFont{griegasmin}{sansb}{OML}{mdbch}{b}{n} % Math Design font for lowercase Greek letters

\DeclareSymbolFont{operators}{T1}{pst}{m}{n}
\SetSymbolFont{operators}{bold}{T1}{pst}{b}{n}
\SetSymbolFont{operators}{semibold}{T1}{pst}{b}{n}
\SetSymbolFont{operators}{sans}{T1}{ps8}{m}{n}
\SetSymbolFont{operators}{sanssb}{T1}{ps8}{m}{n}
\SetSymbolFont{operators}{sansb}{T1}{ps8}{m}{n}

%Numbers
\DeclareMathSymbol{0}{\mathalpha}{simbolos}{'060}
\DeclareMathSymbol{1}{\mathalpha}{simbolos}{'061}
\DeclareMathSymbol{2}{\mathalpha}{simbolos}{'062}
\DeclareMathSymbol{3}{\mathalpha}{simbolos}{'063}
\DeclareMathSymbol{4}{\mathalpha}{simbolos}{'064}
\DeclareMathSymbol{5}{\mathalpha}{simbolos}{'065}
\DeclareMathSymbol{6}{\mathalpha}{simbolos}{'066}
\DeclareMathSymbol{7}{\mathalpha}{simbolos}{'067}
\DeclareMathSymbol{8}{\mathalpha}{simbolos}{'070}
\DeclareMathSymbol{9}{\mathalpha}{simbolos}{'071}

%Lowercase letters
\DeclareMathSymbol{a}{\mathalpha}{letras}{'141}
\DeclareMathSymbol{b}{\mathalpha}{letras}{'142}
\DeclareMathSymbol{c}{\mathalpha}{letras}{'143}
\DeclareMathSymbol{d}{\mathalpha}{letras}{'144}
\DeclareMathSymbol{e}{\mathalpha}{letras}{'145}
\DeclareMathSymbol{f}{\mathalpha}{letras}{'146}
\DeclareMathSymbol{g}{\mathalpha}{letras}{'147}
\DeclareMathSymbol{h}{\mathalpha}{letras}{'150}
\DeclareMathSymbol{i}{\mathalpha}{letras}{'151}
\DeclareMathSymbol{j}{\mathalpha}{letras}{'152}
\DeclareMathSymbol{k}{\mathalpha}{letras}{'153}
\DeclareMathSymbol{l}{\mathalpha}{letras}{'154}
\DeclareMathSymbol{m}{\mathalpha}{letras}{'155}
\DeclareMathSymbol{n}{\mathalpha}{letras}{'156}
\DeclareMathSymbol{o}{\mathalpha}{letras}{'157}
\DeclareMathSymbol{p}{\mathalpha}{letras}{'160}
\DeclareMathSymbol{q}{\mathalpha}{letras}{'161}
\DeclareMathSymbol{r}{\mathalpha}{letras}{'162}
\DeclareMathSymbol{s}{\mathalpha}{letras}{'163}
\DeclareMathSymbol{t}{\mathalpha}{letras}{'164}
\DeclareMathSymbol{u}{\mathalpha}{letras}{'165}
\DeclareMathSymbol{v}{\mathalpha}{letras}{'166}
\DeclareMathSymbol{w}{\mathalpha}{letras}{'167}
\DeclareMathSymbol{x}{\mathalpha}{letras}{'170}
\DeclareMathSymbol{y}{\mathalpha}{letras}{'171}
\DeclareMathSymbol{z}{\mathalpha}{letras}{'172}

%Uppercase letters
\DeclareMathSymbol{A}{\mathalpha}{letras}{'101}
\DeclareMathSymbol{B}{\mathalpha}{letras}{'102}
\DeclareMathSymbol{C}{\mathalpha}{letras}{'103}
\DeclareMathSymbol{D}{\mathalpha}{letras}{'104}
\DeclareMathSymbol{E}{\mathalpha}{letras}{'105}
\DeclareMathSymbol{F}{\mathalpha}{letras}{'106}
\DeclareMathSymbol{G}{\mathalpha}{letras}{'107}
\DeclareMathSymbol{H}{\mathalpha}{letras}{'110}
\DeclareMathSymbol{I}{\mathalpha}{letras}{'111}
\DeclareMathSymbol{J}{\mathalpha}{letras}{'112}
\DeclareMathSymbol{K}{\mathalpha}{letras}{'113}
\DeclareMathSymbol{L}{\mathalpha}{letras}{'114}
\DeclareMathSymbol{M}{\mathalpha}{letras}{'115}
\DeclareMathSymbol{N}{\mathalpha}{letras}{'116}
\DeclareMathSymbol{O}{\mathalpha}{letras}{'117}
\DeclareMathSymbol{P}{\mathalpha}{letras}{'120}
\DeclareMathSymbol{Q}{\mathalpha}{letras}{'121}
\DeclareMathSymbol{R}{\mathalpha}{letras}{'122}
\DeclareMathSymbol{S}{\mathalpha}{letras}{'123}
\DeclareMathSymbol{T}{\mathalpha}{letras}{'124}
\DeclareMathSymbol{U}{\mathalpha}{letras}{'125}
\DeclareMathSymbol{V}{\mathalpha}{letras}{'126}
\DeclareMathSymbol{W}{\mathalpha}{letras}{'127}
\DeclareMathSymbol{X}{\mathalpha}{letras}{'130}
\DeclareMathSymbol{Y}{\mathalpha}{letras}{'131}
\DeclareMathSymbol{Z}{\mathalpha}{letras}{'132}

%Uppercase Greek letters
\DeclareMathSymbol{\Gamma}  {\mathalpha}{griegas}{"00}
\DeclareMathSymbol{\Delta}  {\mathalpha}{griegas}{"01}
\DeclareMathSymbol{\Theta}  {\mathalpha}{griegas}{"02}
\DeclareMathSymbol{\Lambda} {\mathalpha}{griegas}{"03}
\DeclareMathSymbol{\Xi}     {\mathalpha}{griegas}{"04}
\DeclareMathSymbol{\Pi}     {\mathalpha}{griegas}{"05}
\DeclareMathSymbol{\Sigma}  {\mathalpha}{griegas}{"06}
\DeclareMathSymbol{\Upsilon}{\mathalpha}{griegas}{"07}
\DeclareMathSymbol{\Phi}    {\mathalpha}{griegas}{"08}
\DeclareMathSymbol{\Psi}    {\mathalpha}{griegas}{"09}
\DeclareMathSymbol{\Omega}  {\mathalpha}{griegas}{"0A}

%Lowercase Greek letters
\DeclareMathSymbol{\alpha}{\mathalpha}{griegasmin}{"0B}
\DeclareMathSymbol{\beta}{\mathalpha}{griegasmin}{"0C}
\DeclareMathSymbol{\gamma}{\mathalpha}{griegasmin}{"0D}
\DeclareMathSymbol{\delta}{\mathalpha}{griegasmin}{"0E}
\DeclareMathSymbol{\epsilon}{\mathalpha}{griegasmin}{"0F}
\DeclareMathSymbol{\zeta}{\mathalpha}{griegasmin}{"10}
\DeclareMathSymbol{\eta}{\mathalpha}{griegasmin}{"11}
\DeclareMathSymbol{\theta}{\mathalpha}{griegasmin}{"12}
\DeclareMathSymbol{\iota}{\mathalpha}{griegasmin}{"13}
\DeclareMathSymbol{\kappa}{\mathalpha}{griegasmin}{"14}
\DeclareMathSymbol{\lambda}{\mathalpha}{griegasmin}{"15}
\DeclareMathSymbol{\mu}{\mathalpha}{griegasmin}{"16}
\DeclareMathSymbol{\nu}{\mathalpha}{griegasmin}{"17}
\DeclareMathSymbol{\xi}{\mathalpha}{griegasmin}{"18}
\DeclareMathSymbol{\pi}{\mathalpha}{griegasmin}{"19}
\DeclareMathSymbol{\rho}{\mathalpha}{griegasmin}{"1A}
\DeclareMathSymbol{\sigma}{\mathalpha}{griegasmin}{"1B}
\DeclareMathSymbol{\tau}{\mathalpha}{griegasmin}{"1C}
\DeclareMathSymbol{\upsilon}{\mathalpha}{griegasmin}{"1D}
\DeclareMathSymbol{\phi}{\mathalpha}{griegasmin}{"1E}
\DeclareMathSymbol{\chi}{\mathalpha}{griegasmin}{"1F}
\DeclareMathSymbol{\psi}{\mathalpha}{griegasmin}{"20}
\DeclareMathSymbol{\omega}{\mathalpha}{griegasmin}{"21}
\DeclareMathSymbol{\varepsilon}{\mathalpha}{griegasmin}{"22}
\DeclareMathSymbol{\vartheta}{\mathalpha}{griegasmin}{"23}
\DeclareMathSymbol{\varpi}{\mathalpha}{griegasmin}{"24}
\DeclareMathSymbol{\varrho}{\mathalpha}{griegasmin}{"25}
\DeclareMathSymbol{\varsigma}{\mathalpha}{griegasmin}{"26}
\DeclareMathSymbol{\varphi}{\mathalpha}{griegasmin}{"27}

%Symbols
\DeclareMathSymbol{!}{\mathclose}{upright}{'041}
\DeclareMathSymbol{+}{\mathbin}{simbolos}{'053}
\DeclareMathSymbol{:}{\mathrel}{simbolos}{"3A}
\DeclareMathSymbol{=}{\mathrel}{simbolos}{'075}
\DeclareMathSymbol{?}{\mathclose}{simbolos}{"3F}
\DeclareMathSymbol{�}{\mathopen}{simbolos}{"3E}
\DeclareMathSymbol{.}{\mathord}{operators}{"2E}
\DeclareMathSymbol{,}{\mathord}{simbolos}{"2C}
\DeclareMathSymbol{-}{\mathbin}{simbolos}{"15}
\DeclareMathDelimiter{(}{\mathopen}{simbolos}{'050}{largesymbols}{"00}
\DeclareMathDelimiter{)}{\mathclose}{simbolos}{'051}{largesymbols}{"01}
\DeclareMathDelimiter{[}{\mathopen} {simbolos}{'133}{largesymbols}{"02}
\DeclareMathDelimiter{]}{\mathclose}{simbolos}{'135}{largesymbols}{"03}
\DeclareMathDelimiter{/}{\mathord}{simbolos}{'057}{largesymbols}{"0E}

%Accent
\DeclareMathAccent{\acute}{\mathalpha}{upright}{"13}
\DeclareMathAccent{\grave}{\mathalpha}{upright}{"12}
\DeclareMathAccent{\ddot}{\mathalpha}{upright}{"7F}
\DeclareMathAccent{\tilde}{\mathalpha}{upright}{"7E}
\DeclareMathAccent{\bar}{\mathalpha}{upright}{"16}
\DeclareMathAccent{\breve}{\mathalpha}{upright}{"15}
\DeclareMathAccent{\check}{\mathalpha}{upright}{"14}
\DeclareMathAccent{\hat}{\mathalpha}{upright}{"5E}
\DeclareMathAccent{\dot}{\mathalpha}{upright}{"5F}
\DeclareMathAccent{\mathring}{\mathalpha}{upright}{"17}
\DeclareMathSymbol{\mathdollar}{\mathord}{upright}{"24}


\endinput
 
