From b8dac36db6bad339e035d237cfed1b86713971ce Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 8 Dec 2010 00:29:42 +0000 Subject: piff pd (8dec10) git-svn-id: svn://tug.org/texlive/trunk@20676 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/piff/README | 10 +++++ Master/texmf-dist/tex/generic/genmisc/time.sty | 30 ------------- Master/texmf-dist/tex/latex/piff/duplicat.sty | 33 ++++++++++++++ Master/texmf-dist/tex/latex/piff/newproof.sty | 60 ++++++++++++++++++++++++++ Master/texmf-dist/tex/latex/piff/onepagem.sty | 37 ++++++++++++++++ Master/texmf-dist/tex/latex/piff/time.sty | 45 +++++++++++++++++++ 6 files changed, 185 insertions(+), 30 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/piff/README delete mode 100644 Master/texmf-dist/tex/generic/genmisc/time.sty create mode 100644 Master/texmf-dist/tex/latex/piff/duplicat.sty create mode 100644 Master/texmf-dist/tex/latex/piff/newproof.sty create mode 100644 Master/texmf-dist/tex/latex/piff/onepagem.sty create mode 100644 Master/texmf-dist/tex/latex/piff/time.sty (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/piff/README b/Master/texmf-dist/doc/latex/piff/README new file mode 100644 index 00000000000..32cf8c02a74 --- /dev/null +++ b/Master/texmf-dist/doc/latex/piff/README @@ -0,0 +1,10 @@ +Mike Piff has moved to a job where he has no further use +for (La)TeX, so these packages are no longer maintained. + +Any user who feels he has something to contribute to any of +the packages should contact the CTAN team, to be entered in the +CTAN catalogue as "current maintainer" of the package. + +Robin Fairbairns + +For the CTAN team diff --git a/Master/texmf-dist/tex/generic/genmisc/time.sty b/Master/texmf-dist/tex/generic/genmisc/time.sty deleted file mode 100644 index e1b86ce46d5..00000000000 --- a/Master/texmf-dist/tex/generic/genmisc/time.sty +++ /dev/null @@ -1,30 +0,0 @@ -%%% Save file as: TIME.STY (TIME.TEX) Source: FILESERV@SHSU.BITNET -%%% Author: Sunando Sen -%%% Source: INFO-TeX@SHSU.edu, Mon, 6 Jan 1992 23:14 EST -%%% Purpose: The command \now produces the current time in hh:mm A.M./P.M. -%%% format; similar to \today -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%% Macro to write the current time %%%%%%%%%%%%%%%%%%% -% \now produces the current time, e.g., 11:15 A.M. % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\newcount\hour \newcount\minute -\hour=\time \divide \hour by 60 -\minute=\time - -\count99=\hour \multiply \count99 by -60 \advance \minute by \count99 - -\def\now{% -\ifnum \hour<13 - \ifnum \hour=0 \advance \hour by 12 \number\hour:\else \number\hour:\fi% - \ifnum \minute<10 0\fi% - \number\minute% -\ A.M.% -\else \advance \hour by -12 \number\hour:% - \ifnum \minute<10 0\fi% - \number\minute% - \ P.M.% -\fi% -} - -\endinput diff --git a/Master/texmf-dist/tex/latex/piff/duplicat.sty b/Master/texmf-dist/tex/latex/piff/duplicat.sty new file mode 100644 index 00000000000..0956ffe3f5c --- /dev/null +++ b/Master/texmf-dist/tex/latex/piff/duplicat.sty @@ -0,0 +1,33 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{duplicat} +% M.Piff@sheffield.ac.uk +% This package marks each page of the dvi file with its sequence number. +% Useful if there are duplicate page numbers in the output, eg, +% 1, 2, 3, 1, 2, 3, 4, 5, 6, ... +% become +% 1.1, 2.2, 3.3, 1.4, 2.5, 3.6, 4.7, 5.8, 6.9, ... +% +% These numbers do not appear in the page number itself, but can be used +% in the driver command to select a page range, eg, in emTeX, use +% dvihplj filename /b1.4 /e 4.7 +% +% If you are using dvips, this package is unnecessary, since it uses the +% convention that the avove pages have names +% 1, 2, 3, 1.1, 2.1, 3.1, 4, 5, 6, ... +% where .0 is optional (first occurrence of that page number). +% dvips -p1.1 -l4 filename +% +% This file is placed in the public domain. No provision is made for +% support of the use of the facilities herein. +% +\let\duplicat@tmp\relax +\DeclareOption{dvips}{\let\duplicat@tmp\endinput} +\ProcessOptions + +\duplicat@tmp +\let\duplicat@tmp\undefined + +\global\let\dup@shipout\shipout +\gdef\shipout{\global\advance\count1 by 1\relax\dup@shipout} + +\endinput diff --git a/Master/texmf-dist/tex/latex/piff/newproof.sty b/Master/texmf-dist/tex/latex/piff/newproof.sty new file mode 100644 index 00000000000..6b9afbad9a2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/piff/newproof.sty @@ -0,0 +1,60 @@ +% This package defines a "\newproof" command similar to "\newtheorem". +% Its arguments are +% #1 Name of proof environment, eg, "proof". +% #2 Starting text, eg, Proof. +% #3 Finishing text, eg, [] flushed right. +% +% The package goes on to define a "proof" environment with exactly the +% above setup, but other unnumbered environments can be set up in the +% same way. +% +% The created environments take one optional argument, which, if present, +% goes in brackets after #2. Eg, +% +% \begin{proof} +% A proof. +% \end{proof} +% +% \begin{proof}[B. L. User] +% A named proof. +% \end{proof} +% +% \begin{proof}[of Theorem \ref{thm}] +% Yet another. +% \end{proof} +% +% Command "\qed" is set up to flush "\qedtext" right; "\qedtext" defaults +% to a square, but can be re-defined as "QED" or whatever. +% +% M.Piff@shef.ac.uk +% +% This file is placed in the public domain. No provision is made for +% support of the use of the facilities herein. +% +\NeedsTeXFormat{LaTeX2e}[1995/12/01] +\ProvidesPackage{newproof} +\newcommand{\newproof}[3]{ + \newenvironment{#1}[1][]% + {% + \begin{trivlist}% + \item[\hspace{\labelsep}\textnormal{\textbf{#2% + \def\op@@@arg{##1}% + \ifx\op@@@arg\empty + \else~(##1)\fi + }}]% + }% + {% + #3 + \end{trivlist}% + }% +} +\newproof{proof}{Proof}{\qed} +\def\qed{{\ifhmode\unskip\nobreak\hfil\penalty50 \hskip1em \else\nobreak\fi + \mbox{}\nobreak\hfil\qedtext% + \parfillskip=0pt \finalhyphendemerits=0 \par}} + +\def\qedtext{\ensuremath{\square}} +\RequirePackage{amsfonts} +\DeclareMathSymbol{\square} {\mathord}{AMSa}{"03} + + diff --git a/Master/texmf-dist/tex/latex/piff/onepagem.sty b/Master/texmf-dist/tex/latex/piff/onepagem.sty new file mode 100644 index 00000000000..d42738c7787 --- /dev/null +++ b/Master/texmf-dist/tex/latex/piff/onepagem.sty @@ -0,0 +1,37 @@ +\def\filename{onepagem.sty} +\def\fileversion{1.01a} +\def\filedate{28 Mar 1996 13:57:34 BST} +%% +%%M.Piff@sheffield.ac.uk +%% +%If the document has only one page, omit page number. (onepagempty) +%The page number must be produced by means of \thepage. +%Needs two passes through LaTeX to work, as it writes to the .aux file. +% +%The first version was a joke put on CTAN to illustrate how useful +%\AtEndDocument is. This one works... +% +% This file is placed in the public domain. No provision is made for +% support of the use of the facilities herein. +% +% +\typeout{\filename\space v\fileversion, (C) Copyright Mike Piff, \filedate} +\NeedsTeXFormat{LaTeX2e}[1995/12/01] +\ProvidesPackage{onepagem} +\ProcessOptions + +\let\opem@shipout\shipout +\newcounter{opem@pagecount} +\def\shipout{% + \stepcounter{opem@pagecount}% count pages in document + \opem@shipout% restore function of \shipout +} + +\AtEndDocument{% + \clearpage% make sure we know we are after the last page + \ifnum\value{opem@pagecount}=1 + \immediate\write\@mainaux{\string\gdef\string\thepage{}}% + \fi +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/piff/time.sty b/Master/texmf-dist/tex/latex/piff/time.sty new file mode 100644 index 00000000000..df9f094031c --- /dev/null +++ b/Master/texmf-dist/tex/latex/piff/time.sty @@ -0,0 +1,45 @@ +\def\filename{time.sty} +\def\fileversion{1.0a} +\def\filedate{15 Feb 1995 10:55:01 BST} +%% This is time.sty +%% Copyright (C) 1995 Mike Piff +%% +%% This file is placed in the public domain. No provision is made for +%% support of the use of the facilities herein. +%% +%% M.Piff@sheffield.ac.uk +%% +\typeout{\filename\space v\fileversion, (C) Copyright Mike Piff, \filedate} +\NeedsTeXFormat{LaTeX2e}[1995/12/01] +\ProvidesPackage{time} +\def\now{{% + \def\Time{3}% + \def\Hour{4}% + \def\Minute{5}% + \count\Time=\time\relax + \ifnum\count\Time=0 + \count\Time=1440 %%force 12pm + \fi + \count\Hour=\count\Time\relax + \divide\count\Hour by 60\relax%%hours past midnight + \count\Minute=\count\Hour\relax + \multiply\count\Minute by -60\relax + \advance\count\Minute by \count\Time\relax %%minutes past hour + \ifnum\count\Hour=0 + \count\Hour=12 + \else + \ifnum\count\Hour>12 + \advance\count\Hour by-12 + \fi + \fi + \the\count\Hour\relax:% + \ifnum\count\Minute<10 + 0% + \fi + \the\count\Minute\relax + \ifnum\count\Time>720 + pm% + \else + am% + \fi +}} -- cgit v1.2.3