diff options
author | Karl Berry <karl@freefriends.org> | 2010-10-24 23:46:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-10-24 23:46:12 +0000 |
commit | e5d25989ee337ac9399ae9e50bed87559488814f (patch) | |
tree | e08fa9fe408fbbd07d82226b3fd8a059c8d39d7b /Master/texmf-dist/tex/latex/gmutils/gmlogos.sty | |
parent | 5d35798dc0ca224df75f912f020c70024e1a1169 (diff) |
gmutils (24oct10)
git-svn-id: svn://tug.org/texlive/trunk@20183 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/gmutils/gmlogos.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/gmutils/gmlogos.sty | 221 |
1 files changed, 221 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/gmutils/gmlogos.sty b/Master/texmf-dist/tex/latex/gmutils/gmlogos.sty new file mode 100644 index 00000000000..f27a97c8150 --- /dev/null +++ b/Master/texmf-dist/tex/latex/gmutils/gmlogos.sty @@ -0,0 +1,221 @@ +%% +%% \iffalse ^^A we skip the debug setting +\IfFileExists{\string~/bin/gen_and_xela}{\errorcontextlines=1000 }{} +%% \fi +%% ^^A $Id: TheUltimateMaster.gmd,v 0.250 2010/10/24 14:42:35 natror Exp natror $ +%% This is file “gmlogos.sty” generated with the DocStrip utility. +%% +%% +%% The original source files were: +%% +%% gmutils/gmutils.gmd (with options: `logos') +%% +%% +%% Copyright © +%% by Grzegorz ‘Natror’ Murzynowski +%% natror (at) o2 (dot) pl +%% +%% This program is subject to the LaTeX Project Public License. +%% See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html +%% for the details of that license. +%% +%% LPPL status: "author-maintained". +%% +%% +%% +%% For the documentation please refer to the file(s) +%% gmutils.{gmd,pdf}. +%% +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{gmlogos} + [2010/04/09 v0.993 TeX-related logos (GM)] + + +%% +%% +%% ^^A\typeout{\unexpanded{#4}}%% + +\RequirePackage{gmbase} + + +\let\oldLaTeX\LaTeX +\let\oldLaTeXe\LaTeXe + +\pdef\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\@} +\Store@Macro\TeX +\AtBeginDocument{\Restore@Macro\TeX} + +\newcommand*\DeclareLogo[3][\relax]{% \begin{enumargs*} + % \opt is for non-\LaTeX\ spelling and will be used in the + % \acro{PD1} encoding (to make pdf bookmarks); + % \item is the command, its name will be the PD1 spelling by + % default, + % \item is the definition for all the font encodings except PD1. + % \end{enumargs*} + % + \ifx\relax#1\def\gmu@DeclareLogo@resa{\@xa\@gobble\string#2}% + \else + \def\gmu@DeclareLogo@resa{#1}% + \fi + \edef\gmu@DeclareLogo@resa{% + \@nx\DeclareTextCommand\@nx#2{PD1}{\gmu@DeclareLogo@resa}} + \gmu@DeclareLogo@resa + \DeclareTextCommandDefault#2{#3}% + \pdef#2{#3}% added for \XeTeX. +} + +\DeclareLogo\LaTeX{% + {% + L% + \setbox\z@\hbox{\check@mathfonts + \fontsize\sf@size\z@ + \math@fontsfalse\selectfont + A}% + \kern-.57\wd\z@ + \sbox\tw@ T% + \vbox to\ht\tw@{\copy\z@ \vss}% + \kern-.2\wd\z@% originally $-,15$\,em for T. + }% + {% + \ifdim\fontdimen1\font=\z@ + \else + \count\z@=\fontdimen5\font + \multiply\count\z@ by 64\relax + \divide\count\z@ by\p@ + \count\tw@=\fontdimen1\font + \multiply\count\tw@ by\count\z@ + \divide\count\tw@ by 64\relax + \divide\count\tw@ by\tw@ + \kern-\the\count\tw@ sp\relax + \fi}% + \gmlogos@hyphen + \TeX} + +\DeclareLogo\LaTeXe{\mbox{\m@th \if + b\expandafter\@car\f@series\@nil\boldmath\fi + \LaTeX\kern.15em2$_{\textstyle\varepsilon}$}} + +\Store@Macro\LaTeX +\Store@MacroSt{LaTeX } + +\DeclareLogo[(La)TeX]{\LaTeXpar}{% + {% + \setbox\z@\hbox{(}%) + \leavevmode % \chgs{2010/04/09 v0.993 added \cmd\leavevmode\ (a + % bug fix)} + \copy\z@ + \kern-.2\wd\z@ L% + \setbox\z@\hbox{\check@mathfonts + \fontsize\sf@size\z@ + \math@fontsfalse\selectfont + A}% + \kern-.57\wd\z@ + \sbox\tw@ T% + \vbox to\ht\tw@{\box\z@% + \vss}% + }% + \kern-.07em% originally $-,15$\,em for T. + {%( + \sbox\z@)% + \kern-.2\wd\z@\copy\z@ + \kern-.2\wd\z@}\gmlogos@hyphen\TeX +} + +\gmu@ifundefined{AmSTeX} + {\def\AmSTeX{\leavevmode\hbox{$\mathcal A\kern-.2em\lower.376ex% + \hbox{$\mathcal M$}\kern-.2em\mathcal S$-\TeX}}}{} + +\DeclareLogo\BibTeX{{\rmfamily B\kern-.05em% + \textsc{i{\kern-.025em}b}\kern-.08em% the kern is wrapped in + % braces for my |\fakescaps|' sake. + \TeX}} + +\DeclareLogo\SliTeX{{\rmfamily S\kern-.06emL\kern-.18em\raise.32ex\hbox + {\scshape i}\kern -.03em\TeX}} + +\DeclareLogo\PlainTeX{\textsc{Plain}\kern2pt\TeX} + +\DeclareLogo\Web{\textsc{Web}} +\DeclareLogo[The TeX book]\TeXbook{\textsl{The \TeX\space book}} +\let\TB\TeXbook% \textit{TUG Boat} uses this. + +\DeclareLogo[e-TeX]\eTeX{% + \iffontchar\font"03B5{\itshape ε}\else + \ensuremath{\varepsilon}\fi-\kern-.125em\TeX}% definition sent by Karl + +\Store@Macro\eTeX + +\DeclareLogo[pdfe-TeX]\pdfeTeX{pdf\gmlogos@hyphen\eTeX} + +\DeclareLogo\pdfTeX{pdf\gmlogos@hyphen\TeX} +\DeclareLogo\pdfLaTeX{pdf\gmlogos@hyphen\LaTeX} + +\gmu@ifundefined{XeTeX}{% + \DeclareLogo\XeTeX{X\kern-.125em\relax + \gmu@ifundefined{reflectbox}{% + \lower.5ex\hbox{E}\kern-.1667em\relax}{% + \lower.5ex\hbox{\reflectbox{E}}\kern-.1667em\relax}% + \TeX}}{} + +\gmu@ifundefined{XeLaTeX}{% + \DeclareLogo\XeLaTeX{X\kern-.125em\relax + \gmu@ifundefined{reflectbox}{% + \lower.5ex\hbox{E}\kern-.1667em\relax}{% + \lower.5ex\hbox{\reflectbox{E}}\kern-.1667em\relax}% + \LaTeX}}{} + +\DeclareLogo\XeTeXpar{% \chgs{2010/04/09 v0.993 added} + \setbox\z@\hbox{(}%) + \leavevmode + \copy\z@ + \kern-.2\wd\z@ + \smash{% the “Xe” part is copied from \pk{xltxtra} + X\lower0.5ex + \hbox{\kern-0.15em + \gmu@ifundefined{XeTeXversion}% + {\setbox0=\hbox{E}\dimen0=\ht0\advance\dimen0by\dp0% + \raise\dimen0\hbox{\rotatebox{180}{\box0}}% + }% of if not in \XeTeX, then in \XeTeX: + {\ifnum\XeTeXfonttype\font>0 + \ifnum\XeTeXcharglyph"018E>0 + \char"018E\relax + \else + \ifdim\fontdimen1\font=0pt + \reflectbox{E}% + \else + \XeTeXuseglyphmetrics=1% + \setbox0=\hbox{E}\dimen0=\ht0\advance\dimen0by\dp0% + \raise\dimen0\hbox{\rotatebox{180}{\box0}}% + \fi + \fi + \else + \setbox0=\hbox{E}\dimen0=\ht0\advance\dimen0by\dp0% + \raise\dimen0\hbox{\rotatebox{180}{\box0}}% + \fi}% of reversed E when in \XeTeX + }% of hbox + }% of smash ^^A( + \setbox\z@\hbox{)}% + \kern-.2\wd\z@ + \copy\z@ + \kern-0.15em + \TeX}% + +\DeclareLogo[LuaTeX]\LuaTeX{\textsc{Lua}\gmlogos@hyphen\TeX} + +\emptify\gmlogos@hyphen + +\def\HyphenateLogo#1{% + {\let\gmlogos@hyphen\-% + #1}% +} + + +%%% (For my GNU Emacs:) +%%% Local Variables: +%%% mode: doctex +%%% coding: utf-8 +%%% End: +\endinput +%% +%% End of file `gmlogos.sty'. |