diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/metalogo')
-rw-r--r-- | Master/texmf-dist/tex/latex/metalogo/metalogo.sty | 277 |
1 files changed, 277 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/metalogo/metalogo.sty b/Master/texmf-dist/tex/latex/metalogo/metalogo.sty new file mode 100644 index 00000000000..2f150770177 --- /dev/null +++ b/Master/texmf-dist/tex/latex/metalogo/metalogo.sty @@ -0,0 +1,277 @@ +%% +%% This is file `metalogo.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% metalogo.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% © Andrew Gilbert Moschou 2009 +%% +%% This file may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3c +%% of this license or (at your option) any later version. +%% The latest version of this license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3c or later is part of all distributions of LaTeX, +%% version 2005/12/01 or later. +%% +%% This file has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Andrew Gilbert Moschou. +%% +%% This wok consists of the files metalogo.dtx and metalogo.ins, +%% and the derived file metalogo.sty. +%% +\NeedsTeXFormat{LaTeX2e}[2005/12/01] +\ProvidesPackage{metalogo}[2009/01/03 v0.10 Extended TeX logo macros] +\RequirePackage{graphicx} +\RequirePackage{ifxetex} +\ifxetex + \RequirePackage{fontspec}[2008/08/09] +\fi +\let\original@TeX\TeX +\let\original@LaTeX\LaTeX +\let\original@LaTeXe\LaTeXe +\@ifundefined{XeTeX}{}{\let\original@XeTeX\XeTeX} +\@ifundefined{XeLaTeX}{}{\let\original@XeLaTeX\XeLaTeX} +\newif\if@xl@default +\AtEndOfPackage{ + \setlogokern{Te}{default} + \setlogokern{eX}{default} + \setlogokern{La}{default} + \setlogokern{aT}{default} + \setlogokern{Xe}{default} + \setlogokern{eT}{default} + \setlogokern{eL}{default} + \setlogokern{X2}{default} + \setlogodrop{default} + \setLaTeXa{default} + \setLaTeXee{default} + \seteverylogo{}} +\newcommand\xl@sh@ft[1]{% + \dimen@ #1% + \multiply\dimen@\m@ne + \kern\strip@pt\fontdimen\@ne\font\dimen@} +\newcommand\setlogokern[2]{% + \edef\@tempa{#1}% + \edef\@tempb{#2}% + \def\@tempc{default}% + \ifx\@tempb\@tempc + \@xl@defaulttrue + \fi + \def\@tempb{aT}% + \ifx\@tempa\@tempb + \def\xl@kern@LaTeX@aT{#2}% + \if@xl@default + \def\xl@kern@LaTeX@aT{-.15em}% + \fi + \else + \def\@tempb{eL}% + \ifx\@tempa\@tempb + \def\xl@kern@XeLaTeX@eL{#2}% + \if@xl@default + \def\xl@kern@XeLaTeX@eL{-.125em}% + \fi + \else + \def\@tempb{eT}% + \ifx\@tempa\@tempb + \def\xl@kern@XeTeX@eT{#2}% + \if@xl@default + \def\xl@kern@XeTeX@eT{-.1667em}% + \fi + \else + \def\@tempb{eX}% + \ifx\@tempa\@tempb + \def\xl@kern@TeX@eX{#2}% + \if@xl@default + \def\xl@kern@TeX@eX{-.125em}% + \fi + \else + \def\@tempb{La}% + \ifx\@tempa\@tempb + \def\xl@kern@La@La{#2}% + \if@xl@default + \def\xl@kern@La@La{-.36em}% + \fi + \else + \def\@tempb{Te}% + \ifx\@tempa\@tempb + \def\xl@kern@TeX@Te{#2}% + \if@xl@default + \def\xl@kern@TeX@Te{-.1667em}% + \fi + \else + \def\@tempb{X2}% + \ifx\@tempa\@tempb + \def\xl@kern@LaTeXe@Xii{#2}% + \if@xl@default + \def\xl@kern@LaTeXe@Xii{.15em}% + \fi + \else + \def\@tempb{Xe}% + \ifx\@tempa\@tempb + \def\xl@kern@Xe@Xe{#2}% + \if@xl@default + \def\xl@kern@Xe@Xe{-.125em}% + \fi + \fi + \fi + \fi + \fi + \fi + \fi + \fi + \fi + \@xl@defaultfalse} +\newcommand\setlogodrop[2][XeTeX]{% + \edef\@tempa{#1}% + \edef\@tempb{#2}% + \def\@tempc{default}% + \ifx\@tempb\@tempc + \@xl@defaulttrue + \fi + \def\@tempb{XeTeX}% + \ifx\@tempa\@tempb + \def\xl@drop@TeX@e{#2}% + \let\xl@drop@Xe@e\xl@drop@TeX@e + \if@xl@default + \def\xl@drop@TeX@e{0.5ex}% + \let\xl@drop@Xe@e\xl@drop@TeX@e + \fi + \else + \def\@tempb{TeX}% + \ifx\@tempa\@tempb + \def\xl@drop@TeX@e{#2}% + \if@xl@default + \def\xl@drop@TeX@e{.5ex}% + \fi + \else + \def\@tempb{Xe}% + \ifx\@tempa\@tempb + \def\xl@drop@Xe@e{#2}% + \if@xl@default + \def\xl@drop@Xe@e{.5ex}% + \fi + \fi + \fi + \fi + \@xl@defaultfalse} +\newcommand\setLaTeXa[1]{% + \def\@tempa{#1}% + \def\@tempb{default}% + \ifx\@tempa\@tempb + \def\xl@LaTeX@a{% + \check@mathfonts\fontsize\sf@size\z@ + \math@fontsfalse\selectfont A}% + \else + \def\xl@LaTeX@a{#1}% + \fi} +\newcommand\setLaTeXee[1]{% + \def\@tempa{#1}% + \def\@tempb{default}% + \ifx\@tempa\@tempb + \def\xl@LaTeXe@e{\textstyle\varepsilon}% + \else + \def\xl@LaTeXe@e{#1}% + \fi} +\newcommand\seteverylogo[1]{% + \xl@everylogo{#1}% + \xl@@everylogo{#1}} +\newcommand\everylogo[1]{% + \addto@hook\xl@everylogo{#1}% + \addto@hook\xl@@everylogo{#1}} +\newtoks\xl@everylogo +\newtoks\xl@@everylogo +\newcommand\@xl@everylogo{% + \the\xl@everylogo + \xl@everylogo{}} +\DeclareRobustCommand\TeX{% + \@xl@everylogo + T\kern\xl@kern@TeX@Te + \lower\xl@drop@TeX@e\hbox{% + \xl@sh@ft\xl@drop@TeX@e + E% + \ltx@sh@ft\xl@drop@TeX@e}% + \kern\xl@kern@TeX@eX X% + \the\xl@@everylogo} +\DeclareRobustCommand\LaTeX{% + \@xl@everylogo + L\kern\xl@kern@La@La + {\ifxetex + \XeTeXuseglyphmetrics\@ne + \fi + \sbox\z@ T% + \sbox\@ne{\xl@LaTeX@a}% + \vbox to\ht\z@{% + \hbox{% + \ltx@sh@ft{\ht\z@}% + \xl@sh@ft{\ht\@ne}% + \xl@LaTeX@a + \xl@sh@ft{\ht\z@}% + \ltx@sh@ft{\ht\@ne}}% + \vss}}% + \kern\xl@kern@LaTeX@aT\TeX} +\DeclareRobustCommand\LaTeXe{% + \mbox{\m@th + \if b\expandafter\@car\f@series\@nil + \boldmath + \fi + \LaTeX + \kern\xl@kern@LaTeXe@Xii 2$_{\xl@LaTeXe@e}$}} +\DeclareRobustCommand\Xe{% + \@xl@everylogo% + X\kern\xl@kern@Xe@Xe + \lower\xl@drop@Xe@e + \hbox{% + \xl@sh@ft\xl@drop@Xe@e + \xl@Xe@e + \ltx@sh@ft\xl@drop@Xe@e}} +\DeclareRobustCommand\XeTeX{\Xe\kern\xl@kern@XeTeX@eT\TeX} +\DeclareRobustCommand\XeLaTeX{\Xe\kern\xl@kern@XeLaTeX@eL\LaTeX} +\DeclareRobustCommand\xl@Xe@e{% + \ifxetex + \ifnum\XeTeXfonttype\font>0% + \ifnum\XeTeXcharglyph"018E>0% + \char"018E% + \else + \ifdim\fontdimen\@ne\font=\z@ + \reflectbox{E}% + \else + \reflectbox{% + \addfontfeature{FakeSlant=-\strip@pt\fontdimen\@ne\font}% + \upshape E}% + \fi + \fi + \else + \ifdim\fontdimen1\font=\z@ + \reflectbox{E}% + \else + \XeTeXuseglyphmetrics\@ne + \setbox\z@\hbox{E}% + \dimen@\ht\z@ + \advance\dimen@\dp\z@ + \ltx@sh@ft\dimen@ + \raise\dimen@\hbox{\rotatebox{180}{\box\z@}}% + \xl@sh@ft\dimen@ + \fi + \fi + \else + \ifdim\fontdimen1\font=\z@ + \reflectbox{E}% + \else + \setbox\z@\hbox{E}% + \dimen@\ht\z@ + \advance\dimen@\dp\z@ + \ltx@sh@ft\dimen@ + \raise\dimen@\hbox{\rotatebox{180}{\box\z@}}% + \xl@sh@ft\dimen@ + \fi + \fi} +\endinput +%% +%% End of file `metalogo.sty'. |