%\iffalse        This is a META comment
%
% File `hvmath.dtx'.
% Copyright (c) 2001 MicroPress Inc. (AVK)
% All Rights Reserved.
%
%<ot1hvr>\ProvidesFile{ot1hvr.fd}%
%<ot1hvr>  [2001/05/18 v1.5 LaTeX HV Roman font definition (OT1 encoding)]%
%
%<omlhvm>\ProvidesFile{omlhvm.fd}%
%<omlhvm>  [2001/05/18 v1.5 LaTeX HV math font definition (OML encoding)]%
%
%<omlhvr>\ProvidesFile{omlhvr.fd}%
%<omlhvr>  [2001/05/18 v1.5 LaTeX HV math font definition (OML encoding)]%
%
%<omshvr>\ProvidesFile{omshvr.fd}%
%<omshvr>  [2001/05/18 v1.5 LaTeX HV math symbol font definition %
%<omshvr>  (OMS encoding)]%
%
%<omshvsy>\ProvidesFile{omshvsy.fd}%
%<omshvsy>  [2001/05/18 v1.5 LaTeX HV math symbol font definition %
%<omshvsy>  (OMS encoding)]%
%
%<omxhvex>\ProvidesFile{omxhvex.fd}%
%<omxhvex>  [2001/05/18 v1.5 LaTeX HV math extended symbol font definition
%<omxhvex>  (OMX encoding)]%
%
%<ts1hvr>\ProvidesFile{ts1hvr.fd}%
%<ts1hvr>  [2001/05/18 v1.5 LaTeX HV text symbol font definition %
%<ts1hvr>  (TS1 encoding)]%
%
%<t1hvr>\ProvidesFile{t1hvr.fd}%
%<t1hvr>  [2001/05/18 v1.5 LaTeX HV text font definition (T1 encoding)]%
%
%<hv>\NeedsTeXFormat{LaTeX2e}[1997/12/01]%
%<hv>\ProvidesPackage{hvmath}[2001/05/18 v1.5 MicroPress HV fonts setup]%
%
%<hvams>\ProvidesPackage{hvams}[2001/05/18 v1.5 MicroPress HV math AMS A/B sets]
%<*driver>
\ProvidesFile{hvmath.drv}%
  [2001/05/18 v1.5 VTeX LaTeX configuration files for HV Math fonts]
%
\documentclass{ltxdoc}
\GetFileInfo{hvmath.drv}
\providecommand\dst{\expandafter{\normalfont\scshape docstrip}}
\title{The file \texttt{hvmath.dtx} for use with
      \LaTeXe.\thanks{This file has version
           number \fileversion, dated \filedate.}}
\date{\filedate}
\author{MicroPress Inc.}
\begin{document}
\maketitle
 \DocInput{hvmath.dtx}
\end{document}
%</driver>
%
%\fi
%
%    \begin{macrocode}
%<*driver>
\documentclass{ltxdoc}
\begin{document}
   \DocInput{hvmath.dtx}
\end{document}
%</driver>
%    \end{macrocode}
% 
%   \section{\texttt{ot1hvr.fd}} 
% 
%    \begin{macrocode} 
%<*ot1hvr> 
\DeclareFontFamily{OT1}{hvr}{}%
%
\expandafter\ifx\csname OT1@hvr@scale\endcsname\relax
 \let\@l@scale\@empty
\else
 \edef\@l@scale{s*[\csname OT1@hvr@scale\endcsname]}%
\fi
%
% medium series
%
\DeclareFontShape{OT1}{hvr}{m}{n}{<-> \@l@scale hvrm10ot}{}%
\DeclareFontShape{OT1}{hvr}{m}{sl}{<-> \@l@scale hvro10ot}{}%
\DeclareFontShape{OT1}{hvr}{m}{it}{<-> ssub * hvr/m/sl}{}%
\DeclareFontShape{OT1}{hvr}{m}{sc}{<-> \@l@scale hvsc10ot}{}%
\DeclareFontShape{OT1}{hvr}{m}{ui}{<-> ssub * hvr/m/n}{}%
%
% bold series
%
\DeclareFontShape{OT1}{hvr}{b}{n}{<-> ssub * hvr/bx/n}{}%
\DeclareFontShape{OT1}{hvr}{b}{sl}{<-> ssub * hvr/bx/sl}{}%
\DeclareFontShape{OT1}{hvr}{b}{it}{<-> ssub * hvr/bx/sl}{}%
\DeclareFontShape{OT1}{hvr}{b}{sc}{<-> ssub * hvr/bx/sc}{}%
%
% bold extended series
%
\DeclareFontShape{OT1}{hvr}{bx}{n}{<-> \@l@scale hvrb10ot}{}%
\DeclareFontShape{OT1}{hvr}{bx}{sl}{<-> \@l@scale hvbo10ot}{}%
\DeclareFontShape{OT1}{hvr}{bx}{it}{<-> ssub * hvr/bx/sl}{}%
\DeclareFontShape{OT1}{hvr}{bx}{sc}{<-> \@l@scale hvbc10ot}{}%
\DeclareFontShape{OT1}{hvr}{bx}{ui}{<-> ssub * hvr/bx/n}{}%
%</ot1hvr> 
%    \end{macrocode} 
% 
%   \section{\texttt{omlhvm.fd}} 
% 
%    \begin{macrocode} 
%<*omlhvm> 
\DeclareFontFamily{OML}{hvm}{\skewchar\font127 }%
%
\expandafter\ifx\csname OM1@hvr@scale\endcsname\relax
 \let\@l@scale\@empty
\else
 \edef\@l@scale{s*[\csname OM1@hvr@scale\endcsname]}%
\fi
%
\DeclareFontShape{OML}{hvm}{m}{it}{ <-> \@l@scale hvmi10}{}%
\DeclareFontShape{OML}{hvm}{b}{it}{ <-> \@l@scale hvmib10}{}%
\DeclareFontShape{OML}{hvm}{bx}{it}{<-> ssub * hvm/b/it}{}%
%</omlhvm> 
%    \end{macrocode} 
% 
%   \section{\texttt{omlhvr.fd}} 
% 
%    \begin{macrocode} 
%<*omlhvr> 
\DeclareFontFamily{OML}{hvr}{\skewchar\font127 }%
%
\DeclareFontShape{OML}{hvr}{m}{n}{<-> ssub * hvm/m/it}{}%
\DeclareFontShape{OML}{hvr}{m}{it}{<-> ssub * hvm/m/it}{}%
\DeclareFontShape{OML}{hvr}{m}{sl}{<-> ssub * hvm/m/it}{}%
\DeclareFontShape{OML}{hvr}{m}{sc}{<-> ssub * hvm/m/it}{}%
%
\DeclareFontShape{OML}{hvr}{bx}{n}{<-> ssub * hvm/b/it}{}%
\DeclareFontShape{OML}{hvr}{bx}{it}{<-> ssub * hvm/b/it}{}%
\DeclareFontShape{OML}{hvr}{bx}{sl}{<-> ssub * hvm/b/it}{}%
\DeclareFontShape{OML}{hvr}{bx}{sc}{<-> ssub * hvm/b/it}{}%
%</omlhvr> 
%    \end{macrocode} 
% 
%   \section{\texttt{omshvr.fd}} 
% 
%    \begin{macrocode} 
%<*omshvr> 
\DeclareFontFamily{OMS}{hvr}{\skewchar\font48 }%
%
\DeclareFontShape{OMS}{hvr}{m}{n}{<-> ssub * hvsy/m/n}{}%
\DeclareFontShape{OMS}{hvr}{m}{it}{<-> ssub * hvsy/m/n}{}%
\DeclareFontShape{OMS}{hvr}{m}{sl}{<-> ssub * hvsy/m/n}{}%
\DeclareFontShape{OMS}{hvr}{m}{sc}{<-> ssub * hvsy/m/n}{}%
%
\DeclareFontShape{OMS}{hvr}{bx}{n}{<-> ssub * hvsy/b/n}{}%
\DeclareFontShape{OMS}{hvr}{bx}{it}{<-> ssub * hvsy/b/n}{}%
\DeclareFontShape{OMS}{hvr}{bx}{sl}{<-> ssub * hvsy/b/n}{}%
\DeclareFontShape{OMS}{hvr}{bx}{sc}{<-> ssub * hvsy/b/n}{}%
%</omshvr> 
%    \end{macrocode} 
% 
%   \section{\texttt{omshvsy.fd}} 
% 
%    \begin{macrocode} 
%<*omshvsy> 
\DeclareFontFamily{OMS}{hvsy}{\skewchar\font48 }%
%
\expandafter\ifx\csname OM1@hvr@scale\endcsname\relax
 \let\@l@scale\@empty
\else
 \edef\@l@scale{s*[\csname OM1@hvr@scale\endcsname]}%
\fi
%
\DeclareFontShape{OMS}{hvsy}{m}{n}{<-> \@l@scale hvsy10}{}%
\DeclareFontShape{OMS}{hvsy}{b}{n}{<-> \@l@scale hvbsy10}{}%
\DeclareFontShape{OMS}{hvsy}{bx}{n}{<-> ssub * hvsy/b/n}{}%
%</omshvsy> 
%    \end{macrocode} 
% 
%   \section{\texttt{omxhvex.fd}} 
% 
%    \begin{macrocode} 
%<*omxhvex> 
\DeclareFontFamily{OMX}{hvex}{}%
%
\expandafter\ifx\csname OM1@hvr@scale\endcsname\relax
 \let\@l@scale\@empty
\else
 \edef\@l@scale{s*[\csname OM1@hvr@scale\endcsname]}%
\fi
%
\DeclareFontShape{OMX}{hvex}{m}{n}{<-> \@l@scale hvex10}{}%
\DeclareFontShape{OMX}{hvex}{b}{n}{<-> \@l@scale hvexb10}{}%
\DeclareFontShape{OMX}{hvex}{bx}{n}{<-> ssub * hvex/b/n}{}%
%</omxhvex> 
%    \end{macrocode} 
% 
%   \section{\texttt{t1hvr.fd}} 
% 
%    \begin{macrocode} 
%<*t1hvr> 
\DeclareFontFamily{T1}{hvr}{}%
%
\expandafter\ifx\csname T1@hvr@scale\endcsname\relax
 \let\@l@scale\@empty
\else
 \edef\@l@scale{s*[\csname T1@hvr@scale\endcsname]}%
\fi
%
% medium series
%
\DeclareFontShape{T1}{hvr}{m}{n}{<-> \@l@scale hvrm10t1}{}%
\DeclareFontShape{T1}{hvr}{m}{sl}{<-> \@l@scale hvro10t1}{}%
\DeclareFontShape{T1}{hvr}{m}{it}{<-> ssub * hvr/m/sl}{}%
\DeclareFontShape{T1}{hvr}{m}{sc}{<-> \@l@scale hvsc10t1}{}%
\DeclareFontShape{T1}{hvr}{m}{ui}{<-> ssub * hvr/m/n}{}%
%
% bold series
%
\DeclareFontShape{T1}{hvr}{b}{n}{<-> ssub * hvr/bx/n}{}%
\DeclareFontShape{T1}{hvr}{b}{sl}{<-> ssub * hvr/bx/sl}{}%
\DeclareFontShape{T1}{hvr}{b}{it}{<-> ssub * hvr/bx/sl}{}%
\DeclareFontShape{T1}{hvr}{b}{sc}{<-> ssub * hvr/bx/sc}{}%
%
% bold extended series
%
\DeclareFontShape{T1}{hvr}{bx}{n}{<-> \@l@scale hvrb10t1}{}%
\DeclareFontShape{T1}{hvr}{bx}{sl}{<-> \@l@scale hvbo10t1}{}%
\DeclareFontShape{T1}{hvr}{bx}{it}{<-> ssub * hvr/bx/sl}{}%
\DeclareFontShape{T1}{hvr}{bx}{sc}{<-> \@l@scale hvbc10t1}{}%
\DeclareFontShape{T1}{hvr}{bx}{ui}{<-> ssub * hvr/bx/n}{}%
%</t1hvr> 
%    \end{macrocode} 
% 
%   \section{\texttt{ts1hvr.fd}} 
% 
%    \begin{macrocode} 
%<*ts1hvr> 
\DeclareFontFamily{TS1}{hvr}{}%
%
\expandafter\ifx\csname T1@hvr@scale\endcsname\relax
 \let\@l@scale\@empty
\else
 \edef\@l@scale{s*[\csname T1@hvr@scale\endcsname]}%
\fi
%
% medium series
%
\DeclareFontShape{TS1}{hvr}{m}{n}{<-> \@l@scale hvrm10ts}{}%
\DeclareFontShape{TS1}{hvr}{m}{sl}{<-> \@l@scale hvro10ts}{}%
\DeclareFontShape{TS1}{hvr}{m}{it}{<-> ssub * hvr/m/sl}{}%
%
% bold series
%
\DeclareFontShape{TS1}{hvr}{b}{n}{<-> ssub * hvr/bx/n}{}%
\DeclareFontShape{TS1}{hvr}{b}{sl}{<-> ssub * hvr/bx/sl}{}%
\DeclareFontShape{TS1}{hvr}{b}{it}{<-> ssub * hvr/bx/sl}{}%
%
% bold extended series
%
\DeclareFontShape{TS1}{hvr}{bx}{n}{<-> \@l@scale hvrb10ts}{}%
\DeclareFontShape{TS1}{hvr}{bx}{sl}{<-> \@l@scale hvbo10ts}{}%
\DeclareFontShape{TS1}{hvr}{bx}{it}{<-> ssub * hvr/bx/sl}{}%
%</ts1hvr> 
%    \end{macrocode} 
% 
%   \section{\texttt{hvmath.sty}} 
% 
%    \begin{macrocode} 
%<*hv> 
\renewcommand{\rmdefault}{hvr}%
\renewcommand{\familydefault}{\rmdefault}%
%
\edef\vtex@tempa{\cf@encoding}%
\edef\vtex@tempb{LV1}
\ifx\vtex@tempa\vtex@tempb
  \edef\vtex@tempa{LV1}%
  \edef\vtex@tempb{LVS1}%
  \edef\vtex@tempc{LVM1}%
  \edef\vtex@tempd{LVX1}%
  \def\OMS{LVS1}%
  \def\OML{LVM1}%
  \def\cmsy{hvsy}%
  \def\cmmi{hvm}%
\else
  \edef\vtex@tempa{OT1}%
  \edef\vtex@tempb{OMS}%
  \edef\vtex@tempc{OML}%
  \edef\vtex@tempd{OMX}%
  \def\OMS{OMS}%
  \def\OML{OML}%
  \def\cmsy{cmsy}%
  \def\cmmi{cmm}%
\fi
%
\DeclareSymbolFont{operators}{\vtex@tempa}{hvr}{m}{n}%
\DeclareSymbolFont{letters}{\vtex@tempc}{hvm}{m}{it}%
\DeclareSymbolFont{symbols}{\vtex@tempb}{hvsy}{m}{n}%
\DeclareSymbolFont{largesymbols}{\vtex@tempd}{hvex}{m}{n}%
\SetSymbolFont{operators}{bold}{\vtex@tempa}{hvr}{bx}{n}%
\SetSymbolFont{letters}{bold}{\vtex@tempc}{hvm}{b}{it}%
\SetSymbolFont{symbols}{bold}{\vtex@tempb}{hvsy}{b}{n}%
\DeclareMathAlphabet{\mathbf}{\vtex@tempa}{hvr}{bx}{n}%
\DeclareMathAlphabet{\mathit}{\vtex@tempa}{hvr}{m}{it}%
\SetMathAlphabet\mathit{bold}{\vtex@tempa}{hvr}{bx}{it}%
\DeclareMathAlphabet{\mathbold}{\vtex@tempc}{hvm}{b}{it}%
%
\def\hvmath@Aring
{%
  \leavevmode
  \setbox0\hbox{h}%
  \dimen@\ht0 %
  \advance\dimen@-1ex%
  \ooalign{\hfil\raise.85\dimen@\hbox{\r{}}\hfil\crcr A}%
}%
\AtBeginDocument
{%
  \@ifundefined{T@OT1}{}%
    {\DeclareTextCompositeCommand{\r}{OT1}{A}{\hvmath@Aring}}%
  \@ifundefined{T@LV1}{}%
    {\DeclareTextCompositeCommand{\r}{LV1}{A}{\hvmath@Aring}}%
}%
\DeclareMathSymbol{\hbar}{\mathord}{letters}{128}%
\let\vtex@hbar\hbar
\AtBeginDocument
{%
  \@ifpackageloaded{amsfonts}%
  {%
    \@ifundefined{vtex@hbar}{}{\global\let\hbar\vtex@hbar}%
  }{}%
  \@ifpackageloaded{amsmath}%
  {%
    \def\intkern@{\mkern-3mu\mathchoice{\mkern-1.5mu}{}{}{}}%
  }{}%
}%
\normalfont
%</hv> 
%    \end{macrocode} 
% 
%   \section{\texttt{hvams.sty}} 
% 
%    \begin{macrocode} 
%<*hvams> 
\expandafter\ifx\csname OM1@hvr@scale\endcsname\relax
 \let\@l@scale\@empty
\else
 \edef\@l@scale{s*[\csname OM1@hvr@scale\endcsname]}%
\fi
%
\DeclareFontFamily{U}{msa}{}
\DeclareFontShape{U}{msa}{m}{n}{<->\@l@scale hvam10}{}
\DeclareFontFamily{U}{msb}{}
\DeclareFontShape{U}{msb}{m}{n}{<->\@l@scale hvbm10}{}
%</hvams> 
%    \end{macrocode} 
%
%
%    The next line goes into all files and in addition prevents \dst{}
%    from adding any further code from the main source file (such as a
%    character table).
%    \begin{macrocode}
\endinput
%    \end{macrocode}
%
% \Finale
%
%% \CharacterTable
%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%%   Digits        \0\1\2\3\4\5\6\7\8\9
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
%%   Dollar        \$     Percent       \%     Ampersand     \&
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \<
%%   Equals        \=     Greater than  \>     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
