summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:51:32 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:51:32 +0000
commite1c54083e49986785dd4d24e891b89e0772a4de1 (patch)
treebb7fe515122ee7d69362c72f71f40fb2f0eaefc1
parent73383af26b2e7c99c97f74dd6fbae23118ec5a55 (diff)
ar
git-svn-id: svn://tug.org/texlive/trunk@672 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/tex/latex/ar/ar.sty39
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ar/ar.sty b/Master/texmf-dist/tex/latex/ar/ar.sty
new file mode 100644
index 00000000000..7b0d5e065a1
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ar/ar.sty
@@ -0,0 +1,39 @@
+%
+% This package is for using the aspect ratio symbol in math mode and in
+% text mode by means of the command \AR.
+%
+% It is supposed to work both with LaTeX209 and LaTeXe
+% It requires the METAFONT files ar5.mf, ar6.mf, ar7.mf, ar8.mf, ar9.mf,
+% ar10.mf, ar12.mf
+%
+\ifx\documentclass\undefined
+% With LaTeX209 the symbol is available in just one size (by default)
+% but the user can edit the next line in order to get the size s/he wants
+ \newfont{\ar}{ar10 at 10pt}
+ \load{\normalsize}{\ar}
+ \def\AR{\mbox{\ar A}}
+\else
+% While with LaTeXe all standard sizes are available
+% (no bold version available...sorry!)
+ \DeclareFontFamily{U}{ar}{}
+ \DeclareFontShape{U}{ar}{m}{it}%
+ {<5><6><7><8><9>gen*ar%
+ <10><10.95>ar10%
+ <12><14.4><17.28><20.74><24.88>ar12%
+ }{}
+ \DeclareFontShape{U}{ar}{b}{it}%
+ {<->ssub*ar/m/it}{}
+ \DeclareFontShape{U}{ar}{bx}{it}%
+ {<->ssub*ar/m/it}{}
+ \DeclareMathAlphabet{\mar}{U}{ar}{m}{it}%
+ \SetMathAlphabet{\mar}{normal}{U}{ar}{m}{it}%
+ \SetMathAlphabet{\mar}{bold}{U}{ar}{bx}{it}% actually uses medium series
+ \if@compatibility
+ \def\tar{\fontencoding{U}\fontfamily{ar}\itshape}
+ \DeclareRobustCommand{\ar}{\ifmmode\let\cf@ar\mar\else\let\cf@ar\tar\fi\cf@ar}
+ \else
+ \DeclareOldFontCommand{\ar}{\fontencoding{U}\fontfamily{ar}\itshape}{\mar}%
+ \fi
+ \DeclareRobustCommand{\AR}{{\ar A}}
+\fi
+\endinput