diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/piff |
Initial commit
Diffstat (limited to 'macros/latex/contrib/piff')
-rw-r--r-- | macros/latex/contrib/piff/README | 10 | ||||
-rw-r--r-- | macros/latex/contrib/piff/duplicat-doc.pdf | bin | 0 -> 165933 bytes | |||
-rw-r--r-- | macros/latex/contrib/piff/duplicat-doc.tex | 42 | ||||
-rw-r--r-- | macros/latex/contrib/piff/duplicat.sty | 33 | ||||
-rw-r--r-- | macros/latex/contrib/piff/newproof-doc.pdf | bin | 0 -> 181583 bytes | |||
-rw-r--r-- | macros/latex/contrib/piff/newproof-doc.tex | 115 | ||||
-rw-r--r-- | macros/latex/contrib/piff/newproof.sty | 60 | ||||
-rw-r--r-- | macros/latex/contrib/piff/onepagem-doc.pdf | bin | 0 -> 185063 bytes | |||
-rw-r--r-- | macros/latex/contrib/piff/onepagem-doc.tex | 37 | ||||
-rw-r--r-- | macros/latex/contrib/piff/onepagem.sty | 37 | ||||
-rw-r--r-- | macros/latex/contrib/piff/time-doc.pdf | bin | 0 -> 195138 bytes | |||
-rw-r--r-- | macros/latex/contrib/piff/time-doc.tex | 31 | ||||
-rw-r--r-- | macros/latex/contrib/piff/time.sty | 45 |
13 files changed, 410 insertions, 0 deletions
diff --git a/macros/latex/contrib/piff/README b/macros/latex/contrib/piff/README new file mode 100644 index 0000000000..32cf8c02a7 --- /dev/null +++ b/macros/latex/contrib/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/macros/latex/contrib/piff/duplicat-doc.pdf b/macros/latex/contrib/piff/duplicat-doc.pdf Binary files differnew file mode 100644 index 0000000000..d5dd0f294d --- /dev/null +++ b/macros/latex/contrib/piff/duplicat-doc.pdf diff --git a/macros/latex/contrib/piff/duplicat-doc.tex b/macros/latex/contrib/piff/duplicat-doc.tex new file mode 100644 index 0000000000..badd836fbe --- /dev/null +++ b/macros/latex/contrib/piff/duplicat-doc.tex @@ -0,0 +1,42 @@ +\documentclass[pagesize=auto, fontsize=14pt, parskip=half, DIV=10]{scrartcl} + +\usepackage{fixltx2e} +\usepackage{etex} +\usepackage{lmodern} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage{microtype} +\usepackage{hyperref} + +\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} +\newcommand*{\pkg}[1]{\textsf{#1}} + +\addtokomafont{title}{\rmfamily} + +\title{The \pkg{duplicat} package} +\author{Mike Piff\thanks{\mail{M.Piff@sheffield.ac.uk}}} +\date{} + + +\begin{document} + +\maketitle + +\noindent +This package marks each page of the \textsc{dvi} file with its sequence number. +Useful if there are duplicate page numbers in the output, eg,\\ +\textit{1, 2, 3, 1, 2, 3, 4, 5, 6, \dots}\\ +become\\ +\textit{1.1, 2.2, 3.3, 1.4, 2.5, 3.6, 4.7, 5.8, 6.9, \dots} + +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 em\TeX, use\\ +\verb|dvihplj filename /b1.4 /e 4.7| + +If you are using \texttt{dvips}, this package is unnecessary, since it uses the +convention that the avove pages have names\\ +\textit{1, 2, 3, 1.1, 2.1, 3.1, 4, 5, 6, \dots}\\ +where .0 is optional (first occurrence of that page number).\\ +\verb|dvips -p1.1 -l4 filename| + +\end{document} diff --git a/macros/latex/contrib/piff/duplicat.sty b/macros/latex/contrib/piff/duplicat.sty new file mode 100644 index 0000000000..0956ffe3f5 --- /dev/null +++ b/macros/latex/contrib/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/macros/latex/contrib/piff/newproof-doc.pdf b/macros/latex/contrib/piff/newproof-doc.pdf Binary files differnew file mode 100644 index 0000000000..e58f03b693 --- /dev/null +++ b/macros/latex/contrib/piff/newproof-doc.pdf diff --git a/macros/latex/contrib/piff/newproof-doc.tex b/macros/latex/contrib/piff/newproof-doc.tex new file mode 100644 index 0000000000..2335fdbbc5 --- /dev/null +++ b/macros/latex/contrib/piff/newproof-doc.tex @@ -0,0 +1,115 @@ +\documentclass[pagesize=auto, parskip=half, fontsize=12pt, DIV=9]{scrartcl} + +\usepackage{fixltx2e} +\usepackage{etex} +\usepackage{xspace} +\usepackage{lmodern} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage[svgnames]{xcolor} +\usepackage{latexsym} +\usepackage{listings} +\usepackage{microtype} +\usepackage{hyperref} + +\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} +\newcommand*{\pkg}[1]{\textsf{#1}} +\newcommand*{\cs}[1]{\texttt{\textbackslash#1}} +\makeatletter +\newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}} +\makeatother +\newcommand*{\env}[1]{\texttt{#1}} + +\addtokomafont{title}{\rmfamily} + +\lstset{% + language=[LaTeX]TeX,% + columns=flexible,% + upquote=true,% + numbers=left,% + basicstyle=\ttfamily,% + keywordstyle=\color{Navy},% + commentstyle=\color{DimGray},% + stringstyle=\color{SeaGreen},% + numberstyle=\scriptsize\color{SlateGray}% +} + +\title{The \pkg{newproof} package} +\author{Mike Piff\thanks{\mail{M.Piff@shef.ac.uk}}} +\date{} + + +\begin{document} + +\maketitle + +\renewcommand*{\labelenumi}{\texttt{\#\theenumi}} + +This package defines a \cmd{\newproof} command similar to \cmd{\newtheorem}. +Its arguments are +% +\begin{enumerate} +\item Name of proof environment, eg, \env{proof}. +\item Starting text, eg, \emph{Proof}. +\item Finishing text, eg, $\Box$ flushed right. +\end{enumerate} + +The package goes on to define a \env{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 \verb|#2|. Eg, +% +\begin{lstlisting} +\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} +\end{lstlisting} + +Command \cmd{\qed} is set up to flush \cmd{\qedtext} right; \cmd{\qedtext} defaults +to a square, but can be re-defined as ``QED'' or whatever. + +\end{document} + +% +% +% +% 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/macros/latex/contrib/piff/newproof.sty b/macros/latex/contrib/piff/newproof.sty new file mode 100644 index 0000000000..6b9afbad9a --- /dev/null +++ b/macros/latex/contrib/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/macros/latex/contrib/piff/onepagem-doc.pdf b/macros/latex/contrib/piff/onepagem-doc.pdf Binary files differnew file mode 100644 index 0000000000..02e4aa2672 --- /dev/null +++ b/macros/latex/contrib/piff/onepagem-doc.pdf diff --git a/macros/latex/contrib/piff/onepagem-doc.tex b/macros/latex/contrib/piff/onepagem-doc.tex new file mode 100644 index 0000000000..e45a288b20 --- /dev/null +++ b/macros/latex/contrib/piff/onepagem-doc.tex @@ -0,0 +1,37 @@ +\documentclass[pagesize=auto, DIV=10, fontsize=14pt, parskip=full]{scrartcl} + +\usepackage{fixltx2e} +\usepackage{etex} +\usepackage{xspace} +\usepackage{lmodern} +\usepackage[T1]{fontenc} +\usepackage{textcomp} +\usepackage{microtype} +\usepackage{hyperref} + +\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} +\newcommand*{\pkg}[1]{\textsf{#1}} +\newcommand*{\cs}[1]{\texttt{\textbackslash#1}} +\makeatletter +\newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}} +\makeatother + +\addtokomafont{title}{\rmfamily} + +\title{The \pkg{onepagem} package\thanks{This manual corresponds to \pkg{onepagem.sty}~v1.01a, dated~28 Mar 1996.}} +\author{Mike Piff\thanks{\mail{M.Piff@sheffield.ac.uk}}} +\date{28 Mar 1996} + + +\begin{document} + +\maketitle + +If the document has only one page, omit page number. (onepagempty) +The page number must be produced by means of \cmd{\thepage}. +Needs two passes through \LaTeX\ to work, as it writes to the {\tt .aux} file. + +The first version was a joke put on CTAN to illustrate how useful +\cmd{\AtEndDocument} is. This one works\dots + +\end{document} diff --git a/macros/latex/contrib/piff/onepagem.sty b/macros/latex/contrib/piff/onepagem.sty new file mode 100644 index 0000000000..d42738c778 --- /dev/null +++ b/macros/latex/contrib/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/macros/latex/contrib/piff/time-doc.pdf b/macros/latex/contrib/piff/time-doc.pdf Binary files differnew file mode 100644 index 0000000000..0f362837b9 --- /dev/null +++ b/macros/latex/contrib/piff/time-doc.pdf diff --git a/macros/latex/contrib/piff/time-doc.tex b/macros/latex/contrib/piff/time-doc.tex new file mode 100644 index 0000000000..99ca5b51ac --- /dev/null +++ b/macros/latex/contrib/piff/time-doc.tex @@ -0,0 +1,31 @@ +\documentclass[pagesize=auto, fontsize=14pt, parskip=full, DIV=9]{scrartcl} + +\usepackage{fixltx2e} +\usepackage{lmodern} +\usepackage[T1]{fontenc} +\usepackage{microtype} +\usepackage{hyperref} + +\newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} +\newcommand*{\pkg}[1]{\textsf{#1}} +\newcommand*{\cs}[1]{\texttt{\textbackslash#1}} +\makeatletter +\newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}} +\makeatother + +\addtokomafont{title}{\rmfamily} + +\title{The \pkg{time} package\thanks{This manual corresponds to \pkg{time.sty}~v1.0a, dated~15 Feb 1995.}} +\author{Mike Piff\thanks{\mail{M.Piff@sheffield.ac.uk}}} +\date{15 Feb 1995} + + +\begin{document} + +\maketitle + +The \pkg{time} package defines a command \cmd{\now} which typesets the current time in twelve-hour format. +The format is \verb|%l:%M%p|, where \verb|%l| and \verb|%M| denote the hour (without leading zeros) and minute (with leading zeros), and \verb|%p| is either ``am'' or ``pm.'' +The command is fragile. + +\end{document} diff --git a/macros/latex/contrib/piff/time.sty b/macros/latex/contrib/piff/time.sty new file mode 100644 index 0000000000..df9f094031 --- /dev/null +++ b/macros/latex/contrib/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 +}} |