summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/texlogos
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/texlogos
Initial commit
Diffstat (limited to 'macros/latex/contrib/texlogos')
-rw-r--r--macros/latex/contrib/texlogos/texlogos.sty153
1 files changed, 153 insertions, 0 deletions
diff --git a/macros/latex/contrib/texlogos/texlogos.sty b/macros/latex/contrib/texlogos/texlogos.sty
new file mode 100644
index 0000000000..55b1e008cb
--- /dev/null
+++ b/macros/latex/contrib/texlogos/texlogos.sty
@@ -0,0 +1,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
+%%