summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/oberdiek/hologo.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/oberdiek/hologo.sty')
-rw-r--r--Master/texmf-dist/tex/generic/oberdiek/hologo.sty566
1 files changed, 566 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/oberdiek/hologo.sty b/Master/texmf-dist/tex/generic/oberdiek/hologo.sty
new file mode 100644
index 00000000000..847353f3596
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/oberdiek/hologo.sty
@@ -0,0 +1,566 @@
+%%
+%% This is file `hologo.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% hologo.dtx (with options: `package')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2010 by
+%% Heiko Oberdiek <heiko.oberdiek at googlemail.com>
+%%
+%% This work 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. This version of this license is in
+%% http://www.latex-project.org/lppl/lppl-1-3c.txt
+%% and the latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% This Current Maintainer of this work is Heiko Oberdiek.
+%%
+%% The Base Interpreter refers to any `TeX-Format',
+%% because some files are installed in TDS:tex/generic//.
+%%
+%% This work consists of the main source file hologo.dtx
+%% and the derived files
+%% hologo.sty, hologo.pdf, hologo.ins, hologo.drv, hologo-test1.tex.
+%%
+\begingroup
+ \catcode44 12 % ,
+ \catcode45 12 % -
+ \catcode46 12 % .
+ \catcode58 12 % :
+ \catcode64 11 % @
+ \catcode123 1 % {
+ \catcode125 2 % }
+ \expandafter\let\expandafter\x\csname ver@hologo.sty\endcsname
+ \ifx\x\relax % plain-TeX, first loading
+ \else
+ \def\empty{}%
+ \ifx\x\empty % LaTeX, first loading,
+ % variable is initialized, but \ProvidesPackage not yet seen
+ \else
+ \catcode35 6 % #
+ \expandafter\ifx\csname PackageInfo\endcsname\relax
+ \def\x#1#2{%
+ \immediate\write-1{Package #1 Info: #2.}%
+ }%
+ \else
+ \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
+ \fi
+ \x{hologo}{The package is already loaded}%
+ \aftergroup\endinput
+ \fi
+ \fi
+\endgroup
+\begingroup
+ \catcode35 6 % #
+ \catcode40 12 % (
+ \catcode41 12 % )
+ \catcode44 12 % ,
+ \catcode45 12 % -
+ \catcode46 12 % .
+ \catcode47 12 % /
+ \catcode58 12 % :
+ \catcode64 11 % @
+ \catcode91 12 % [
+ \catcode93 12 % ]
+ \catcode123 1 % {
+ \catcode125 2 % }
+ \expandafter\ifx\csname ProvidesPackage\endcsname\relax
+ \def\x#1#2#3[#4]{\endgroup
+ \immediate\write-1{Package: #3 #4}%
+ \xdef#1{#4}%
+ }%
+ \else
+ \def\x#1#2[#3]{\endgroup
+ #2[{#3}]%
+ \ifx#1\@undefined
+ \xdef#1{#3}%
+ \fi
+ \ifx#1\relax
+ \xdef#1{#3}%
+ \fi
+ }%
+ \fi
+\expandafter\x\csname ver@hologo.sty\endcsname
+\ProvidesPackage{hologo}%
+ [2010/04/08 v1.0 Logo collection (HO)]
+\begingroup
+ \catcode123 1 % {
+ \catcode125 2 % }
+ \def\x{\endgroup
+ \expandafter\edef\csname HOLOGO@AtEnd\endcsname{%
+ \catcode35 \the\catcode35\relax
+ \catcode64 \the\catcode64\relax
+ \catcode123 \the\catcode123\relax
+ \catcode125 \the\catcode125\relax
+ }%
+ }%
+\x
+\catcode35 6 % #
+\catcode64 11 % @
+\catcode123 1 % {
+\catcode125 2 % }
+\def\TMP@EnsureCode#1#2{%
+ \edef\HOLOGO@AtEnd{%
+ \HOLOGO@AtEnd
+ \catcode#1 \the\catcode#1\relax
+ }%
+ \catcode#1 #2\relax
+}
+\TMP@EnsureCode{10}{12}% ^^J
+\TMP@EnsureCode{33}{12}% !
+\TMP@EnsureCode{36}{3}% $
+\TMP@EnsureCode{39}{12}% '
+\TMP@EnsureCode{40}{12}% (
+\TMP@EnsureCode{41}{12}% )
+\TMP@EnsureCode{42}{12}% *
+\TMP@EnsureCode{43}{12}% +
+\TMP@EnsureCode{44}{12}% ,
+\TMP@EnsureCode{45}{12}% -
+\TMP@EnsureCode{46}{12}% .
+\TMP@EnsureCode{47}{12}% /
+\TMP@EnsureCode{58}{12}% :
+\TMP@EnsureCode{59}{12}% ;
+\TMP@EnsureCode{60}{12}% <
+\TMP@EnsureCode{61}{12}% =
+\TMP@EnsureCode{62}{12}% >
+\TMP@EnsureCode{63}{12}% ?
+\TMP@EnsureCode{91}{12}% [
+\TMP@EnsureCode{93}{12}% ]
+\TMP@EnsureCode{94}{7}% ^ (superscript)
+\TMP@EnsureCode{95}{8}% _ (subscript)
+\TMP@EnsureCode{96}{12}% `
+\TMP@EnsureCode{124}{12}% |
+\edef\HOLOGO@AtEnd{%
+ \HOLOGO@AtEnd
+ \escapechar\the\escapechar\relax
+ \noexpand\endinput
+}
+\escapechar=92 %
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname RequirePackage\endcsname\relax
+ \input ltxcmds.sty\relax
+ \input infwarerr.sty\relax
+ \input kvsetkeys.sty\relax
+ \input pdftexcmds.sty\relax
+ \input ifpdf.sty\relax
+ \input ifluatex.sty\relax
+ \input ifxetex.sty\relax
+ \input ifvtex.sty\relax
+\else
+ \RequirePackage{ltxcmds}[2010/04/08]%
+ \RequirePackage{infwarerr}[2010/04/08]%
+ \RequirePackage{kvsetkeys}[2010/03/01]%
+ \RequirePackage{pdftexcmds}[2010/04/01]%
+ \RequirePackage{ifpdf}[2010/01/28]%
+ \RequirePackage{ifluatex}[2010/03/01]%
+ \RequirePackage{ifxetex}[2009/01/23]%
+ \RequirePackage{ifvtex}[2010/03/01]%
+\fi
+\def\HOLOGO@IfExists#1{%
+ \ifx\@undefined#1%
+ \expandafter\ltx@secondoftwo
+ \else
+ \ifx\relax#1%
+ \expandafter\ltx@secondoftwo
+ \else
+ \expandafter\expandafter\expandafter\ltx@firstoftwo
+ \fi
+ \fi
+}
+\HOLOGO@IfExists\hologo{%
+ \@PackageError{hologo}{%
+ \string\hologo\ltx@space is already defined.\MessageBreak
+ Package loading is aborted%
+ }\@ehc
+ \HOLOGO@AtEnd
+}
+\HOLOGO@IfExists\hologorobust{%
+ \@PackageError{hologo}{%
+ \string\hologorobust\ltx@space is already defined.\MessageBreak
+ Package loading is aborted%
+ }\@ehc
+ \HOLOGO@AtEnd
+}
+\ltx@IfUndefined{protected}{%
+ \ltx@IfUndefined{DeclareRobustCommand}{%
+ \def\hologorobust#1%
+ }{%
+ \DeclareRobustCommand*\hologorobust[1]%
+ }%
+}{%
+ \protected\def\hologorobust#1%
+}%
+{%
+ \ltx@ifundefined{HoLogo@#1}{%
+ \@PackageError{hologo}{%
+ Unknown logo `#1'%
+ }\@ehc
+ ?#1?%
+ }{%
+ \csname HoLogo@#1\endcsname
+ }%
+}
+\def\hologo#1{%
+ \HOLOGO@IfExists\texorpdfstring\texorpdfstring\ltx@firstoftwo
+ {%
+ \hologorobust{#1}%
+ }{%
+ \ltx@ifundefined{HoLogoBkm@#1}{%
+ \ltx@ifundefined{HoLogo@#1}{?#1?}{#1}%
+ }{%
+ \csname HoLogoBkm@#1\endcsname
+ }%
+ }%
+}
+\def\HOLOGO@PdfdocUnicode{%
+ \ifx\ifHy@unicode\iftrue
+ \expandafter\ltx@secondoftwo
+ \else
+ \expandafter\ltx@firstoftwo
+ \fi
+}
+\def\HOLOGO@MathSetup{%
+ \mathsurround0pt\relax
+ \HOLOGO@IfExists\f@series{%
+ \if b\expandafter\ltx@car\f@series x\@nil
+ \csname boldmath\endcsname
+ \fi
+ }{}%
+}
+\dimendef\HOLOGO@TempDimen=\ltx@zero
+\def\HOLOGO@NegativeKerning#1{%
+ \begingroup
+ \HOLOGO@TempDimen=0pt\relax
+ \comma@parse@normalized{#1}{%
+ \ifdim\HOLOGO@TempDimen=0pt %
+ \expandafter\HOLOGO@@NegativeKerning\comma@entry
+ \fi
+ \ltx@gobble
+ }%
+ \ifdim\HOLOGO@TempDimen<0pt %
+ \kern\HOLOGO@TempDimen
+ \fi
+ \endgroup
+}
+\def\HOLOGO@@NegativeKerning#1#2{%
+ \setbox\ltx@zero\hbox{#1#2}%
+ \HOLOGO@TempDimen=\wd\ltx@zero
+ \setbox\ltx@zero\hbox{#1\kern0pt#2}%
+ \advance\HOLOGO@TempDimen by -\wd\ltx@zero
+}
+\def\HoLogo@TeX{%
+ T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\spacefactor1000 %
+}
+\def\HoLogo@plainTeX{%
+ plain \hologo{TeX}%
+}
+\def\HoLogoBkm@plainTeX{%
+ plain \hologo{TeX}%
+}
+\def\HoLogo@LaTeX{%
+ L%
+ \kern-.36em%
+ \begingroup
+ \setbox\ltx@zero\hbox{T}%
+ \vbox to\ht\ltx@zero{%
+ \hbox{%
+ \ltx@ifundefined{check@mathfonts}{%
+ \csname sevenrm\endcsname
+ }{%
+ \check@mathfonts
+ \fontsize\sf@size\z@
+ \math@fontsfalse\selectfont
+ }%
+ A%
+ }%
+ \vss
+ }%
+ \endgroup
+ \kern-.15em%
+ \hologo{TeX}%
+}
+\def\HoLogo@LaTeXe{%
+ \hologo{LaTeX}%
+ \kern.15em%
+ \hbox{%
+ \HOLOGO@MathSetup
+ 2%
+ $_{\textstyle\varepsilon}$%
+ }%
+}
+\def\HoLogoBkm@LaTeXe{%
+ \hologo{LaTeX}%
+ 2%
+ \HOLOGO@PdfdocUnicode{e}{\textepsilon}%
+}
+\expandafter\let\csname HoLogo@LaTeX2e\endcsname\HoLogo@LaTeXe
+\expandafter\let\csname HoLogoBkm@LaTeX2e\endcsname\HoLogoBkm@LaTeXe
+\def\HoLogo@eTeX{%
+ \leavevmode
+ \hbox{%
+ \HOLOGO@MathSetup
+ $\varepsilon$%
+ -%
+ \HOLOGO@NegativeKerning{-T,T-,To}%
+ \hologo{TeX}%
+ }%
+}
+\def\HoLogoBkm@eTeX{%
+ \HOLOGO@PdfdocUnicode{e}{\textepsilon}%
+ -%
+ \hologo{TeX}%
+}
+\def\HoLogo@LuaTeX{%
+ Lua%
+ \HOLOGO@NegativeKerning{aT,oT,To}%
+ \hologo{TeX}%
+}
+\def\HoLogo@LuaLaTeX{%
+ Lua%
+ \hologo{LaTeX}%
+}
+\def\HoLogo@Xe{%
+ X%
+ \kern-.1em\relax
+ \ltx@IfUndefined{HOLOGO@ReflectBox}\ltx@firstoftwo{%
+ \ltx@IfUndefined{HOLOGO@ReflectBox@\hologodriver}%
+ \ltx@firstoftwo\ltx@secondoftwo
+ }%
+ {e}{%
+ \lower.5ex\hbox{%
+ \HOLOGO@ReflectBox{E}%
+ }%
+ }%
+}
+\def\HoLogo@XeTeX{%
+ \hologo{Xe}%
+ \kern-.15em\relax
+ \hologo{TeX}%
+}
+\def\HoLogoBkm@XeTeX{XeTeX}
+\def\HoLogo@XeLaTeX{%
+ \hologo{Xe}%
+ \hologo{LaTeX}%
+}
+\def\HoLogo@pdfTeX{%
+ pdf\hologo{TeX}%
+}
+\def\HoLogo@pdfLaTeX{%
+ pdf\hologo{LaTeX}%
+}
+\HOLOGO@IfExists\InputIfFileExists{%
+ \InputIfFileExists{hologo.cfg}{}{}%
+}{%
+ \ltx@IfUndefined{pdf@filesize}{%
+ \chardef\HOLOGO@temp=15 %
+ \def\HOLOGO@CheckRead{%
+ \ifeof\HOLOGO@temp
+ \else
+ \ifcase\HOLOGO@temp
+ \csname newread\endcsname\HOLOGO@temp
+ \else
+ \begingroup
+ \count\ltx@cclv=\HOLOGO@temp
+ \advance\ltx@cclv by -1 %
+ \edef\x{\endgroup
+ \chardef\noexpand\HOLOGO@temp=\the\count\ltx@cclv\relax
+ }%
+ \x
+ \expandafter\expandafter\expandafter\HOLOGO@CheckRead
+ \fi
+ \fi
+ }%
+ \ifeof\HOLOGO@temp
+ \@PackageWarningNoLine{hologo}{%
+ Configuration file ignored, because\MessageBreak
+ a free read register could not be found%
+ }%
+ \else
+ \openin\HOLOGO@temp=hologo.cfg\relax
+ \ifeof\HOLOGO@temp
+ \closein\HOLOGO@temp
+ \else
+ \closein\HOLOGO@temp
+ \input hologo.cfg\relax
+ \fi
+ \fi
+ }{%
+ \edef\HOLOGO@temp{\pdf@filesize{hologo.cfg}}%
+ \ifx\HOLOGO@temp\ltx@empty
+ \else
+ \input hologo.cfg\relax
+ \fi
+ }%
+}
+\ltx@IfUndefined{DeclareOption}{%
+ \ltx@gobble
+}{%
+ \ltx@IfUndefined{ProcessOptions}\ltx@gobble\ltx@firstofone
+}%
+{%
+ \def\HOLOGO@temp#1#2{%
+ \DeclareOption{#1}{\edef\hologodriver{#2}}%
+ }%
+ \kv@parse@normalized{%
+ pdftex,%
+ luatex=pdftex,%
+ dvipdfm,%
+ dvipdfmx=dvipdfm,%
+ dvips,%
+ dvipsone=dvips,%
+ xdvi=dvips,%
+ xetex,%
+ vtex,%
+ }{%
+ \ifx\kv@value\relax
+ \expandafter\HOLOGO@temp\expandafter{\kv@key}\kv@key
+ \else
+ \expandafter\HOLOGO@temp\expandafter{\kv@key}\kv@value
+ \fi
+ \ltx@gobbletwo
+ }%
+ \ProcessOptions*%
+}
+\ifpdf
+ \def\hologodriver{pdftex}%
+ \let\HOLOGO@pdfliteral\pdfliteral
+ \ifluatex
+ \ltx@IfUndefined{HOLOGO@pdfliteral}{%
+ \ifnum\luatexversion<36 %
+ \else
+ \begingroup
+ \let\HOLOGO@temp\endgroup
+ \ifcase0%
+ \directlua{%
+ if tex.enableprimitives then %
+ tex.enableprimitives('HOLOGO@', {'pdfliteral'})%
+ else %
+ tex.print('1')%
+ end%
+ }%
+ \ifx\HOLOGO@pdfliteral\@undefined 1\fi%
+ \relax%
+ \endgroup
+ \let\HOLOGO@temp\relax
+ \global\let\HOLOGO@pdfliteral\HOLOGO@pdfliteral
+ \fi%
+ \HOLOGO@temp
+ \fi
+ }{}%
+ \fi
+ \ltx@IfUndefined{HOLOGO@pdfliteral}{%
+ \@PackageWarningNoLine{hologo}{%
+ Cannot find \string\pdfliteral
+ }%
+ }{}%
+\else
+ \ifxetex
+ \def\hologodriver{xetex}%
+ \else
+ \ifvtex
+ \def\hologodriver{vtex}%
+ \fi
+ \fi
+\fi
+\ltx@IfUndefined{reflectbox}{}{%
+ \def\HOLOGO@ReflectBox{%
+ \reflectbox
+ }%
+ \HOLOGO@AtEnd
+}
+\ltx@ifundefined{hologodriver}{%
+ \def\hologodriver{dvips}%
+ \@PackageInfoNoLine{hologo}{Using default driver `\hologodriver'}%
+}{%
+ \@PackageInfoNoLine{hologo}{Using driver `\hologodriver'}%
+}
+\def\HOLOGO@ReflectBox#1{%
+ \ltx@IfUndefined{HOLOGO@ReflectBox@\hologodriver}{%
+ \@PackageWarning{hologo}{%
+ Driver `\hologodriver' misses support for \string\reflectbox
+ }%
+ #1%
+ }{%
+ \begingroup
+ \setbox\ltx@zero\hbox{\begingroup#1\endgroup}%
+ \setbox\ltx@two\hbox{%
+ \kern\wd\ltx@zero
+ \csname HOLOGO@ReflectBox@\hologodriver\endcsname{%
+ \hbox to 0pt{\copy\z@\hss}%
+ }%
+ }%
+ \wd\ltx@two=\wd\ltx@zero
+ \box\ltx@two
+ \endgroup
+ }%
+}
+\def\HOLOGO@temp#1{%
+ \begingroup
+ \def\x{#1}%
+ \expandafter\endgroup
+ \ifx\x\hologodriver
+ \expandafter\ltx@firstofone
+ \else
+ \expandafter\ltx@gobble
+ \fi
+}
+\HOLOGO@temp{pdftex}{%
+ \def\HOLOGO@ReflectBox@pdftex#1{%
+ \HOLOGO@pdfliteral{%
+ q -1 0 0 1 0 0 cm%
+ }%
+ #1%
+ \HOLOGO@pdfliteral{%
+ Q%
+ }%
+ }%
+}
+\HOLOGO@temp{dvips}{%
+ \def\HOLOGO@ReflectBox@dvips#1{%
+ \special{ps:%
+ gsave %
+ currentpoint %
+ currentpoint translate %
+ -1 1 scale %
+ neg exch neg exch translate%
+ }%
+ #1%
+ \special{ps:%
+ currentpoint %
+ grestore %
+ moveto%
+ }%
+ }%
+}
+\HOLOGO@temp{dvipdfm}{%
+ \let\HOLOGO@ReflectBox@dvipdfm\HOLOGO@ReflectBox@dvips
+}
+\HOLOGO@temp{xetex}{%
+ \def\HOLOGO@ReflectBox@xetex#1{%
+ \special{x:gsave}%
+ \special{x:scale -1 1}%
+ #1%
+ \special{x:grestore}%
+ }%
+}
+\HOLOGO@temp{vtex}{%
+ \def\HOLOGO@ReflectBox@vtex#1{%
+ \special{r(-1,0,0,1,0,0}%
+ #1%
+ \special{r)}%
+ }%
+}
+\HOLOGO@AtEnd
+\endinput
+%%
+%% End of file `hologo.sty'.