summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/texlogos/texlogos.sty
blob: 55b1e008cb21ab3a400b40fea3b29d77918c3f9d (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
%% LaTeX package "texlogos.sty" for LaTeX2e
%% Created 2003/06/20 by Jacek Ruzyczka.
%% Version 1.3.1 2006/01/09
%% e-mail: stacheldraht@interia.pl
%% (c) 2003--2006 by Jacek Ruzyczka.
%% This package is subject to the LPPL.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{texlogos}[2006/01/09 ver.1.3.1 by Jacek Ruzyczka]
\RequirePackage{amsmath}
\RequirePackage{graphics}
\RequirePackage{ifthen}

%% Loads the "logo" fonts required by \metafontlogo and
%% \metapostlogo.
%%
\font\fntlogosmup=logo8 scaled 600
\font\fntlogosmsl=logosl8 scaled 600
\font\fntlogofnup=logo9 scaled 600
\font\fntlogofnsl=logosl9 scaled 600
\font\fntlogoreup=logo10 scaled 600
\font\fntlogoresl=logosl10 scaled 600
\font\fntlogorebf=logobf10 scaled 600

%% Displays the "Euro" sign without using TCRM fonts.
%%
\DeclareRobustCommand{\euro}{C\hspace{-2ex}%
		  \protect\raisebox{0.15ex}
		  {$\mathrm{=}\,$}}

%% Displays the "Cent" sign without using TCRM fonts.
%%
\DeclareRobustCommand{\cent}{c\hspace{-0.8ex}%
		   \protect\raisebox{0.2ex}{%
		   \protect\scalebox{1}[0.7]{\textbar}}$\,$}

%% Displays the "Yen" sign without using TCRM fonts.
%%
\DeclareRobustCommand{\yen}{Y\hspace{-1.6ex}%
		  \protect\raisebox{0.15ex}{%
		  \scriptsize{$\mathrm{=}$}$\;$}}

%% Displays the "Won" sign without using TCRM fonts.
%%
\DeclareRobustCommand{\won}{W\hspace{-2.3ex}%
		  \protect\raisebox{0.4ex}{%
		  \protect\scalebox{1.5}[1]%
		  {\scriptsize{$\mathrm{=}$}$\;$}}}

%% Displays the "Naira" sign without using TCRM fonts.
%%
\DeclareRobustCommand{\naira}{N\hspace{-1.75ex}%
		    \protect\raisebox{0.4ex}{%
		    \protect\scalebox{1.25}[1]%
		    {\scriptsize{$\mathrm{=}$}$\;$}}}

%% Displays the AMS logo using the mathcal fonts.
%%
\DeclareRobustCommand{\amslogo}
	   {$\mathcal{A\! \protect\raisebox{-0.5ex}
	   {$\mathcal{M}$}\! S}$}

%% Displays the BibTeX logo.
%%
\DeclareRobustCommand{\bibtexlogo}{%
	    \protect\scalebox{0.75}[1]{B}%
	    \protect\scalebox{0.5625}[0.75]{IB}\TeX}

%% Displays the SliTeX logo.
%%
\DeclareRobustCommand{\slitexlogo}{%
	    \protect\scalebox{0.75}[1]{S}%
	    \protect\scalebox{0.5625}[0.75]{LI}\TeX}

%% Displays the bwz logo.
%%
\DeclareRobustCommand{\bwzlogo}{\protect\scalebox{1.25}[1.2]
	   {\sl \texttt{bwz}}}

%% The commands \metafontlogo and \metapostlogo both accept
%% the following two arguments:
%% #1...the font size....{small; footnotesize; regular}
%% #2...the font shape...{upright; slanted;
%%                        boldface [regular size only]}
%%

%% Displays the METAFONT logo.
%%
\DeclareRobustCommand{\metafontlogo}[2]
	{{\protect\scalebox{1.667}{%
	\ifthenelse{\equal{#1}{small}}{%
		\ifthenelse{\equal{#2}{slanted}}
			{\fntlogosmsl}{\fntlogosmup}}
		{\ifthenelse{\equal{#1}{footnotesize}}{%
			\ifthenelse{\equal{#2}{slanted}}
			{\fntlogofnsl}{\fntlogofnup}}
		{\ifthenelse{\equal{#2}{boldface}}{\fntlogorebf}{%
			\ifthenelse{\equal{#2}{slanted}}
				{\fntlogoresl}{\fntlogoreup}}}}
	METAFONT}}}

%% Displays the METAPOST logo.
%%
\DeclareRobustCommand{\metapostlogo}[2]
	{{\protect\scalebox{1.667}{%
	\ifthenelse{\equal{#1}{small}}{%
		\ifthenelse{\equal{#2}{slanted}}
			{\fntlogosmsl}{\fntlogosmup}}
		{\ifthenelse{\equal{#1}{footnotesize}}{%
			\ifthenelse{\equal{#2}{slanted}}
			{\fntlogofnsl}{\fntlogofnup}}
		{\ifthenelse{\equal{#2}{boldface}}{\fntlogorebf}{%
			\ifthenelse{\equal{#2}{slanted}}
				{\fntlogoresl}{\fntlogoreup}}}}
	METAPOST}}}

%% Displays the "pointing finger" character.
%% Args: #1...the scaling factor (for 11pt, take 0.48)
%%
\DeclareRobustCommand{\fingerlogo}[1]{\protect\scalebox{#1}{%
			    \begin{picture}(10, 10)
			    \thicklines
			    \put(0, 1.5){\line(0, 1){3}}
			    \put(0.5, 4.5){\oval(1, 1)[tl]}
			    \put(0.5, 5){\line(1, 0){1}}
			    \put(1.5, 4.5){\oval(1, 1)[tr]}
			    \put(2, 4.5){\line(0, -1){3}}
			    \put(1.5, 1.5){\oval(1, 1)[br]}
			    \put(1.5, 0.8){\line(-1, 0){1}}
			    \put(0.5, 1.5){\oval(1, 1)[bl]}
			    \put(1, 4){\circle*{0.75}}
			    \qbezier(2, 4.5)(3.75, 5.5)(9.25, 4.25)
			    \qbezier(9.25, 4.25)(10, 3.75)(9.25, 3.5)
			    \qbezier(9.25, 3.5)(6.5, 3.75)(5.25, 3.625)
			    \qbezier(5.25, 3.625)(4.5, 3.375)(5.75, 3.125)
			    \qbezier(5.75, 3.125)(7, 3)(6.5, 1.75)
			    \qbezier(6.5, 1.75)(6.25, 1)(5, 1)
			    \qbezier(5, 1)(3.75, 1)(2, 1.5)
			    \end{picture}}}

%% Displays the C++ logo.
%%
\DeclareRobustCommand{\cpluspluslogo}{\hbox{C\hspace{-0.5ex}
			    \protect\raisebox{0.5ex}
			    {\protect\scalebox{0.67}{++}}}}

%% Displays the "numero" sign in the current font.
%%
\DeclareRobustCommand{\numero}{\hbox{\protect\scalebox{0.75}[1]
			{N\textordmasculine}}}

%% End of textlogos.sty
%%