<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% \iffalse meta-comment
%
% Copyright 1995,1999 The University of Cambridge and Robin Fairbairns.
% All rights reserved.
% 
% This file is distributed under the conditions of the LaTeX Project
% Public Licence; see the file lppl.txt in the LaTeX distribution for
% details.
%
% \fi
% \CheckSum{22}
%
% \section*{Document Preambles}
%
%    \begin{macrocode}
%&lt;*!(driver|Ucmm)&gt;
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
%&lt;/!(driver|Ucmm)&gt;
%&lt;Ucmm&gt;    \ProvidesFile{Ucmm.fd}%
%&lt;oldstyle&gt;\ProvidesPackage{oldstyle}%
%&lt;*driver&gt;
           \ProvidesFile{oldstyle.dtx}%
%&lt;/driver&gt;
           [1999/05/17 v0.2 Oldstyle numerals font definitions]
%    \end{macrocode}
% \iffalse (we don't want to typeset this rubbish)
%
%&lt;*driver&gt;
\documentclass{ltxdoc}
\GetFileInfo{oldstyle.dtx}
\usepackage{oldstyle}
\title{The file \texttt{oldstyle.dtx} for use with
      \LaTeXe.\thanks{This file has version
           number \fileversion, dated \filedate.}}
\date{Printed \today}
\author{Robin Fairbairns}
\begin{document}
\maketitle
 \DocInput{oldstyle.dtx}
\end{document}
%&lt;/driver&gt;
% \fi
%
%
% \section{Introduction}
%
% This file contains the external font information needed to load the
% |cmmi| and |cmmib| fonts for use to produce oldstyle numbers in
% \LaTeX{} text, together with a trivial \LaTeXe{} package to
% enable them to be used in LaTeX text.
%
% The package |oldstyle| implements two commands (one in \LaTeX~2.09
% style~--- |\oldstyle|~--- and one in \LaTeXe{} style~--- |\textos|).
%
% The numbers look like this:
%
% \begin{center}\sf
%   \begin{tabular}{ll}
%   Command &amp; Typeset text \\
%   \hline
%   |0123456789| &amp; \textrm{0123456789} \\
%                &amp; (normal numbers) \\
%   |\textos{0123456789}| &amp; \textos{0123456789} \\
%   |\textbf{0123456789}| &amp; \textbf{\textrm{0123456789}} \\
%                         &amp; (normal boldface) \\
%   |\textbf{%|           &amp;                   \\
%   |  \textos{0123456789}}| &amp; \textbf{\textos{0123456789}}
%   \end{tabular}
% \end{center}
%
% These macros do not currently address the use of old-style numerals
% from the {\small TS}1 encoding.  I do have macros for doing such a
% thing, but haven't yet integrated them with this environment.
%
% \StopEventually{}
%
% \section{The \texttt{.fd} file}
%
% The |.fd| file specifies a version of the font family |cmm| in |U|
% encoding.  This is the best I could think of (only the digits are
% oldstyle numbers, after all).
%
% I have done what I believe to be the \emph{proper}, and made
% oldstyle a new font shape, but I'm not (yet) sure about the `name'
% (|os|) I've given it.  Hence, this release is still only preliminary.
% 
%    \begin{macrocode}
%&lt;*Ucmm&gt;
\DeclareFontFamily{U}{cmm}{\skewchar\font'177}
\DeclareFontShape{U}{cmm}{m}{os}
    { &lt;5&gt; &lt;6&gt; &lt;7&gt; &lt;8&gt; &lt;9&gt; gen * cmmi
      &lt;10&gt;&lt;10.95&gt;cmmi10
      &lt;12&gt;&lt;14.4&gt;&lt;17.28&gt;&lt;20.74&gt;&lt;24.88&gt;cmmi12
      }{}
\DeclareFontShape{U}{cmm}{b}{os}{%
      &lt;5&gt; &lt;6&gt; &lt;7&gt; &lt;8&gt; &lt;9&gt; gen * cmmib
      &lt;10&gt; &lt;10.95&gt; &lt;12&gt; &lt;14.4&gt; &lt;17.28&gt; &lt;20.74&gt; &lt;24.88&gt; cmmib10
      }{}
\DeclareFontShape{U}{cmm}{bx}{os}
   {&lt;-&gt; ssub * cmm/b/os}{}
%&lt;/Ucmm&gt;
%    \end{macrocode}
%
% \section{The \texttt{.sty} file}
%
% The package is also trivial.  It defines an oldstyle family and then
% declares commands to use it.
%
%    \begin{macrocode}
%&lt;*oldstyle&gt;
\DeclareOldFontCommand {\oldstyle}{\usefont{U}{cmm}{m}{os}}%
                                  {\mathos}
\DeclareTextFontCommand{\textos}{\oldstylefamily}
\DeclareMathAlphabet   {\mathos}{U}{cmm}{m}{os}
%    \end{macrocode}
%
% A series of constructs follows that enable the above to work; the
% constructs are mostly copied from the source of \LaTeXe{} itself.
%    \begin{macrocode}
\DeclareRobustCommand\oldstylefamily{%
            \not@math@alphabet\osshape\mathos
            \usefont{U}{cmm}\f@series{os}}
%&lt;/oldstyle&gt;
%    \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     \&amp;
%%   Acute accent  \'     Left paren    \(     Right paren   \)
%%   Asterisk      \*     Plus          \+     Comma         \,
%%   Minus         \-     Point         \.     Solidus       \/
%%   Colon         \:     Semicolon     \;     Less than     \&lt;
%%   Equals        \=     Greater than  \&gt;     Question mark \?
%%   Commercial at \@     Left bracket  \[     Backslash     \\
%%   Right bracket \]     Circumflex    \^     Underscore    \_
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%%   Right brace   \}     Tilde         \~}
%
% \endinput
</pre></body></html>