From 4e72c0abbfd3dd35e79176eb7f19011b14e3c1c7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 12 Jan 2006 23:53:31 +0000 Subject: contour git-svn-id: svn://tug.org/texlive/trunk@786 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/contour/contour.cfg | 49 ++++++++ Master/texmf-dist/tex/latex/contour/contour.sty | 144 +++++++++++++++++++++++ Master/texmf-dist/tex/latex/contour/dvips.cnt | 49 ++++++++ Master/texmf-dist/tex/latex/contour/dvipsone.cnt | 53 +++++++++ Master/texmf-dist/tex/latex/contour/pdftex.cnt | 44 +++++++ Master/texmf-dist/tex/latex/contour/vtex.cnt | 46 ++++++++ 6 files changed, 385 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/contour/contour.cfg create mode 100644 Master/texmf-dist/tex/latex/contour/contour.sty create mode 100644 Master/texmf-dist/tex/latex/contour/dvips.cnt create mode 100644 Master/texmf-dist/tex/latex/contour/dvipsone.cnt create mode 100644 Master/texmf-dist/tex/latex/contour/pdftex.cnt create mode 100644 Master/texmf-dist/tex/latex/contour/vtex.cnt (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/tex/latex/contour/contour.cfg b/Master/texmf-dist/tex/latex/contour/contour.cfg new file mode 100644 index 00000000000..554fe3d01eb --- /dev/null +++ b/Master/texmf-dist/tex/latex/contour/contour.cfg @@ -0,0 +1,49 @@ +%% +%% This is file `contour.cfg', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% contour.dtx (with options: `cfgfile') +%% +%% contour package configuration file +%% +%% Copyright 2004 Harald Harders +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de +%% +\ProvidesFile{contour.cfg} + [2004/11/18 v2.14 Print contoured text (HH, MH)] + % Select an appropriate default driver +\begingroup + \chardef\x=0 % + % check pdfTeX + \@ifundefined{pdfoutput}{}{% + \ifcase\pdfoutput + \else + \chardef\x=1 % + \fi + }% + % check VTeX + \@ifundefined{OpMode}{}{% + \chardef\x=2 % + }% +\expandafter\endgroup +\ifcase\x + % default case + \ExecuteOptions{dvips}% +\or + % pdfTeX is running in pdf mode + \ExecuteOptions{pdftex}% +\else + % VTeX is running + \ExecuteOptions{vtex}% +\fi +\endinput +%% +%% End of file `contour.cfg'. diff --git a/Master/texmf-dist/tex/latex/contour/contour.sty b/Master/texmf-dist/tex/latex/contour/contour.sty new file mode 100644 index 00000000000..1912ada440f --- /dev/null +++ b/Master/texmf-dist/tex/latex/contour/contour.sty @@ -0,0 +1,144 @@ +%% +%% This is file `contour.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% contour.dtx (with options: `package') +%% +%% contour package +%% +%% Copyright 1999--2004 Harald Harders, Morten Høgholm +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de, moho01ab@student.cbs.dk +%% +%% +%% Original: Richard Pfeiffer (richard.pfeiffer@t-online.de) +%% Totally rewritten end extended. +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{contour} + [2004/11/18 v2.14 Print contoured text (HH, MH)] +\RequirePackage{color} +\RequirePackage{trig} +\def\con@coloroff{% + \def\@undeclaredcolor[##1]##2{}% + \def\@declaredcolor##1{}% +} +\newcommand*\con@put[3]{% + \rlap{\hskip#1\raisebox{#2}[0pt]{#3}}% +} +\newcommand*\contourlength[1]{\def\con@base@length{#1}} +\contourlength{0.03em} +\newcommand*\contournumber[1]{\def\con@default@copies{#1}} +\contournumber{16} +\newlength{\con@length} +\newcommand*\con@define@copyangles[1]{% + \edef\con@tempa{auto}% + \edef\con@tempb{#1}% + \ifx\con@tempa\con@tempb + \expandafter\ifdim\f@size pt<15pt\relax + \edef\con@tempb{16}% + \else + \expandafter\ifdim\f@size pt<25pt\relax + \edef\con@tempb{32}% + \else + \expandafter\ifdim\f@size pt<50pt\relax + \edef\con@tempb{60}% + \else + \edef\con@tempb{120}% + \fi + \fi + \fi + \fi + \@tempcnta=\con@tempb\relax + \@ifundefined{con@\number\@tempcnta @copies}{% + \global\@namedef{con@\number\@tempcnta @copies}{}% + \@tempdima=360\p@ + \divide\@tempdima by \@tempcnta + \@tempdimb=\z@ + \@tempcntb=\z@ + \loop + \ifnum\@tempcntb<\@tempcnta + \edef\con@temp@fdim{\strip@pt\@tempdimb}% + \CalculateSin{\con@temp@fdim}% + \CalculateCos{\con@temp@fdim}% + \advance\@tempcntb \@ne + \advance\@tempdimb \@tempdima\relax + \repeat + }{}% + \let\con@tempa\@undefined + \let\con@tempb\@undefined +} +\newcommand*\contour{\@ifstar{\@contour[32]}{\@contour}} +\newcommand*\@contour[3][\con@default@copies]{% + \ifvmode + \leavevmode + \fi + \setlength\con@length{\con@base@length}% + \ifcon@outline + \typeout{contour: Using real outline for `#3'\on@line.}% + \@contour@outline{#2}{#3}% + \else + \begingroup + \con@define@copyangles{#1}% + \typeout{contour: Using \the\@tempcnta\space copies for `#3'\on@line.}% + \@tempdima=360\p@ + \divide\@tempdima by \@tempcnta\relax + \@tempdimb=\z@ + \@tempcntb=\z@ + \color{#2}% + \con@coloroff + \loop + \ifnum\@tempcntb<\@tempcnta\relax + \edef\con@temp@fdim{\strip@pt\@tempdimb}% + \con@put + {\UseSin{\con@temp@fdim}\con@length}% + {\UseCos{\con@temp@fdim}\con@length}% + {#3}% + \advance\@tempcntb \@ne\relax + \advance\@tempdimb\@tempdima\relax + \repeat + \endgroup + \mbox{#3}% + \fi +} +\providecommand*\con@driver{\@empty} +\newif\ifcon@outline +\DeclareOption{auto}{\contournumber{auto}} +\DeclareOption{dvips}{\def\con@driver{dvips.cnt}} +\DeclareOption{xdvi}{\ExecuteOptions{dvips}} +\DeclareOption{pdftex}{\def\con@driver{pdftex.cnt}} +\DeclareOption{vtex}{\def\con@driver{vtex.cnt}} +\DeclareOption{dvipsone}{\def\con@driver{dvipsone.cnt}} +\DeclareOption{outline}{\con@outlinetrue} +\DeclareOption{copies}{\con@outlinefalse} +\InputIfFileExists{contour.cfg}{% + \typeout{Loading configuration file `contour.cfg'.}% +}{% + \typeout{No configuration file `contour.cfg' found.}% +} +\ProcessOptions\relax +\expandafter\ifx\con@driver\@empty + \ifcon@outline + \PackageError{contour}{Chosen package option `outline' but no + driver defined}{Leave out the `outline' option or define a driver}% + \else + \PackageWarning{contour}{No driver defined (which does not matter + when using copies)}% + \fi +\else + \InputIfFileExists{\con@driver}{% + \typeout{contour: Using driver file `\con@driver'.}% + }{% + \PackageError{contour}{Driver file `\con@driver' does not exist}{}% + }% +\fi +\endinput +%% +%% End of file `contour.sty'. diff --git a/Master/texmf-dist/tex/latex/contour/dvips.cnt b/Master/texmf-dist/tex/latex/contour/dvips.cnt new file mode 100644 index 00000000000..1c996dc8316 --- /dev/null +++ b/Master/texmf-dist/tex/latex/contour/dvips.cnt @@ -0,0 +1,49 @@ +%% +%% This is file `dvips.cnt', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% contour.dtx (with options: `drv,dvips') +%% +%% contour package driver file +%% +%% Copyright 2004 Harald Harders +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de +%% +\ProvidesFile{dvips.cnt} + [2004/11/18 v2.14 Print contoured text (HH, MH)] +\newcommand*\@contour@outline[2]{% + \begingroup + \setlength\con@length{2\con@length}% + \setlength\con@length{0.99626400996\con@length}% + \color{#1}% + \con@coloroff + \special{ps: + gsave + newpath + 1 setlinejoin + 1 setlinecap + Resolution 72 div DVImag mul + \strip@pt\con@length\space mul setlinewidth + /cntorigshow /show load def + /show { false charpath } def + }% + \rlap{#2}% + \special{ps: + stroke + /show /cntorigshow load def + grestore + }% + \endgroup + \mbox{#2}% +} +\endinput +%% +%% End of file `dvips.cnt'. diff --git a/Master/texmf-dist/tex/latex/contour/dvipsone.cnt b/Master/texmf-dist/tex/latex/contour/dvipsone.cnt new file mode 100644 index 00000000000..d5052c05858 --- /dev/null +++ b/Master/texmf-dist/tex/latex/contour/dvipsone.cnt @@ -0,0 +1,53 @@ +%% +%% This is file `dvipsone.cnt', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% contour.dtx (with options: `drv,dvipsone') +%% +%% contour package driver file +%% +%% Copyright 2004 Harald Harders +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de +%% +\ProvidesFile{dvipsone.cnt} + [2004/11/18 v2.14 Print contoured text (HH, MH)] +\newcommand*\@contour@outline[2]{% + \rlap{#2}% + \begingroup + \setlength\con@length{2\con@length}% + \setlength\con@length{0.99626400996\con@length}% + \color{#1}% + \con@coloroff + \special{ps: + gsave + currentpoint + newpath + moveto + 1 setlinejoin + 1 setlinecap + 65693.4 \strip@pt\con@length\space mul setlinewidth + /cntorigshow /show load def + /show { false charpath } def + }% + \rlap{#2}% + \special{ps: + currentpoint + stroke + /show /cntorigshow load def + grestore + moveto + }% + \endgroup + \mbox{#2}% +} +\endinput +%% +%% End of file `dvipsone.cnt'. diff --git a/Master/texmf-dist/tex/latex/contour/pdftex.cnt b/Master/texmf-dist/tex/latex/contour/pdftex.cnt new file mode 100644 index 00000000000..2ce3adad22a --- /dev/null +++ b/Master/texmf-dist/tex/latex/contour/pdftex.cnt @@ -0,0 +1,44 @@ +%% +%% This is file `pdftex.cnt', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% contour.dtx (with options: `drv,pdftex') +%% +%% contour package driver file +%% +%% Copyright 2004 Harald Harders +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de +%% +\ProvidesFile{pdftex.cnt} + [2004/11/18 v2.14 Print contoured text (HH, MH)] +\newcommand*\@contour@outline[2]{% + \begingroup + \setlength\con@length{2\con@length}% + \setlength\con@length{0.99626400996\con@length}% + \color{#1}% + \con@coloroff + \pdfliteral{% + q + 1 j + 1 J + 1 Tr + \strip@pt\con@length\space w + }% + \rlap{#2}% + \pdfliteral{% + Q + }% + \endgroup + \mbox{#2}% +} +\endinput +%% +%% End of file `pdftex.cnt'. diff --git a/Master/texmf-dist/tex/latex/contour/vtex.cnt b/Master/texmf-dist/tex/latex/contour/vtex.cnt new file mode 100644 index 00000000000..841894a1d19 --- /dev/null +++ b/Master/texmf-dist/tex/latex/contour/vtex.cnt @@ -0,0 +1,46 @@ +%% +%% This is file `vtex.cnt', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% contour.dtx (with options: `drv,vtex') +%% +%% contour package driver file +%% +%% Copyright 2004 Harald Harders +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% +%% h.harders@tu-bs.de +%% +\ProvidesFile{vtex.cnt} + [2004/11/18 v2.14 Print contoured text (HH, MH)] +\newcommand*\@contour@outline[2]{% + \begingroup + \setlength\con@length{2\con@length}% + \setlength\con@length{0.99626400996\con@length}% + \color{#1}% + \con@coloroff + \special{pS: + save + newpath + 1 setlinejoin + 1 setlinecap + \strip@pt\con@length\space setlinewidth + /show { false charpath } def + }% + \rlap{#2}% + \special{pS: + stroke + restore + }% + \endgroup + \mbox{#2}% +} +\endinput +%% +%% End of file `vtex.cnt'. -- cgit v1.2.3