From 5b93a841b7ce9c59c94645c0946b89a8a3e6bb02 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 25 Jan 2008 17:07:24 +0000 Subject: rm calendar git-svn-id: svn://tug.org/texlive/trunk@6406 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/calendar/CATALOG | 17 - Master/texmf-dist/source/latex/calendar/MANIFEST | 31 - Master/texmf-dist/source/latex/calendar/README | 128 - Master/texmf-dist/source/latex/calendar/allcal.ins | 193 -- .../texmf-dist/source/latex/calendar/autofilo.dtx | 642 ----- .../texmf-dist/source/latex/calendar/bigdemo.tgz | Bin 7797 -> 0 bytes .../texmf-dist/source/latex/calendar/caldemos.dtx | 212 -- .../texmf-dist/source/latex/calendar/calendar.dtx | 1975 --------------- Master/texmf-dist/source/latex/calendar/dates.dtx | 2630 -------------------- .../texmf-dist/source/latex/calendar/demo1997.cld | 13 - .../texmf-dist/source/latex/calendar/demoapt.cld | 14 - .../texmf-dist/source/latex/calendar/demoaptr.cld | 17 - .../texmf-dist/source/latex/calendar/demoevt.cld | 13 - .../texmf-dist/source/latex/calendar/demoevtr.cld | 17 - .../texmf-dist/source/latex/calendar/demohlst.htm | 14 - .../texmf-dist/source/latex/calendar/demohml.htm | 59 - .../texmf-dist/source/latex/calendar/demohmth.htm | 13 - .../texmf-dist/source/latex/calendar/demolist.cld | 14 - .../texmf-dist/source/latex/calendar/evntlist.dtx | 284 --- .../texmf-dist/source/latex/calendar/htmlstuf.dtx | 385 --- .../texmf-dist/source/latex/calendar/mkaddr.Frank | 20 - Master/texmf-dist/source/latex/calendar/mkaddr.dtx | 579 ----- Master/texmf-dist/source/latex/calendar/mkaddr.tcl | 201 -- .../texmf-dist/source/latex/calendar/monthly.dtx | 565 ----- .../texmf-dist/source/latex/calendar/overword.dtx | 344 --- .../texmf-dist/source/latex/calendar/plotutil.dtx | 78 - .../texmf-dist/source/latex/calendar/timesht.dtx | 688 ----- .../texmf-dist/source/latex/calendar/timetabl.dtx | 772 ------ Master/texmf-dist/source/latex/calendar/weekly.dtx | 491 ---- Master/texmf-dist/source/latex/calendar/yearly.dtx | 340 --- 30 files changed, 10749 deletions(-) delete mode 100644 Master/texmf-dist/source/latex/calendar/CATALOG delete mode 100644 Master/texmf-dist/source/latex/calendar/MANIFEST delete mode 100644 Master/texmf-dist/source/latex/calendar/README delete mode 100644 Master/texmf-dist/source/latex/calendar/allcal.ins delete mode 100644 Master/texmf-dist/source/latex/calendar/autofilo.dtx delete mode 100644 Master/texmf-dist/source/latex/calendar/bigdemo.tgz delete mode 100644 Master/texmf-dist/source/latex/calendar/caldemos.dtx delete mode 100644 Master/texmf-dist/source/latex/calendar/calendar.dtx delete mode 100644 Master/texmf-dist/source/latex/calendar/dates.dtx delete mode 100644 Master/texmf-dist/source/latex/calendar/demo1997.cld delete mode 100644 Master/texmf-dist/source/latex/calendar/demoapt.cld delete mode 100644 Master/texmf-dist/source/latex/calendar/demoaptr.cld delete mode 100644 Master/texmf-dist/source/latex/calendar/demoevt.cld delete mode 100644 Master/texmf-dist/source/latex/calendar/demoevtr.cld delete mode 100644 Master/texmf-dist/source/latex/calendar/demohlst.htm delete mode 100644 Master/texmf-dist/source/latex/calendar/demohml.htm delete mode 100644 Master/texmf-dist/source/latex/calendar/demohmth.htm delete mode 100644 Master/texmf-dist/source/latex/calendar/demolist.cld delete mode 100644 Master/texmf-dist/source/latex/calendar/evntlist.dtx delete mode 100644 Master/texmf-dist/source/latex/calendar/htmlstuf.dtx delete mode 100644 Master/texmf-dist/source/latex/calendar/mkaddr.Frank delete mode 100644 Master/texmf-dist/source/latex/calendar/mkaddr.dtx delete mode 100644 Master/texmf-dist/source/latex/calendar/mkaddr.tcl delete mode 100644 Master/texmf-dist/source/latex/calendar/monthly.dtx delete mode 100644 Master/texmf-dist/source/latex/calendar/overword.dtx delete mode 100644 Master/texmf-dist/source/latex/calendar/plotutil.dtx delete mode 100644 Master/texmf-dist/source/latex/calendar/timesht.dtx delete mode 100644 Master/texmf-dist/source/latex/calendar/timetabl.dtx delete mode 100644 Master/texmf-dist/source/latex/calendar/weekly.dtx delete mode 100644 Master/texmf-dist/source/latex/calendar/yearly.dtx (limited to 'Master/texmf-dist/source/latex') diff --git a/Master/texmf-dist/source/latex/calendar/CATALOG b/Master/texmf-dist/source/latex/calendar/CATALOG deleted file mode 100644 index fbebd973d1d..00000000000 --- a/Master/texmf-dist/source/latex/calendar/CATALOG +++ /dev/null @@ -1,17 +0,0 @@ -Name: calendar -Problems-To: fb@soas.ac.uk -Author: Frank G Bennett, Jr -Version: 3.1 -Description: Provides an interface for the creation of calendars using - LaTeX. Each calendar "style" within this bundle produces a - calendar in a particular format. Calendars may incorporate lists of - events and appointments from external files. The package is stable, - easy to install, easy to use, powerful and flexible. The bundle - includes styles for: a yearly calendar, a monthly calendar, a weekly - filofax(tm) calendar, a timesheet generator and a timetable/conference/ - itinerary generator. -Keywords: calendar, timetable, diary, time management, office software, - scheduling -See-Also: CTAN://tex-archive/macros/plain/contrib/calendar. -Address: Law Department, School of Oriental and African Studies, - Thornhaugh Street, London WC1H 0XG diff --git a/Master/texmf-dist/source/latex/calendar/MANIFEST b/Master/texmf-dist/source/latex/calendar/MANIFEST deleted file mode 100644 index fcc4ea2a512..00000000000 --- a/Master/texmf-dist/source/latex/calendar/MANIFEST +++ /dev/null @@ -1,31 +0,0 @@ -The LaTeX Calendar bundle consists of the following files: - -CATALOG (LaTeX index entry) -MANIFEST (This file) -README (Blurb about the package) -calguide.tex (generic user manual) - -allcal.ins (Installation file) - -calendar.dtx (Core module) -dates.dtx (Core module) -overword.dtx (Core module) - -calopts.cfg (File containing common code) -dates.cfg (Sample language configuration file) -autofilo.dtx (Filofax(tm) page support) - -timesht.dtx (Timesheet style) -weekly.dtx (Weekly style) -monthly.dtx (Monthly style) -yearly.dtx (Yearly style) -timetabl.dtx (Timetable style) -evntlist.dtx (Event list style) -htmlstuf.dtx (Three HTML styles) - -margins.sty (Simple margin control) -mkaddr.dtx (Sample Tcl and Emacs Lisp code for managing addresses) -plotutil.dtx (Sample Tcl and LaTeX code for controlling HP 6xx plotters) - -caldemos.dtx (Calendar demo files) -bigdemo.tgz (Large set of data files and sample document) diff --git a/Master/texmf-dist/source/latex/calendar/README b/Master/texmf-dist/source/latex/calendar/README deleted file mode 100644 index 8f7e561a6f0..00000000000 --- a/Master/texmf-dist/source/latex/calendar/README +++ /dev/null @@ -1,128 +0,0 @@ -The LaTeX Calendar bundle (version 3.1) - -INTRODUCTION ------------- -The files in this bundle provide an interface for the creation of calendars -using LaTeX. It is easy to use, flexible and powerful. Promise me more, -right? Read on. - -Each calendar "style" provides an environment which will read its contents -as a date or range of dates, and produce a corresponding calendar in a -particular format. For example, a calendar for the first two weeks in -August 1997 in the "weekly" style would be expressed as follows: - - \begin{weekly}{}{} - 1 Aug 1997 to 8 Aug 1997 - \end{weekly} - -The syntax for expressing dates is human-friendly: initial capitals are -converted to lower case, abbreviations will be recognized, and within -ordinary dates word order is irrelevant (i.e. both 1 aug 1997 and August 1 -1997 mean the same thing). - -Calendars may incorporate lists of events and appointments from external -files. The syntax for such files permits the use of recursive dates limited -by a range or ranges of dates ("every second saturday" during school -session, that sort of thing), with a stop-list of holidays. Entries -may also be color-coded if you have a color printer. You can also manage -complex data sets by building large lists from smaller files in an -object-oriented fashion. - -INSTALLATION ------------- -The simplest way to install the tools in the package is to make a -subdirectory in the search path of your TeX, FTP all of the source files to -that directory, and run "latex allcal.ins". You should then be able to run -the demonstration files. Note that demoover.tex and demodate.tex do not -produce any printed output; these files just demonstrate the capabilities of -the relevant code on the terminal. - -UPGRADING ---------- -If there is a previous version of the LaTeX Calendar package on your system, -these files should be used as a complete replacement. Each release -is likely to incorporate bug-fixes or enhancements that affect several -files, so it is best to save yourself the potential frustration of -a broken installation and do it from scratch each time. - -WHAT'S NEW ----------- -==Version 3.1== -The LaTeX Calendar Bundle now speaks HTML. Language support and -documentation have also vastly improved. You can now specify any language -as the default, AND you can include multiple languages in a single *.cld -file, choosing which text to include when a calendar is actually produced. -There is now ONE manual, that tells you everything you need to know. - -==Version 2.2== -Lots of bugfixes, large and small. - -First day in yearly calendars can now be selected at run time. - -Parsing code greatly optimized. Note that only the first letter -of words in date text is now downcased. - -Documentation in timetabl.dtx improved. - -==Version 2.1== -A lot of redundant and ornamental processing has been eliminated, -and the package is slightly faster now. - -A bug affecting 2nd and subseqent pages in the Timesheets package -has been fixed. - -The behaviour of "every other" declarations has been modified -to make this slightly more useful. See calman.tex for details. - -Validation of entries has been tightened up somewhat. - -==Version 2.0== -The "weekly" package and its supporting style "autofilo.sty" creates -calendars in Filofax(TM) format (those little ring-binder-type things that -seem such a good idea until you discover how much the commercially printed -pages cost). All page parameters, including the size, number and spacing -of the punch-marks, are configurable. - -For Unix systems with Emacs and Tcl, the "mkaddr" package includes some -hacks that can be used to generate Filofax(TM)-type-format address lists -from an Emacs BBDB database (q.v.). - -The limitation in the code which demanded that a bogus entry be placed at -the bottom of files in some circumstances to protect against reads beyond -end of file has been eliminated. The syntax for use in *.cld files has also -been slightly modified to make the interface internally consistent; =all= -declarations other than "freeze" are now meant to be followed by a -description in squiggly braces. - -Anniversaries are now supported. - -Several cross-nested global/local assignments to the same variable, which -produced "save size" errors with even relatively modest volumes of -data, have been fixed. I =think= that bugs of this kind have been -eliminated from the code, but if you do see this error on a large job, -send me the logfile and I'll try to track the problem down. - -CONTRIBUTORS ------------- - -Most of the code in this package was written by Frank Bennett -. The core upon which it is based, however, is a collection -of calendar macros for plain TeX, still available in the plain TeX area on -CTAN. Very slightly modified versions of these macros are the means used -for generating dates, identifying days of the week and so forth. These -macros were released anonymously; if anyone can tell me who wrote them, I -will include their author among the credits here. - -Christian Horn and Miroslav Novak did beta-testing of early versions of -Bennett's LaTeX code, and their help is gratefully acknowledged here. The -"Timetable" package was suggested by Miroslav Novak, and implemented by -Bennett. Edward Czilli provided invaluable feedback in the testing phase of -versions 2.0, 2.1 and 2.2. Thanks are also due for comments and bug reports -received from Jason Alexander, Edward J. Czilli, Bob Fiegel, Lico Hoekema, -and Gabrielle Owen. To everyone who has corresponded with me about the -package, I want to convey my sincerest thanks. - -Enjoy! - -Frank Bennett -fb@soas.ac.uk diff --git a/Master/texmf-dist/source/latex/calendar/allcal.ins b/Master/texmf-dist/source/latex/calendar/allcal.ins deleted file mode 100644 index df226cb5c4e..00000000000 --- a/Master/texmf-dist/source/latex/calendar/allcal.ins +++ /dev/null @@ -1,193 +0,0 @@ -%\iffalse -% allcal.ins,v -% Revision 3.1 1998/01/17 16:55:22 root -% Release code -% -% Revision 2.10 1998/01/16 21:12:52 root -% *** empty log message *** -% -% Revision 2.9 1998/01/16 21:08:40 root -% *** empty log message *** -% -% Revision 2.8 1998/01/16 19:22:55 root -% *** empty log message *** -% -% Revision 2.7 1997/12/06 21:13:24 root -% Changed filoaddr.sty to filoaddr.cls -% -% Revision 2.6 1997/12/06 08:53:32 root -% Log offset fixed. -% -%Revision 2.5 1997/12/06 08:50:25 root -%Fixed missing log entry. -% -% allcal.ins,v -% Revision 2.1.1.1 1997/11/01 15:36:56 bennett -% *** empty log message *** -% -% Revision 2.1 1997/11/01 14:40:45 root -% Release code. -% -% Revision 1.4 1997/10/30 20:13:44 root -% Added \IfFileExists conditionals that paternalistically attempt -% to determine whether it's worth calling the existence of the -% Tcl/Emacs facilities to the attention of the user. -% -% Revision 1.3 1997/10/30 06:13:56 root -% Eliminated extract-all-installation-files option. -% -% Revision 1.2 1997/10/29 08:40:33 root -% Simple test of RCS. -% -% Revision 1.1 1997/10/29 08:17:52 root -% Initial revision -%\fi -% -\def\batchfile{allcal.ins} -\input docstrip.tex - -\def\calextract#1#2#3#4{% - \IfFileExists{#1.dtx}{% - \ifcat$#4$\def\calexfn{#1}\else\def\calexfn{#4}\fi - \generate{ - \file{\calexfn.#2} {\from{#1.dtx}{#3}}}} - \relax} - -\keepsilent - -\preamble -This file is part of the Calendar package, -Copyright (C) 1996, 1997 Frank Bennett, Jr. -All rights reserved. ------------------------------------------- - -IMPORTANT NOTICE: - -You are not allowed to change this file. You may however copy -this file to a file with a different name and then change the -copy if (a) you do not charge for the modified code, (b) you -acknowledge the author of this file in the new file, if it -is distributed to others, and (c) you attach these same -conditions to the new file. - -You are not allowed to distribute this file alone. You are not -allowed to take money for the distribution or use of this file -(or a changed version) except for a nominal charge for copying -etc. - -You are allowed to distribute this file under the condition that -it is distributed with all of its contents, intact. - -For error reports, or offers to help make this a more powerful, -friendlier, and altogether more thrilling package, please contact me on -fb@soas.ac.uk. Better yet, make a contribution to -my pension. Account details available on request. ------------------------------------------- - -\endpreamble - -\Ask\demo{% -^^JUnpack demonstration files? (optional) ^^J (y/n): -} - -\newif\if@Emacs -\IfFileExists{/usr/bin/emacs}{\@Emacstrue}{} -\IfFileExists{/usr/local/bin/emacs}{\@Emacstrue}{} -\IfFileExists{/usr/bin/mule}{\@Emacstrue}{} -\IfFileExists{/usr/local/bin/mule}{\@Emacstrue}{} -\if@Emacs -\IfFileExists{/usr/bin/tclsh}{\@Emacstrue}{} -\IfFileExists{/usr/local/bin/tclsh}{\@Emacstrue}{} -\IfFileExists{/usr/bin/expect}{\@Emacstrue}{} -\IfFileExists{/usr/local/bin/expect}{\@Emacstrue}{} -\Ask\unix{% -^^JUnpack address management files, meant for use on Unix systems (optional) ^^J (y/n): -} -\else -\message{If you are a Unix user and install Emacs, Tcl and the BBDB email} -\message{database, this pacakge contains a set of scripts that can be used} -\message{to print address lists for your personal diary.} -\fi - -\Ask\overwrite{% -^^JBlindly OVERWRITE existing files (careful with this one) ^^J (y/n): -} - -\ifx\overwrite\y\askforoverwritefalse\fi - -\calextract{overword}{sty}{style}{} -\calextract{dates}{sty}{style}{} -\calextract{calendar}{sty}{style}{} -\calextract{evntlist}{sty}{style}{} -\calextract{autofilo}{sty}{style}{} -\calextract{monthly}{sty}{class}{} -\calextract{timesht}{sty}{package}{} -\calextract{timetabl}{sty}{package}{} -\calextract{weekly}{cls}{class}{} -\calextract{yearly}{sty}{style}{} -\calextract{htmlstuf}{sty}{htmlmonth}{hmonth} -\calextract{htmlstuf}{sty}{htmlevent}{hlist} -\calextract{htmlstuf}{sty}{htmlmonthevent}{hml} - -\ifx\demo\y - \bgroup - -\preamble -\endpreamble - -\postamble -\endpostamble - - \def\ins{n} - \calextract{dates}{tex}{demo}{demodate} - \calextract{overword}{tex}{demo}{demoover} - \calextract{caldemos}{cld}{1997}{demo1997} - \calextract{caldemos}{cld}{appts}{demoapt} - \calextract{caldemos}{cld}{apptsr}{demoaptr} - \calextract{caldemos}{cld}{demolist}{demolist} - \calextract{caldemos}{cld}{events}{demoevt} - \calextract{caldemos}{cld}{eventsr}{demoevtr} - \calextract{caldemos}{tex}{monthly}{demomont} - \calextract{caldemos}{tex}{timesht}{demotsht} - \calextract{caldemos}{tex}{timetabl}{demottbl} - \calextract{caldemos}{tex}{weekly}{demowkly} - \calextract{caldemos}{tex}{yearly}{demoyrly} - \calextract{caldemos}{tex}{evntlist}{demoevnt} - \calextract{caldemos}{tex}{hmonth}{demohmth} - \calextract{caldemos}{tex}{hlist}{demohlst} - \calextract{caldemos}{tex}{hml}{demohml} - \egroup -\fi - -\ifx\unix\y - -\preamble -\endpreamble - -\postamble -\endpostamble - -\def\WritePreamble#1{} -\def\WritePostamble#1{} - -\generate{\file{mkaddr.Frank}{\from{mkaddr.dtx}{format}} - \file{mkaddr.tcl}{\from{mkaddr.dtx}{script}} - \file{dotemacs}{\from{mkaddr.dtx}{elisp}} - \file{filoaddr.cls}{\from{mkaddr.dtx}{style}} - \file{dvipshpplotq}{\from{plotutil.dtx}{script}} - \file{hpplotsz.sty}{\from{plotutil.dtx}{style}} - } -\fi - -\Msg{***********************************************************} -\Msg{*} -\Msg{* To finish the installation, you have to move all *.sty} -\Msg{* and *.cls files into a directory searched by TeX.} -\Msg{*} -\IfFileExists{mkaddr.dtx}{\ifx\unix\y -\Msg{* You might also want to move the "mkaddr" file into your} -\Msg{* executable search path after reading the documentation} -\Msg{* in mkaddr.dtx and experimenting with the script to see} -\Msg{* if you find it useful.} -\Msg{*}\fi}\relax -\Msg{***********************************************************} diff --git a/Master/texmf-dist/source/latex/calendar/autofilo.dtx b/Master/texmf-dist/source/latex/calendar/autofilo.dtx deleted file mode 100644 index 34151b19e02..00000000000 --- a/Master/texmf-dist/source/latex/calendar/autofilo.dtx +++ /dev/null @@ -1,642 +0,0 @@ -%\iffalse -% -% file: autofilo.dtx -% Copyright (C) 1997 by Frank Bennett. All rights reserved. -% -% IMPORTANT NOTICE: -% -% You are not allowed to change this file. You may however copy -% this file to a file with a different name and then change the -% copy if (a) you do not charge for the modified code, (b) you -% acknowledge the author of this file in the new file, if it -% is distributed to others, and (c) you attach these same -% conditions to the new file. -% -% You are not allowed to distribute this file alone. You are not -% allowed to take money for the distribution or use of this file -% (or a changed version) except for a nominal charge for copying -% etc. -% -% You are allowed to distribute this file under the condition that -% it is distributed with all of its contents, intact. -% -% For error reports, or offers to help make this a more powerful, -% friendlier, and altogether more thrilling package, please contact me on -% fb@soas.ac.uk. Better yet, make a contribution to -% my pension. Account details available on request. -% -%\fi -% -% \def\fileversion{3.1.1.1} -% \def\filedate{1998/01/17 18:13:42} -% -% \iffalse -% -%<*driver> -\documentclass{ltxdoc} -%\CodelineIndex -%\EnableCrossrefs -\begin{document} -\OnlyDescription % Comment out for implementation details -\DocInput{autofilo.dtx} -\end{document} -% -%\fi -% -%\iffalse -% Source tree moved under RCS -% --------------------------- -% autofilo.dtx,v -% Revision 3.1.1.1 1998/01/17 18:13:42 root -% Release code, checksum verified -% -% Revision 3.1 1998/01/17 16:56:58 root -% Release code -% -% Revision 2.8 1998/01/16 11:52:55 root -% *** empty log message *** -% -% Revision 2.7 1998/01/15 10:45:24 root -% Filofax page now comes out centered on the physical page. -% Just fold the thing in half and cut. -% -% Revision 2.6 1997/12/05 17:01:48 root -% Added zero width vrule to force left-hand cut rule to right -% position even when jawline has no width. -% -% Revision 2.5 1997/12/05 13:47:40 root -% Fixed quandary of overlapping revisions. -% -% Revision 2.4 1997/12/05 12:14:08 root -% Fixed missing brace in af@circle, and added RequirePackage -% for keyval parser. -% Revision 2.2.1.5 1997/11/26 11:07:51 bennett -% Final change to documentation. -% -% Revision 2.2.1.4 1997/11/07 16:27:06 root -% Fixed checksum, added some documentation for the jawmarks -% code. -% -% Revision 2.2.1.3 1997/11/07 16:15:14 root -% Final fixes to jawmark code, maybe. -% -% Revision 2.2.1.2 1997/11/07 16:10:59 root -% Patched up code for jaw marks. -% -% Revision 2.2.1.1 1997/11/07 14:57:37 root -% Trial code for jaw marks. -% -% Revision 2.4 1997/12/05 12:14:08 root -% Fixed missing brace in af@circle, and added RequirePackage -% for keyval parser. -% -% Revision 2.3 1997/11/07 14:52:50 root -% Added trial code for jaw marks. -% -% Revision 2.2 1997/11/07 10:44:05 root -% Release code. -% -% Revision 2.1.1.1 1997/11/04 05:06:07 root -% Development branch -% -% Revision 2.1 1997/11/01 15:17:06 bennett -% Release code. -% -% Revision 1.2 1997/10/29 20:03:07 bennett -% *** empty log message *** -% -% Revision 1.1 1997/10/29 08:17:52 root -% Initial revision -% -%\fi -% -% \title{User's Guide to the \texttt{autofilo} -% package\thanks{This file is version number -% \fileversion{}. It was last revised on -% \filedate{}.}} -% -% \author{Frank G. Bennett, Jr.} -% -% \maketitle -% -% \setcounter{StandardModuleDepth}{1} -% \DeleteShortVerb{\|} -% \MakeShortVerb{\"} -% -% \begin{abstract} -% \noindent This package provides an environment -% within which pages are framed with cut lines and -% printed with punch-marks, so that printed text can -% easily be inserted into a filofax or binder. -% \end{abstract} -% -% \CheckSum{692} -% -% \section{About the Style} -% -% This style provides a rough solution to the design -% problem it addresses, but it does work. Pages are -% always printed in landscape, rotated using the "lscape" -% package from the "graphics" bundle, and centered on the -% physical paper.\footnote{As a technical note, the frame itself -% is not rotated, because it is inserted independently of -% the output boxes controlled by the \LaTeX{} output routine. -% The output modes (two-column, -% and a hacked-together four-column mode) have -% been modified to understand blocks of text as \cs{hbox}es -% to be laid atop one another, rather than as \cs{vbox}es -% to be set alongside one another.} It accepts two options, -% "twocolumn" (the default) and "fourcolumn". -% -% The style provides an environment called "autofilo". -% Most often, users of this package will be style -% authors who want to incorporate it into other -% environments that do more specific things. Because -% "autofilo" accepts several "keyval"-style parameters, -% style authors may have a use for documentation for those -% optional parameters. So here is some sample documentation: -% -% \begin{description} -% \item[\texttt{punchcluster}] Most filofaxes have two or -% or more clusters or groups of punches to hold the -% pages in place. This option sets the number of punches -% in each cluster. The default is three. -% \item[\texttt{intraspace}] This governs the space -% between punchouts within a group. The default is -% 19.25mm. -% \item[\texttt{punchgroups}] This option sets the number -% of groups of punches. The default is two groups. -% \item[\texttt{interspace}] This option sets the -% distance between the groups of punches. The default -% is 51.25mm. -% \item[\texttt{pageheight}] This fixes the height -% of a filofax page (not the physical paper on -% which it is printed). The default is 172mm. -% \item[\texttt{pagewidth}] This fixes the width of an individual -% page. The physical printed area will be twice this figure. -% The default is 95mm, for a 190mm printed area. -% \item[\texttt{grip}] This adjusts the distance from the -% edge of the page to the outer edge of the punchouts. -% Defaults to 5mm. -% \item[\texttt{punchmargin}] This adjusts the distance from the -% edge of the text to the inner edge of the punchouts. -% Defaults to 2mm. -% \item[\texttt{punchsize}] Size, in points, of punchouts. -% Defaults to 15. -% \item[\texttt{topspace}] Gap between top of filofax page -% and top of text page. -% \item[\texttt{bottomspace}] Gap between bottom of filofax page -% and bottom of text page. -% \item[\texttt{jawspread}] If set to a positive length, this places a set -% of rules the width of the punchmarks on either side of each -% punchhole, centered on its center and spread the distance specified. -% This can be useful as a guide with some one-hole punches that are -% designed to be used ``blind''. -% \item[\texttt{jawline}] Sets the width of the lines used to make -% jawmarks. The default value is \texttt{0.4pt}. -% \end{description} -% -% \StopEventually{\PrintIndex} -% -% \section{The Class File} -% -% \begin{macrocode} -%<*style> -\NeedsTeXFormat{LaTeX2e}[1995/06/01] -\ProvidesPackage{autofilo} - [1997/12/05 12:14:08 2.4 Filofax page outlines (Frank Bennett)] -% \end{macrocode} -% We need a boolean to process our sole option. -% \begin{macrocode} -\newif\if@usequadruplecolumn -% \end{macrocode} -% We provide four columns as an option. Two columns (one for -% each side of what will be the filofax page) will be the -% default. -% \begin{macrocode} -\DeclareOption{fourcolumn}{\@usequadruplecolumntrue} -% \end{macrocode} -% Process the option if present, and load a supporting package. -% \begin{macrocode} -\ProcessOptions -\RequirePackage{lscape} -\RequirePackage{keyval} -% \end{macrocode} -% Declare some variables. -% \begin{macrocode} -\newif\if@quadruplecolumn -\newbox\@leftleftcolumn -\newbox\@leftrightcolumn -\newbox\@rightleftcolumn -\newbox\@rightrightcolumn -\newcount\af@punchcluster -\newcount\af@punchgroups -\newlength\af@interspace -\newlength\af@intraspace -\newlength\af@grip -\newlength\af@punchmargin -\newcount\af@punchsize -\newlength\af@punchwidth -\newlength\af@halfpunchwidth -\newcount\af@subtempcount -\newcount\af@tempcount -\newlength\af@textwidth -\newlength\af@marginrel -\newlength\af@halftextwidth -\newlength\af@textheight -\newlength\af@topmargin -\newlength\af@bottommargin -\newcount\col@no -\newlength\af@jawspread -\newlength\af@halfjawspread -\newlength\af@jawline -% \end{macrocode} -% We'll need a macro to turn on the four-column mode. -% This is just a modified version of \cs{twocolumn} in -% the \LaTeX{} distribution. -% \begin{macrocode} -\def\quadruplecolumn{% - \clearpage - \global\columnwidth\textwidth - \global\advance\columnwidth-3\columnsep - \global\divide\columnwidth by4\relax - \global\hsize\columnwidth - \global\linewidth\columnwidth - \global\@twocolumntrue - \global\@quadruplecolumntrue - \global\@firstcolumntrue - \col@number=4\relax} -% \end{macrocode} -% Catch the output routine when the new mode is in effect. -% \begin{macrocode} -\def \@opcol {% - \if@twocolumn - \if@quadruplecolumn - \@outputqdrplcol - \else - \@outputdblcol - \fi - \else - \@outputpage - \fi - \global \@mparbottom \z@ \global \@textfloatsheight \z@ - \@floatplacement} -% \end{macrocode} -% Add a new output routine for the new mode, and a modified -% version of the two-column output routine. Note that these -% work \textit{only} inside the \texttt{landscape} environment. -% \begin{macrocode} -\def\@outputqdrplcol{% - \ifcase\col@no - \global\@firstcolumnfalse - \global \setbox\@leftleftcolumn \box\@outputbox - \or - \global \setbox\@leftrightcolumn \box\@outputbox - \or - \global \setbox\@rightleftcolumn \box\@outputbox - \or - \global \@firstcolumntrue - \global\setbox\@rightrightcolumn\box\@outputbox - \setbox\@outputbox \vbox to\textwidth{% - \hb@xt@\textheight {% - \vrule height\columnwidth depth0pt width0pt - \box\@rightrightcolumn \hss}% - \vfill - \hrule \@width\columnseprule - \vfill - \hb@xt@\textheight {% - \vrule height\columnwidth depth0pt width0pt - \box\@rightleftcolumn \hss}% - \vfill - \hrule \@width\columnseprule - \vfill - \hb@xt@\textheight {% - \vrule height\columnwidth depth0pt width0pt - \box\@leftrightcolumn \hss}% - \vfill - \hrule \@width\columnseprule - \vfill - \hb@xt@\textheight {% - \box\@leftleftcolumn \hss}% - }% - \@combinedblfloats - \@outputpage - \begingroup - \@dblfloatplacement - \@startdblcolumn - \@whilesw\if@fcolmade \fi - {\@outputpage - \@startdblcolumn}% - \endgroup - \fi - \global\advance\col@no by1\relax - \ifnum\col@no=4\relax\global\col@no=0\fi} -\def\@outputdblcol{% - \if@firstcolumn - \global \@firstcolumnfalse - \global \setbox\@leftcolumn \box\@outputbox - \else - \global \@firstcolumntrue - \setbox\@outputbox \vbox to\textwidth{% - \hbox to\textheight{% - \box\@outputbox}% - \vfil - \hrule \@width\columnseprule - \vfil - \hbox to\textheight{% - \box\@leftcolumn}}% - \@combinedblfloats - \@outputpage - \begingroup - \@dblfloatplacement - \@startdblcolumn - \@whilesw\if@fcolmade \fi - {\@outputpage - \@startdblcolumn}% - \endgroup - \fi -} -% \end{macrocode} -% We use circles to make punchmarks. -% When making circles, \TeX{} will put the center of the -% circle at point, but consume horizontal space equal -% to the full diameter of the circle. To compensate, -% we need to skip forward by radius, and back again -% after laying each circle. -% \begin{macrocode} -\def\af@circle{\hbox{\hskip\af@halfpunchwidth% - \ifnum\af@jawspread>0\relax% - \hskip-\af@halfjawspread% - \hskip-\af@jawline% - \vrule depth\af@halfpunchwidth% - height\af@halfpunchwidth% - width\af@jawline% - \hskip\af@halfjawspread% - \else% - \vrule depth\af@halfpunchwidth% - height\af@halfpunchwidth% - width0pt% - \fi% - \circle{\af@punchsize}% - \hskip-\af@punchwidth% - \ifnum\af@jawspread>0\relax% - \hskip\af@halfjawspread% - \vrule depth\af@halfpunchwidth% - height\af@halfpunchwidth - width\af@jawline% - \hskip-\af@halfjawspread% - \hskip-\af@jawline% - \fi% - \hskip-\af@halfpunchwidth}} -% \end{macrocode} -% We define a looping command that lays down a cluster -% of circles. Grouping allows this loop to be nested -% in another. -% \begin{macrocode} -\def\af@group{% - \bgroup% - \af@tempcount=0% - \af@circle% - \loop\advance\af@tempcount by1\relax% - \ifnum\af@tempcount<\af@punchcluster% - \hskip\af@intraspace\relax\af@circle% - \repeat% - \egroup} -% \end{macrocode} -% We define a command that lays down a set of clusters -% (groups). -% \begin{macrocode} -\def\af@circles{% - \af@tempcount=0\relax% - \af@group% - \loop\advance\af@tempcount by1\relax% - \ifnum\af@tempcount<\af@punchgroups% - \hskip\af@interspace\relax\af@group% - \repeat% - \af@tempcount=0} -% \end{macrocode} -% The following command creates a set of punchmarks. -% \begin{macrocode} -\def\af@punches{% - \hbox to\af@textheight{\hfil\af@circles\hskip\af@halfpunchwidth\relax\hfil}} -% \end{macrocode} -% The following creates a frame. The model was lifted from the "geometry" -% package. -% \begin{macrocode} -\def\@@@innerframe{% - \moveright-\af@topmargin% - \vbox to 0pt{% - \vskip\topmargin% - \vbox to0pt{\hrule width\af@textheight\vss}% - \hbox to\af@textheight{\llap{\vrule height\af@textwidth}% - \hfil\vrule height\af@textwidth}% - \vskip-\af@halftextwidth% - \vbox to0pt{\hrule width\af@textheight\vss}% - \vskip-\af@halftextwidth% - \vskip\af@grip% - \nointerlineskip\af@punches\nointerlineskip% - \vskip-\af@punchwidth% - \vskip-\af@grip% - \vskip\af@textwidth% - \vskip-\af@punchwidth% - \vskip-\af@grip% - \nointerlineskip\af@punches\nointerlineskip% - \vskip\af@grip% - \vbox to0pt{\hrule width\af@textheight\vss}% - \vss}}% -% \end{macrocode} -% A further modification of the output routine, -% this time to put the frame in place. This, too, is -% lifted from "geometry". It has been modified only -% slightly, but we drop \LaTeX 2.09 support altogether. -% \begin{macrocode} -\newif\if@latextwoe -\@ifundefined{if@compatibility}{\@latextwoefalse}{\@latextwoetrue} -\if@latextwoe -\def\@outputpage{% -\begingroup % the \endgroup is put in by \aftergroup - \let \protect \noexpand - \@resetactivechars - \let\-\@dischyph - \let\'\@acci\let\`\@accii\let\=\@acciii - \let\\\@normalcr - \let\par\@@par %% 15 Sep 87 - \shipout \vbox{% - \set@typeset@protect - \aftergroup \endgroup - \aftergroup \set@typeset@protect - \if@specialpage - \global\@specialpagefalse\@nameuse{ps@\@specialstyle}% - \fi - \if@twoside - \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot - \let\@themargin\oddsidemargin - \else \let\@thehead\@evenhead - \let\@thefoot\@evenfoot \let\@themargin\evensidemargin - \fi - \fi - \reset@font - \normalsize - \baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@ - \@begindvi - \moveright\@themargin %<<<<<<<<<<<<<<<<<<<<< added - \vtop{\@@@innerframe %<<<<<<<<<<<<<<<<<<<<< added - \vskip \topmargin - \vskip \af@marginrel -% \moveright\@themargin \vbox OPENBRACE %<<<<<<<<<<<< original - \moveright\af@topmargin% <<<<<<<<<<<< Bennett - \vbox{% %<<<<<<<<<<<<<<<<<<<<< modified - \setbox\@tempboxa \vbox to\headheight{% - \vfil - \color@hbox - \normalcolor - \hb@xt@\textwidth {% - \let \label \@gobble - \let \index \@gobble - \let \glossary \@gobble %% 21 Jun 91 - \@thehead - }% - \color@endbox - }% %% 22 Feb 87 - \dp\@tempboxa \z@ - \box\@tempboxa - \vskip \headsep - \box\@outputbox - \baselineskip \footskip - \color@hbox - \normalcolor - \hb@xt@\textwidth{% - \let \label \@gobble - \let \index \@gobble %% 22 Feb 87 - \let \glossary \@gobble %% 21 Jun 91 - \@thefoot - }% - \color@endbox - }}%<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< One more close bracket added - }% -\global \@colht \textheight -\stepcounter{page}% -\let\firstmark\botmark -} -\else -\message{Sorry, autofilo.sty works only with LaTeX2e} -\fi -% \end{macrocode} -% Set some global parameters. -% \begin{macrocode} -\headheight=0pt -\headsep=0pt -\footskip=0pt -\marginparwidth=0pt -\marginparsep=0pt -\pagestyle{empty} -\parindent=0pt -\raggedbottom -\columnseprule=0.0pt% -\raggedright -% \end{macrocode} -% Some option definitions. -% \begin{macrocode} -\define@key{opt}{pageheight}{% - \af@textheight=#1\relax} -\define@key{opt}{pagewidth}{% - \af@halftextwidth=#1\relax} -\define@key{opt}{columnsep}{% - \columnsep=#1\relax} -\define@key{opt}{punchcluster}{% - \af@punchcluster=#1} -\define@key{opt}{punchgroups}{% - \af@punchgroups=#1} -\define@key{opt}{interspace}{% - \af@interspace=#1} -\define@key{opt}{intraspace}{% - \af@intraspace=#1} -\define@key{opt}{grip}{% - \af@grip=#1} -\define@key{opt}{punchmargin}{% - \af@punchmargin=#1} -\define@key{opt}{punchpoints}{% - \af@punchsize=#1} -\define@key{opt}{topspace}{% - \af@topmargin=#1} -\define@key{opt}{bottomspace}{% - \af@bottommargin=#1} -\define@key{opt}{jawspread}{% - \af@jawspread=#1} -\define@key{opt}{jawline}{% - \af@jawline=#1} -% \end{macrocode} -% The default values for the options. -% \begin{macrocode} -\af@textheight=172mm -\af@halftextwidth=95mm -\columnsep=14pt -\af@punchcluster=3 -\af@punchgroups=2 -\af@interspace=51.25mm -\af@intraspace=19.25mm -\af@grip=5mm -\af@punchmargin=2mm -\af@punchsize=15 -\af@topmargin=2pt -\af@bottommargin=0pt\relax -\af@jawline=0.4pt% -% \end{macrocode} -% The remaining dimensions must be calculated inside -% the landscape environment. We define that now. -% \begin{macrocode} -\def\autofilo#1{% - \setkeys{opt}{#1}% - \oddsidemargin=-1in\relax% - \af@textwidth\paperwidth% - \advance\af@textwidth by-\af@textheight% - \divide\af@textwidth by2\relax% - \advance\oddsidemargin by\af@textwidth% - \evensidemargin=-1in\relax% - \advance\evensidemargin by\af@textwidth% - \topmargin=-1in\relax% - \af@textwidth\paperheight% - \advance\af@textwidth by-\af@halftextwidth% - \advance\af@textwidth by-\af@halftextwidth% - \divide\af@textwidth by2\relax% - \advance\topmargin by\af@textwidth\relax% - \landscape% - \af@halfjawspread\af@jawspread% - \divide\af@halfjawspread by2\relax% - \af@punchwidth=\af@punchsize pt% - \af@halfpunchwidth\af@punchwidth% - \divide\af@halfpunchwidth by2% - \textheight\af@textheight% - \advance\textheight by-\af@topmargin% - \advance\textheight by-\af@bottommargin% - \af@textwidth\af@halftextwidth% - \multiply\af@textwidth by2\relax% - \textwidth=\af@textwidth% - \advance\textwidth by-2\af@punchwidth% - \advance\textwidth by-2\af@grip% - \advance\textwidth by-2\af@punchmargin% - \af@marginrel\af@grip% - \advance\af@marginrel by\af@punchmargin% - \advance\af@marginrel by\af@punchwidth% - \vsize\textheight% - \hsize\textwidth% - \@colroom\vsize% - \@colht\vsize% - \if@usequadruplecolumn% - \quadruplecolumn% - \else% - \twocolumn% - \fi} -% \end{macrocode} -% The end of the environment is a simple thing. -% \begin{macrocode} -\def\endautofilo{% - \endlandscape} -% -% \end{macrocode} -% \Finale \PrintChanges - - - - - diff --git a/Master/texmf-dist/source/latex/calendar/bigdemo.tgz b/Master/texmf-dist/source/latex/calendar/bigdemo.tgz deleted file mode 100644 index 4f130a83493..00000000000 Binary files a/Master/texmf-dist/source/latex/calendar/bigdemo.tgz and /dev/null differ diff --git a/Master/texmf-dist/source/latex/calendar/caldemos.dtx b/Master/texmf-dist/source/latex/calendar/caldemos.dtx deleted file mode 100644 index 6947f02f599..00000000000 --- a/Master/texmf-dist/source/latex/calendar/caldemos.dtx +++ /dev/null @@ -1,212 +0,0 @@ -%\iffalse -% -% file: demos.dtx -% 1996-1997 by Frank Bennett. All rights reserved. -% -% Unlike the rest of the files in this package, these files -% can be freely modified in any way you like. -% -%\fi -% -% \iffalse -% -%<*driver> -\documentclass{ltxdoc} -%\CodelineIndex -%\EnableCrossrefs -\begin{document} -\OnlyDescription % Comment out for implementation details -\DocInput{caldemos.dtx} -\end{document} -% -%\fi -% -% \setcounter{StandardModuleDepth}{1} -% \DeleteShortVerb{\|} -% \MakeShortVerb{\"} -% -% \CheckSum{70} -% -%\iffalse -% Source tree moved under RCS -% --------------------------- -% caldemos.dtx,v -% Revision 2.4 1998/01/16 21:23:26 root -% *** empty log message *** -% -% Revision 2.3 1997/11/26 11:14:51 bennett -% *** empty log message *** -% -% Revision 2.2 1997/11/07 10:44:05 root -% Release code. -% -% Revision 2.1.1.3 1997/11/06 09:36:41 root -% Eliminated list inclusions from demoyrly.texx -% -% Revision 2.1.1.2 1997/11/04 14:47:18 root -% Fixed pinpoint dates in "every other" demo (if I remember this -% one correctly). -% -% Revision 2.1.1.1 1997/11/04 05:06:07 root -% Development branch -% -% Revision 2.1 1997/11/01 15:15:52 bennett -% Release code. -% -% Revision 1.2 1997/10/29 20:05:06 bennett -% *** empty log message *** -% -% Revision 1.1 1997/10/29 08:17:52 root -% Initial revision -% -%\fi -% -% \StopEventually{\PrintIndex} -% -% \begin{macrocode} -%<*evntlist> -\documentclass{article} -\usepackage{evntlist} -\begin{document} -\begin{eventlist} - {} - {demolist,demoaptr,demoevtr} - january 1 1997 to january 3 1997 -\end{eventlist} -\end{document} -% -%<*hlist> -\documentclass{article} -\usepackage{hlist} -\begin{document} -\begin{htmllist} - {outputfile=demohlst.htm} - {demolist,demoaptr,demoevtr} - january 1 1997 to january 3 1997 -\end{htmllist} -\end{document} -% -%<*hmonth> -\documentclass{article} -\usepackage{hmonth} -\begin{document} -\begin{htmlmonth} - {outputfile=demohmth.htm} - {demolist,demoaptr,demoevtr} - january 1997 -\end{htmlmonth} -\end{document} -% -%<*hml> -\documentclass{article} -\usepackage{hml} -\begin{document} -\begin{htmlmonthlist} - {outputfile=demohml.htm} - {demolist,demoaptr,demoevtr} - january 1997 -\end{htmlmonthlist} -\end{document} -% -%<*monthly> -\documentclass[a4paper]{article} -\usepackage{monthly} -\usepackage{margins} -\usepackage{lscape} -% \usepackage{color} -\parindent=0pt -\begin{document} -\margins{1.5cm} -\begin{landscape} -\begin{monthly} - {} - {demolist,demoaptr,demoevtr} - january 1997 -\end{monthly} -\end{landscape} -\end{document} -% -%<*timesht> -\documentclass[a4paper]{article} -% \usepackage{color} -\usepackage{timesht} -\usepackage{margins} -\begin{document} -\margins{1.5cm} -\begin{timesheet} - {leftright=3/5} - {demolist,demoaptr,demoevtr} - january 1 1997 to january 3 1997 -\end{timesheet} -\end{document} -% -%<*timetabl> -\documentclass[a4paper]{article} -\usepackage{timetabl} -% \usepackage{color} -\usepackage{margins} -\begin{document} -\margins{1.5cm} -\begin{timetable} - {title=Our Amazing Eclectic Conference} - {demolist,demoaptr,demoevtr} - january 1 1997 to january 3 1997 -\end{timetable} -\end{document} -% -%<*weekly> -\documentclass[a4paper]{weekly} -% \usepackage{color} -\begin{document} -\begin{weekly} - {} - {demolist,demoaptr,demoevtr} - january 1 1997 to january 3 1997 -\end{weekly} -\end{document} -% -%<*yearly> -\documentclass[a4paper]{article} -\usepackage{yearly} -% \usepackage{color} -\parindent=0pt\relax -\begin{document} -\begin{yearly} - {} - {} - 1997 -\end{yearly} -\end{document} -% -%<*1997> -January 1 1997 to December 31 1997 {The year 1997} -% -%<*appts> -jan 1 1997 16:00 {Nancy} [Call Nancy to confirm] -jan 1 1997 18:00-20:00 {Dinner} [New Year Dinner] -% -%<*apptsr> -range demo1997 {Current year} -every Monday 14:00-16:00 {Monday meeting} -every other Wednesday from 1 January 1997 10:00 {Wednesday call} -every 3 10:00-13:00 {Koffee klatch} -every first Tuesday 13:00-15:00 {Study group} -% -%<*demolist> -list demoevt {A separate list of events} -list demoapt {A separate list of appointments} -% -%<*events> -jan 1 1997 {New Year} [New Year's Day] -% -%<*eventsr> -range demo1997 -every Monday {Monday event} -every other friday from 10 january 1997 {Alternate Monday} -every 3 {Third of month} -every first Tuesday {First Tuesday} -% -% \end{macrocode} -% \Finale \PrintChanges - - diff --git a/Master/texmf-dist/source/latex/calendar/calendar.dtx b/Master/texmf-dist/source/latex/calendar/calendar.dtx deleted file mode 100644 index 827b8752f1b..00000000000 --- a/Master/texmf-dist/source/latex/calendar/calendar.dtx +++ /dev/null @@ -1,1975 +0,0 @@ -%\iffalse -% -% File calendar.dtx -% Copyright (C) 1996, 1997 by Frank Bennett. All rights reserved. -% -% IMPORTANT NOTICE: -% You are not allowed to change this file. You may however copy -% this file to a file with a different name and then change the -% copy if (a) you do not charge for the modified code, (b) you -% acknowledge the author(s) in the new file, if it -% is distributed to others, and (c) you attach these same -% conditions to the new file. -% -% You are not allowed to distribute this file alone. You are not -% allowed to take money for the distribution or use of this file -% (or a changed version) except for a nominal charge for copying -% etc. -% -% You are allowed to distribute this file under the condition that -% it is distributed with all of its contents, intact. -% -% For error reports, or offers to help make Calendar a more powerful, -% friendlier, and altogether more thrilling package, please contact me on -% fb@soas.ac.uk -% -%<*dtx> - \ProvidesFile{calendar.dtx} -% -% -% \end{macrocode} -% -%\iffalse -% \section{The Installation File} -% \begin{macrocode} -%<*installer> -\def\batchfile{calendar.ins} -\input docstrip.tex - -\keepsilent - -\preamble - -This file is part of the Calendar package. -Copyright (C) 1996 Frank Bennett, Jr. -All rights reserved. ------------------------------------------- -This is a generated file. - -IMPORTANT NOTICE: - -You are not allowed to change this file. You may however copy -this file to a file with a different name and then change the -copy if (a) you do not charge for the modified code, (b) you -acknowledge the author(s) in the new file, if it -is distributed to others, and (c) you attach these same -conditions to the new file. - -You are not allowed to distribute this file alone. You are not -allowed to take money for the distribution or use of this file -(or a changed version) except for a nominal charge for copying -etc. - -You are allowed to distribute this file under the condition that -it is distributed with all of its contents, intact. - -For error reports, or offers to help make Calendar a more powerful, -friendlier, and better package, please contact me on -`fb' at soas.ac.uk - -\endpreamble - -\postamble -\endpostamble - -\generate{\file{calendar.sty} {\from{calendar.dtx}{style}} -} - -\Msg{***********************************************************} -\Msg{*} -\Msg{* To finish the installation, you have to move the following} -\Msg{* files into a directory searched by TeX:} -\Msg{*} -\Msg{* \space\space calendar.sty} -\Msg{*} -\Msg{* You will also need to have the following packages} -\Msg{* installed on your system before using this package} -\Msg{* or printing its documentation:} -\Msg{*} -\Msg{* \space\space overword.dtx} -\Msg{* \space\space dates.dtx} -\Msg{*} -\Msg{***********************************************************} - -% -% \end{macrocode} -%\fi -% \Finale \PrintChanges diff --git a/Master/texmf-dist/source/latex/calendar/dates.dtx b/Master/texmf-dist/source/latex/calendar/dates.dtx deleted file mode 100644 index 5cc1205b089..00000000000 --- a/Master/texmf-dist/source/latex/calendar/dates.dtx +++ /dev/null @@ -1,2630 +0,0 @@ -%\iffalse -% -% File dates.dtx -% Copyright (C) 1996, 1997 by Frank Bennett. All rights reserved. -% -% IMPORTANT NOTICE: -% -% You are not allowed to change this file. You may however copy -% this file to a file with a different name and then change the -% copy if (a) you do not charge for the modified code, (b) you -% acknowledge the author(s) in the new file, if it -% is distributed to others, and (c) you attach these same -% conditions to the new file. -% -% You are not allowed to distribute this file alone. You are not -% allowed to take money for the distribution or use of this file -% (or a changed version) except for a nominal charge for copying -% etc. -% -% You are allowed to distribute this file under the condition that -% it is distributed with all of its contents, intact. -% -% For error reports, or offers to help make this a more powerful, -% friendlier, and altogether more thrilling package, please contact me on -% fb@soas.ac.uk -% -% -% \end{macrocode} -% -%\iffalse -% -% \section{Demonstration File} -% -% \begin{macrocode} -%<*demo> -\documentclass{minimal} -\usepackage{dates} -\begin{document} - -\makeatletter -% -% We say HI to the user -\message{^^J---------------------------------------------------------} -\message{This is a demonstration file for the LaTeX dates package.} -\message{It will print a number of dates to the terminal.^^J} -\message{The code demonstrated by this package is not intended} -\message{for direct use by humans, so I have not worked very hard} -\message{to make its output look pretty, and it won't actually} -\message{print anything. But if you get a cluttered list of dates} -\message{and no error messages, the package is working for you.} -\message{---------------------------------------------------------} -% -% We invoke the \dateread command. -% -\dateread -% -% We tell it to report a few details to the terminal. -% -{\message{\theshorttext}% - \message{\theday/\the\dates@month/\the\dates@year}% - \ifx\thelongtext\dates@empty% - \else% - \message{\thelongtext}% - \fi} -% -% The following are ranges. -% - december 10 1995 {Start of First Period of Time} -to jan 10 1996 {End of First Period of Time} - december 10 1996 {Start of Second Period of Time} -to jan 10 1997 {End of Second Period of Time} -% -% The following are specific dates (obviously) -% -February 18 1997 {Frank's Next Birthday} - [The best presents come in small packages.^^JIt - would be a terrific present for someone to make - this one smaller.] -February 18 1998 {Frank's Next Birthday But One} -% -% These are a couple of recursive dates. -% -Every Monday {(Monday Coffee)} -Every Third Tuesday {(Third Tuesday Meeting)} -Function moonsinit moonsincrement {% - \global\dates@date=\dates@subrange@start% - \caldate% - \newcount\moonno% - \newif\ifsign% - \def\firstmoon{\moonno=\dates@year - \multiply\moonno by123685 - \divide\moonno by10000 - \multiply\moonno by4\advance\moonno by-1 - \loop\moondate\relax - \ifnum\dates@date<\dates@subrange@start - \advance\moonno by1\repeat} -% Compute date for cycle quarter MOONNO - \def\moondate{{\dates@ct@z=\moonno - \lin 202.126.369+0.\dates@ct@z=\count1 - \count6=0 - \lin 0.2.319+2907.\sin\fac{3} - \divide\count6 by1000 - \lin 365.249.86+7593.\id\fac{1} - \divide\count6 by10\count7 =\count6 - \ifodd\moonno\quarters - \else\fullornew\fi\global\dates@date=\count7} - \jdttol} -% Correction for full and new moon - \def\fullornew{\count6=0 - \lin -393.0.0+0. - \divide\count1 by100000000 - \advance\count6 by\count1 - \lin 0.628.300+6269.\sin - \multiply\count6 by\count4 - \lin -7.-700.-369+ 928.\sin\fac{ -74} - \lin 0. 628. 300+ 6269.\sin\fac{ 1734} - \lin 1. 256. 600+12539.\sin\fac{ 21} - \lin 8. 328. 670+ 5341.\sin\fac{-4068} - \lin 8. 538. 220+-4597.\sin\fac{ 10} - \lin 8. 956. 970+11610.\sin\fac{ -51} - \lin 16. 238. 589+-5526.\sin\fac{ -4} - \lin 16. 657. 340+10682.\sin\fac{ 161} - \lin 16. 866. 890+ 743.\sin\fac{ 104} - \lin 17. 285. 640+16951.\sin\fac{ 50} - \lin 17. 495. 190+ 7013.\sin\fac{ 4} - \lin 24. 986. 10+16023.\sin\fac{ -4} - \lin 25. 195. 560+ 6084.\sin\fac{ -6} - \divide\count6 by10000 - \advance\count7 by\count6 } -% Correction for quarters - \def\quarters{\lin -393.0.0+0. - \divide\count1 by100000000 - \count6 =\count1 \lin 0.628.300+6269. - \sin\multiply\count6 by\count4 - \lin -16. -29. -40+-4413.\sin\fac{ 40} - \lin -7.-700.-369+ 928.\sin\fac{ -47} - \lin -7. -72. -69+ 7198.\sin\fac{ -30} - \lin 0. 628. 300+ 6270.\sin\fac{ 1721} - \lin 1. 256. 600+12539.\sin\fac{ 21} - \lin 8. 328. 670+ 5341.\sin\fac{-6280} - \lin 8. 538. 220+-4598.\sin\fac{ 21} - \lin 8. 956. 970+11611.\sin\fac{ -119} - \lin 16. 238. 589+-5526.\sin\fac{ -4} - \lin 16. 657. 340+10682.\sin\fac{ 89} - \lin 16. 866. 890+ 743.\sin\fac{ 79} - \lin 17. 285. 640+16952.\sin\fac{ 3} - \lin 17. 495. 190+ 7013.\sin\fac{ 3} - \lin 24. 986. 10+16023.\sin\fac{ -4} - \lin 25. 195. 560+ 6085.\sin\fac{ -6} - \count8=\count6\count6=28000 - \lin 628. 300. 373+ 6270.\cos\fac{ -4} - \lin 8. 328. 670+ 5341.\cos\fac{ 3} - \count2=\moonno - \advance\count2 by-1\divide\count2 by2 - \ifodd\count2\multiply\count6 by-1 \fi - \advance\count6 by\count8 - \divide\count6 by10000 - \advance\count7 by\count6 } -% Events for phases. -% Uses PHASE (local). - \def\phase{{\dates@ct@z=\moonno - \count1=\moonno - \divide\dates@ct@z by4\multiply\dates@ct@z by4 - \advance\count1 by-\dates@ct@z\relax - \xdef\themoon{\ifcase\count1 - New Moon\or First Quarter\or - Full Moon\or Last Quarter\fi}}} - \gdef\moonsinit{% - \firstmoon - \global\dates@month=12\global\dates@day=31\dates@fix\global\advance\dates@date by1 - \count1=\dates@date - \moondate - \phase - \caldate} - \gdef\moonsincrement{% - \advance\moonno by 1 - \moondate\phase - \caldate} - } - {\themoon} -\end{document} -% -% \end{macrocode} -% \section{The Installation File} -% \begin{macrocode} -%<*installer> -\def\batchfile{dates.ins} -\input docstrip.tex - -\keepsilent - -\preamble - -This file is part of the Dates package. -Copyright (C) 1996, 1997 Frank Bennett, Jr. -All rights reserved. ------------------------------------------- -This is a generated file. - -IMPORTANT NOTICE: - -You are not allowed to change this file. You may however copy -this file to a file with a different name and then change the -copy if (a) you do not charge for the modified code, (b) you -acknowledge the author(s) in the new file, if it -is distributed to others, and (c) you attach these same -conditions to the new file. - -You are not allowed to distribute this file alone. You are not -allowed to take money for the distribution or use of this file -(or a changed version) except for a nominal charge for copying -etc. - -You are allowed to distribute this file under the condition that -it is distributed with all of its contents, intact. - -For error reports, or offers to help make this a more powerful, -friendlier, and better package, please contact me on -`fb' at soas.ac.uk - -\endpreamble - -\generate{\file{dates.sty} {\from{dates.dtx}{style}} - } - -\generate{\file{demodate.tex} {\from{dates.dtx}{demo}} - } - -\Msg{***********************************************************} -\Msg{*} -\Msg{* To finish the installation, you have to move the following} -\Msg{* file into a directory searched by TeX:} -\Msg{*} -\Msg{* \space\space dates.sty} -\Msg{*} -\Msg{***********************************************************} - -% -% \end{macrocode} -%\fi -% \Finale \PrintChanges - diff --git a/Master/texmf-dist/source/latex/calendar/demo1997.cld b/Master/texmf-dist/source/latex/calendar/demo1997.cld deleted file mode 100644 index 86b7befb545..00000000000 --- a/Master/texmf-dist/source/latex/calendar/demo1997.cld +++ /dev/null @@ -1,13 +0,0 @@ -%% -%% This is file `demo1997.cld', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% caldemos.dtx (with options: `1997') -%% -January 1 1997 to December 31 1997 {The year 1997} - -%% -%% -%% End of file `demo1997.cld'. diff --git a/Master/texmf-dist/source/latex/calendar/demoapt.cld b/Master/texmf-dist/source/latex/calendar/demoapt.cld deleted file mode 100644 index dfff29c677a..00000000000 --- a/Master/texmf-dist/source/latex/calendar/demoapt.cld +++ /dev/null @@ -1,14 +0,0 @@ -%% -%% This is file `demoapt.cld', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% caldemos.dtx (with options: `appts') -%% -jan 1 1997 16:00 {Nancy} [Call Nancy to confirm] -jan 1 1997 18:00-20:00 {Dinner} [New Year Dinner] - -%% -%% -%% End of file `demoapt.cld'. diff --git a/Master/texmf-dist/source/latex/calendar/demoaptr.cld b/Master/texmf-dist/source/latex/calendar/demoaptr.cld deleted file mode 100644 index 622a4f97b6e..00000000000 --- a/Master/texmf-dist/source/latex/calendar/demoaptr.cld +++ /dev/null @@ -1,17 +0,0 @@ -%% -%% This is file `demoaptr.cld', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% caldemos.dtx (with options: `apptsr') -%% -range demo1997 {Current year} -every Monday 14:00-16:00 {Monday meeting} -every other Wednesday from 1 January 1997 10:00 {Wednesday call} -every 3 10:00-13:00 {Koffee klatch} -every first Tuesday 13:00-15:00 {Study group} - -%% -%% -%% End of file `demoaptr.cld'. diff --git a/Master/texmf-dist/source/latex/calendar/demoevt.cld b/Master/texmf-dist/source/latex/calendar/demoevt.cld deleted file mode 100644 index 5c72a4382f8..00000000000 --- a/Master/texmf-dist/source/latex/calendar/demoevt.cld +++ /dev/null @@ -1,13 +0,0 @@ -%% -%% This is file `demoevt.cld', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% caldemos.dtx (with options: `events') -%% -jan 1 1997 {New Year} [New Year's Day] - -%% -%% -%% End of file `demoevt.cld'. diff --git a/Master/texmf-dist/source/latex/calendar/demoevtr.cld b/Master/texmf-dist/source/latex/calendar/demoevtr.cld deleted file mode 100644 index 091c37ec529..00000000000 --- a/Master/texmf-dist/source/latex/calendar/demoevtr.cld +++ /dev/null @@ -1,17 +0,0 @@ -%% -%% This is file `demoevtr.cld', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% caldemos.dtx (with options: `eventsr') -%% -range demo1997 -every Monday {Monday event} -every other friday from 10 january 1997 {Alternate Monday} -every 3 {Third of month} -every first Tuesday {First Tuesday} - -%% -%% -%% End of file `demoevtr.cld'. diff --git a/Master/texmf-dist/source/latex/calendar/demohlst.htm b/Master/texmf-dist/source/latex/calendar/demohlst.htm deleted file mode 100644 index 77e668e0fc4..00000000000 --- a/Master/texmf-dist/source/latex/calendar/demohlst.htm +++ /dev/null @@ -1,14 +0,0 @@ - diff --git a/Master/texmf-dist/source/latex/calendar/demohml.htm b/Master/texmf-dist/source/latex/calendar/demohml.htm deleted file mode 100644 index b86fd29f95b..00000000000 --- a/Master/texmf-dist/source/latex/calendar/demohml.htm +++ /dev/null @@ -1,59 +0,0 @@ -
January
- Wed Thu Fri Sat Sun Mon Tue
-   1   2   3   4   5   6   7
-
-   8   9  10  11  12  13  14
-
-  15  16  17  18  19  20  21
-
-  22  23  24  25  26  27  28
-
-  29  30  31        
-
-
- diff --git a/Master/texmf-dist/source/latex/calendar/demohmth.htm b/Master/texmf-dist/source/latex/calendar/demohmth.htm deleted file mode 100644 index 6913b9c17b8..00000000000 --- a/Master/texmf-dist/source/latex/calendar/demohmth.htm +++ /dev/null @@ -1,13 +0,0 @@ -
January
- Wed Thu Fri Sat Sun Mon Tue
-   1   2   3   4   5   6   7
-
-   8   9  10  11  12  13  14
-
-  15  16  17  18  19  20  21
-
-  22  23  24  25  26  27  28
-
-  29  30  31        
-
-
diff --git a/Master/texmf-dist/source/latex/calendar/demolist.cld b/Master/texmf-dist/source/latex/calendar/demolist.cld deleted file mode 100644 index 6ebbb65c05e..00000000000 --- a/Master/texmf-dist/source/latex/calendar/demolist.cld +++ /dev/null @@ -1,14 +0,0 @@ -%% -%% This is file `demolist.cld', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% caldemos.dtx (with options: `demolist') -%% -list demoevt {A separate list of events} -list demoapt {A separate list of appointments} - -%% -%% -%% End of file `demolist.cld'. diff --git a/Master/texmf-dist/source/latex/calendar/evntlist.dtx b/Master/texmf-dist/source/latex/calendar/evntlist.dtx deleted file mode 100644 index f2412966ce0..00000000000 --- a/Master/texmf-dist/source/latex/calendar/evntlist.dtx +++ /dev/null @@ -1,284 +0,0 @@ -%\iffalse -% -% file: evntlist.dtx -% Copyright (C) 1996-1997 by Frank Bennett. All rights reserved. -% -% IMPORTANT NOTICE: -% -% You are not allowed to change this file. You may however copy -% this file to a file with a different name and then change the -% copy if (a) you do not charge for the modified code, (b) you -% acknowledge the author of this file in the new file, if it -% is distributed to others, and (c) you attach these same -% conditions to the new file. -% -% You are not allowed to distribute this file alone. You are not -% allowed to take money for the distribution or use of this file -% (or a changed version) except for a nominal charge for copying -% etc. -% -% You are allowed to distribute this file under the condition that -% it is distributed with all of its contents, intact. -% -% For error reports, or offers to help make this a more powerful, -% friendlier, and altogether more thrilling package, please contact me on -% fb@soas.ac.uk. Better yet, make a contribution to -% my pension. Account details available on request. -% -%\fi -% -% \def\fileversion{2.2} -% \def\filedate{1997/11/07 10:44:05} -% -% \iffalse -% -%<*driver> -\documentclass{ltxdoc} -%\CodelineIndex -%\EnableCrossrefs -\begin{document} -\OnlyDescription % Comment out for implementation details -\DocInput{evntlist.dtx} -\end{document} -% -%\fi -% -%\iffalse -% evntlist.dtx,v -% Revision 3.1.1.1 1998/01/17 18:14:57 root -% Release code, checksum verified -% -% Revision 3.1 1998/01/17 17:12:58 root -% Release code -% -% Revision 1.3 1998/01/16 17:46:34 root -% *** empty log message *** -% -% Revision 1.2 1998/01/15 23:39:20 root -% *** empty log message *** -% -% Revision 1.1 1997/11/26 07:20:12 bennett -% Initial revision -% -%\fi -% -% \title{User's Guide to the Event List -% package\thanks{This file is version number -% \fileversion{}. It was last revised on -% \filedate{}.}} -% -% \author{Frank G. Bennett, Jr.} -% -% \maketitle -% -% \setcounter{StandardModuleDepth}{1} -% \DeleteShortVerb{\|} -% \MakeShortVerb{\"} -% -% \begin{abstract} -% \noindent This package makes a cronological list -% of events. -% \end{abstract} -% -% \CheckSum{133} -% -% Please see the file \texttt{calguide.tex} for details on the -% use of this package. -% -% \StopEventually{\PrintIndex} -% -% \section{The Class File} -% -% \subsection{Preliminaries} -% Use \LaTeXe, and tell the user who we are. -% \begin{macrocode} -%<*style> -\NeedsTeXFormat{LaTeX2e}[1995/06/01] -\ProvidesPackage{evntlist} - [1997/11/07 10:44:05 2.2 Event List (Frank Bennett)] -% \end{macrocode} -% Define some more variables and switches for use in the body -% of the style. -% -% \subsection{Options} -% -% In common with all other packages in the Calendar -% bundle, we -% include some code for declaring languages. -% -% \begin{macrocode} -\input calopts.cfg -\InputIfFileExists{dates.cfg}{}{} -\ProcessOptions -% \end{macrocode} -% -% \subsection{Option Postprocessing} -% -% Now that the options lists are available to us, -% we can start loading packages. The following packages -% are always loaded. -% \begin{macrocode} -\RequirePackage{calendar} -% \end{macrocode} -% The "color" package is only loaded if the user asked -% for it as an option to \sc{documentclass}, or in the -% "weekly.cfg" file. -% \begin{macrocode} - \newif\if@el@noheadyet - \@el@noheadyettrue - \def\el@output#1{\protected@write\@el@outputfile{}{#1}} - \def\el@maybeheader{\if@el@noheadyet% - \begin{itemize}\item\theday\space\themonth\space\theyear\@el@noheadyetfalse\fi} - \def\el@maybeitem{\if@el@noheadyet\else\item\theday\space\themonth\space\theyear% - \fi} -% \end{macrocode} -% -% \subsection{Calendar Setup} -% -% \subsection{Calendar Definition} -% -% The calendar definition itself consists of a single command -% and its associated arguments. -% \begin{macrocode} -\newcalendar% -% \end{macrocode} -% We give the environment a name. -% \begin{macrocode} -{eventlist} -% \end{macrocode} -% We're producing DVI, so we use the standard -% macro for dropping text into the hopper. -% \begin{macrocode} -{\cal@insert} -% \end{macrocode} -% Starting day for the calendar is not fixed here, -% because we don't pad with blank entries. Season to taste. -% Use integers "0" through "6". A value over 7 means no padding. -% \begin{macrocode} -{8} -% \end{macrocode} -% The length of a group is one day. -% \begin{macrocode} -{1} -% \end{macrocode} -% The length of a subgroup is one day. -% \begin{macrocode} -{1} -% \end{macrocode} -% Our delimiter is an \cs{item}. -% \begin{macrocode} -{\relax} -% \end{macrocode} -% Increment the date counter with every item. -% \begin{macrocode} -{I} -% \end{macrocode} -% Define the header. -% \begin{macrocode} -{\relax} -% \end{macrocode} -% We define the end of the calendar. This spits out -% all of the boxes one last time, and closes the page -% formatting environment. -% \begin{macrocode} -{\end{itemize}} -% \end{macrocode} -% We define a way to open a new group. In this case, -% we just relax. -% \begin{macrocode} -{\relax} -% \end{macrocode} -% We define the way to end a subgroup. This spits out -% all of the boxes built for a page of text. -% \begin{macrocode} -{\relax} -% \end{macrocode} -% We set up to require a month and day in the environment typed -% into the user's document. -% \begin{macrocode} -{\dates@requiremonthtrue\dates@requiredaytrue} -% \end{macrocode} -% The next section runs after the calendar dates have been -% scanned from the environment, but before the table is -% opened. -% \textit{Start date.} -% \begin{macrocode} -{\global\dates@date\cal@range@start% - \caldate% -% \end{macrocode} -% \textit{We tell the user where we're starting.} -% \begin{macrocode} - \message{^^JStart: \theshortweekday\space% - \theday\space\theshortmonth\space\theyear}% -% \end{macrocode} -% \textit{End date.} -% \begin{macrocode} - \global\dates@date\cal@range@end% - \caldate% -% \end{macrocode} -% \textit{We let the user know where we plan to stop.} -% \begin{macrocode} - \message{^^JEnd: \theshortweekday\space% - \theday\space\theshortmonth\space\theyear}% -% \end{macrocode} -% \textit{We jump back to the starting date and reset the -% human-side values.} -% \begin{macrocode} - \global\dates@date\cal@range@start% - \caldate}% -% \end{macrocode} -% Events are delimited by \cs{item}. -% \begin{macrocode} -{\item}% -% \end{macrocode} -% The next argument is dropped on DVI for each item. -% We use it here to fetch the text of appointments and -% events to the standard list macros, using the -% standard text-fetching commands. Each generates a -% stack delimited by the phrase that was set above. -% \begin{macrocode} -{\cal@get@appointments\cal@get@events}% -% \end{macrocode} -% This sets \cs{cal@entry@text}. It is executed for every -% event or appointment in the database that applies -% to a given item. We differentiate between whole-day events, -% pinpointed events and ranged events. -% \begin{macrocode} -{\relax% - \ifnum\dates@time@start>0\relax% - \ifnum\dates@time@start=\dates@time@end% - \protected@edef\cal@entry@text{% - \thetimestart\space% - \cal@textcolor{\calcolor}{\thelongtext}}% - \else% - \protected@edef\cal@entry@text{% - \thetimestart--\thetimeend\space% - \cal@textcolor{\calcolor}{\thelongtext}}% - \fi% - \else% - \protected@edef\cal@entry@text{% - \cal@textcolor{\calcolor}{\thelongtext}}% - \fi}% -% \end{macrocode} -% Finally ... -% \begin{macrocode} -{\ifcat$\theevents\theappointments$\else% -\el@maybeitem% -\el@maybeheader% -\fi% -\bgroup% -\let\item\par% -\ifcat$\theevents$\else% - \par% - \theevents% -\fi% -\egroup% -\ifcat$\theappointments$\else% -\begin{itemize}% -\item% -\theappointments% -\end{itemize}% -\fi} -% -% \end{macrocode} -% \Finale \PrintChanges diff --git a/Master/texmf-dist/source/latex/calendar/htmlstuf.dtx b/Master/texmf-dist/source/latex/calendar/htmlstuf.dtx deleted file mode 100644 index 0fe88334dbb..00000000000 --- a/Master/texmf-dist/source/latex/calendar/htmlstuf.dtx +++ /dev/null @@ -1,385 +0,0 @@ -%\iffalse -% -% file: htmlstuf.dtx -% Copyright (C) 1996-1997 by Frank Bennett. All rights reserved. -% -% IMPORTANT NOTICE: -% -% You are not allowed to change this file. You may however copy -% this file to a file with a different name and then change the -% copy if (a) you do not charge for the modified code, (b) you -% acknowledge the author of this file in the new file, if it -% is distributed to others, and (c) you attach these same -% conditions to the new file. -% -% You are not allowed to distribute this file alone. You are not -% allowed to take money for the distribution or use of this file -% (or a changed version) except for a nominal charge for copying -% etc. -% -% You are allowed to distribute this file under the condition that -% it is distributed with all of its contents, intact. -% -% For error reports, or offers to help make this a more powerful, -% friendlier, and altogether more thrilling package, please contact me on -% fb@soas.ac.uk. Better yet, make a contribution to -% my pension. Account details available on request. -% -%\fi -% -% \def\fileversion{3.1.1.1} -% \def\filedate{1998/01/17 18:15:02} -% -% \iffalse -% -%<*driver> -\documentclass{ltxdoc} -%\CodelineIndex -%\EnableCrossrefs -\begin{document} -\OnlyDescription % Comment out for implementation details -\DocInput{htmlstuf.dtx} -\end{document} -% -%\fi -% -%\iffalse -% htmlstuf.dtx,v -% Revision 3.1.1.1 1998/01/17 18:15:02 root -% Release code, checksum verified -% -% Revision 3.1 1998/01/17 17:13:14 root -% Release code -% -% Revision 1.11 1998/01/17 16:48:35 root -% *** empty log message *** -% -% Revision 1.10 1998/01/17 11:07:21 root -% *** empty log message *** -% -% Revision 1.9 1998/01/17 11:05:29 root -% *** empty log message *** -% -% Revision 1.8 1998/01/17 10:48:00 root -% *** empty log message *** -% -% Revision 1.7 1998/01/17 06:14:32 root -% *** empty log message *** -% -% Revision 1.6 1998/01/16 21:33:57 root -% *** empty log message *** -% -% Revision 1.5 1998/01/16 21:16:47 root -% *** empty log message *** -% -% Revision 1.4 1998/01/16 21:09:07 root -% *** empty log message *** -% -% Revision 1.3 1998/01/16 19:16:11 root -% *** empty log message *** -% -% Revision 1.2 1998/01/16 18:40:07 root -% *** empty log message *** -% -%\fi -% -% \title{User's Guide to the HTML Calendar -% package\thanks{This file is version number -% \fileversion{}. It was last revised on -% \filedate{}.}} -% -% \author{Frank G. Bennett, Jr.} -% -% \maketitle -% -% \setcounter{StandardModuleDepth}{1} -% \DeleteShortVerb{\|} -% \MakeShortVerb{\"} -% -% \begin{abstract} -% \noindent This package makes a cronological list -% of events. -% \end{abstract} -% -% \CheckSum{524} -% -% Please see the file \texttt{calguide.tex} for details on the -% use of this package. -% -% \StopEventually{\PrintIndex} -% -% \section{The Class Files} -% -% \subsection{HTML Month} -% \begin{macrocode} -%<*htmlmonth> -\NeedsTeXFormat{LaTeX2e}[1995/06/01] -\ProvidesPackage{hmonth} - [1998/01/17 18:15:02 3.1.1.1 HTML calendar (Frank Bennett)] -\RequirePackage{calendar} -\input calopts.cfg -\InputIfFileExists{dates.cfg}{}{} -\ProcessOptions -\define@key{opt}{title}{% - \def\yrly@title{#1}} -\define@key{opt}{labels}{% - \@storelabels#1,,{}} -\define@key{opt}{firstday}{% - \yrly@firstday=#1} -\define@key{opt}{outputfile}{% - \@ifundefined{html@outputfile} - {\newwrite\html@output - \gdef\html@outputfile{#1}% - \immediate\openout\html@output=\html@outputfile} - {\gdef\hm@temp{#1}% - \ifx\html@outputfile\hm@temp% - \relax% - \else% - \immediate\closeout\html@output% - \gdef\html@outputfile{#1}% - \immediate\openout\html@output=\html@outputfile\relax - \fi}} -\def\yrly@title{\themonth} -\newcount\yrly@firstday -\yrly@firstday=3\relax -\newtoks\yrly@tempreg@a -\newcount\yrly@tempcount -\def\@storelabels{% - \def\yrly@labeltext{}% - \@@storelabels} -\def\@@storelabels#1,#2#{% - \ifcat$#1$% - \yrly@tempreg@a=\expandafter{\yrly@labeltext}% - \edef\yrly@labeltext{\the\yrly@tempreg@a}% - \let\next\@gobble% - \else% - \let\next\@@storelabels% - \yrly@tempreg@a=\expandafter{\yrly@labeltext}% - \protected@edef\yrly@labeltext{\the\yrly@tempreg@a\space#1}% - \fi% - \next#2{}} -\newcount\thumbnails% -\newtoks\hm@line@a% -\def\hm@line{} -\def\hm@writeout#1{% - \edef\hm@temp{#1}% - \immediate\write\html@output{\hm@line\hm@temp}% - \def\hm@line{}} -\def\hm@spaces{\ifcase\hm@spacenum\or\space\or\space\space\or\space\space\space% - \or\space\space\space\space\fi} -\newcount\hm@spacenum -\newcalendar% - {htmlmonth} - {\el@output} - {\yrly@firstday} - {\dates@days} - {7} - {\hm@spaces} - {I} - {
\themonth^^J\yrly@labeltext^^J}%
- {^^J^^J
} - {\cal@footer% - \cal@header} - {^^J} - {} - {\global\dates@day=1% - \dates@fix% - \cal@range@start\dates@date% - \message{^^JStart: \theshortweekday\space% - \theday\space\theshortmonth\space\theyear}% - \global\dates@date\cal@range@end% - \caldate% - \global\dates@day\dates@days% - \dates@fix% - \cal@range@end\dates@date% - \message{^^JEnd: \theshortweekday\space% - \theday\space\theshortmonth\space\theyear}% - \global\dates@date=\cal@range@start% - \caldate% - \@ifundefined{yrly@labeltext}{% - \def\yrly@defaultlabels{}% - \yrly@tempcount=1% - \global\advance\dates@date by-\dates@weekd% - \global\advance\dates@date by\yrly@firstday% - \caldate% - \loop% - \yrly@tempreg@a=\expandafter{\yrly@defaultlabels}% - \edef\yrly@defaultlabels{\the\yrly@tempreg@a\theshortweekday,}% - \ifnum\yrly@tempcount<7% - \global\advance\dates@date by1% - \caldate% - \advance\yrly@tempcount by 1\relax% - \repeat% - \expandafter\@storelabels\yrly@defaultlabels,,{}% - \dates@date\cal@range@start% - \caldate}% - {}% - \def\el@output##1{% - \def\hm@temp{##1}% - \def\hm@temptwo{\cal@groupbreak}% - \ifx\hm@temp\hm@temptwo% - \hm@spacenum=4\relax% - \fi% - \ifnum\cal@subgroup@count>6\relax% - \hm@writeout{##1}% - \else% - \def\hm@temptwo{\cal@footer}% - \ifx\hm@temp\hm@temptwo% - \hm@writeout{##1}% - \else% - \hm@line@a=\expandafter{\hm@line}% - \edef\hm@line{\the\hm@line@a\hm@temp}% - \fi% - \fi}% - \hm@spacenum=4\relax}% - {}% - {\ifnum\dates@day<9\hm@spacenum=3\else\hm@spacenum=2\fi% - \cal@get@appointments\cal@get@events}% - {\protected@edef\cal@entry@text{X}}% - {\ifnum\dates@weekd=\yrly@firstday% - \hm@spaces% - \ifnum\theday=9% - \space\space% - \fi% - \else% - \ifnum\dates@day=1% - \space\hm@spaces% - \fi% - \fi% - \ifcat$\theappointments\theevents$% - \else% - % - \fi% - \theday% - \ifcat$\theappointments\theevents$% - \else% - % - \fi} -% -% \end{macrocode} -% -% \subsection{HTML Event List} -% -% \begin{macrocode} -%<*htmlevent> -\NeedsTeXFormat{LaTeX2e}[1995/06/01] -\ProvidesPackage{hlist} - [1997/11/07 10:44:05 2.2 HTML Event List (Frank Bennett)] -\input calopts.cfg -\InputIfFileExists{dates.cfg}{}{} -\ProcessOptions -\ProcessOptions -\RequirePackage{calendar} -\define@key{opt}{textnum}{% - \dates@textnum=#1\relax} -\define@key{opt}{outputfile}{% - \@ifundefined{html@outputfile} - {\newwrite\html@output% - \gdef\html@outputfile{#1}% - \immediate\openout\html@output=\html@outputfile} - {\gdef\el@temp{#1}% - \ifx\html@outputfile\el@temp% - \relax% - \else% - \immediate\closeout\html@output% - \gdef\html@outputfile{#1}% - \immediate\openout\html@output=\html@outputfile\relax% - \fi}} -\def\el@item{
  • \theday\space\themonth\space\theyear} -\newcalendar% -{htmllist} -{\el@output} -{8} -{1} -{1} -{} -{I} -{
      } -{
    } -{} -{} -{\dates@requiremonthtrue\dates@requiredaytrue} -{\global\dates@date\cal@range@start% - \caldate% - \message{^^JStart: \theshortweekday\space% - \theday\space\theshortmonth\space\theyear}% - \global\dates@date\cal@range@end% - \caldate% - \message{^^JEnd: \theshortweekday\space% - \theday\space\theshortmonth\space\theyear}% - \global\dates@date\cal@range@start% - \caldate% - \def\el@output##1{\ifcat$##1$\else\immediate\write\html@output{##1}\fi}}% -{}% -{\cal@get@appointments\cal@get@events}% -{\relax% - \ifnum\dates@time@start>0\relax% - \ifnum\dates@time@start=\dates@time@end% - \protected@edef\cal@entry@text{% - ^^J\space\space\space\space
  • \thetimestart\space% - \thelongtext}% - \else% - \protected@edef\cal@entry@text{% - ^^J\space\space\space\space
  • \thetimestart--\thetimeend\space% - \thelongtext}% - \fi% - \else% - \protected@edef\cal@entry@text{% - ^^J
    \thelongtext}% - \fi}% -{\ifcat$\theevents\theappointments$\else% -\el@item% -\fi% -\ifcat$\theevents$\else% - \theevents% -\fi% -\ifcat$\theappointments$\else% - ^^J\space\space\space\space
      % - \theappointments% - ^^J\space\space\space\space
    % -\fi} -% -% \end{macrocode} -% \subsection{HTML Month and Event List} -% \begin{macrocode} -%<*htmlmonthevent> -\NeedsTeXFormat{LaTeX2e}[1995/06/01] -\ProvidesPackage{hml} - [1997/11/06 07:33:21 2.1.1.6 HTML calendar (Frank Bennett)] -\RequirePackage{hmonth} -\RequirePackage{hlist} -\newtoks\hml@one -\newtoks\hml@two -\def\htmlmonthlist#1#2{% - \hml@one={#1} - \hml@two={#2} - \dateread{}} -\def\endhtmlmonthlist{% - \ifnum\dates@subrange@start=0% - \dates@subrange@start\dates@date% - \dates@subrange@end\dates@date% - \fi% - \global\dates@date\dates@subrange@start% - \global\dates@day=1\relax% - \dates@fix% - \cal@range@start\dates@date% - \global\dates@date\dates@subrange@end% - \caldate% - \global\dates@day\dates@days% - \dates@fix% - \cal@range@end\dates@date% - \global\dates@date=\cal@range@start - \caldate - \edef\hml@start{\theday\space\themonth\space\theyear\space} - \global\dates@date=\cal@range@end - \caldate - \edef\hml@end{\theday\space\themonth\space\theyear} - \edef\hml@range{\hml@start to \hml@end\space} - \edef\hml@htmlmonth{\noexpand\begin{htmlmonth}{\the\hml@one}{\the\hml@two}} - \edef\hml@htmllist{\noexpand\begin{htmllist}{\the\hml@one}{\the\hml@two}} - \expandafter\hml@htmlmonth\hml@range\end{htmlmonth} - \expandafter\hml@htmllist\hml@range\end{htmllist}x} -%<*htmlmonthevent> -% \end{macrocode} -% \Finale \PrintChanges - diff --git a/Master/texmf-dist/source/latex/calendar/mkaddr.Frank b/Master/texmf-dist/source/latex/calendar/mkaddr.Frank deleted file mode 100644 index 4ffee077445..00000000000 --- a/Master/texmf-dist/source/latex/calendar/mkaddr.Frank +++ /dev/null @@ -1,20 +0,0 @@ -\documentclass{filoaddr} -\begin{document} -\begin{addresses}{% - topmargin=2cm, - rightmargin=3cm, - pageheight=172mm, - pagewidth=95mm, - columnsep=14pt, - punchcluster=3, - punchgroups=2, - interspace=51.25mm, - intraspace=19.25mm, - grip=5mm, - punchmargin=2mm, - punchpoints=15, - topspace=2pt, - bottomspace=1.5cm} -%%BODY%% -\end{addresses} -\end{document} diff --git a/Master/texmf-dist/source/latex/calendar/mkaddr.dtx b/Master/texmf-dist/source/latex/calendar/mkaddr.dtx deleted file mode 100644 index b88c19364be..00000000000 --- a/Master/texmf-dist/source/latex/calendar/mkaddr.dtx +++ /dev/null @@ -1,579 +0,0 @@ -%\iffalse -% -% file: mkaddr.dtx -% -% This file is distributed as-is, with no warranty whatsoever. -% Out of courtesy to others, please do not distribute the -% files contained in this file separately, but always -% together with this file and the documentation it contains. -% -%\fi -% -% \def\fileversion{3.1.1.1} -% \def\filedate{1998/01/17 18:15:06} -% -% \iffalse -% -%<*driver> -\documentclass{ltxdoc} -%\CodelineIndex -%\EnableCrossrefs -\begin{document} -\OnlyDescription % Comment out for implementation details -\DocInput{mkaddr.dtx} -\end{document} -% -%\fi -% -%\iffalse -% Source tree moved under RCS -% --------------------------- -% mkaddr.dtx,v -% Revision 3.1.1.1 1998/01/17 18:15:06 root -% Release code, checksum verified -% -% Revision 3.1 1998/01/17 17:13:48 root -% Release code -% -% Revision 2.3 1997/12/06 21:15:31 root -% *** empty log message *** -% -% Revision 2.2 1997/11/07 10:44:05 root -% Release code. -% -% Revision 2.1.1.1 1997/11/04 05:06:07 root -% Development branch -% -% Revision 2.1 1997/11/01 14:58:44 bennett -% Release code. -% -% Revision 1.1 1997/10/29 08:17:52 root -% Initial revision -% -%\fi -% -% -% \title{The \texttt{mkaddr} Tcl script\thanks{This file is version number -% \fileversion{}. It was last revised on -% \filedate{}.}} -% -% \author{Frank G. Bennett, Jr.} -% -% \maketitle -% -% \setcounter{StandardModuleDepth}{1} -% \DeleteShortVerb{\|} -% \MakeShortVerb{\"} -% -% \begin{abstract} -% \noindent The utilities in this bundle -% can be used together to generate address lists from -% a database in the format used by the marvellous BBDB database -% for Emacs. -% \end{abstract} -% -% \CheckSum{392} -% -% \section{Installation and Use} -% -% The script is designed for use on a Unix system (if -% you haven't already moved to Linux, you might consider -% joining the gathering). You will need to have Emacs installed -% on your system. You will also need the BBDB extensions, -% which produce and maintain a database file, ".bbdb", -% in your home directory. You should also have the -% AUC\TeX{} extensions to Emacs installed, for editing, compiling, -% previewing and printing \LaTeX{} documents. You will -% also need "dvips" and, if (like me) you don't have -% access to a PostScript printer, "ghostscript" --- or -% some other combination of printing gear for which -% page rotation is supported in the "graphics" bundle. Your -% \TeX{} system will need the files in the "graphics" -% bundle, and the "autofilo" package from the "calendar" -% bundle for making filofax page frames. -% -% In your \texttt{/etc} directory, -% you will need a format file or files. Each should -% have the name "addresses", followed by an extension. -% The extension(s) will be used by the first mandatory -% option to the script. On my system, I have two -% format files, "mkaddr.Frank" and "mkaddr.Mieko", -% which produce pages suitable for my own and my wife's -% diary, respectively. Each file is simply a \LaTeX{} -% document, with "%%BODY%%" where the list of addresses -% should be inserted. An example is given below. Note -% that you will need to edit the script to reflect the -% names of your format files. -% -% The ".bbdb" database is designed for use with email -% systems, adding entries for your correspondents on -% the fly as mail is received. To make it easier to add entries for -% people with whom you have not corresponded by email, you -% may want to add a suitable chunk of elisp to your -% ".emacs" file. A chunk of such code is given below. -% It sets your "f12" key to add a new entry, prompting -% for details. Edit to taste (especially note the -% "[M]" and "[F]"; you will want to change these. -% -% Flags for extracting data from the list should be -% put into the "Notes:" field, in square braces. -% -% Extract everything, edit and install the script, -% install the style, -% and install one or more format files. -% Run the script and read the instructions. On my system, -% the command "mkaddr Frank [AaBb] [F]" will make a -% file "mkaddr.tex" in the current directory, formatted -% as specified in the format file "\etc\mkaddr.Frank", -% containing all entries beginning with "A" or "a", -% or "B" or "b", and flagged with "[F]". Run the -% file through \LaTeX{} and "dvips", and you have an address list. -% -% -% \StopEventually{\PrintIndex} -% -% \section{Sample Format File} -% \begin{macrocode} -%<*format> -\documentclass{filoaddr} -\begin{document} -\begin{addresses}{% - topmargin=2cm, - rightmargin=3cm, - pageheight=172mm, - pagewidth=95mm, - columnsep=14pt, - punchcluster=3, - punchgroups=2, - interspace=51.25mm, - intraspace=19.25mm, - grip=5mm, - punchmargin=2mm, - punchpoints=15, - topspace=2pt, - bottomspace=1.5cm} -%%BODY%% -\end{addresses} -\end{document} -% -% \end{macrocode} -% -% \section{Elisp for \texttt{.emacs}} -% -% \begin{macrocode} -%<*elisp> -;; Essential add-on for BBDB -(defun bbdb-create-external () - "Prompt for and create a record. Hacked from bbdb-read-new-record." - (interactive) - (let ((name (bbdb-read-string "Name: ")) - (company (bbdb-read-string "Company: ")) - (net (bbdb-split (bbdb-read-string "Network Address: ") ",")) - (addrs - (let (L L-tail str addr) - (while - (not - (string= - "" - (setq str - (bbdb-read-string - "Address Description [RET when no more addrs]: ")))) - (setq addr (make-vector bbdb-address-length nil)) - (bbdb-record-edit-address addr str) - (if L - (progn (setcdr L-tail (cons addr nil)) - (setq L-tail (cdr L-tail))) - (setq L (cons addr nil) - L-tail L))) - L)) - (phones - (let (L L-tail str) - (while - (not - (string= - "" - (setq str - (bbdb-read-string - "Phone Location [RET when no more phones]: ")))) - (let* ((phonelist - (bbdb-error-retry - (bbdb-parse-phone-number - (read-string - "Phone: " - (and - bbdb-default-area-code - (format "(%03d) " bbdb-default-area-code)))))) - (phone (apply 'vector str - (if (= 3 (length phonelist)) - (nconc phonelist '(0)) - phonelist)))) - (if L - (progn (setcdr L-tail (cons phone nil)) - (setq L-tail (cdr L-tail))) - (setq L (cons phone nil) - L-tail L)))) - L)) - (notes (bbdb-read-string "Additional Comments: " "[M][F]"))) - (if (string= company "") (setq company nil)) - (if (string= name "") (setq name nil)) - (if (string= notes "") (setq notes nil)) - (bbdb-display-records - (list - (bbdb-create-internal name company net addrs phones notes))))) - -(global-set-key [f12] 'bbdb-create-external) -% -% \end{macrocode} -% -% \section{The Script} -% -% You must edit this file for your system. Search -% especially for instances of "Frank" and "Mieko". -% -% \begin{macrocode} -%<*script> -#!/usr/local/bin/tclsh -if {[catch "kanji defaultInputCode EUC" errormsg]}\ - {puts "Running $argv0 without Japanese support." - puts "For Japanese support, you need to use a Japanized" - puts "Tcl interpreter.\n"}\ - {} -# This script parses a database in the format used by -# the Insidious Big Brother Database for Emacs. It can -# be adapted to output LaTeX lists of contents and so forth. -set format [lindex $argv 0] -set range [lindex $argv 1] -set condition [lindex $argv 2] -set usage "Usage is: $argv0 \ \[\] \[\]\ -\n(Square braces are literal)\ -\n(\ is one of \"Mieko\" or \"Frank\")" -if {[string match $format "Mieko"]+\ - [string match $format "Frank"]==0}\ - {puts "$usage"; exit}\ - {} -if {[regexp {\[.*\]} $condition ignore]==0}\ - {puts "$usage"; exit}\ - {} -if {[regexp {\[.*\]} $range ignore]==0}\ - {puts "$usage"; exit}\ - {} -puts "Creating LaTeX2e file mkaddr.tex ..." -regexp {\[(.*)\]} $condition ignore condition -set condition "\\\[$condition\\\]" -set ifh [open "/home/bennett/.bbdb"] -set ofh [open "./mkaddr.tex" w+] -set counter 0 -set temp "" -# Let's grab the content of a header file -set header [open "/etc/mkaddr.$format" r] -while 1 { - if {[gets $header line] == -1} break - if {[string match $line "%%BODY%%"]} break - puts $ofh $line -} -while 1 { - if {[gets $ifh line] == -1} break - regsub -all {([ "])\\"} $line {\1``} line - regsub -all {\\"([^A-Za-z])} $line {''\1} line - regsub -all {\\n} $line { } line - regsub -all {([^\])%} $line {\1\\%} line - regsub -all {([^\])&} $line {\1\\\&} line -set fn nil -set ln nil -set aka nil -set co nil -set ph nil -set ad nil -set net nil -set op nil - regexp { -*(nil|\"[^"]*\")\ -+(nil|\"[^"]*\")\ -+(nil|\(\".*\"\))\ -+(nil|\"[^"]*\")\ -+(nil|\(\[.*\]\))\ -+(nil|\(\[.*\]\))\ -+(nil|\(\".*\"\))\ -+(nil|\(\(.*\)\)|\"[^"]*\")\ -+nil} $line ignore fn ln aka co ph ad net op -# -# Make lone first names into lone last names -if {[string match $ln "nil"]}\ - {set ln $fn - set fn nil}\ - {} -# Check that we're in the range specified -if {[regexp "\"$range" $ln ignore]}\ - {}\ - {if {[string match $ln nil]}\ - {if {[regexp "\"$range" $co ignore]}\ - {}\ - {continue}}\ - {continue}} -# -# Fish out the notes field so we can check whether this -# record matches the specified conditions -set tempone "" -set temptwo "" -regexp {\(notes \. \"([^"]*)\"|\"([^"]*)\"$} $op \ - ignore tempone temptwo -if {[string match $temptwo ""]} \ - {set notes $tempone} \ - {set notes $temptwo} -if {[string match "*$condition*" $notes]} {} {continue} -# -# Are all three names missing? If so, skip it. - if { [expr 3 == \ - [string match $fn "nil"]+\ - [string match $ln "nil"]+\ - [string match $co "nil"]] }\ - {}\ - { -# Each entry is put in a parbox to keep it on one page. -# The parbox opens with a vskip to make a little room -# at the top of the page and between entries. -puts $ofh "\\entry\{%" -# Are both the first and last name missing? If so, -# we skip that line. - set counter [expr $counter + 1] - if { [expr 2 == \ - [string match $fn "nil"]+\ - [string match $ln "nil"]] }\ - {}\ - {regexp {\"(.*)\"} $fn ignore fn - regexp {\"(.*)\"} $ln ignore ln -puts -nonewline "$fn $ln" - set ln " \\textbf\{$ln\}" - puts $ofh "$fn$ln\\\\"} -# Is the company name missing? If so, we'll -# skip that line. - if { [string match $co "nil"] }\ - {}\ - {regexp {\"(.*)\"} $co ignore co - puts $ofh "\\textbf\{$co\}\\\\" - puts -nonewline $co} -puts "" -# Spit out any telephone numbers for this entry. -if {[string match $ph nil]} {set ph ""} {} -regexp {\((\[.*\])\)} $ph ignore ph -while {[string match $ph ""] == 0} { - set temp "" - regexp {\[([^]]*)\](.*)} $ph ignore temp ph - regexp {\"([^"]*)\" *\"([^"]*)\"} $temp ignore temp number - puts -nonewline $ofh " \{\\small $number ($temp)\}" - if {[string match $ph ""] == 0}\ - {puts $ofh "\\\\"}\ - {if {[string match $ad nil]+[string match $net nil]==2}\ - {puts $ofh ""}\ - {puts $ofh "\\\\"}} - } -# Spit out any addresses for this entry. -if {[string match $ad nil]} {set ad ""} {} -while {[string match $ad ""] == 0} { - set temp "" - set lineone "" - set linetwo "" - set linethree "" - set city "" - set state "" - set zip "" - set bridge "" - regexp {\(\[([^]]*)\](.*)\)} $ad ignore ad temp - regexp {\"([^"]*)\"\ -+\"([^"]*)\"\ -+\"([^"]*)\"\ -+\"([^"]*)\"\ -+\"([^"]*)\"\ -+\"([^"]*)\"\ -+([0-9]*)} $ad ignore ad lineone linetwo linethree city state zip -if {$zip == 0} {set zip ""} {} -set comp [expr [string match $city ""]+[string match $state ""]] -if {$comp==2}\ - {}\ - {if {$comp==1}\ - {set bridge " " - set zip " $zip"}\ - {if {$comp==0}\ - {set bridge ", " - set zip " $zip"}\ - {}}} - puts $ofh " \\address\{$ad\}\{\%" - if {[string match $lineone ""]}\ - {puts $ofh "\\mygobble"}\ - {puts $ofh " $lineone"} - if {[string match $linetwo ""]}\ - {}\ - {puts $ofh " \\\\$linetwo"} - if {[string match $linethree ""]}\ - {}\ - {puts $ofh " \\\\$linethree"} - if {[string match "$city$state$zip" ""]}\ - {}\ - {puts $ofh " \\\\$city$bridge$state$zip"} - puts $ofh " \}" - set ad $temp - } -# Spit out any email addresses associated with this person -if {[string match $net nil]} {set net ""} {} -regexp {\((\".*\")\)} $net ignore net -while {[string match $net ""] == 0} { - set temp "" - regexp {\"([^"]*)\"(.*)} $net ignore net temp - puts -nonewline $ofh "\\url\{$net\}" - set net $temp - if {[string match $net ""] == 0} {puts $ofh "\\\\"} {puts $ofh ""} - } -puts $ofh "\}\n" -} -} -# Once everything's finished, we send along the footer -while 1 { - if {[gets $header line] == -1} break - puts $ofh $line -} -puts "Done." -exit -% -% \end{macrocode} -% -% \section{\LaTeX{} Style} -% We use this to simplify the format file. -% \begin{macrocode} -%<*style> -\NeedsTeXFormat{LaTeX2e}[1995/06/01] -\ProvidesClass{filoaddr} - [1998/01/17 18:15:06 3.1.1.1 Filofax address pages (Frank Bennett)] -\DeclareOption{fourcolumn}% - {\PassOptionsToPackage{\CurrentOption}{autofilo}} -\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} -\ProcessOptions -\LoadClass{article} -\RequirePackage{rotating} -\RequirePackage{url} -% \end{macrocode} -% Some variables. -% \begin{macrocode} -\def\mygobble#1{} -\newlength\templen -\newlength\mytemplength -\newlength\descheight -\newlength\myparwidth -\newlength\descwidth -\newlength\biggerwidth -\newlength\myentryheight -\newlength\myparheight -\newlength\mylinewidth -% \end{macrocode} -% Define a macro to format each entry. -% \begin{macrocode} -\def\entry#1{% -\vbox{% -\vskip2pt -\topline -\vskip 2pt -\parbox{\linewidth}{% -\raggedright% -\small#1} -\vskip 1pt -\bottomline}} -% \end{macrocode} -% The above macro requires a couple of line-building -% macros. -% \begin{macrocode} -\def\topline{% - \vbox to0pt{% - \hbox to\linewidth{% - \hskip-2.4pt% - \vrule width0.4pt height0pt depth7pt% - \vrule width\mylinewidth depth0.4pt height0pt% - \vrule width0.4pt height0pt depth7pt\hskip-2.4pt}% - \vskip-7pt}} -\def\bottomline{% - \vbox to0pt{% - \vskip-7pt - \hbox to\linewidth{% - \hskip-2.4pt% - \vrule width0.4pt height7pt depth0pt% - \vrule width\mylinewidth depth0.4pt height0pt% - \vrule width0.4pt height7pt depth0pt% - \hskip-2.4pt}}} -% \end{macrocode} -% Define a macro to format addresses. -% \begin{macrocode} -\def\address#1#2{% - \settoheight\myparheight{\vbox{% - \boxmaxdepth0pt% - \parbox{\myparwidth}{\raggedright #2}}}% - \settowidth\descwidth{\small\textbf{#1}}% - \ifnum\descwidth>\myparheight\biggerwidth\descwidth\else% - \biggerwidth\myparheight\fi% - \vbox{\vskip3pt% - \hbox to\linewidth{% - \hskip3pt% - \vbox to\biggerwidth{% - \vfil% - \hbox to\descheight{% - \begin{sideways}{\small\textbf{#1}}\end{sideways}% - \hfil}% - \vfil}% - \hskip2pt% - \vbox to\biggerwidth{% - \vfil% - \hbox to\myparwidth{% - \parbox{\myparwidth}{\raggedright #2}}% - \vfil}}}} -% \end{macrocode} -% Define an environment that creates frames and sets up -% variables for use in the macros we have just defined. -% \begin{macrocode} -\def\addresses#1{% - \autofilo{#1} - \settoheight\descheight{\vbox{\boxmaxdepth0pt{\small\textbf{Yy}}}} - \myparwidth\linewidth% - \advance\myparwidth by-\descheight\relax% - \advance\myparwidth by-5pt\relax% - \mylinewidth\linewidth - \advance\mylinewidth by4pt\relax} -\def\endaddresses{\endautofilo} -% -% \end{macrocode} -%\iffalse -% \begin{macrocode} -%<*installer> -\def\batchfile{mkaddr.ins} -\input docstrip.tex - -\keepsilent - -\preamble -\endpreamble - -\postamble -\endpostamble - -\def\WritePreamble#1{} -\def\WritePostamble#1{} - -\generate{\file{mkaddr.Frank}{\from{mkaddr.dtx}{format}} - \file{mkaddr.tcl}{\from{mkaddr.dtx}{script}} - \file{.emacs.for.bbdb}{\from{mkaddr.dtx}{elisp}} - \file{filoaddr.sty}{\from{mkaddr.dtx}{style}} - } - -\Msg{***********************************************************} -\Msg{*} -\Msg{* To finish the installation, you have to move the following} -\Msg{* file into you executable search path:} -\Msg{*} -\Msg{* \space\space mkaddr} -\Msg{*} -\Msg{* And you have to move the following file into the search} -\Msg{* used by TeX:} -\Msg{*} -\Msg{* \space\space filoaddr.sty} -\Msg{*} -\Msg{***********************************************************} -% -% \end{macrocode} -%\fi -% \Finale \PrintChanges diff --git a/Master/texmf-dist/source/latex/calendar/mkaddr.tcl b/Master/texmf-dist/source/latex/calendar/mkaddr.tcl deleted file mode 100644 index 05bd464c816..00000000000 --- a/Master/texmf-dist/source/latex/calendar/mkaddr.tcl +++ /dev/null @@ -1,201 +0,0 @@ -#!/usr/local/bin/tclsh -if {[catch "kanji defaultInputCode EUC" errormsg]}\ - {puts "Running $argv0 without Japanese support." - puts "For Japanese support, you need to use a Japanized" - puts "Tcl interpreter.\n"}\ - {} -# This script parses a database in the format used by -# the Insidious Big Brother Database for Emacs. It can -# be adapted to output LaTeX lists of contents and so forth. -set format [lindex $argv 0] -set range [lindex $argv 1] -set condition [lindex $argv 2] -set usage "Usage is: $argv0 \ \[\] \[\]\ -\n(Square braces are literal)\ -\n(\ is one of \"Mieko\" or \"Frank\")" -if {[string match $format "Mieko"]+\ - [string match $format "Frank"]==0}\ - {puts "$usage"; exit}\ - {} -if {[regexp {\[.*\]} $condition ignore]==0}\ - {puts "$usage"; exit}\ - {} -if {[regexp {\[.*\]} $range ignore]==0}\ - {puts "$usage"; exit}\ - {} -puts "Creating LaTeX2e file mkaddr.tex ..." -regexp {\[(.*)\]} $condition ignore condition -set condition "\\\[$condition\\\]" -set ifh [open "/home/bennett/.bbdb"] -set ofh [open "./mkaddr.tex" w+] -set counter 0 -set temp "" -# Let's grab the content of a header file -set header [open "/etc/mkaddr.$format" r] -while 1 { - if {[gets $header line] == -1} break - if {[string match $line "%%BODY%%"]} break - puts $ofh $line -} -while 1 { - if {[gets $ifh line] == -1} break - regsub -all {([ "])\\"} $line {\1``} line - regsub -all {\\"([^A-Za-z])} $line {''\1} line - regsub -all {\\n} $line { } line - regsub -all {([^\])%} $line {\1\\%} line - regsub -all {([^\])&} $line {\1\\\&} line -set fn nil -set ln nil -set aka nil -set co nil -set ph nil -set ad nil -set net nil -set op nil - regexp { -*(nil|\"[^"]*\")\ -+(nil|\"[^"]*\")\ -+(nil|\(\".*\"\))\ -+(nil|\"[^"]*\")\ -+(nil|\(\[.*\]\))\ -+(nil|\(\[.*\]\))\ -+(nil|\(\".*\"\))\ -+(nil|\(\(.*\)\)|\"[^"]*\")\ -+nil} $line ignore fn ln aka co ph ad net op -# -# Make lone first names into lone last names -if {[string match $ln "nil"]}\ - {set ln $fn - set fn nil}\ - {} -# Check that we're in the range specified -if {[regexp "\"$range" $ln ignore]}\ - {}\ - {if {[string match $ln nil]}\ - {if {[regexp "\"$range" $co ignore]}\ - {}\ - {continue}}\ - {continue}} -# -# Fish out the notes field so we can check whether this -# record matches the specified conditions -set tempone "" -set temptwo "" -regexp {\(notes \. \"([^"]*)\"|\"([^"]*)\"$} $op \ - ignore tempone temptwo -if {[string match $temptwo ""]} \ - {set notes $tempone} \ - {set notes $temptwo} -if {[string match "*$condition*" $notes]} {} {continue} -# -# Are all three names missing? If so, skip it. - if { [expr 3 == \ - [string match $fn "nil"]+\ - [string match $ln "nil"]+\ - [string match $co "nil"]] }\ - {}\ - { -# Each entry is put in a parbox to keep it on one page. -# The parbox opens with a vskip to make a little room -# at the top of the page and between entries. -puts $ofh "\\entry\{%" -# Are both the first and last name missing? If so, -# we skip that line. - set counter [expr $counter + 1] - if { [expr 2 == \ - [string match $fn "nil"]+\ - [string match $ln "nil"]] }\ - {}\ - {regexp {\"(.*)\"} $fn ignore fn - regexp {\"(.*)\"} $ln ignore ln -puts -nonewline "$fn $ln" - set ln " \\textbf\{$ln\}" - puts $ofh "$fn$ln\\\\"} -# Is the company name missing? If so, we'll -# skip that line. - if { [string match $co "nil"] }\ - {}\ - {regexp {\"(.*)\"} $co ignore co - puts $ofh "\\textbf\{$co\}\\\\" - puts -nonewline $co} -puts "" -# Spit out any telephone numbers for this entry. -if {[string match $ph nil]} {set ph ""} {} -regexp {\((\[.*\])\)} $ph ignore ph -while {[string match $ph ""] == 0} { - set temp "" - regexp {\[([^]]*)\](.*)} $ph ignore temp ph - regexp {\"([^"]*)\" *\"([^"]*)\"} $temp ignore temp number - puts -nonewline $ofh " \{\\small $number ($temp)\}" - if {[string match $ph ""] == 0}\ - {puts $ofh "\\\\"}\ - {if {[string match $ad nil]+[string match $net nil]==2}\ - {puts $ofh ""}\ - {puts $ofh "\\\\"}} - } -# Spit out any addresses for this entry. -if {[string match $ad nil]} {set ad ""} {} -while {[string match $ad ""] == 0} { - set temp "" - set lineone "" - set linetwo "" - set linethree "" - set city "" - set state "" - set zip "" - set bridge "" - regexp {\(\[([^]]*)\](.*)\)} $ad ignore ad temp - regexp {\"([^"]*)\"\ -+\"([^"]*)\"\ -+\"([^"]*)\"\ -+\"([^"]*)\"\ -+\"([^"]*)\"\ -+\"([^"]*)\"\ -+([0-9]*)} $ad ignore ad lineone linetwo linethree city state zip -if {$zip == 0} {set zip ""} {} -set comp [expr [string match $city ""]+[string match $state ""]] -if {$comp==2}\ - {}\ - {if {$comp==1}\ - {set bridge " " - set zip " $zip"}\ - {if {$comp==0}\ - {set bridge ", " - set zip " $zip"}\ - {}}} - puts $ofh " \\address\{$ad\}\{\%" - if {[string match $lineone ""]}\ - {puts $ofh "\\mygobble"}\ - {puts $ofh " $lineone"} - if {[string match $linetwo ""]}\ - {}\ - {puts $ofh " \\\\$linetwo"} - if {[string match $linethree ""]}\ - {}\ - {puts $ofh " \\\\$linethree"} - if {[string match "$city$state$zip" ""]}\ - {}\ - {puts $ofh " \\\\$city$bridge$state$zip"} - puts $ofh " \}" - set ad $temp - } -# Spit out any email addresses associated with this person -if {[string match $net nil]} {set net ""} {} -regexp {\((\".*\")\)} $net ignore net -while {[string match $net ""] == 0} { - set temp "" - regexp {\"([^"]*)\"(.*)} $net ignore net temp - puts -nonewline $ofh "\\url\{$net\}" - set net $temp - if {[string match $net ""] == 0} {puts $ofh "\\\\"} {puts $ofh ""} - } -puts $ofh "\}\n" -} -} -# Once everything's finished, we send along the footer -while 1 { - if {[gets $header line] == -1} break - puts $ofh $line -} -puts "Done." -exit diff --git a/Master/texmf-dist/source/latex/calendar/monthly.dtx b/Master/texmf-dist/source/latex/calendar/monthly.dtx deleted file mode 100644 index 22dbb1ec360..00000000000 --- a/Master/texmf-dist/source/latex/calendar/monthly.dtx +++ /dev/null @@ -1,565 +0,0 @@ -%\iffalse -% -% file: monthly.dtx -% Copyright (C) 1996-1997 by Frank Bennett. All rights reserved. -% -% IMPORTANT NOTICE: -% -% You are not allowed to change this file. You may however copy -% this file to a file with a different name and then change the -% copy if (a) you do not charge for the modified code, (b) you -% acknowledge the author of this file in the new file, if it -% is distributed to others, and (c) you attach these same -% conditions to the new file. -% -% You are not allowed to distribute this file alone. You are not -% allowed to take money for the distribution or use of this file -% (or a changed version) except for a nominal charge for copying -% etc. -% -% You are allowed to distribute this file under the condition that -% it is distributed with all of its contents, intact. -% -% For error reports, or offers to help make this a more powerful, -% friendlier, and altogether more thrilling package, please contact me on -% fb@soas.ac.uk. Better yet, make a contribution to -% my pension. Account details available on request. -% -%\fi -% -% \def\fileversion{3.1.1.1} -% \def\filedate{1998/01/17 18:15:10} -% -% \iffalse -% -%<*driver> -\documentclass{ltxdoc} -%\CodelineIndex -%\EnableCrossrefs -\begin{document} -\OnlyDescription % Comment out for implementation details -\DocInput{monthly.dtx} -\end{document} -% -%\fi -% -% \changes{v1.0}{1996/02/15}{Initial Version} -% \changes{v1.0}{1997/02/17}{Style now stable enough to -% justify recording changes. Added protection for definition -% of cal@entry@text. It is now possible to put a pound -% sign in front of entries. A change to the -% dates module allows entries on the same day each -% month. So we can now record standing charges against -% bank accounts. Oh joy.} -% \changes{v1.0}{1997/02/20}{First release version. -% Merged all code into the class file. -% Thanks to Robin Fairbairns for -% his help on the vertical sizing of -% tables, and to David Carlisle for pointing out -% the \texttt{protected@edef} command.} -% \changes{v1.1}{1997/03/01}{Modified stacking method -% for items to permit line wrapping. Code could be more -% concise and clear, but it runs well enough.} -% \changes{v1.1}{1997/03/01}{Adapted documentation from -% the Timetable package.} -% \changes{v1.2}{1997/05/12}{Page formatting is now handled -% through the \texttt{geometry} package. Landscaping can -% also handled through \texttt{geometry}, as suggested by -% Christian Horn. Faulty linespacing has now been fixed. -% Documentation has also been improved.} -% \changes{v1.3}{1997/05/19}{Support is now provided for Japanese -% as well as English calendars. There is no support for Imperial -% dates; users have to put these in by hand using the \texttt{title} -% option, if Imperial dates are required. The changes principally -% affected the Dates package.} -% \changes{v1.3}{1997/05/20}{Fixed bug in \texttt{firstday} option. -% Labels were not shifting with the calendar start day. -% Thanks due to Miroslav Novak for reporting this bug.} -% \changes{v1.3}{1997/05/20}{Added German support. Thanks due to -% Christian Horn.} -% \changes{v1.4}{1997/05/29}{Amended documentation, including -% a description of a proper set of options for handling page -% orientation and layout. Still need to do the coding, though.} -% \changes{v1.4}{1997/05/29}{Completed coding of orientation -% and layout options. Pretty simple, once the strategy was -% clear.} -% \changes{v1.4}{1997/05/30}{Added linklandscape option and -% added documentation on the new method of handling format -% and orientation.} -% \changes{v1.4}{1997/06/02}{Tidied up the way rotation and -% page layout options are reconciled.} -% \changes{v1.4}{1997/06/02}{Added \cs{noindent} to suppress -% indentation internally.} -% \changes{v1.4}{1997/06/03}{Generalized code for setting page -% sizes and adjusting typefaces. Also added automatic selection -% of abbreviated day names for narrow calendars. Ready for -% final release.} -% \changes{v1.4}{1997/06/06}{Major rearrangements were needed to -% fix problems with page formatting and rotation, reported by -% Christian Horn.} -% \changes{v1.5}{1997/06/09}{Further improvements to calendar -% sizing. An over-wide margin with B4 paper continues to cause -% problems. Could Japanese B4 paper be a different size?} -% \changes{v1.6}{1997/10/18}{New public release of all styles -% and modules incorporating global bug-fixes.} -% -%\iffalse -% Source tree moved under RCS -% --------------------------- -% monthly.dtx,v -% Revision 3.1.1.1 1998/01/17 18:15:10 root -% Release code, checksum verified -% -% Revision 3.1 1998/01/17 17:14:10 root -% Release code -% -% Revision 2.8 1998/01/17 15:36:01 root -% *** empty log message *** -% -% Revision 2.7 1998/01/17 15:34:30 root -% *** empty log message *** -% -% Revision 2.6 1998/01/17 11:31:00 root -% *** empty log message *** -% -% Revision 2.5 1998/01/16 17:05:53 root -% *** empty log message *** -% -% Revision 2.4 1998/01/16 09:14:25 root -% *** empty log message *** -% -% Revision 2.3 1998/01/16 08:04:38 root -% *** empty log message *** -% -% Revision 2.2 1997/11/07 10:44:05 root -% Release code. -% -% Revision 2.1.1.1 1997/11/04 05:06:07 root -% Development branch -% -% Revision 2.1 1997/11/01 14:56:45 bennett -% Release code. -% -% Revision 1.1 1997/10/29 08:17:52 root -% Initial revision -% -%\fi -% -% \title{User's Guide to the Monthly Calendar -% package\thanks{This file is version number -% \fileversion{}. It was last revised on -% \filedate{}.}} -% -% \author{Frank G. Bennett, Jr.} -% -% \maketitle -% -% \setcounter{StandardModuleDepth}{1} -% \DeleteShortVerb{\|} -% \MakeShortVerb{\"} -% -% \CheckSum{381} -% -% Please see the file \texttt{calguide.tex} for documentation -% on this calendar style. -% -% \StopEventually{\PrintIndex} -% -% \section{The Class File} -% -% \subsection{Preliminaries} -% -% Use \LaTeXe, and tell the user who we are. -% -% \begin{macrocode} -%<*class> -\NeedsTeXFormat{LaTeX2e}[1995/06/01] -\ProvidesPackage{monthly} - [1998/01/17 18:15:10 3.1.1.1 Monthly Calendar (Frank Bennett)] -% \end{macrocode} -% Define some more variables and switches for use in the body -% of the style. -% \begin{macrocode} -\newcount\mon@tempcount -\newcount\mon@firstday -\newtoks\mon@tempreg@b -\newlength\mon@tablewidth -\newtoks\mon@tempreg@a -\newlength{\mon@vh} -\newlength{\mon@hw} -\newlength{\mon@templen} -\newlength{\mon@heightlessboxes} -\newlength{\mon@widthlessboxes} -\newif\ifmon@explicittitle -\newif\ifmon@shortdays -\newlength{\mon@oddsidemargin} -\newlength{\mon@evensidemargin} -\newlength{\mon@topmargin} -\newif\ifmon@usedgeometry -\newlength{\mon@adjustment} -\newlength{\mon@textwidth} -\newlength{\mon@textheight} -% \end{macrocode} -% -% \subsection{Options} -% -% In common with all other packages in the Calendar -% bundle, we include options for all of the drivers supported -% by the color package and the graphics package, and -% include some code for declaring languages. -% -% \begin{macrocode} -\input calopts.cfg -\InputIfFileExists{dates.cfg}{}{} -\ProcessOptions -% \end{macrocode} -% -% \subsection{Option Postprocessing} -% -% Now that the options lists are available to us, -% we can start loading packages. The following packages -% are always loaded, and always with the same options. -% \begin{macrocode} -\RequirePackage{array}[1996/06/14] -\RequirePackage{calendar} -% \end{macrocode} -% Next, we set the dimensions -% of the table that will contain the calendar. -% \begin{macrocode} - \def\mon@settableheight{% - \setlength{\mon@vh}{\vsize}% - \addtolength{\mon@vh}{-0.001pt}}% - \def\mon@settablewidth{% - \setlength{\mon@tablewidth}{\hsize}}% -% \end{macrocode} -% Typefaces, and abbreviated day names versus full day names -% are selected by options. -% \begin{macrocode} - -% \end{macrocode} -% -% \subsection{Calendar Setup} -% -% Define some key values for use by the calendar environment. -% \begin{macrocode} -\define@key{opt}{title}{% - \def\mon@title{#1}\mon@explicittitletrue} -\define@key{opt}{labels}{% - \@storelabels#1,,{}} -\define@key{opt}{shortdays}{% - \mon@shortdaystrue} -\define@key{opt}{firstday}{% - \mon@firstday=#1} -\define@key{opt}{titletype}{\def\mon@titletype{#1}} -\define@key{opt}{daynametype}{\def\mon@nametype{#1}} -\define@key{opt}{datetype}{\def\mon@datetype{#1}} -\define@key{opt}{texttype}{\def\mon@texttype{#1}} -\mon@firstday=0% -% \end{macrocode} -% Define a utility macro for use by the \texttt{labels} key. -% This stores a comma-delimited list of labels to a single -% macro, which can then be used as a line in the table -% environment that makes up the calendar. -% \begin{macrocode} -\def\@storelabels{% - \def\mon@labeltext{}% - \@@storelabels} -\def\@@storelabels#1,#2#{% - \ifcat$#1$% - \mon@tempreg@a=\expandafter\expandafter\expandafter{% - \expandafter\@gobble\mon@labeltext}% - \protected@edef\mon@labeltext{\the\mon@tempreg@a}% - \let\next\@gobble% - \else% - \let\next\@@storelabels% - \mon@tempreg@a=\expandafter{\mon@labeltext}% - \protected@edef\mon@labeltext{\the\mon@tempreg@a}% - \fi% - \next#2{}} -% \end{macrocode} -% Define default values for the environment keys. The title is set -% inside the scope of \cs{newcalendar} -% \begin{macrocode} -\def\mon@theweekday{\ifmon@shortdays\theshortweekday\else% - \theweekday\fi}% -\def\mon@titletype{\large\bfseries}% -\def\mon@daynametype{\bfseries}% -\def\mon@datetype{\bfseries}% -\def\mon@texttype{\tiny}% -\mon@firstday=0% -% \end{macrocode} -% -% \subsection{Calendar Definition} -% -% The calendar definition itself consists of a single command -% and its associated arguments. -% \begin{macrocode} -\newcalendar% -% \end{macrocode} -% We give the environment a name. -% \begin{macrocode} -{monthly} -% \end{macrocode} -% We're producing DVI, so we use the standard -% macro for dropping text into the hopper. -% \begin{macrocode} -{\cal@insert} -% \end{macrocode} -% We start the calendar on Sunday. Season to taste. -% Use integers "0" through "6". -% \begin{macrocode} -{\mon@firstday} -% \end{macrocode} -% The length of a group is the length of the month. -% \begin{macrocode} -{\dates@days} -% \end{macrocode} -% The length of a subgroup is one week. -% \begin{macrocode} -{7} -% \end{macrocode} -% The delimiter to go before every item but the first -% is a table separator. -% \begin{macrocode} -{&} -% \end{macrocode} -% Increment the date counter with every item. -% \begin{macrocode} -{I} -% \end{macrocode} -% Define the header. The macro inserted here is defined -% below, in the block of code run after the date is read, -% and before the table is opened. -% \begin{macrocode} -{\mon@header} -% \end{macrocode} -% We define the end of the calendar. -% \begin{macrocode} -{\\\hline\end{tabular}} -% \end{macrocode} -% We define a way to open a new group. -% \begin{macrocode} -{\cal@footer\newpage\cal@header} -% \end{macrocode} -% We define the way to end a subgroup. In this case, -% we want to start a new line and lay down a rule. -% \begin{macrocode} -{\\\hline} -% \end{macrocode} -% We set up to require a month in the environment typed -% into the user's document. -% \begin{macrocode} -{\dates@requiremonthtrue} -% \end{macrocode} -% The next section runs after the calendar dates have been -% scanned from the environment, but before the table is -% opened. -% \textit{Whatever month was (last) indicated in the environment -% section of the calendar, we want to start on the first -% day, and make a calendar for one month only. We accomplish -% this by adjusting the human-side date, and pushing the -% result through to the long date with \texttt{dates@fix}. -% We then readjust the human side data with \texttt{caldate}. -% This puts us on the first day of the month, and we -% set the counter \texttt{cal@range@start} to this long date.} -% -% \begin{macrocode} -{\dates@day=1% - \dates@fix% - \caldate% - \cal@range@start\dates@date% -% \end{macrocode} -% \textit{We tell the user where we're starting.} -% \begin{macrocode} - \message{^^JStart: \theshortweekday\space% - \theday\space\theshortmonth\space\theyear}% -% \end{macrocode} -% \textit{Then we jump to the last day of the last -% month in the range given by the user, and -% do the same readjustment with \texttt{dates@fix} and -% \texttt{caldate}. We set the end of the range to this -% value.} -% \begin{macrocode} - \dates@date\cal@range@end% - \caldate% - \dates@day\dates@days% - \dates@fix% - \caldate% - \cal@range@end\dates@date% -% \end{macrocode} -% \textit{We let the user know where we plan to stop.} -% \begin{macrocode} - \message{^^JEnd: \theshortweekday\space% - \theday\space\theshortmonth\space\theyear}% -% \end{macrocode} -% \textit{We jump back to the starting date and reset the -% human-side values.} -% \begin{macrocode} - \dates@date=\cal@range@start% - \caldate% -% \end{macrocode} -% \textit{Now that the date adjustments have been taken care of, -% it's time to figure out the size of the calendar. We start by -% getting some initial sizes from the height and width of the -% text area of the current page.} -% \begin{macrocode} - \mon@settablewidth% - \mon@settableheight% -% \end{macrocode} -% \textit{We add \cs{extrarowheight} to prim up the headings a little. -% We will still get text touching lines with \cs{Huge} typefaces, -% but this is better than nothing.} -% \begin{macrocode} -% \setlength{\extrarowheight}{3pt}% -% \end{macrocode} -% \textit{Fetch the full height of the title to heightlessboxes.} -% \begin{macrocode} - \settoheight{\mon@templen}{\vbox{\boxmaxdepth=0pt% - \begin{tabular}{c}% - \mon@titletype% - \the\dates@monthname% - \end{tabular}}}% - \setlength{\mon@heightlessboxes}{\mon@templen}% -% \end{macrocode} -% \textit{Fetch the full height of the day labels to heightlessboxes.} -% \begin{macrocode} - \settoheight{\mon@templen}{\vbox{\boxmaxdepth=0pt% - \begin{tabular}{c}% - \mon@daynametype% - Monday% - \end{tabular}}}% - \addtolength{\mon@heightlessboxes}{\mon@templen}% -% \end{macrocode} -% \textit{Add 10 $\times$ the rule width and the space between double-rules -% to heightlessboxes.} -% \begin{macrocode} - \addtolength{\mon@heightlessboxes}{10\arrayrulewidth}% - \addtolength{\mon@heightlessboxes}{\doublerulesep}% -% \end{macrocode} -% \textit{Finally, we make some adjustments that I arrived -% at by trial and error; I have no idea why these particular -% measurements work. If anyone wants to improve this, be my -% guest. I have run out of patience on this one.} -% \begin{macrocode} - \addtolength{\mon@heightlessboxes}{\mon@adjustment}% - \addtolength{\mon@heightlessboxes}{2pt}% -% \end{macrocode} -% \textit{The height of the boxes is the full width of -% the text minus heightlessboxes. Divide -% by 6 for the height of an individual box.} -% \begin{macrocode} - \addtolength{\mon@vh}{-\mon@heightlessboxes}% - \divide\mon@vh by6% -% \end{macrocode} -% \textit{The width is simpler. We have 8 rules, and -% a total of 14 gaps between text and rules. -% Add it all up, subtract the total from textheight, -% divide by 7 and Thunderbirds are Go.} -% \begin{macrocode} - \setlength{\mon@hw}{\mon@tablewidth}% - \setlength{\mon@widthlessboxes}{8\arrayrulewidth}% - \addtolength{\mon@hw}{-\mon@widthlessboxes}% - \addtolength{\mon@hw}{-14\tabcolsep}% - \divide\mon@hw by7\relax% -% \end{macrocode} -% \textit{Well, almost go. We need to build the header macro. -% Our first step is to create the default labels, -% if the user has not specified any.} -% \begin{macrocode} - \@ifundefined{mon@labeltext}{% - \def\mon@defaultlabels{}% - \mon@tempcount=1% - \advance\dates@date by-\dates@weekd% - \advance\dates@date by\mon@firstday% - \caldate% - \loop% - \mon@tempreg@a=\expandafter{\mon@defaultlabels}% - \edef\mon@defaultlabels{\the\mon@tempreg@a\mon@theweekday,}% - \ifnum\mon@tempcount<7% - \advance\dates@date by1% - \caldate% - \advance\mon@tempcount by 1\relax% - \repeat% - \expandafter\@storelabels\mon@defaultlabels,,{}% - \dates@date\cal@range@start% - \caldate}% - {}% -% \end{macrocode} -% \textit{Then we define the header itself.} -% \begin{macrocode} - \def\mon@settitle{\ifmon@explicittitle\else% - \def\mon@title{\themonth\space\theyear}\fi}% - \protected@edef\mon@header{% - \noexpand\mon@settitle% - \noexpand\begin{tabular}{|c|c|c|c|c|c|c|}% - \noexpand\hline% - \noexpand\multicolumn{7}{|c|}{\mon@titletype% - \noexpand\mon@title}\noexpand\\% - \noexpand\hline\noexpand\hline% - \mon@labeltext\noexpand\\% - \noexpand\hline}}% -% \end{macrocode} -% Events are delimited by \cs{newline}. -% \begin{macrocode} -{\par}% -% \end{macrocode} -% The next argument is dropped on DVI for each item. -% We use it here to fetch the text of appointments and -% events to the standard list macros, using the -% standard text-fetching commands. Each generates a -% stack delimited by the phrase that was set above. -% \begin{macrocode} -{\cal@get@appointments\cal@get@events}% -% \end{macrocode} -% This sets \cs{cal@entry@text}. It is executed for every -% event or appointment in the database that applies -% to a given item. We differentiate between whole-day events, -% pinpointed events and ranged events. -% \begin{macrocode} -{\relax% - \ifnum\dates@time@start>0\relax% - \ifnum\dates@time@start=\dates@time@end% - \protected@edef\cal@entry@text{% - \thetimestart\space% - \cal@textcolor{\calcolor}{\theshorttext}}% - \else% - \protected@edef\cal@entry@text{% - \thetimestart--\thetimeend\space% - \cal@textcolor{\calcolor}{\theshorttext}}% - \fi% - \else% - \protected@edef\cal@entry@text{% - \cal@textcolor{\calcolor}{\theshorttext}}% - \fi}% -% \end{macrocode} -% Finally we tell the style how to create the -% text for each item (which is an individual date -% box in this case). We use \texttt{vbox} to make -% the height static. -% Thanks are due to Christian Horn for forwarding a -% handwritten sample of a tabular environment, demonstrating -% that an error in the linespacing was \textit{not} produced -% by \LaTeXe's internals. In the end, the problem turned out -% to be due to grouping; \LaTeX{}, I now remember, sets -% linespacing according to the typeface in force at the end -% of a paragraph or parbox. -% \begin{macrocode} -{\vbox to\mon@vh{% - \vskip\medskipamount% - \hbox{\parbox{\mon@hw}{\mon@datetype\theday}}% - \ifcat$\theevents$% - \else% - \vskip\smallskipamount% - \hbox{\parbox{\mon@hw}{\raggedright% - \mon@texttype\theevents}}% - \fi% - \ifcat$\theappointments$% - \else% - \vskip\smallskipamount% - \hbox{\parbox{\mon@hw}{\raggedright% - \mon@texttype\theappointments}}% - \fi% - \vfil}}% -% -% \end{macrocode} -% \Finale \PrintChanges diff --git a/Master/texmf-dist/source/latex/calendar/overword.dtx b/Master/texmf-dist/source/latex/calendar/overword.dtx deleted file mode 100644 index b92b610a2f8..00000000000 --- a/Master/texmf-dist/source/latex/calendar/overword.dtx +++ /dev/null @@ -1,344 +0,0 @@ -%\iffalse -% -% File overword.dtx -% Copyright (C) 1996, 1997 by Frank Bennett. All rights reserved. -% -% IMPORTANT NOTICE: -% -% You are not allowed to change this file. You may however copy -% this file to a file with a different name and then change the -% copy if (a) you do not charge for the modified code, (b) you -% acknowledge the author(s) in the new file, if it -% is distributed to others, and (c) you attach these same -% conditions to the new file. -% -% You are not allowed to distribute this file alone. You are not -% allowed to take money for the distribution or use of this file -% (or a changed version) except for a nominal charge for copying -% etc. -% -% You are allowed to distribute this file under the condition that -% it is distributed with all of its contents, intact. -% -% For error reports, or offers to help make this a more powerful, -% friendlier, and altogether more thrilling package, please contact me on -% fb@soas.ac.uk -% -% -% \end{macrocode} -% \end{macro} -%\iffalse -% \section{Demo file} -% -% \begin{macrocode} -%<*demo> -\documentclass{minimal} -\usepackage{overword} - -\begin{document} - -\makeatletter - -\newtoks\registerone -\newtoks\registertwo -\def\list{} - -\def\stashonright{% - \registerone=\expandafter{\@overword} - \registertwo=\expandafter{\list} - \edef\list{% - \noexpand\\{\the\registerone}\the\registertwo}} - -\def\showlist{% - \def\\##1{\message{##1}} - \message{\space\space -> } - \list - \message{^^J}} - -\def\readlistagain{% - \def\\##1{ ##1 } - \edef\listtext{\list} -\message{\listtext} - \expandafter\store\listtext\enditall} - -\def\storeandshow{% - \@ifoverword\enditall - {\message{Ran into \string\enditall!^^J} - \stashonright - \expandafter\showlist\@gobble} - {\stashonright - \storeandshow} - {\message{Ran into \string\end!^^J} - \stashonright - \showlist}} - -\message{^^J----------------------------------------------------------------------} -\message{This file demonstrates the operation of the Overword package for LaTeX} -\message{Ordinarily, TeX reads and inteprets printable characters one by one.} -\message{With this package, it is possible to read input word by word. This} -\message{capability makes it possible to design user interfaces which are more} -\message{intuitive to users. The Calendar bundle is one example of such an} -\message{interface. Below, a phrase is printed to the terminal twice, once in} -\message{reverse word order, and once in re-reversed (normal) word order. Each} -\message{message is triggered by a control sequence found just beyond the last} -\message{word read --- \string\enditall in the first instance, \string\end\space in the second.} -\message{This file produces no printed output.} -\message{^^J----------------------------------------------------------------------} - -\storeandshow This is a demonstration of the overword package \enditall - -\let\listclone\list -\def\list{} -\def\\#1{ #1 } -\edef\listtext{\listclone} -\expandafter\storeandshow\listtext - -\end{document} -% -% \end{macrocode} -%\fi -% \Finale \PrintChanges diff --git a/Master/texmf-dist/source/latex/calendar/plotutil.dtx b/Master/texmf-dist/source/latex/calendar/plotutil.dtx deleted file mode 100644 index 11fa3fef28b..00000000000 --- a/Master/texmf-dist/source/latex/calendar/plotutil.dtx +++ /dev/null @@ -1,78 +0,0 @@ -%\iffalse -% -% This is a set of utilities that I have used in London -% to print large files to an HP 6xx series plotter. -% At least the way I use it, this plotter handles the top -% margin in a bizzare way that requires some preprocessing -% to get things into a predictable location on the physical -% page. I don't provide any documentation here, because the -% chances are good that my problems were one-off problems. -% But it you, too, have trouble with HP 6xx series plotters -% and dvips, I will be happy to explain how this stuff works -% together (if I can remember). -% -%\fi -% -% \iffalse -%<*driver> -\documentclass{ltxdoc} -%\CodelineIndex -%\EnableCrossrefs -\begin{document} -\OnlyDescription % Comment out for implementation details -\DocInput{plotutil.dtx} -\end{document} -% -% \fi -% -% \CheckSum{77} -% -%\StopEventually{\PrintIndex} -% -% \begin{macrocode} -%<*script> -#!/bin/bash -JOBNAME=`basename ${*##* } .dvi` -if [ $# -gt 1 ] ; then - OPTIONS=${*% *} -else - OPTIONS="" -fi -echo ------------------------------------------------------------------- -echo : Calculating offset value -HEIGHT=`cat ./$JOBNAME.hps | sed -e s/.*PageSize\ \\\[[0-9]*\ \\\\\([0-9]*\\\\\)\\\].*/\\\1/` -OFFSET=795 -echo : Offset base figure is ${OFFSET}pt -PT_OFFSET=`echo $OFFSET $HEIGHT-p|dc|sed s/-/_/` -echo : Required offset in points is ${PT_OFFSET}pt -CM_OFFSET=`echo 2k$PT_OFFSET 72.27/2.54*p|dc` -echo : Setting offset to ${CM_OFFSET}cm -echo : ... -echo : God only knows why this process is necessary. -echo : \$\#\&\^\"\=\$\%\@ -echo ------------------------------------------------------------------- -echo dvips $OPTIONS -P372hpplotq -O 2.1cm,${CM_OFFSET}cm -h ./$JOBNAME.hps -o $JOBNAME.ps $JOBNAME.dvi -dvips $OPTIONS -P372hpplotq -O 2.1cm,${CM_OFFSET}cm -h ./$JOBNAME.hps -o $JOBNAME.ps $JOBNAME.dvi -echo Wrote PostScript\(TM\) output to $JOBNAME.ps \(I think\). -% -% \end{macrocode} -% -% \begin{macrocode} -%<*style> -\NeedsTeXFormat{LaTeX2e}[1995/06/01] -\ProvidesPackage{hpplotsz} - [1997/11/07 Custom page sizes with HP 6xx series plotters (Frank Bennett)] -\newlength\hps@templen -\newwrite\hps@pagesizeheader -\newcount\hps@orientation -\def\hps@@strip#1.#2\end{#1} -\def\hps@strip#1{\expandafter\hps@@strip\the#1\end} -\def\sethpplotsize{% - \ifnum\hsize>\vsize\hps@orientation=3\else\hps@orientation=0\fi - \immediate\openout\hps@pagesizeheader=./\jobname.hps - \immediate\write\hps@pagesizeheader{% - <>setpagedevice} - \immediate\closeout\hps@pagesizeheader} -% -% \end{macrocode} -% \Finale \PrintChanges diff --git a/Master/texmf-dist/source/latex/calendar/timesht.dtx b/Master/texmf-dist/source/latex/calendar/timesht.dtx deleted file mode 100644 index 407b20ab454..00000000000 --- a/Master/texmf-dist/source/latex/calendar/timesht.dtx +++ /dev/null @@ -1,688 +0,0 @@ -%\iffalse -% -% file: timesht.dtx -% Copyright (C) 1996-1997 by Frank Bennett. All rights reserved. -% -% IMPORTANT NOTICE: -% -% You are not allowed to change this file. You may however copy -% this file to a file with a different name and then change the -% copy if (a) you do not charge for the modified code, (b) you -% acknowledge the author of this file in the new file, if it -% is distributed to others, and (c) you attach these same -% conditions to the new file. -% -% You are not allowed to distribute this file alone. You are not -% allowed to take money for the distribution or use of this file -% (or a changed version) except for a nominal charge for copying -% etc. -% -% You are allowed to distribute this file under the condition that -% it is distributed with all of its contents, intact. -% -% For error reports, or offers to help make this a more powerful, -% friendlier, and altogether more thrilling package, please contact me on -% fb@soas.ac.uk. Better yet, make a contribution to -% my pension. Account details available on request. -% -%\fi -% -% \def\fileversion{3.1.1.1} -% \def\filedate{1998/01/17 18:15:23} -% -% \iffalse -% -%<*driver> -\documentclass{ltxdoc} -%\CodelineIndex -%\EnableCrossrefs -\begin{document} -\OnlyDescription % Comment out for implementation details -\DocInput{timesht.dtx} -\end{document} -% -%\fi -% -% \changes{v1.1}{1997/02/26}{Redraft of original Timesheets -% package, using Timetable package as a model.} -% \changes{v1.2}{1997/10/18}{New public release of all styles -% and modules incorporating global bug-fixes.} -% -%\iffalse -% Source tree moved under RCS -% --------------------------- -% timesht.dtx,v -% Revision 3.1.1.1 1998/01/17 18:15:23 root -% Release code, checksum verified -% -% Revision 3.1 1998/01/17 17:15:05 root -% Release code -% -% Revision 2.15 1998/01/17 11:54:43 root -% *** empty log message *** -% -% Revision 2.14 1998/01/17 11:48:41 root -% *** empty log message *** -% -% Revision 2.13 1998/01/17 10:27:17 root -% *** empty log message *** -% -% Revision 2.12 1998/01/17 10:25:29 root -% *** empty log message *** -% -% Revision 2.11 1998/01/17 04:42:57 root -% *** empty log message *** -% -% Revision 2.10 1998/01/16 20:42:51 root -% *** empty log message *** -% -% Revision 2.9 1998/01/16 17:10:16 root -% *** empty log message *** -% -% Revision 2.8 1997/12/06 09:04:25 root -% Finished elimination of landscape code, eliminated superfluous brace. -% -% Revision 2.7 1997/12/06 09:01:41 root -% Initialized tms@blocklist to empty macro. -% -% Revision 2.6 1997/12/06 08:54:55 root -% Changed docstrip label from class to package. -% -% Revision 2.5 1997/12/06 08:32:41 root -% Disable paragraph indenting inside calendar environment. -% -% Revision 2.4 1997/12/06 08:27:43 root -% Converted to style from class. -% -% Revision 2.3 1997/12/04 19:32:22 bennett -% Added typeface variables for appointments having only a -% single time. -% -% Revision 2.2 1997/11/07 10:44:05 root -% Release code. -% -% Revision 2.1.1.3 1997/11/05 06:21:56 root -% Superfluous brace in new definition. -% -% Revision 2.1.1.2 1997/11/05 06:17:14 root -% Hooked up title parameter following report fro, -% -% from Edward Czilli. -% -% Revision 2.1.1.1 1997/11/04 05:06:07 root -% Development branch -% -% Revision 2.1 1997/11/01 14:47:16 bennett -% Release code. -% -% Revision 1.7 1997/10/30 20:25:58 root -% Moved \extrarowheight so that it is only invoked once, when -% the table is first opened. -% -% Revision 1.6 1997/10/30 13:46:59 root -% Moved reset of counter, in the code for the group-closing -% footer, above the closing \\\hline to avoid leftovers on -% the following line. -% -% Revision 1.5 1997/10/30 12:38:13 root -% Changed use of \@newline to \par, to avoid weird errors arising -% from LaTeX for reasons I do not fully understand. -% -% Revision 1.4 1997/10/30 12:31:50 root -% Put \relax after the option text setting blockminutes. -% -% Revision 1.3 1997/10/29 20:13:36 bennett -% *** empty log message *** -% -% Revision 1.2 1997/10/29 17:18:39 root -% Added reset of block counter on end of subgroup, to make -% underlining between blocks position correctly on second -% and subsequent pages. -% -% Revision 1.1 1997/10/29 08:17:52 root -% Initial revision -% -%\fi -% -% \title{User's Guide to the Timesheet -% package\thanks{This file is version number -% \fileversion{}. It was last revised on -% \filedate{}.}} -% -% \author{Frank G. Bennett, Jr.} -% -% \maketitle -% -% \setcounter{StandardModuleDepth}{1} -% \DeleteShortVerb{\|} -% \MakeShortVerb{\"} -% -% \CheckSum{598} -% -% \section{Note} -% -% Documentation for this package is contained in the file -% \texttt{calguide.tex}. -% -%\StopEventually{\PrintIndex} -% -% \section{The Class File} -% -% Preliminaries. -% -% \begin{macrocode} -%<*package> -\NeedsTeXFormat{LaTeX2e}[1995/06/01] -\ProvidesPackage{timesht} - [1998/01/17 18:15:23 3.1.1.1 Timesheet (Frank Bennett)] -% \end{macrocode} -% -% Initialize all registers and if statements to be -% used by this class. -% -% \begin{macrocode} -\newif\iftms@usetimes -\tms@usetimestrue -\newlength\tms@tablewidth -\newlength{\tms@hw} -\newlength{\tms@templen} -\newlength{\tms@widthlessboxes} -\newlength{\tms@timetextlen} -\newtoks\tms@tempreg@a -\newtoks\tms@tempreg@b -\newcount\tms@tempcount -\newcount\tms@start -\newcount\tms@end -\newcount\tms@minuteblocks -\newcount\tms@boxes -\newcount\tms@days -\newcount\tms@blocks -\newcount\tms@time@start -\newcount\tms@time@end -\newcount\tms@hours@start -\newcount\tms@minutes@start -\newcount\tms@hours@end -\newcount\tms@minutes@end -\newcount\tms@minute@base -\newlength{\tms@numlen} -\newcount\tms@rightprop -\newcount\tms@leftprop -\newcount\tms@groupblocks -\newcount\tms@groupblockcount -\tms@groupblockcount=1% -\newlength{\tms@colonlen} -\newlength{\tms@dashlen} -\newlength{\tms@leftlen} -\newlength{\tms@rightlen} -\tms@leftprop=1% -\tms@rightprop=1% -% \end{macrocode} -% Language setup. -% \begin{macrocode} -\input calopts.cfg -\InputIfFileExists{dates.cfg}{}{} -\ProcessOptions -% \end{macrocode} -% -% Load a bunch of useful packages. -% -% \begin{macrocode} -\RequirePackage{longtable} -\RequirePackage{array}[1996/06/14] -\RequirePackage{calendar} -\RequirePackage{keyval} -% \end{macrocode} -% -% Turn off the listing of days in the Calendar style. -% It only works well for monthly calendars. -% -% \begin{macrocode} -\tracingdates=0% -% \end{macrocode} -% -% Set up a list of options for the Calendar style engine -% to use with the "keyval" parser. -% -% \begin{macrocode} -\define@key{opt}{leftspace}{\setlength{\LTleft}{#1}} -\define@key{opt}{rightspace}{\setlength{\LTright}{#1}} -\define@key{opt}{width}{\setlength{\tms@tablewidth}{#1}} -\define@key{opt}{title}{\def\tms@title{#1}} -\define@key{opt}{start}{\@settime\tms@start#1{}} -\define@key{opt}{end}{\@settime\tms@end#1{}} -\define@key{opt}{blockminutes}{\tms@minuteblocks=#1\relax} -\define@key{opt}{blockgroup}{\tms@groupblocks=#1\relax} -\define@key{opt}{leftright}{\tms@extractprops#1{}} -\define@key{opt}{titletype}{\def\tms@titletype##1{{#1{##1}}}} -\define@key{opt}{labeltype}{\def\tms@labeltype##1{{#1{##1}}}} -\define@key{opt}{timelabeltype}{\def\tms@timelabeltype##1{{#1{##1}}}} -\define@key{opt}{timeitemtype}{\def\tms@timeitemtype##1{{#1{##1}}}} -\define@key{opt}{itemtype}{\def\tms@itemtype##1{{#1{##1}}}} -\define@key{opt}{notimes}[f]{\tms@usetimesfalse} -% \end{macrocode} -% -% Before setting default values, -% provide a set of parsing macros for use in scanning -% some of the options fed to the "keyval" parser. -% Doing this here allows us to specify the defaults in a -% human readable syntax. -% -% \begin{macrocode} -\def\tms@extractprops#1/#2#{% - \tms@leftprop=#1\tms@rightprop=#2} -\def\@settime#1#2:#3#{% - \tms@tempcount=#2% - \multiply\tms@tempcount by60% - \advance\tms@tempcount by#3% - \global#1\tms@tempcount} -\def\@splitblocks#1-#2#{% - \def\@blockstarttext{#1}% - \def\@blockendtext{#2}} -\def\@setblocks#1,#2#{% - \ifcat$#1$% - \let\next\@gobble% - \else% - \let\next\@setblocks% - \global\advance\tms@blocks by 1% - \@splitblocks#1{}% - \expandafter\@settime% - \expandafter\tms@time@start\@blockstarttext{}% - \expandafter\@settime% - \expandafter\tms@time@end\@blockendtext{}% - \let\tms@tempmac\tms@blocklist% - \edef\tms@blocklist{% - \tms@tempmac\the\tms@time@start-\the\tms@time@end,}% - \fi% - \next#2{}} -\def\tms@chopblock#1-#2,#3#{% - \global\tms@time@start=#1% - \global\tms@time@end=#2% - \gdef\tms@blocklist{#3}}% -\def\tms@labellist{}% -\def\@extractlabels#1,#2#{% - \ifcat$#1$% - \tms@tempreg@a=\expandafter{\tms@labellist}% - \edef\tms@label##1{% - \noexpand\ifcase##1\the\tms@tempreg@a\noexpand\fi}% - \let\next\@gobble% - \else% - \let\next\@extractlabels% - \let\tms@tempmac\tms@labellist% - \expandafter\def% - \expandafter\tms@labellist% - \expandafter{% - \tms@tempmac\or #1}% - \fi% - \next#2{}} -% \end{macrocode} -% -% Set up default values for the "keyval" options. -% -% \begin{macrocode} -\def\tms@titletype#1{{\Large\bfseries#1}}% -\def\tms@labeltype#1{{\large\bfseries#1}}% -\def\tms@timelabeltype#1{{\bfseries#1}} -\def\tms@timeitemtype#1{{\large#1}} -\def\tms@itemtype#1{{\small#1}} -\def\tms@title{\themonth\space\theday,\space\theyear} -\@settime\tms@start8:00{} -\@settime\tms@end17:00{} -\tms@minuteblocks=15\relax% -\def\tms@blocklist{}% -\def\tms@label#1{\themonth\space\theday}% -\tms@groupblocks=4\relax% -\tms@extractprops4/5{} -% \end{macrocode} -% -% -% Define the calendar. As for all Calendar styles, -% this is done using "\newcalendar" with 17 arguments. -% -% \begin{macrocode} -\newcalendar% -% \end{macrocode} -% -% Name the new calendar environment. -% -% \begin{macrocode} -{timesheet} -% \end{macrocode} -% -% Select an off-the-shelf macro for printing -% that will dump printable -% items on DVI. -% -% \begin{macrocode} -{\cal@insert} -% \end{macrocode} -% -% Be indifferent to the starting day of the week. -% ("0" through "6" specify Sunday through Saturday). -% -% \begin{macrocode} -{7} -% \end{macrocode} -% -% Set the number of items in a group (time blocks) -% -% \begin{macrocode} -{\tms@blocks} -% \end{macrocode} -% -% Set the number of items in a subgroup (one block). -% -% \begin{macrocode} -{1} -% \end{macrocode} -% -% Use ampersand table separator before all items -% but the first in a subgroup (never used, b/c only one item). -% -% \begin{macrocode} -{&} -% \end{macrocode} -% -% Increment the date at the end of every group, and sneak -% in a post-increment recalculation for the time labels. -% -% \begin{macrocode} -{G\tms@gettimes} -% \end{macrocode} -% -% Specify the header. This has to be built on the fly -% in the Timesheet style, to give control over width -% to the user. So just give the -% name of the macro here. -% \begin{macrocode} -{\tms@header} -% \end{macrocode} -% -% Specify the tail of the table. -% -% \begin{macrocode} -{&% - \global\tms@groupblockcount=1\relax% - \\\hline% - \end{longtable}}% -% \end{macrocode} -% -% How to end a group. -% -% \begin{macrocode} -{\cal@footer\newpage\cal@header} -% \end{macrocode} -% -% Specify how to break the end of a subgroup. -% In this case, we end the table line and add -% a time block that must be generated on the fly. -% -% The new "\\*" form in "longtable" seems to have no -% impact here. Rats. -% -% \begin{macrocode} -{&% - \ifnum\tms@groupblockcount<\tms@groupblocks% - \\*\cline{1-4}% - \global\advance\tms@groupblockcount by1\relax% - \else% - \\\hline% - \global\tms@groupblockcount=1\relax% - \fi% - \tms@timecoltext} -% \end{macrocode} -% Next is code to be run before the calendar options -% are digested and the controlling date is read. -% -% \textit{Set a couple of Calendar toggles before -% scanning the date contained in the "timesheet" -% environment.} -% \begin{macrocode} -{\dates@requiremonthtrue\dates@requiredaytrue -% \end{macrocode} -% \textit{Set default width of table.} -% \begin{macrocode} - \setlength{\tms@tablewidth}{\textwidth} -% \end{macrocode} -% \textit{Initialize \cs{tms@blocklist} to \texttt{nil}.} -% \begin{macrocode} - \def\tms@blocklist{}} -% \end{macrocode} -% -% "\cal@range@start", "\cal@range@end" and "\dates@date" -% are all set internally, so we just provide information -% here. Remember to adjust human-readable dates with -% "\caldate" when changing "\dates@date", and -% long dates with "\dates@fix" when adjusting -% the human readable stuff. -% -% \begin{macrocode} -{\message{^^JStart: \theshortweekday\space% - \theday\space\theshortmonth\space\theyear}% - \dates@date\cal@range@end% - \caldate% - \message{^^JEnd: \theshortweekday\space% - \theday\space\theshortmonth\space\theyear}% - \dates@date\cal@range@start% - \caldate% -% \end{macrocode} -% -% \textit{Set the number of blocks and the number of blocks in a group.} -% -% \begin{macrocode} -\relax% -\tms@blocks\tms@end% -\advance\tms@blocks by-\tms@start% -\divide\tms@blocks by\tms@minuteblocks% -% \end{macrocode} -% -% \textit{Prepare an algorithm to derive the start and -% end time of a block from the value of the -% counter \texttt{cal@group@count} and set values in -% \texttt{tms@time@start}, \texttt{tms@time@end} -% and \texttt{tms@timecoltext}.} -% -% \begin{macrocode} - \def\tms@gettimes{% - \ifcat$\tms@blocklist$% - \tms@time@start\cal@group@count% - \multiply\tms@time@start by\tms@minuteblocks% - \global\advance\tms@time@start by\tms@start% - \tms@time@end\tms@time@start% - \global\advance\tms@time@end by\tms@minuteblocks% - \else% - \expandafter\tms@chopblock\tms@blocklist-,{}% - \fi% - \mod{60}\tms@time@start\tms@minutes@start% - \tms@hours@start\dates@three% - \divide\tms@hours@start by60% - \mod{60}\tms@time@end\tms@minutes@end% - \tms@hours@end\dates@three% - \divide\tms@hours@end by60% - \ifnum\tms@minutes@start<10% - \edef\tms@minutes@start@mac{0\the\tms@minutes@start}% - \else% - \edef\tms@minutes@start@mac{\the\tms@minutes@start}% - \fi% - \ifnum\tms@minutes@end<10% - \edef\tms@minutes@end@mac{0\the\tms@minutes@end}% - \else% - \edef\tms@minutes@end@mac{\the\tms@minutes@end}% - \fi% - \xdef\tms@timecoltext{% - \noexpand\tms@timelabeltype{\the\tms@hours@start}&% - \noexpand\tms@timelabeltype{\tms@minutes@start@mac}&% - \noexpand\tms@timelabeltype{\the\tms@hours@end}&% - \noexpand\tms@timelabeltype{\tms@minutes@end@mac}&}}% -% \end{macrocode} -% -% \textit{Set the dimensions of the table. We don't have -% to worry about the vertical dimensions; we leave that -% to longtable.} -% -% \textit{First let the user know what we're planning to do.} -% -% \begin{macrocode} -\message{Package Timesheet: % - setting table \the\tms@tablewidth\space in width.^^J}% -% \end{macrocode} -% -% \textit{The rules surrounding the first (time) column.} -% -% \begin{macrocode} - \setlength{\tms@widthlessboxes}{2\arrayrulewidth}% -% \end{macrocode} -% -% \textit{The rules at the end of the text columns.} -% -% \begin{macrocode} - \addtolength{\tms@widthlessboxes}{3\arrayrulewidth}% - \addtolength{\tms@widthlessboxes}{\doublerulesep}% -% \end{macrocode} -% -% \textit{The space between the rules and the neighbouring text.} -% -% \begin{macrocode} - \addtolength{\tms@widthlessboxes}{6\tabcolsep}% -% \end{macrocode} -% -% \textit{The width of the time text.} -% -% \begin{macrocode} - \settowidth{\tms@numlen}{\tms@timelabeltype{99}}% - \settowidth{\tms@colonlen}{\tms@timelabeltype{:}}% - \settowidth{\tms@dashlen}{\tms@timelabeltype{\ --\ }}% - \addtolength{\tms@widthlessboxes}{4\tms@numlen}% - \addtolength{\tms@widthlessboxes}{2\tms@colonlen}% - \addtolength{\tms@widthlessboxes}{\tms@dashlen}% -% \end{macrocode} -% -% \textit{Everything else is for the text columns.} -% -% \begin{macrocode} - \tms@tempcount\tms@leftprop% - \advance\tms@tempcount by\tms@rightprop% -% - \setlength{\tms@templen}{\tms@tablewidth}% - \addtolength{\tms@templen}{-\tms@widthlessboxes}% -% - \tms@leftlen\tms@templen% - \divide\tms@leftlen by\tms@tempcount% - \global\multiply\tms@leftlen by\tms@leftprop% -% - \tms@rightlen\tms@templen% - \divide\tms@rightlen by\tms@tempcount% - \global\multiply\tms@rightlen by\tms@rightprop% -% \end{macrocode} -% -% \textit{Prepare the macro that will generate a table -% header with an appropriate number of columns -% in appropriate sizes.} -% -% \begin{macrocode} - \tms@tempcount\tms@days% - \advance\tms@tempcount by1% - \protected@edef\tms@header{% - \noexpand\begin{longtable}{% - |>{\hfill}% - m{\the\tms@numlen}% - @{\tms@timelabeltype{:}}% - m{\the\tms@numlen}% - @{\tms@timelabeltype{\ --\ }}% - >{\hfill}% - m{\the\tms@numlen}% - @{\tms@timelabeltype{:}}% - m{\the\tms@numlen}% - |% - m{\the\tms@leftlen}||% - m{\the\tms@rightlen}|}% - \noexpand\multicolumn{6}{c}% - {\tms@titletype{\noexpand\tms@title}}% - \\% - \noexpand\multicolumn{4}{l}{}% - &% - \noexpand\multicolumn{1}{c}{\textbf{Plan}}&% - \noexpand\multicolumn{1}{c}{\textbf{Action}}% - \noexpand\\\noexpand\hline% - \noexpand\endhead% - \noexpand\tms@timecoltext}% - \extrarowheight=3pt} -% \end{macrocode} -% -% Specify the divider to be placed between entries -% within a timesheet box. -% -% \begin{macrocode} -{\par\smallskip}% -% \end{macrocode} -% -% Use the standard Calendar item-fetching macros to -% grab classes of items. We only need appointments -% (things with a time associated with them) in this case, -% and we specify the range of the current box to -% limit the entries that are grabbed for current use. -% -% \begin{macrocode} -{\cal@get@appointments[\tms@time@start/\tms@time@end]}% -% \end{macrocode} -% -% Prepare macro text that will set the text to -% "\longtext" on the first entry, and "\shorttext" -% with braces thereafter. -% -% \begin{macrocode} -{\relax% - \ifnum\dates@time@start>0\relax% -% \end{macrocode} -% -% \textit{We print a short entry for anything that starts -% outside the slot we are dealing with.} -% -% \begin{macrocode} - \ifnum\dates@time@start<\tms@time@start% - \protected@edef\cal@entry@text{% - \noexpand\parbox{\the\tms@leftlen}{\noexpand\raggedright% - \noexpand\tms@itemtype{% - \noexpand$\noexpand<\noexpand$% - \theshorttext, to \cal@appt@end@text% - \noexpand$\noexpand>\noexpand$}}}% -% \end{macrocode} -% -% \textit{All other conforming entries get the long text.} -% -% \begin{macrocode} - \else% - \ifnum\dates@time@start<\dates@time@end% - \protected@edef\cal@entry@text{% - \noexpand\parbox{\the\tms@leftlen}{\noexpand\raggedright% - \iftms@usetimes% - \noexpand\tms@timeitemtype{% - \cal@appt@start@text% - --% - \cal@appt@end@text}% - \space% - \fi% - \noexpand\tms@itemtype{% - \thelongtext}}}% - \else% - \protected@edef\cal@entry@text{% - \noexpand\parbox{\the\tms@leftlen}{\noexpand\raggedright% - \iftms@usetimes% - \noexpand\tms@timeitemtype{% - \cal@appt@start@text}% - \space% - \fi% - \tms@itemtype{\thelongtext}}}% - \fi% - \fi% - \fi}% -% \end{macrocode} -% -% Chuck the assembled stack of appointments into -% the box. -% -% \begin{macrocode} -{\theappointments} -\message{Done loading style} -% \end{macrocode} -% -% \Finale \PrintChanges diff --git a/Master/texmf-dist/source/latex/calendar/timetabl.dtx b/Master/texmf-dist/source/latex/calendar/timetabl.dtx deleted file mode 100644 index 3d20d67f876..00000000000 --- a/Master/texmf-dist/source/latex/calendar/timetabl.dtx +++ /dev/null @@ -1,772 +0,0 @@ -%\iffalse -% -% file: timetabl.dtx -% Copyright (C) 1996-1997 by Frank Bennett. All rights reserved. -% -% IMPORTANT NOTICE: -% -% You are not allowed to change this file. You may however copy -% this file to a file with a different name and then change the -% copy if (a) you do not charge for the modified code, (b) you -% acknowledge the author of this file in the new file, if it -% is distributed to others, and (c) you attach these same -% conditions to the new file. -% -% You are not allowed to distribute this file alone. You are not -% allowed to take money for the distribution or use of this file -% (or a changed version) except for a nominal charge for copying -% etc. -% -% You are allowed to distribute this file under the condition that -% it is distributed with all of its contents, intact. -% -% For error reports, or offers to help make this a more powerful, -% friendlier, and altogether more thrilling package, please contact me on -% fb@soas.ac.uk. Better yet, make a contribution to -% my pension. Account details available on request. -% -%\fi -% -% \def\fileversion{3.1.1.1} -% \def\filedate{1998/01/17 18:15:28} -% -% \iffalse -% -%<*driver> -\documentclass{ltxdoc} -%\CodelineIndex -%\EnableCrossrefs -\begin{document} -\OnlyDescription % Comment out for implementation details -\DocInput{timetabl.dtx} -\end{document} -% -%\fi -% -% \changes{v1.0}{1997/02/26}{First release version, implementing -% a suggestion from Miroslav Novak.} -% \changes{v1.1}{1997/03/08}{Added \cs{protected@edef} to labels -% definition, so my wife's birthday can be indicated in color -% in our travel itinerary\ldots but it didn't work. Colors -% in labels come up with an empty color. Problem occurs only if the -% \cs{textcolor} command is at the start of the label, so -% this is probably do to an unnecessary \cs{expandafter}.} -% \changes{v1.1}{1997/03/08}{Added time type declaration to -% pinpoint times for consistency.} -% \changes{v1.2}{1997/05/15}{Merged improved preliminary matter from -% the revised monthly.dtx package.} -% \changes{v1.3}{1997/09/24}{Oops. Seem to have released without -% completing the changes. File now works again. Converted to -% package (from class) in the process.} -% \changes{v1.4}{1997/10/18}{New public release of all styles -% and modules incorporating global bug-fixes.} -% -%\iffalse -% Source tree moved under RCS -% --------------------------- -% timetabl.dtx,v -% Revision 3.1.1.1 1998/01/17 18:15:28 root -% Release code, checksum verified -% -% Revision 3.1 1998/01/17 17:15:17 root -% Release code -% -% Revision 2.5 1998/01/16 17:41:30 root -% *** empty log message *** -% -% Revision 2.4 1998/01/15 10:20:31 root -% Two typos: vline changed to vrule, and labelstrutbuf now -% set using W, not the actual text. -% -% Revision 2.3 1997/11/26 07:49:48 bennett -% Fixed typeface options, added footer, provided new option -% to stretch label height, added color support. -% -% Revision 2.2 1997/11/07 10:44:05 root -% Release code. -% -% Revision 2.1.1.4 1997/11/07 08:45:09 root -% Added documentation for the new "notimes" option. Wrote -% documentation notes for existing options that were unexplained. -% -% Revision 2.1.1.3 1997/11/07 08:11:13 root -% Further changes to implement selective inclusion of times. -% Fixed error in option definitions controlling typeface -% selection. -% -% Revision 2.1.1.2 1997/11/07 03:23:22 root -% Added code to suppress times in entries if desired. -% -% Revision 2.1.1.1 1997/11/04 05:06:07 root -% Development branch -% -% Revision 2.1 1997/11/01 14:51:25 bennett -% Release code. -% -% Revision 1.2 1997/10/29 19:54:57 bennett -% Fixed error in RCS variable 1998/01/17 18:15:28 in the ProvidesPackage -% declaration. -% -% Revision 1.1 1997/10/29 08:17:52 root -% Initial revision -% -%\fi -% -% \title{User's Guide to the Timetable -% package\thanks{This file is version number -% \fileversion{}. It was last revised on -% \filedate{}.}} -% -% \author{Frank G. Bennett, Jr.} -% -% \maketitle -% -% \setcounter{StandardModuleDepth}{1} -% \DeleteShortVerb{\|} -% \MakeShortVerb{\"} -% -% \CheckSum{641} -% -% Please see the file \texttt{calguide.tex} for details on -% the use of this package. -% -%\StopEventually{\PrintIndex} -% -% \subsection{The Package File} -% -% Load a bunch of useful code. -% -% \begin{macrocode} -%<*package> -\NeedsTeXFormat{LaTeX2e}[1995/06/01] -\ProvidesPackage{timetabl} - [1998/01/17 18:15:28 3.1.1.1 Timetable (Frank Bennett)] -% \end{macrocode} -% Define a few boolean switches, which are needed to process -% the style options. -% \begin{macrocode} -\newif\ifttbl@usecolor -\newif\ifttbl@verbose -% \end{macrocode} -% Define some more variables and switches for use in the body -% of the style. -% \begin{macrocode} -\newlength\ttbl@tablewidth -\newlength{\ttbl@hw} -\newlength{\ttbl@templen} -\newlength{\ttbl@widthlessboxes} -\newlength{\ttbl@timetextlen} -\newtoks\ttbl@tempreg@a -\newtoks\ttbl@tempreg@b -\newcount\ttbl@tempcount -\newcount\ttbl@start -\newcount\ttbl@end -\newcount\ttbl@minuteblocks -\newcount\ttbl@boxes -\newcount\ttbl@days -\newcount\ttbl@blocks -\newcount\ttbl@time@start -\newcount\ttbl@time@end -\newcount\ttbl@hours@start -\newcount\ttbl@minutes@start -\newcount\ttbl@hours@end -\newcount\ttbl@minutes@end -\newcount\ttbl@minute@base -% \end{macrocode} -% -% \subsection{Options} -% -% We include the language support offered to all styles in the bundle. -% \begin{macrocode} -\input calopts.cfg -\InputIfFileExists{dates.cfg}{}{} -\ProcessOptions -% \end{macrocode} -% -% \subsection{Option Postprocessing} -% -% Now that the options lists are available to us, -% we can start loading packages. The following packages -% are always loaded, and always with the same options. -% \begin{macrocode} -\RequirePackage{array}[1996/06/14] -\RequirePackage{calendar} -\RequirePackage{longtable} -\RequirePackage{rotating} -% \end{macrocode} -% We get ready to set the dimensions -% of the table that will contain the calendar?? -% \begin{macrocode} - \def\ttbl@settablewidth{% - \setlength{\ttbl@tablewidth}{\hsize}}% -% \end{macrocode} -% Turn off the listing of days in the Calendar style. -% It only works well for monthly calendars. -% \begin{macrocode} -\tracingdates=0% -% \end{macrocode} -% Set up a list of options for the Calendar style engine -% to use with the "keyval" parser. -% \begin{macrocode} -\define@key{opt}{leftspace}{\setlength{\LTleft}{#1}} -\define@key{opt}{rightspace}{\setlength{\LTright}{#1}} -\define@key{opt}{width}{\setlength{\ttbl@tablewidth}{#1}} -\define@key{opt}{title}{\def\ttbl@title{#1}} -\define@key{opt}{start}{\@settime\ttbl@start#1{}} -\define@key{opt}{end}{\@settime\ttbl@end#1{}} -\define@key{opt}{blockminutes}{\ttbl@minuteblocks=#1} -\define@key{opt}{blocks}{\@setblocks#1,,{}} -\define@key{opt}{labels}{\@extractlabels#1,,{}} -\define@key{opt}{timeitemface}{\def\ttbl@timeitemface##1{{#1{##1}}}} -\define@key{opt}{timelabelface}{\def\ttbl@timelabelface##1{{#1{##1}}}} -\define@key{opt}{itemface}{\def\ttbl@itemface##1{{#1{##1}}}} -\define@key{opt}{titleface}{\def\ttbl@titleface##1{{#1{##1}}}} -\define@key{opt}{labelface}{\def\ttbl@labelface##1{{#1{##1}}}} -\define@key{opt}{notimes}[f]{\@ttbl@usetimesfalse} -\define@key{opt}{footer}{\def\ttbl@foot{#1}} -\define@key{opt}{extralabelheight}{\ttbl@extralabelheight=#1} -\newlength\ttbl@extralabelheight -\newlength\ttbl@labelstrut% -\newlength\ttbl@labelstrutbuf% -% \end{macrocode} -% -% Before setting default values, -% provide a set of parsing macros for use in scanning -% some of the options fed to the "keyval" parser. -% Doing this here allows us to specify the defaults in a -% human readable syntax. -% -% \begin{macrocode} -\def\@settime#1#2:#3#{% - \ttbl@tempcount=#2% - \multiply\ttbl@tempcount by60% - \advance\ttbl@tempcount by#3% - \global#1\ttbl@tempcount} -\def\@splitblocks#1-#2#{% - \def\@blockstarttext{#1}% - \def\@blockendtext{#2}} -\def\@setblocks#1,#2#{% - \ifcat$#1$% - \let\next\@gobble% - \else% - \let\next\@setblocks% - \global\advance\ttbl@blocks by 1% - \@splitblocks#1{}% - \expandafter\@settime% - \expandafter\ttbl@time@start\@blockstarttext{}% - \expandafter\@settime% - \expandafter\ttbl@time@end\@blockendtext{}% - \let\ttbl@tempmac\ttbl@blocklist% - \edef\ttbl@blocklist{% - \ttbl@tempmac\the\ttbl@time@start-\the\ttbl@time@end,}% - \fi% - \next#2{}} -\def\ttbl@chopblock#1-#2,#3#{% - \global\ttbl@time@start=#1% - \global\ttbl@time@end=#2% - \gdef\ttbl@blocklist{#3}}% -\def\ttbl@labellist{}% -\def\@extractlabels#1,#2#{% - \ifcat$#1$% - \ttbl@tempreg@a=\expandafter{\ttbl@labellist}% - \edef\ttbl@label##1{% - \noexpand\ifcase##1\the\ttbl@tempreg@a\noexpand\fi}% - \let\next\@gobble% - \else% - \let\next\@extractlabels% - \let\ttbl@tempmac\ttbl@labellist% - \expandafter\def% - \expandafter\ttbl@labellist% - \expandafter{% - \ttbl@tempmac\or #1}% - \fi% - \next#2{}} -% \end{macrocode} -% -% Set up default values for the "keyval" options. -% -% \begin{macrocode} -\def\ttbl@title{Conference Schedule} -\@settime\ttbl@start8:00{} -\@settime\ttbl@end17:00{} -\ttbl@minuteblocks=60% -\def\ttbl@blocklist{}% -\def\ttbl@label#1{\themonth\space\theday}% -\def\ttbl@timeitemface#1{{\small{#1}}}% -\def\ttbl@timelabelface#1{{\small\textbf{#1}}}% -\def\ttbl@itemface#1{{\small\textit{#1}}}% -\def\ttbl@titleface#1{{\large\textbf{#1}}}% -\def\ttbl@labelface#1{{\textbf{#1}}}% -\newif\if@ttbl@usetimes% -\@ttbl@usetimestrue% -\def\ttbl@foot{}% -% \end{macrocode} -% -% -% Define the calendar. As for all Calendar styles, -% this is done using "\newcalendar" with 17 arguments. -% -% \begin{macrocode} -\newcalendar% -% \end{macrocode} -% -% Name the new calendar environment. -% -% \begin{macrocode} -{timetable} -% \end{macrocode} -% -% Select an off-the-shelf macro for printing -% that will dump printable -% items on DVI. -% -% \begin{macrocode} -{\cal@insert} -% \end{macrocode} -% -% Be indifferent to the starting day of the week. -% ("0" through "6" specify Sunday through Saturday). -% -% \begin{macrocode} -{7} -% \end{macrocode} -% -% Set the number of items in a group (the whole timetable, in this case). -% -% \begin{macrocode} -{\ttbl@boxes} -% \end{macrocode} -% -% Set the number of items in a subgroup (a line, in this case). -% -% \begin{macrocode} -{\ttbl@days} -% \end{macrocode} -% -% Use the ampersand table separator before all items -% but the first in a subgroup. -% -% \begin{macrocode} -{&} -% \end{macrocode} -% -% Select a zigzig algorithm that increments the -% day at each item, and jumps back to the start -% day at the end of each subgroup. The use of -% "\ttbl@gettimes" here is unsightly, but for the time -% being this gives us a way to sneak in a non-printing -% calculation in advance of the first item in a new -% subgroup. -% -% \begin{macrocode} -{z\ttbl@gettimes} -% \end{macrocode} -% -% Specify the header. This has to be built on the fly -% in the Timetable style, since all of the sizes -% are determined from user options. So just give the -% name of the macro here. -% \begin{macrocode} -{\extrarowheight=3pt\ttbl@header} -% \end{macrocode} -% -% Specify the tail of the table. Remember to terminate -% landscape if it was requested. -% -% \begin{macrocode} -{\\\hline\end{longtable}}% -% \end{macrocode} -% -% This will never be used in this style, because our -% text consists of a single group. -% -% \begin{macrocode} -{\cal@footer\newpage\cal@header} -% \end{macrocode} -% -% Specify how to break the end of a subgroup. -% In this case, we end the table line and add -% a time block that must be generated on the fly. -% -% \begin{macrocode} -{\\\hline\ttbl@timecoltext} -% \end{macrocode} -% -% Set a couple of Calendar toggles before -% scanning the date contained in the "timetable" -% environment. -% -% \begin{macrocode} -{\dates@requiremonthtrue\dates@requiredaytrue} -% \end{macrocode} -% -% "\cal@range@start", "\cal@range@end" and "\dates@date" -% are all set internally, so we just provide information -% here. Remember to adjust human-readable dates with -% "\caldate" when changing "\dates@date", and -% long dates with "\dates@fix" when adjusting -% the human readable stuff. -% -% \begin{macrocode} -{\message{^^JStart: \theshortweekday\space% - \theday\space\theshortmonth\space\theyear}% - \dates@date\cal@range@end% - \caldate% - \message{^^JEnd: \theshortweekday\space% - \theday\space\theshortmonth\space\theyear}% - \dates@date\cal@range@start% - \caldate% -% \end{macrocode} -% -% \textit{Set the length of the conference in \texttt{ttbl@days}.} -% -% \begin{macrocode} - \ttbl@days\cal@range@end% - \advance\ttbl@days by-\cal@range@start% - \advance\ttbl@days by1% -% \end{macrocode} -% -% \textit{Set the number of boxes in a group. The number of -% vertical blocks will already have been set if -% the \texttt{blocks} option was used, so bypass that if -% appropriate.} -% -% \begin{macrocode} -\ifcat$\ttbl@blocklist$% - \ttbl@blocks\ttbl@end% - \advance\ttbl@blocks by-\ttbl@start% - \divide\ttbl@blocks by\ttbl@minuteblocks% -\fi% -\ttbl@boxes\ttbl@blocks% -\multiply\ttbl@boxes by\ttbl@days% -% \end{macrocode} -% -% \textit{Prepare an algorithm to derive the start and -% end time of a block from the value of the -% counter \texttt{cal@group@count} and set values in -% \texttt{ttbl@time@start}, \texttt{ttbl@time@end} -% and \texttt{ttbl@timecoltext}.} -% -% \begin{macrocode} - \def\ttbl@gettimes{% - \ifcat$\ttbl@blocklist$% - \ttbl@time@start\cal@group@count% - \divide\ttbl@time@start by\ttbl@days% - \multiply\ttbl@time@start by\ttbl@minuteblocks% - \global\advance\ttbl@time@start by\ttbl@start% - \ttbl@time@end\ttbl@time@start% - \global\advance\ttbl@time@end by\ttbl@minuteblocks% - \else% - \expandafter\ttbl@chopblock\ttbl@blocklist-,{}% - \fi% - \mod{60}\ttbl@time@start\ttbl@minutes@start% - \ttbl@hours@start\dates@three% - \divide\ttbl@hours@start by60% - \mod{60}\ttbl@time@end\ttbl@minutes@end% - \ttbl@hours@end\dates@three% - \divide\ttbl@hours@end by60% - \ifnum\ttbl@minutes@start<10% - \edef\ttbl@minutes@start@mac{0\the\ttbl@minutes@start}% - \else% - \edef\ttbl@minutes@start@mac{\the\ttbl@minutes@start}% - \fi% - \ifnum\ttbl@minutes@end<10% - \edef\ttbl@minutes@end@mac{0\the\ttbl@minutes@end}% - \else% - \edef\ttbl@minutes@end@mac{\the\ttbl@minutes@end}% - \fi% - \xdef\ttbl@timecoltext{% - \noexpand\vbox{\vfil\vskip4pt% - \noexpand\begin{sideways}% - \noexpand\ttbl@timelabelface{% - \the\ttbl@hours@end:\ttbl@minutes@end@mac% - $\noexpand\leftarrow$% - \the\ttbl@hours@start:\ttbl@minutes@start@mac}% - \noexpand\end{sideways}% - \vfil} - &}}% -% \end{macrocode} -% -% \textit{Set the dimensions of the table. We don't have -% to worry about the vertical dimensions; we leave that -% to longtable.} -% -% \textit{First let the user know what we're planning to do.} -% -% \begin{macrocode} -\ttbl@tablewidth\textwidth% -\message{Package Timetable: % - setting table \the\ttbl@tablewidth\space in width.^^J}% -% \end{macrocode} -% -% \textit{The rules surrounding the first (time) column.} -% -% \begin{macrocode} - \setlength{\ttbl@widthlessboxes}{2\arrayrulewidth}% -% \end{macrocode} -% -% \textit{The rules at the end of the text columns.} -% -% \begin{macrocode} - \addtolength{\ttbl@widthlessboxes}{\ttbl@days\arrayrulewidth}% -% \end{macrocode} -% -% \textit{The space between the rules and the neighbouring text.} -% -% \begin{macrocode} - \addtolength{\ttbl@widthlessboxes}{2\tabcolsep}% - \setlength{\ttbl@templen}{2\tabcolsep}% - \addtolength{\ttbl@widthlessboxes}{\ttbl@days\ttbl@templen}% -% \end{macrocode} -% -% \textit{The width of the time text.} -% -% \begin{macrocode} - \settoheight{\ttbl@timetextlen}{\ttbl@timelabelface{99:99--99:99}}% - \settodepth{\ttbl@templen}{\ttbl@timelabelface{99:99--99:99}}% - \addtolength{\ttbl@timetextlen}{\ttbl@templen}% - \addtolength{\ttbl@widthlessboxes}{\ttbl@timetextlen}% -% \end{macrocode} -% -% \textit{Everything else is for the text columns.} -% -% \begin{macrocode} - \setlength{\ttbl@hw}{\ttbl@tablewidth}% - \addtolength{\ttbl@hw}{-\ttbl@widthlessboxes}% - \divide\ttbl@hw by\ttbl@days% -% \end{macrocode} -% -% \textit{Prepare the macro that will generate a table -% header with an appropriate number of columns -% in appropriate sizes.} -% -% \textit{First we make up a unit in the width of the -% time text, as determined above. We make that -% the first chunk of the format.} -% -% \begin{macrocode} -\edef\ttbl@firstunit{% - m{\the\ttbl@timetextlen}% - \noexpand|}% -\ttbl@tempreg@a=\expandafter{\expandafter|\ttbl@firstunit}% -% \end{macrocode} -% -% \textit{Then we make up a similar chunk, but with the -% length of the day columns, and store it in a register.} -% -% \begin{macrocode} -\edef\ttbl@dayunit{% - m{\the\ttbl@hw}% - \noexpand|}% -\ttbl@tempreg@b=\expandafter{\ttbl@dayunit}% -% \end{macrocode} -% -% \textit{Within a loop, we add the day unit format chunk -% to the format string until we have a chunk for -% each day in the conference.} -% -% \begin{macrocode} -\ttbl@tempcount=1% -\loop% - \edef\ttbl@tempmac{\the\ttbl@tempreg@a\the\ttbl@tempreg@b}% - \ttbl@tempreg@a=\expandafter{\ttbl@tempmac}% -\ifnum\ttbl@tempcount<\ttbl@days% - \advance\ttbl@tempcount by1% -\repeat% -% \end{macrocode} -% -% \textit{Within another loop, we build the labels. -% This is inelegant, but it works. We maintain -% two counters in the loop, since the macro "ttbl@label" -% might be looking for a date or the column number.} -% \begin{macrocode} - \global\settoheight\ttbl@labelstrutbuf{\ttbl@labelface{W}}% - \global\advance\ttbl@labelstrutbuf by\ttbl@extralabelheight\relax% - \ifnum\ttbl@labelstrutbuf>\ttbl@labelstrut% - \global\ttbl@labelstrut\ttbl@labelstrutbuf% - \fi% - \def\ttbl@labeltext{}% - \dates@date=\cal@range@start% - \caldate% - \ttbl@tempcount=1% - \ttbl@tempreg@b={}% - \loop% - \protected@edef\ttbl@labeltext{\the\ttbl@tempreg@b&% - \noexpand\multicolumn{1}{c|}{% - \noexpand\ttbl@labelface{% - \ttbl@label{\ttbl@tempcount}}}}% - \ttbl@tempreg@b=\expandafter{\ttbl@labeltext}% - \ifnum\dates@date<\cal@range@end% - \advance\dates@date by1% - \caldate% - \advance\ttbl@tempcount by1% - \repeat% -% \end{macrocode} -% -% \textit{Reset the starting date.} -% -% \begin{macrocode} - \dates@date\cal@range@start% - \caldate% -% \end{macrocode} -% -% \textit{Then we put the rest of the basic header -% stuff around the string. We use \texttt{protected@edef} -% so that robust commands can be used in the title and -% the labels. Note the conditional use of "landscape".} -% -% \begin{macrocode} - \ttbl@tempcount\ttbl@days% - \advance\ttbl@tempcount by1% - \protected@edef\ttbl@header{% - \noexpand\begin{longtable}{\the\ttbl@tempreg@a}% - \noexpand\multicolumn{\ttbl@tempcount}{c}% - {\noexpand\ttbl@titleface{\ttbl@title}}% - \noexpand\\\noexpand\hline% - \noexpand\vrule width0pt depth 0pt height\ttbl@labelstrut\relax% - \the\ttbl@tempreg@b\noexpand\\% - \noexpand\hline\noexpand\hline\noexpand\endhead% - \ifcat$\ttbl@foot$\else% - \noexpand\multicolumn{\ttbl@tempcount}{l}% - {\noexpand\ttbl@foot}\noexpand\\% - \noexpand\endfoot% - \fi% - \noexpand\ttbl@timecoltext}}% -% \end{macrocode} -% -% Specify the divider to be placed between entries -% within a time\-table box. -% -% \begin{macrocode} -{\par\medskip}% -% \end{macrocode} -% -% Use the standard Calendar item-fetching macros to -% grab classes of items. We only need appointments -% (things with a time associated with them) in this case, -% and we specify the range of the current box to -% limit the entries that are grabbed for current use. -% -% \begin{macrocode} -{\cal@get@appointments[\ttbl@time@start/\ttbl@time@end]}% -% \end{macrocode} -% -% Prepare macro text that will set the text to -% "\longtext" on the first entry, and "\shorttext" -% with braces thereafter. If no "\longtext" -% exists, use the "\shorttext" for everything. -% -% \begin{macrocode} -{\relax% - \ifnum\dates@time@start>0\relax% -% \end{macrocode} -% -% \textit{We print a short entry for anything that starts -% outside the slot we are dealing with.} -% -% \begin{macrocode} - \ifnum\dates@time@start<\ttbl@time@start% - \protected@edef\cal@entry@text{% - \noexpand\cal@textcolor{\calcolor}{% - \noexpand\ttbl@itemface{% - \noexpand$\noexpand<\noexpand$% - \theshorttext\if@ttbl@usetimes, to \cal@appt@end@text\fi% - \noexpand$\noexpand>\noexpand$}}}% -% \end{macrocode} -% -% \textit{All other conforming entries get the long text.} -% -% \begin{macrocode} - \else% - \ifnum\dates@time@start<\dates@time@end% - \protected@edef\cal@entry@text{% - \if@ttbl@usetimes% - \noexpand\ttbl@timeitemface{% - \cal@appt@start@text% - --% - \cal@appt@end@text}% - \space% - \fi% - \noexpand\cal@textcolor{\calcolor}{% - \noexpand\ttbl@itemface{% - \thelongtext}}}% - \else% - \protected@edef\cal@entry@text{% - \if@ttbl@usetimes% - \noexpand\ttbl@timeitemface{% - \cal@appt@start@text}% - \space% - \fi% - \noexpand\cal@textcolor{\calcolor}{% - \noexpand\ttbl@itemface{% - \thelongtext}}}% - \fi% - \fi% - \fi}% -% \end{macrocode} -% -% Chuck the assembled stack of appointments into -% the box. -% -% \begin{macrocode} -{\theappointments} -% \end{macrocode} -% -% -%\iffalse -% -% \section{The Installation File} -% -% \begin{macrocode} -%<*installer> -\def\batchfile{timetabl.ins} -\input docstrip.tex -\keepsilent -\preamble -This file is part of the Calendar package, -Copyright (C) 1996-1997 by Frank Bennett, Jr. -All rights reserved. ------------------------------------------- -% IMPORTANT NOTICE: -% -% You are not allowed to change this file. You may however copy -% this file to a file with a different name and then change the -% copy if (a) you do not charge for the modified code, (b) you -% acknowledge the author of this file in the new file, if it -% is distributed to others, and (c) you attach these same -% conditions to the new file. -% -% You are not allowed to distribute this file alone. You are not -% allowed to take money for the distribution or use of this file -% (or a changed version) except for a nominal charge for copying -% etc. -% -% You are allowed to distribute this file under the condition that -% it is distributed with all of its contents, intact. -% -% For error reports, or offers to help make this a more powerful, -% friendlier, and altogether more thrilling package, please contact me on -% fb@soas.ac.uk. Better yet, make a contribution to -% my pension. Account details available on request. -% -\endpreamble - -\generate{\file{timetabl.sty}{\from{timetabl.dtx}{package}} - } - -\Msg{***********************************************************} -\Msg{*} -\Msg{* To finish the installation, you have to move the following} -\Msg{* file into a directory searched by TeX:} -\Msg{*} -\Msg{* \space\space timetabl.sty} -\Msg{*} -\Msg{***********************************************************} - -% -% \end{macrocode} -%\fi -% \Finale \PrintChanges - - - diff --git a/Master/texmf-dist/source/latex/calendar/weekly.dtx b/Master/texmf-dist/source/latex/calendar/weekly.dtx deleted file mode 100644 index 26b190ce037..00000000000 --- a/Master/texmf-dist/source/latex/calendar/weekly.dtx +++ /dev/null @@ -1,491 +0,0 @@ -%\iffalse -% -% file: weekly.dtx -% Copyright (C) 1996-1997 by Frank Bennett. All rights reserved. -% -% IMPORTANT NOTICE: -% -% You are not allowed to change this file. You may however copy -% this file to a file with a different name and then change the -% copy if (a) you do not charge for the modified code, (b) you -% acknowledge the author of this file in the new file, if it -% is distributed to others, and (c) you attach these same -% conditions to the new file. -% -% You are not allowed to distribute this file alone. You are not -% allowed to take money for the distribution or use of this file -% (or a changed version) except for a nominal charge for copying -% etc. -% -% You are allowed to distribute this file under the condition that -% it is distributed with all of its contents, intact. -% -% For error reports, or offers to help make this a more powerful, -% friendlier, and altogether more thrilling package, please contact me on -% fb@soas.ac.uk. Better yet, make a contribution to -% my pension. Account details available on request. -% -%\fi -% -% \def\fileversion{3.1.1.1} -% \def\filedate{1998/01/17 18:15:32} -% -% \iffalse -% -%<*driver> -\documentclass{ltxdoc} -%\CodelineIndex -%\EnableCrossrefs -\begin{document} -\OnlyDescription % Comment out for implementation details -\DocInput{weekly.dtx} -\end{document} -% -%\fi -% -% \changes{v1.0}{1997/10/18}{New public release of all styles -% and modules incorporating global bug-fixes.} -% -%\iffalse -% Source tree moved under RCS -% --------------------------- -% weekly.dtx,v -% Revision 3.1.1.1 1998/01/17 18:15:32 root -% Release code, checksum verified -% -% Revision 3.1 1998/01/17 17:15:28 root -% Release code -% -% Revision 2.4 1998/01/16 17:07:54 root -% *** empty log message *** -% -% Revision 2.3 1997/12/06 09:52:13 root -% Moved documentation to calguide.tex. -% -% Revision 2.2 1997/11/07 10:44:05 root -% Release code. -% -% Revision 2.1.1.1 1997/11/04 05:06:07 root -% Development branch -% -% Revision 2.1 1997/11/01 14:50:12 bennett -% Release code. -% -% Revision 1.1 1997/10/29 08:17:52 root -% Initial revision -% -%\fi -% -% \title{User's Guide to the Weekly Calendar -% package\thanks{This file is version number -% \fileversion{}. It was last revised on -% \filedate{}.}} -% -% \author{Frank G. Bennett, Jr.} -% -% \maketitle -% -% \setcounter{StandardModuleDepth}{1} -% \DeleteShortVerb{\|} -% \MakeShortVerb{\"} -% -% \CheckSum{343} -% -% \section{Brief Introduction} -% -% Please see the file \texttt{calguide.tex} for documentation -% on this calendar style. -% -% \StopEventually{\PrintIndex} -% -% \section{The Class File} -% -% \subsection{Preliminaries} -% -% Use \LaTeXe, and tell the user who we are. -% -% \begin{macrocode} -%<*class> -\NeedsTeXFormat{LaTeX2e}[1995/06/01] -\ProvidesClass{weekly} - [1998/01/17 18:15:32 3.1.1.1 Weekly Calendar (Frank Bennett)] -% \end{macrocode} -% Define a boolean switch needed to process -% the style options. -% \begin{macrocode} -\newif\ifwk@usecolor -% \end{macrocode} -% Define some more variables and switches for use in the body -% of the style. -% \begin{macrocode} -\newif\ifwk@overthetop -\newcount\wk@firstday -\newcount\wk@tempcount -\newlength\wk@itemheight -\parindent=0pt -% \end{macrocode} -% -% \subsection{Options} -% -% Things like page and type size go to the article class. -% \begin{macrocode} -\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} -% \end{macrocode} -% We use the generic language options, the same as other parts -% of the system. -% \begin{macrocode} -\input calopts.cfg -\InputIfFileExists{dates.cfg}{}{} -\ProcessOptions -% \end{macrocode} -% -% \subsection{Option Postprocessing} -% -% Now that the options lists are available to us, -% we can start loading packages. The following packages -% are always loaded. -% \begin{macrocode} -\LoadClass{article} -\RequirePackage{calendar} -\RequirePackage{lscape} -\RequirePackage{multicol} -\RequirePackage{autofilo} -\multicolsep=0pt\relax -% \end{macrocode} -% It is now time to do the final page formatting. -% \begin{macrocode} -\AtBeginDocument{% -% \end{macrocode} -% Eliminate page numbers and indenting. -% \begin{macrocode} - \pagestyle{empty} - \parindent=0pt} -% \end{macrocode} -% -% \subsection{Calendar Setup} -% -% Define some key values for use by the calendar environment. -% \begin{macrocode} -\define@key{opt}{firstday}{% - \wk@firstday=#1} -% \end{macrocode} -% Define default values for the environment keys. -% \begin{macrocode} -\wk@firstday=5% -% \end{macrocode} -% We declare eight boxes, one for each day of the -% week plus an extra. -% \begin{macrocode} -\wk@tempcount=0 -\expandafter\newsavebox\csname wk@box\the\wk@tempcount\endcsname -\loop\advance\wk@tempcount by1\relax -\ifnum\wk@tempcount<8 - \expandafter\newsavebox\csname wk@box\the\wk@tempcount\endcsname -\repeat -% \end{macrocode} -% We need a macro to lay the boxes out on a page. We define -% this now, with parameterized measurements that will be -% determined by the settings given to the environment within -% which this expands. -% \begin{macrocode} -\def\wk@spitoutboxes{% - \wk@tempcount=-1\relax% - \loop\advance\wk@tempcount by1\relax% - \ifnum\wk@tempcount<3\relax% - \hbox to\linewidth{% - \expandafter\usebox\csname wk@box\the\wk@tempcount\endcsname}% - \repeat% - \hbox to\linewidth{\vbox to\wk@itemheight{% - \hrule width\linewidth height0.4pt depth0pt% - \hbox to\linewidth{\hfil}\vfill}}% - \wk@tempcount=2\relax% - \loop\advance\wk@tempcount by1\relax% - \ifnum\wk@tempcount<7\relax% - \hbox to\linewidth{% - \expandafter\usebox\csname wk@box\the\wk@tempcount\endcsname}% - \repeat}% -% \end{macrocode} -% \textit{We define a macro that calculates the height of the date boxes. -% The value of \cs{normallineskip} sneaks in between -% stacked \cs{hbox}es, so we need to account for that.} -% \begin{macrocode} -\def\wk@getitemheight{% - \setlength\wk@itemheight\textheight\relax% - \addtolength\wk@itemheight{-4pt}% - \addtolength\wk@itemheight{-5\normallineskip}% - \divide\wk@itemheight by4\relax}% -% \end{macrocode} -% -% \subsection{Calendar Definition} -% -% The calendar definition itself consists of a single command -% and its associated arguments. -% \begin{macrocode} -\newcalendar% -% \end{macrocode} -% We give the environment a name. -% \begin{macrocode} -{weekly} -% \end{macrocode} -% We're producing DVI, so we use the standard -% macro for dropping text into the hopper. -% \begin{macrocode} -{\cal@insert} -% \end{macrocode} -% Starting day for the calendar is not fixed here, -% because we don't pad with blank entries. Season to taste. -% Use integers "0" through "6". A value over 7 means no padding. -% \begin{macrocode} -{8} -% \end{macrocode} -% The length of a group is one day. -% \begin{macrocode} -{7} -% \end{macrocode} -% The length of a subgroup is seven days. -% \begin{macrocode} -{7} -% \end{macrocode} -% We don't need delimiters between output items, since -% we're just building boxes. -% \begin{macrocode} -{\relax} -% \end{macrocode} -% Increment the date counter with every item. -% \begin{macrocode} -{I} -% \end{macrocode} -% Define the header. -% \begin{macrocode} -{\expandafter\autofilo\expandafter{\cal@optionslist}\wk@getitemheight} -% \end{macrocode} -% We define the end of the calendar. This spits out -% all of the boxes one last time, and closes the page -% formatting environment. -% \begin{macrocode} -{\wk@spitoutboxes\endautofilo} -% \end{macrocode} -% We define a way to open a new group. In this case, -% we just relax. -% \begin{macrocode} -{\wk@spitoutboxes} -% \end{macrocode} -% We define the way to end a subgroup. This spits out -% all of the boxes built for a page of text. -% \begin{macrocode} -{\relax} -% \end{macrocode} -% We set up to require a month and day in the environment typed -% into the user's document. -% \begin{macrocode} -{\dates@requiremonthtrue\dates@requiredaytrue} -% \end{macrocode} -% The next section runs after the calendar dates have been -% scanned from the environment, but before the table is -% opened. -% \textit{We step back, if necessary, from the designated -% first date to reach the starting day for pages. (Default -% is Friday.)} -% -% \begin{macrocode} -{\global\dates@date\cal@range@start% - \prevday\wk@firstday% - \cal@range@start\dates@date% - \caldate% -% \end{macrocode} -% \textit{We tell the user where we're starting.} -% \begin{macrocode} - \message{^^JStart: \theshortweekday\space% - \theday\space\theshortmonth\space\theyear}% -% \end{macrocode} -% \textit{Then we jump forward, again if necessary, -% to the next day just before the starting day of -% the week.} -% \begin{macrocode} - \global\dates@date\cal@range@end% - \caldate% - \advance\wk@firstday by-1% - \ifnum\wk@firstday=7\wk@firstday=0\fi% - \nextday\wk@firstday% - \caldate% - \cal@range@end\dates@date% -% \end{macrocode} -% \textit{We let the user know where we plan to stop.} -% \begin{macrocode} - \message{^^JEnd: \theshortweekday\space% - \theday\space\theshortmonth\space\theyear}% -% \end{macrocode} -% \textit{We jump back to the starting date and reset the -% human-side values.} -% \begin{macrocode} - \global\dates@date=\cal@range@start% - \caldate}% -% \end{macrocode} -% Events are delimited by \cs{par}. -% \begin{macrocode} -{\par}% -% \end{macrocode} -% The next argument is dropped on DVI for each item. -% We use it here to fetch the text of appointments and -% events to the standard list macros, using the -% standard text-fetching commands. Each generates a -% stack delimited by the phrase that was set above. -% \begin{macrocode} -{\cal@get@appointments\cal@get@events}% -% \end{macrocode} -% This sets \cs{cal@entry@text}. It is executed for every -% event or appointment in the database that applies -% to a given item. We differentiate between whole-day events, -% pinpointed events and ranged events. -% \begin{macrocode} -{\relax% - \ifnum\dates@time@start>0\relax% - \ifnum\dates@time@start=\dates@time@end% - \protected@edef\cal@entry@text{% - \thetimestart\space% - \cal@textcolor{\calcolor}{\theshorttext}}% - \else% - \protected@edef\cal@entry@text{% - \thetimestart--\thetimeend\space% - \cal@textcolor{\calcolor}{\theshorttext}}% - \fi% - \else% - \protected@edef\cal@entry@text{% - \cal@textcolor{\calcolor}{\theshorttext}}% - \fi}% -% \end{macrocode} -% Finally we tell the style how to create the -% text for each item. -% We stash the text in each of the numbered boxes, -% for extraction at the end of each group and at the -% end of the run. In the event of an overfull \cs{vbox}, we -% retry with two columns of text in a last-ditch attempt -% to squeze everything in. -% \begin{macrocode} -{\global\wk@overthetopfalse% - \expandafter\sbox\csname wk@box\the\cal@subgroup@count\endcsname{% - \vbox to\wk@itemheight{\hbox{\parbox{\linewidth}{% -\hrule width\linewidth% -\vskip1pt\relax% -\ifnum\cal@subgroup@count<3\relax% - \textbf{\theweekday\hfill% - \theday\space\themonth\space\theyear}\par% -\else% - \textbf{\theday\space\themonth\space\theyear\hfill% - \theweekday}\par% -\fi% -\vskip0.5pt\relax% -\hrule width\linewidth% -\vskip1pt\relax% - \raggedright\small% - \ifcat$\theevents$% - \else% - \theevents\par% - \fi% - \ifcat$\theappointments$% - \else% - \theappointments% - \fi}% parbox -}% hbox -\vfill}% vbox -\ifnum\badness=1000000\relax\global\wk@overthetoptrue\fi% -}% sbox -\ifwk@overthetop% - \message{Resetting this date in two-columns.}% -\expandafter\sbox\csname wk@box\the\cal@subgroup@count\endcsname{% - \vbox to\wk@itemheight{\hbox{\parbox{\linewidth}{% -\hrule width\linewidth% -\vskip1pt\relax% -\ifnum\cal@subgroup@count<3\relax% - \textbf{\theweekday\hfill% - \theday\space\themonth\space\theyear}\par% -\else% - \textbf{\theday\space\themonth\space\theyear\hfill% - \theweekday}\par% -\fi% -\vskip0.5pt\relax% -\hrule width\linewidth% -\vskip1pt\relax% - \raggedright\small% - \begin{multicols}{2}% - \ifcat$\theevents$% - \else% - \theevents\par% - \fi% - \ifcat$\theappointments$% - \else% - \theappointments% - \fi% - \end{multicols}% -}% parbox -}% hbox -\vfill}% vbox -}% sbox -\fi% - \advance\wk@tempcount by1\relax% - \ifnum\wk@tempcount>6\relax% - \wk@tempcount=0\relax% - \fi} -% -% \end{macrocode} -% -%\iffalse -% \begin{macrocode} -%<*installer> -\def\batchfile{weekly.ins} -\input docstrip.tex - -\keepsilent - -\preamble -This file is part of the Calendar package, -Copyright (C) 1996, 1997 Frank Bennett, Jr. -All rights reserved. ------------------------------------------- - -IMPORTANT NOTICE: - -You are not allowed to change this file. You may however copy -this file to a file with a different name and then change the -copy if (a) you do not charge for the modified code, (b) you -acknowledge the author of this file in the new file, if it -is distributed to others, and (c) you attach these same -conditions to the new file. - -You are not allowed to distribute this file alone. You are not -allowed to take money for the distribution or use of this file -(or a changed version) except for a nominal charge for copying -etc. - -You are allowed to distribute this file under the condition that -it is distributed with all of its contents, intact. - -For error reports, or offers to help make this a more powerful, -friendlier, and altogether more thrilling package, please contact me on -fb@soas.ac.uk. Better yet, make a contribution to -my pension. Account details available on request. ------------------------------------------- - -\endpreamble - -\generate{\file{weekly.cls}{\from{weekly.dtx}{class}} - } - -\Msg{***********************************************************} -\Msg{*} -\Msg{* To finish the installation, you have to move the following} -\Msg{* file into a directory searched by TeX:} -\Msg{*} -\Msg{* \space\space weekly.sty} -\Msg{*} -\Msg{***********************************************************} - -% -% \end{macrocode} -%\fi -% \Finale \PrintChanges - - - - - diff --git a/Master/texmf-dist/source/latex/calendar/yearly.dtx b/Master/texmf-dist/source/latex/calendar/yearly.dtx deleted file mode 100644 index ea01432c9df..00000000000 --- a/Master/texmf-dist/source/latex/calendar/yearly.dtx +++ /dev/null @@ -1,340 +0,0 @@ -%\iffalse -% -% File yearly.dtx -% Copyright (C) 1996 by Frank Bennett. All rights reserved. -% -% This sub-package is provided for demonstration -% purposes. Please feel free to edit it in any way whatsoever, -% but do not distribute it in an altered condition to others -% without permission. -% -% For error reports, or offers to help make this a more powerful, -% friendlier, and altogether more thrilling package, please contact me on -% fb@soas.ac.uk -% -%<*dtx> - \ProvidesFile{yearly.dtx} -% -%\NeedsTeXFormat{LaTeX2e}[1995/06/01] -% -% \end{macrocode} -% \Finale \PrintChanges -- cgit v1.2.3