summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/font-nostalgia.sty
blob: a94c730073acbc3450bceba415c5bd0a5e1f598b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
%%% ====================================================================
%%%  @LaTeX-style-file{
%%%     author          = "Mario Wolczko",
%%%     version         = "2",
%%%     date            = "21 May 1992",
%%%     time            = "20:55:58 BST",
%%%     filename        = "font-nostalgia.sty",
%%%     address         = "Dept of Computer Science
%%%                        The University of Manchester
%%%                        Oxford Road
%%%                        Manchester M13 9PL
%%%                        UK",
%%%     telephone       = "+44-61-275-6146",
%%%     FAX             = "+44-61-275-6236",
%%%     checksum        = "47224 51 137 1962",
%%%     email           = "mario@cs.man.ac.uk (Internet)",
%%%     codetable       = "ISO/ASCII",
%%%     keywords        = "LaTeX, NFSS, fonts",
%%%     supported       = "yes",
%%%     docstring       = "For New Font Selection Scheme users --
%%%     provides commands with the pre-NFSS meanings of \rm, \bf, etc.",
%%%  }
%%% ====================================================================

\@ifundefined{extract@font}
     {\let\oldrm\rm
      \let\oldbf\bf
      \let\oldtt\tt
      \let\oldsf\sf
      \let\oldsl\sl
      \let\oldit\it
      \let\oldsc\sc}
     {\newcommand\oldrm{\reset@font}
      \newcommand\oldtt{\family\ttdefault\series\default@series
	\shape{n}\selectfont}
      \newcommand\oldsf{\family\sfdefault\series\default@series
	\shape{n}\selectfont}
      \def\@psfmtname{pslplain}
      \ifx\fmtname\@psfmtname % pslatex
       	\newcommand\oldbf{\family\rmdefault\series{b}%
	  \shape{n}\selectfont}
      \else
      	\newcommand\oldbf{\family\rmdefault\series{bx}%
	  \shape{n}\selectfont}
      \fi
      \newcommand\oldit{\family\rmdefault\series\default@series
	\shape{it}\selectfont}
      \newcommand\oldsl{\family\rmdefault\series\default@series
	\shape{sl}\selectfont}
      \newcommand\oldsc{\family\rmdefault\series\default@series
	\shape{sc}\selectfont}}