| 1 |
yplan.doc |
| 2 |
------------ |
| 3 |
Date: 14th March, 2000 |
| 4 |
-------------------- |
| 5 |
This is the documentation for the Perl program yplan. |
| 6 |
Yplan is a vertical-type daily planner, |
| 7 |
showing all the days of a year on two A4 pages. |
| 8 |
%% -------------------------------------------- |
| 9 |
%% Copyright 1999 RWD Nickalls & Harald Harders, 2000 John Palmer |
| 10 |
%% This program can be redistributed and/or modified under the terms |
| 11 |
%% of the LaTeX Project Public License Distributed from CTAN |
| 12 |
%% archives in directory macros/latex/base/lppl.txt; either |
| 13 |
%% version 1 of the License, or any later version. |
| 14 |
%% --------------------------------------------- |
| 15 |
|
| 16 |
Authors: |
| 17 |
Dr RWD Nickalls, |
| 18 |
Department of Anaesthesia, |
| 19 |
City Hospital, |
| 20 |
Nottingham, UK. |
| 21 |
[email protected] |
| 22 |
TEL: +44-(0)-115-9691169 Ext:45637 |
| 23 |
FAX: +44-(0)-115-9627713 |
| 24 |
|
| 25 |
Harald Harders |
| 26 |
[email protected] |
| 27 |
|
| 28 |
John Palmer |
| 29 |
4 Horyford Close, Preston, Weymouth DT3 6DJ, England |
| 30 |
+44 1305 832240 |
| 31 |
[email protected] |
| 32 |
http://www.stx69.demon.co.uk/ |
| 33 |
|
| 34 |
The file yplan, in CTAN/macros/latex/contrib/other/yplan/, is a Perl |
| 35 |
program which generates LaTeX2e code to print, for any chosen year |
| 36 |
from 1999 onward, a vertical-type daily planner (ie months along the |
| 37 |
top, days downwards), with each 6-month period fitting onto a single |
| 38 |
A4 sheet. They will also fit onto USA standard size paper. The |
| 39 |
vertical size can be adjusted by changing \datestrut. The generated |
| 40 |
files are really just large tables, and so you may wish to extract |
| 41 |
just the tables and modify them for your own use. |
| 42 |
|
| 43 |
Dick Nickalls was motivated to design this year-planner as his A4 |
| 44 |
diary did not have good year-planner at the end. |
| 45 |
Harald Harders added support for several languages besides English, |
| 46 |
in the form of a LaTeX2e package yplan.sty. |
| 47 |
Hand-edited LaTeX files for 1999 and 2000 were issued, called |
| 48 |
yplan99a.tex, etc. (These are not made obsolete by the new program; |
| 49 |
they remain useful, for instance to those who don't have a Perl |
| 50 |
interpreter.) |
| 51 |
John Palmer then wrote the general Perl program which makes a LaTeX |
| 52 |
file for any chosen year. In doing so he incorporated Harald's |
| 53 |
alternative language support into the Perl code, in such a way that |
| 54 |
the yplan.sty file is no longer needed, and added the Swedish and |
| 55 |
Latin languages. |
| 56 |
|
| 57 |
The Perl code has been tested with perl 5.004 and 5.005, but should |
| 58 |
run with many earlier versions of Perl. It has been used successfully |
| 59 |
on both Linux and MS-DOS. The output from yplan runs nicely on |
| 60 |
LaTeX2e, and may have to be adjusted very slightly to run on LaTeX |
| 61 |
2.09. |
| 62 |
|
| 63 |
Here are the instructions for running yplan: |
| 64 |
|
| 65 |
The normal usage is |
| 66 |
yplan LANGUAGE LETTERCASE PAGE YEAR >FILE.tex |
| 67 |
where: |
| 68 |
LANGUAGE is one of: english, german, french, italian, spanish, |
| 69 |
portuguese, swedish, latin. If LANGUAGE is omitted, english is |
| 70 |
assumed. |
| 71 |
LETTERCASE is one of: uppercase, lowercase. This controls the |
| 72 |
setting of month-names. If LETTERCASE is omitted, uppercase is |
| 73 |
assumed. |
| 74 |
PAGE is one of: p1, p2. This selects the first or second six |
| 75 |
months of the chosen YEAR; if PAGE is omitted, both pages are |
| 76 |
printed. |
| 77 |
YEAR must be written with four digits. YEAR may NOT be omitted. |
| 78 |
FILE.tex is where to put the generated LaTeX code. (The output of |
| 79 |
the program must be redirected to some file that can be processed |
| 80 |
by LaTeX.) |
| 81 |
|
| 82 |
The following variants on this syntax are accepted: |
| 83 |
Arguments wholly or partly in uppercase are translated to |
| 84 |
lowercase. |
| 85 |
Arguments are recognised even if given in the wrong order. |
| 86 |
You may write any argument with - or / at the start, and, in |
| 87 |
general, obvious extra characters at start and end of arguments |
| 88 |
are ignored. |
| 89 |
|
| 90 |
Fatal errors: |
| 91 |
The program will stop with an error-message in these cases: |
| 92 |
if no YEAR is specified (in this case it prints a message showing |
| 93 |
the correct way to use the program); |
| 94 |
if YEAR < 1999 (years before 1999 are not provided for); |
| 95 |
if LANGUAGE is specified but is not one of the set given above. |
| 96 |
------------------------------------------ |
| 97 |
Dick Nickalls, Harald Harders, John Palmer |