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/fax |
Initial commit
Diffstat (limited to 'macros/latex/contrib/fax')
-rw-r--r-- | macros/latex/contrib/fax/fax.cls | 134 | ||||
-rw-r--r-- | macros/latex/contrib/fax/fax.unx | 134 | ||||
-rw-r--r-- | macros/latex/contrib/fax/faxdoc.pdf | bin | 0 -> 45224 bytes | |||
-rw-r--r-- | macros/latex/contrib/fax/faxdoc.tex | 179 | ||||
-rw-r--r-- | macros/latex/contrib/fax/from.fax | 8 | ||||
-rw-r--r-- | macros/latex/contrib/fax/nb.fax | 5 | ||||
-rw-r--r-- | macros/latex/contrib/fax/note.fax | 5 | ||||
-rw-r--r-- | macros/latex/contrib/fax/read.me | 28 | ||||
-rw-r--r-- | macros/latex/contrib/fax/sig.sty | 23 | ||||
-rw-r--r-- | macros/latex/contrib/fax/sigdoc.pdf | bin | 0 -> 27415 bytes | |||
-rw-r--r-- | macros/latex/contrib/fax/sigdoc.tex | 56 | ||||
-rw-r--r-- | macros/latex/contrib/fax/test.dvi | bin | 0 -> 2452 bytes | |||
-rw-r--r-- | macros/latex/contrib/fax/test.log | 76 | ||||
-rw-r--r-- | macros/latex/contrib/fax/test.tex | 23 | ||||
-rw-r--r-- | macros/latex/contrib/fax/van.fax | 7 |
15 files changed, 678 insertions, 0 deletions
diff --git a/macros/latex/contrib/fax/fax.cls b/macros/latex/contrib/fax/fax.cls new file mode 100644 index 0000000000..9e63f4fb97 --- /dev/null +++ b/macros/latex/contrib/fax/fax.cls @@ -0,0 +1,134 @@ +% (c) Copyright on FAX.CLS written by J.B.Rhebergen and J.H.M. de Jonge. +% +% You are allowed to make modification to this FAX.CLS and redistribute it +% under the following conditions: +% 1) You leave this top message intact. +% 2) You send me an updated version with your changes and an +% explanation/motivation. +% 3) You ask no money for it. +% +% This document class comes with no waranty whatsoever! Comments and +% suggestion are most welcome. +% +% Mail me at: J.B.Rhebergen@ET.TUDelft.NL +% or: rheberg@morra.et.tudelft.nl +% +% Happy Texing! +% +% Jan Rhebergen +% +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{fax}[1995/07/18 v1.0 by: J.B. Rhebergen & J.H.M. de Jonge] +\IfFileExists{lastpage.sty}{\RequirePackage{lastpage}}{% + \typeout{Warning: I did not find lastpage.sty, + use \string\setcounter{\string\faxpages}{..} instead!}} + +\newif\if@note\@notefalse +\newif\if@topsep\@topseptrue + +\newcommand*{\slsf}{\sffamily\slshape} +\newcommand*{\bsf}{\sffamily\bfseries} + +\newcommand*{\@lstpgno}{% + \@ifundefined{r@LastPage}{0}{% + \expandafter\expandafter\expandafter + \@cdr\csname r@LastPage\endcsname + \@nil}% +} + +\newcommand*{\@to}{\typeout{Warning: The \string{\to} command is not defined!}} +\newcommand*{\@from}{\IfFileExists{from.fax}{\input{from.fax}}{% + \typeout{Warning: I did not find from.fax, use \string\from{..} in your document!}}} +\newcommand*{\@note}{\IfFileExists{note.fax}{\input{note.fax}}{% + \typeout{Warning: I did not find note.fax, use \string\note{..} in your document!}}} +\newcommand*{\@fxtxt}{{\Large\sc Tele-Fax Message}} +\newcommand*{\@dtxt}{Date:} +\newcommand*{\@ntxt}{Note:} +\newcommand*{\@ptxt}{page} +\newcommand*{\@pptxt}{pages} + +\newcommand*{\@nothing}{} +\newcommand*{\mymsg}[1]{\renewcommand*{\@fxtxt}{#1}} +\renewcommand*{\to}[1]{\renewcommand*{\@to}{#1}} +\newcommand*{\from}[1]{\renewcommand*{\@from}{#1}} +\newcommand*{\note}[1]{\renewcommand*{\@note}{#1}} + +\DeclareOption{dutch}{ + \renewcommand*{\@from}{\IfFileExists{van.fax}{\input{van.fax}}{% + \typeout{Warning: I did not find van.fax, use \string\from{..} in your document!}}} + \renewcommand*{\@note}{\IfFileExists{nb.fax}{\input{nb.fax}}{% + \typeout{Warning: I did not find nb.fax, use \string\note{..} in your document!}}} + \renewcommand*{\@fxtxt}{{\Large\sc Fax Boodschap}} + \renewcommand*{\@dtxt}{Datum:} + \renewcommand*{\@ntxt}{NB:} + \renewcommand*{\@ptxt}{pagina} + \renewcommand*{\@pptxt}{paginas}} + +\DeclareOption{note}{\@notetrue} +\DeclareOption{nosep}{\@topsepfalse} + +\DeclareOption*{\IfFileExists{artikel3.cls} + {\PassOptionsToClass{\CurrentOption}{artikel3}} + {\PassOptionsToClass{\CurrentOption}{article}}} + +\ProcessOptions + +\IfFileExists{artikel3.cls}{\LoadClass{artikel3}}{% +\typeout{Warning: I did not find artikel3.cls, I loaded article.cls instead!} +\LoadClass{article}} + +\newlength{\faxtopsep} +\setlength{\faxtopsep}{3ex} +\newcounter{faxpages} + +\AtBeginDocument{ +\sf +\newlength{\@framewd} +\setlength{\@framewd}{\textwidth} +\newlength{\@sep} +\setlength{\@sep}{0.5em} +\addtolength{\@framewd}{-0.5\@sep} +\newbox\@thin +\newbox\@frombx +\newbox\@tobx +\setbox\@frombx=\hbox{\@from} +\setbox\@tobx=\hbox{\@to} +\newdimen\@thinht +\newdimen\@thindp +\@thinht=\ht\@frombx +\@thindp=\dp\@frombx +\newdimen\@tmpdim +\@tmpdim=\ht\@tobx +\ifdim\@tmpdim>\@thinht + \@thinht=\@tmpdim +\fi +\@tmpdim=\dp\@tobx +\ifdim\@tmpdim>\@thindp + \@thindp=\@tmpdim +\fi +\setbox\@thin=\hbox{\vrule width 0mm height \@thinht depth \@thindp} +\begin{center} +\ifx\@fxtxt\@nothing\relax\else\@fxtxt\strut\\\fi +\framebox[0.5\@framewd][t]{\copy\@thin\copy\@tobx}\hfill% +\framebox[0.5\@framewd][t]{\copy\@thin\copy\@frombx}\\ +\nointerlineskip +\vspace{0.5\@sep} +\framebox[0.5\@framewd]{{\bsf \@dtxt} \today\strut}\hfill +\ifcase\@lstpgno + \framebox[0.5\@framewd]{{\bsf Fax:} \thefaxpages\ page(s)\strut}\\ + \or + \framebox[0.5\@framewd]{{\bsf Fax:} \pageref{LastPage} \@ptxt\strut}\\ + \else + \framebox[0.5\@framewd]{{\bsf Fax:} \pageref{LastPage} \@pptxt\strut}\\ + \fi +\if@note + \nointerlineskip + \vspace{0.5\@sep} + \addtolength{\@framewd}{-1em} + \framebox[\textwidth][c]{\hfill + \begin{minipage}{\@framewd}\fbox{\small\bsf \@ntxt} \@note\strut\hfill + \end{minipage}\hfill} + \fi +\end{center} +\if@topsep\vspace{\faxtopsep}\fi +} diff --git a/macros/latex/contrib/fax/fax.unx b/macros/latex/contrib/fax/fax.unx new file mode 100644 index 0000000000..56339ba691 --- /dev/null +++ b/macros/latex/contrib/fax/fax.unx @@ -0,0 +1,134 @@ +% (c) Copyright on FAX.CLS written by J.B.Rhebergen and J.H.M. de Jonge. +% +% You are allowed to make modification to this FAX.CLS and redistribute it +% under the following conditions: +% 1) You leave this top message intact. +% 2) You send me an updated version with your changes and an +% explanation/motivation. +% 3) You ask no money for it. +% +% This document class comes with no waranty whatsoever! Comments and +% suggestion are most welcome. +% +% Mail me at: J.B.Rhebergen@ET.TUDelft.NL +% or: rheberg@morra.et.tudelft.nl +% +% Happy Texing! +% +% Jan Rhebergen +% +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{fax}[1995/07/18 v1.0 by: J.B. Rhebergen & J.H.M. de Jonge] +\IfFileExists{lastpage.sty}{\RequirePackage{lastpage}}{% + \typeout{Warning: I did not find lastpage.sty, + use \string\setcounter{\string\faxpages}{..} instead!}} + +\newif\if@note\@notefalse +\newif\if@topsep\@topseptrue + +\newcommand{\slsf}{\sffamily\slshape} +\newcommand{\bsf}{\sffamily\bfseries} + +\newcommand{\@lstpgno}{% + \@ifundefined{r@LastPage}{0}{% + \expandafter\expandafter\expandafter + \@cdr\csname r@LastPage\endcsname + \@nil}% +} + +\newcommand{\@to}{\typeout{Warning: The \string{\to} command is not defined!}} +\newcommand{\@from}{\IfFileExists{from.fax}{\input{from.fax}}{% + \typeout{Warning: I did not find from.fax, use \string\from{..} in your document!}}} +\newcommand{\@note}{\IfFileExists{note.fax}{\input{note.fax}}{% + \typeout{Warning: I did not find note.fax, use \string\note{..} in your document!}}} +\newcommand{\@fxtxt}{{\Large\sc Tele-Fax Message}} +\newcommand{\@dtxt}{Date:} +\newcommand{\@ntxt}{Note:} +\newcommand{\@ptxt}{page} +\newcommand{\@pptxt}{pages} + +\newcommand{\@nothing}{} +\newcommand{\mymsg}[1]{\renewcommand{\@fxtxt}{#1}} +\renewcommand{\to}[1]{\renewcommand{\@to}{#1}} +\newcommand{\from}[1]{\renewcommand{\@from}{#1}} +\newcommand{\note}[1]{\renewcommand{\@note}{#1}} + +\DeclareOption{dutch}{ + \renewcommand{\@from}{\IfFileExists{van.fax}{\input{van.fax}}{% + \typeout{Warning: I did not find van.fax, use \string\from{..} in your document!}}} + \renewcommand{\@note}{\IfFileExists{nb.fax}{\input{nb.fax}}{% + \typeout{Warning: I did not find nb.fax, use \string\note{..} in your document!}}} + \renewcommand{\@fxtxt}{{\Large\sc Fax Boodschap}} + \renewcommand{\@dtxt}{Datum:} + \renewcommand{\@ntxt}{NB:} + \renewcommand{\@ptxt}{pagina} + \renewcommand{\@pptxt}{paginas}} + +\DeclareOption{note}{\@notetrue} +\DeclareOption{nosep}{\@topsepfalse} + +\DeclareOption*{\IfFileExists{artikel3.cls} + {\PassOptionsToClass{\CurrentOption}{artikel3}} + {\PassOptionsToClass{\CurrentOption}{article}}} + +\ProcessOptions + +\IfFileExists{artikel3.cls}{\LoadClass{artikel3}}{% +\typeout{Warning: I did not find artikel3.cls, I loaded article.cls instead!} +\LoadClass{article}} + +\newlength{\faxtopsep} +\setlength{\faxtopsep}{3ex} +\newcounter{faxpages} + +\AtBeginDocument{ +\sf +\newlength{\@framewd} +\setlength{\@framewd}{\textwidth} +\newlength{\@sep} +\setlength{\@sep}{0.5em} +\addtolength{\@framewd}{-0.5\@sep} +\newbox\@thin +\newbox\@frombx +\newbox\@tobx +\setbox\@frombx=\hbox{\@from} +\setbox\@tobx=\hbox{\@to} +\newdimen\@thinht +\newdimen\@thindp +\@thinht=\ht\@frombx +\@thindp=\dp\@frombx +\newdimen\@tmpdim +\@tmpdim=\ht\@tobx +\ifdim\@tmpdim>\@thinht + \@thinht=\@tmpdim +\fi +\@tmpdim=\dp\@tobx +\ifdim\@tmpdim>\@thindp + \@thindp=\@tmpdim +\fi +\setbox\@thin=\hbox{\vrule width 0mm height \@thinht depth \@thindp} +\begin{center} +\ifx\@fxtxt\@nothing\relax\else\@fxtxt\strut\\\fi +\framebox[0.5\@framewd][t]{\copy\@thin\copy\@tobx}\hfill% +\framebox[0.5\@framewd][t]{\copy\@thin\copy\@frombx}\\ +\nointerlineskip +\vspace{0.5\@sep} +\framebox[0.5\@framewd]{{\bsf \@dtxt} \today\strut}\hfill +\ifcase\@lstpgno + \framebox[0.5\@framewd]{{\bsf Fax:} \thefaxpages\ page(s)\strut}\\ + \or + \framebox[0.5\@framewd]{{\bsf Fax:} \pageref{LastPage} \@ptxt\strut}\\ + \else + \framebox[0.5\@framewd]{{\bsf Fax:} \pageref{LastPage} \@pptxt\strut}\\ + \fi +\if@note + \nointerlineskip + \vspace{0.5\@sep} + \addtolength{\@framewd}{-1em} + \framebox[\textwidth][c]{\hfill + \begin{minipage}{\@framewd}\fbox{\small\bsf \@ntxt} \@note\strut\hfill + \end{minipage}\hfill} + \fi +\end{center} +\if@topsep\vspace{\faxtopsep}\fi +} diff --git a/macros/latex/contrib/fax/faxdoc.pdf b/macros/latex/contrib/fax/faxdoc.pdf Binary files differnew file mode 100644 index 0000000000..ab7217c3be --- /dev/null +++ b/macros/latex/contrib/fax/faxdoc.pdf diff --git a/macros/latex/contrib/fax/faxdoc.tex b/macros/latex/contrib/fax/faxdoc.tex new file mode 100644 index 0000000000..04c785868b --- /dev/null +++ b/macros/latex/contrib/fax/faxdoc.tex @@ -0,0 +1,179 @@ +\documentclass[oldtoc,a4paper,10pt]{artikel3} +%\usepackage{a4wide} +\begin{document} +\author{J.B.~Rhebergen} +\date{\today} +\title{{\tt fax.cls} Documentation} +\maketitle + +\section{Introduction} +This fax class is written to work with the following other classes or +packages: + +\begin{tabular}{ll} +{\tt artikel3.cls} &One of the dutch article styles.\\ +{\tt lastpage.sty} &A small package that lets you reference the last +page.\\ +\end{tabular} + +It can however still work without these files. If the {\tt artikel3.cls} +cannot be found the {\tt article.cls} will be loaded instead. If available +{\tt lastpage.sty} will also be loaded. If you do not have {\tt +lastpage.sty} you can set the fax page numbers by hand by using the +\verb|\setcounter{faxpages}{..}| command. + +\section{Other files} +The following files should be prepared by the user: + +\begin{tabular}{ll} +{\tt from.fax} &containing your name etc.\\ +{\tt note.fax} &containing a note which you would like to add.\\ +\end{tabular} + +If you are using the {\tt dutch} class option you need: + +\begin{tabular}{ll} +{\tt van.fax} &containing your name etc. (in dutch)\\ +{\tt nb.fax} &containing a note which you would like to add. (in dutch)\\ +\end{tabular} + +Of course this can easily be changed or added for any other language. Feel +free to do so. + +\section{Options} +The following class options are at your disposal: +\begin{description} +\item[dutch] Switches to dutch language and reads the files {\tt van.fax} + and {\tt nb.fax} instead of the default {\tt from.fax} and {\tt note.fax} +\item[note] Adds a note to your fax header. This note should be specified + in the file {\tt note.fax} or if you have used the {\tt dutch} option + {\tt nb.fax} +\item[nosep] Omits the {\tt faxtopset} length variable which is currently + set at {\tt 3ex} This white space separates your fax header from the rest + of the text. +\end{description} + +The fax is typeset in \verb|\sf| (sans serif) by default, because I felt +that this would give the most legible results on a fax machine. + +\section{Commands} +In the preamble of the fax document the following commands are available: +\begin{description} +\item[$\backslash$to] Specifies what you want in the `to' box. This should + preferably be in the form of a {\tt tabular} environment. If omitted the + box will stay empty. +\begin{verbatim} +\to{\begin{tabular}[t]{rl} + to: &You\\ + address: &Your place\\ + tel: &Your number\\ + fax: &Whatever\\ + \end{tabular}} +\end{verbatim} +\item[$\backslash$from] Specifies what you want in the `from' box. This should + preferably be in the form of a {\tt tabular} environment. If omitted the + {\tt from.fax} file will be used. +\begin{verbatim} +\from{\begin{tabular}[t]{rl} + from: &Me\\ + address: &My place\\ + tel: &My number\\ + fax: &Whatever\\ + \end{tabular}} +\end{verbatim} + If you want an empty `from' box use \verb|\from{}|. +\item[$\backslash$mymsg] Normally the fax header begins with the message: + {\sc Tele-Fax Message}. If you have specified the {\tt dutch} option the + fax header will begin with: {\sc Fax Boodschap} If you want to start with + your own header (or logo even) you can use the \verb|\mymsg| command like + this: + \begin{center} + \vspace{1.5ex} + \verb|\mymsg{{\Large\bsf Watch out! here comes a FAX!}}| + \vspace{1.5ex} + \end{center} + If you want absolutely no fax top message just specify \verb|\mymsg{}| + i.e. an empty command. +\item[$\backslash$bsf] Switches to bold sans serif. i.e. \verb|{\bsf this is bold}| +\item[$\backslash$slsf] Switches to slanted sans serif. i.e. \verb|{\slsf this is slant}| +\end{description} + +\section{Suggestions} +To make your faxes even more `beautiful' you could use the {\tt wasysym} +package which provides a \verb|\phone| command. This can be used to get a +cute little telephone icon in your `to' or `from' box. Like this: +\begin{verbatim} +\from{\begin{tabular}[t]{rl} + from: &Me\\ + address: &My place\\ + \phone: &My number\\ + fax: &Whatever\\ + \end{tabular}} +\end{verbatim} +Don't forget to put \verb|\usepackage{wasysym}| in your preamble though. + +For my own convenience I have made a signature package. This provides a +signature for my fax documents. Of course you need to get your signature +scanned first and make the signature available in the form of a {\tt .pcx} +file or {\tt .msp} file. If you want to know more about this compile and +read the {\tt sigdoc.tex} file. + +\section{Conversion} +Once you've successfully used the {\tt fax.cls} to make a fax document you +have a choice. + +\begin{itemize} +\item Print it, feed it to the fax machine and send it. (trivial) +\item Convert it to a fax-modem compatible file and send it. +\end{itemize} + +These days lots of people have a fax-modem. To convert the {\tt .dvi} file +you generated, to some kind of fax-modem compatible file you need a +conversion program. Let me describe how I go about sending a fax. + +I am using em\TeX{} for {\tt DOS} to compile my {\tt .tex} documents. The +latest em\TeX{} release, version [4a], has a {\tt fax.cnf} file and +\verb|fax_base.fli| file which facilitate generating {\tt .dvi} files in fax +resolution. + +I subsequently convert this fax {\tt .dvi} file to a {\tt .pcx} file, using +the following batch file. + +\begin{verbatim} +@echo off +dvidrv dvidot pcx @fax.cnf /fl=-1 %1 %1.p?? %2 %3 %4 %5 %6 %7 %8 %9 +\end{verbatim} + +This will generate a number of {\tt .pcx} files one for each page of the +fax document. The {\tt .pcx} files are numbered {\tt myfax.p01, myfax.p02, +myfax.p03} if your original {\tt myfax.dvi} has three pages. + +The last step is to convert these {\tt .p??} files to one single {\tt .fax} +file. I have found the {\tt 2FAX} program by Hans Harder very useful. +However there was a bug in this program. Herre de Jonge the co\-author of +this {\tt fax.cls} and I have debugged the program and added some +functionality. Actually, Herre did most of the work on debugging the {\tt +2FAX} program while I did most of the work on the {\tt fax.cls}. We've +modified version 1.62 of {\tt 2FAX} and called it version 1.62a. I will +make this debugged version available for ftp as soon as possible. We've +also added some functionality. You now can use wildcards at the {\tt 2FAX} +command line. Like this: \verb|2fax indoc.p?? outdoc.fax /hr| + +At this stage you have a file which can be sent by the fax-modem. In the +case of {\tt 2FAX} this file is in the {\tt ZFAX} format. I am using an +unregistered version of {\tt BGFAX} to send (or receive) faxes. {\tt BGFAX} +is written by B.J.Guillot and is a simple but solid command line driven fax +program. It's primarily intended for use with people who operate a bulletin +board but who also want to send or receive faxes. There are various other +programs for {\tt DOS} that will also send {\tt ZFAX} files. I will +probably send the debugged version of {\tt 2FAX} to B.J. Guillot's bulletin +board soon so people can download or ftp it from there. At the moment I +still have to write a readme file and make some minor changes. If you're in +a hurry to get the debugged version of {\tt 2FAX}, mail me and I'll send it +to you. + +{\tt jbrhebergen@et.tudelft.nl}\\ +{\tt rheberg@morra.et.tudelft.nl} + +\end{document} + diff --git a/macros/latex/contrib/fax/from.fax b/macros/latex/contrib/fax/from.fax new file mode 100644 index 0000000000..b6e9ceef1e --- /dev/null +++ b/macros/latex/contrib/fax/from.fax @@ -0,0 +1,8 @@ +\begin{tabular}[t]{rl} +from: & MyMame\\ +address: & MyStreet\\ + & MyTown\\ + & MyCountry\\ +phone: & MyPhoneNum\\ +fax: & MyFaxNum\\ +\end{tabular} diff --git a/macros/latex/contrib/fax/nb.fax b/macros/latex/contrib/fax/nb.fax new file mode 100644 index 0000000000..a7ff9b1fc6 --- /dev/null +++ b/macros/latex/contrib/fax/nb.fax @@ -0,0 +1,5 @@ +Deze fax-boodschap is verstuurd met behulp van een fax-modem. Bij +beantwoorden van deze fax eerst bellen zodat het fax-modem en de PC +ingeschakeld kunnen worden voor ontvangst. Het is ook mogelijk mij op de +volgende e-mail adressen te bereiken. {\tt jbrhebergen@et.tudedv.tudelft.nl} +{\bsf of} {\tt rheberg@morra.et.tudelft.nl} diff --git a/macros/latex/contrib/fax/note.fax b/macros/latex/contrib/fax/note.fax new file mode 100644 index 0000000000..3adbe25fcd --- /dev/null +++ b/macros/latex/contrib/fax/note.fax @@ -0,0 +1,5 @@ +This message was sent using a fax-modem. When replying to this fax, phone +first, so the fax-modem and PC can be switched on, and prepared for +fax-reception. It is also possible to reach me at the following e-mail +addresses. {\tt jbrhebergen@et.tudedv.tudelft.nl} or {\tt +rheberg@morra.et.tudelft.nl} diff --git a/macros/latex/contrib/fax/read.me b/macros/latex/contrib/fax/read.me new file mode 100644 index 0000000000..0433b47440 --- /dev/null +++ b/macros/latex/contrib/fax/read.me @@ -0,0 +1,28 @@ +Here's a list of the files in fax.zip I added lastpage.sty and wasysym.sty +for convenience. NB: wasysym.sty of course still needs the propper fonts +which you will find at most tex-archives I'm sure. + +fax cls 4,411 07-19-95 11:28a +faxdoc dvi 8,544 07-19-95 11:37a +faxdoc tex 7,228 07-19-95 11:36a +from fax 176 07-19-95 11:23a +lastpage sty 2,208 07-01-95 1:36p +nb fax 333 07-19-95 11:26a +note fax 305 07-05-95 12:02p +read me 844 07-19-95 11:42a +sig sty 1,074 07-19-95 11:28a +sigdoc dvi 2,972 07-18-95 12:59a +sigdoc tex 2,429 07-18-95 12:53a +test dvi 2,412 07-18-95 10:07p +test tex 786 07-18-95 1:14a +van fax 160 07-19-95 11:23a +wasysym sty 8,537 07-01-95 12:11p + 18 file(s) 59,330 bytes + + +NB: Today 11-10-1995 I added a fax.unx file which is intended for unix +users. All the other files are dos file. The difference between fax.cls +and fax.unx is that all the \newcommand* and \renewcommand* have been +changed to \newcommand and \renewcommand (without the asterisk) Ofcourse +I also removed the ^M characters with dos2ux. (unix users might need to +give other files the same treatment) diff --git a/macros/latex/contrib/fax/sig.sty b/macros/latex/contrib/fax/sig.sty new file mode 100644 index 0000000000..e4f62418b7 --- /dev/null +++ b/macros/latex/contrib/fax/sig.sty @@ -0,0 +1,23 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{sig}[1995/07/04 v1.0 by: J.B. Rhebergen] + +\newcommand{\sig}{\leavevmode + \hbox to 62mm{\kern-5mm\vbox to 12mm{\kern-5mm\special{em:graph sig}\vfil}\hfil}} +\newcommand{\altsig}{\leavevmode + \hbox to 67mm{\vbox to 17mm{\special{em:graph sig}\vfil}\hfil}} +\newcommand{\zsig}{\leavevmode + \hbox to 0mm{\kern-5mm\vbox to 0mm{\kern-10mm\special{em:graph sig}\vfil}\hfil}} +\newcommand{\zaltsig}{\leavevmode + \hbox to 0mm{\vbox to 0mm{\special{em:graph sig}\vfil}\hfil}} + +\DeclareOption{fax}{\typeout{Using signature for fax!} +\renewcommand{\sig}{\leavevmode% + \hbox to 62mm{\kern-5mm\vbox to 12mm{\kern-5mm\special{em:graph faxsig}\vfil}\hfil}} +\renewcommand{\altsig}{\leavevmode% + \hbox to 67mm{\vbox to 17mm{\special{em:graph faxsig}\vfil}\hfil}} +\renewcommand{\zsig}{\leavevmode% + \hbox to 0mm{\kern-5mm\vbox to 0mm{\kern-10mm\special{em:graph faxsig}\vfil}\hfil}} +\renewcommand{\zaltsig}{\leavevmode% + \hbox to 0mm{\vbox to 0mm{\special{em:graph faxsig}\vfil}\hfil}} +} +\ProcessOptions diff --git a/macros/latex/contrib/fax/sigdoc.pdf b/macros/latex/contrib/fax/sigdoc.pdf Binary files differnew file mode 100644 index 0000000000..15bacd7e86 --- /dev/null +++ b/macros/latex/contrib/fax/sigdoc.pdf diff --git a/macros/latex/contrib/fax/sigdoc.tex b/macros/latex/contrib/fax/sigdoc.tex new file mode 100644 index 0000000000..77a7a1ec07 --- /dev/null +++ b/macros/latex/contrib/fax/sigdoc.tex @@ -0,0 +1,56 @@ +\documentclass[oldtoc,a4paper,10pt]{artikel3} +\usepackage{a4wide} +\begin{document} +\author{J.B.~Rhebergen} +\date{\today} +\title{{\tt sig.sty} Documentation} +\maketitle + +This is the {\tt sig.sty} package which can be used to put a scanned +signature in your fax document or other documents. If you want to use this +{\tt sig.sty} there are a number of things you need to change. + +The dimension of the \verb|\vbox| and \verb|\hbox| depend on the size of +the signature. Measure them and change accordingly. The \verb|\sig| command +puts the signature in the text. I added some negative kern which causes the +signature to overlap a little just as happens sometimes when you put your +signature on a document by hand. If you don't want this, use +\verb|\altsig|. The \verb|\zsig| and \verb|zaltsig| are similar except that +the \verb|\vbox| and \verb|\hbox| have zero dimensions. This allows you to +put the signature on top of other text. (yes I know that is weird but it +can be handy sometimes) + +Remember that you need to scale your signature to the proper size with +a graphics program. To use with a fax document in fax resolution just put +the command \verb|\usepackage[fax]{sig}| in the preamble of your document. +In non fax document leave out the {\tt fax} option. + +\footnotesize +\begin{verbatim} +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{sig}[1995/07/04 v1.0 by: JBR] + +\newcommand{\sig}{\leavevmode + \hbox to 62mm{\kern-5mm\vbox to 12mm{\kern-5mm\special{em:graph sig}\vfil}\hfil}} +\newcommand{\altsig}{\leavevmode + \hbox to 67mm{\vbox to 17mm{\special{em:graph sig}\vfil}\hfil}} +\newcommand{\zsig}{\leavevmode + \hbox to 0mm{\kern-5mm\vbox to 0mm{\kern-10mm\special{em:graph sig}\vfil}\hfil}} +\newcommand{\zaltsig}{\leavevmode + \hbox to 0mm{\vbox to 0mm{\special{em:graph sig}\vfil}\hfil}} + +\DeclareOption{fax}{\typeout{Using signature for fax!} +\renewcommand{\sig}{\leavevmode% + \hbox to 62mm{\kern-5mm\vbox to 12mm{\kern-5mm\special{em:graph faxsig}\vfil}\hfil}} +\renewcommand{\altsig}{\leavevmode% + \hbox to 67mm{\vbox to 17mm{\special{em:graph faxsig}\vfil}\hfil}} +\renewcommand{\zsig}{\leavevmode% + \hbox to 0mm{\kern-5mm\vbox to 0mm{\kern-10mm\special{em:graph faxsig}\vfil}\hfil}} +\renewcommand{\zaltsig}{\leavevmode% + \hbox to 0mm{\vbox to 0mm{\special{em:graph faxsig}\vfil}\hfil}} +} +\ProcessOptions +\end{verbatim} +\normalsize + +\end{document} diff --git a/macros/latex/contrib/fax/test.dvi b/macros/latex/contrib/fax/test.dvi Binary files differnew file mode 100644 index 0000000000..4ae79bc0e0 --- /dev/null +++ b/macros/latex/contrib/fax/test.dvi diff --git a/macros/latex/contrib/fax/test.log b/macros/latex/contrib/fax/test.log new file mode 100644 index 0000000000..e20c01f2da --- /dev/null +++ b/macros/latex/contrib/fax/test.log @@ -0,0 +1,76 @@ +This is emTeX (tex386), Version 3.14159 [3c-beta17] (preloaded format=latex 95.7.7) 20 JUL 1995 14:59 +**&latex test +(test.tex +LaTeX2e <1994/12/01> patch level 3 +Hyphenation patterns for english, ukenglish, dutch, loaded. +(fax.cls +Document Class: fax 1995/07/18 v1.0 by: J.B. Rhebergen & J.H.M. de Jonge +(lastpage.sty +Package: lastpage 1994/06/25 v0.1b LaTeX2e package for refs to last page number + (JPG) +) (c:/emtex/texinput/latex2e/artikel3.cls +Document Class: artikel3 1994/12/20 v2.0m NTG LaTeX document class +(c:/emtex/texinput/latex2e/ntg12.clo +File: ntg12.clo 1994/12/20 v2.0m NTG LaTeX file (size option) +) +\unitindent=\dimen102 +\othermargin=\dimen103 +\c@part=\count82 +\c@section=\count83 +\c@subsection=\count84 +\c@subsubsection=\count85 +\c@paragraph=\count86 +\c@subparagraph=\count87 +\c@figure=\count88 +\c@table=\count89 +\abovecaptionskip=\skip41 +\belowcaptionskip=\skip42 +LaTeX Info: Redefining \cal on input line 708. +LaTeX Info: Redefining \mit on input line 709. +\bibindent=\dimen104 +) +\faxtopsep=\skip43 +\c@faxpages=\count90 +) (test.aux) +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 10. +LaTeX Font Info: ... okay on input line 10. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 10. +LaTeX Font Info: ... okay on input line 10. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 10. +LaTeX Font Info: ... okay on input line 10. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 10. +LaTeX Font Info: ... okay on input line 10. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 10. +LaTeX Font Info: ... okay on input line 10. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 10. +LaTeX Font Info: ... okay on input line 10. +\@framewd=\skip44 +\@sep=\skip45 +\@thin=\box26 +\@frombx=\box27 +\@tobx=\box28 + (from.fax +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <12> on input line 1. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line 1. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line 1. +) +\@thinht=\dimen105 +\@thindp=\dimen106 +\@tmpdim=\dimen107 + (note.fax) +[1 + +] [2] [3] [4] [5] [6] AED: lastpage setting LastPage (test.aux) ) +Here is how much of TeX's memory you used: + 370 strings out of 55913 + 3441 string characters out of 211235 + 50079 words of memory out of 262143 + 3260 multiletter control sequences out of 10000 + 8345 words of font info for 30 fonts, out of 81920 for 254 + 14 hyphenation exceptions out of 607 + 28i,7n,23p,131b,239s stack positions out of 300i,100n,60p,5000b,1000s + +Output written on test.dvi (6 pages, 2452 bytes). diff --git a/macros/latex/contrib/fax/test.tex b/macros/latex/contrib/fax/test.tex new file mode 100644 index 0000000000..23043b7aa0 --- /dev/null +++ b/macros/latex/contrib/fax/test.tex @@ -0,0 +1,23 @@ +\documentclass[nosep,note,a4paper,12pt]{fax} +%\usepackage{wasysym} +%\usepackage{4wide} +\pagestyle{empty} +\to{\begin{tabular}[t]{rl} + to: &{\bsf You!}\\ + \end{tabular}} +\setcounter{faxpages}{3} +\mymsg{{\Large\bsf Watch out here comes a Fax!}} +\begin{document} +the quick brown dog jumped over the lazy fox 0 1 2 3.1459 4 5 6 7 8 9 times! +\newpage +the quick brown dog jumped over the lazy fox 0 1 2 3.1459 4 5 6 7 8 9 times! +\newpage +the quick brown dog jumped over the lazy fox 0 1 2 3.1459 4 5 6 7 8 9 times! +\newpage +the quick brown dog jumped over the lazy fox 0 1 2 3.1459 4 5 6 7 8 9 times! +\newpage +the quick brown dog jumped over the lazy fox 0 1 2 3.1459 4 5 6 7 8 9 times! +\newpage +the quick brown dog jumped over the lazy fox 0 1 2 3.1459 4 5 6 7 8 9 times! +\newpage +\end{document} diff --git a/macros/latex/contrib/fax/van.fax b/macros/latex/contrib/fax/van.fax new file mode 100644 index 0000000000..4d80ac1bf5 --- /dev/null +++ b/macros/latex/contrib/fax/van.fax @@ -0,0 +1,7 @@ +\begin{tabular}[t]{rl} +van: & MijnNaam\\ +adres: & MijnStraat\\ + & MijnStad\\ +tel: & MijnTelNum\\ +fax: & MijnFaxNum\\ +\end{tabular} |