diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
commit | 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch) | |
tree | 90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/isodate | |
parent | 950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (diff) |
doc/latex
git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/isodate')
-rw-r--r-- | Master/texmf-dist/doc/latex/isodate/ChangeLog | 87 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodate/README | 81 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodate/getversion.tex | 7 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodate/install.bat | 50 | ||||
-rwxr-xr-x | Master/texmf-dist/doc/latex/isodate/install.sh | 48 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodate/isodate.pdf | bin | 0 -> 242045 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodate/isodate.xml | 42 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodate/isodateo.pdf | bin | 0 -> 135483 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodate/testdate.pdf | bin | 0 -> 86628 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodate/testdate.tex | 165 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodate/testisodate_without_babel.pdf | bin | 0 -> 11499 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodate/testisodate_without_babel.tex | 5 |
12 files changed, 485 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/isodate/ChangeLog b/Master/texmf-dist/doc/latex/isodate/ChangeLog new file mode 100644 index 00000000000..1e0ea150c46 --- /dev/null +++ b/Master/texmf-dist/doc/latex/isodate/ChangeLog @@ -0,0 +1,87 @@ +2005/03/11 v2.27 Harald Harders (h.harders@tu-bs.de) + - Add option british. + +2005/03/10 v2.26 Harald Harders (h.harders@tu-bs.de) + - Support different input formats containing slashes. + - Force year in four digits for long formats. + +2005/02/21 v2.25 Harald Harders (h.harders@tu-bs.de) + - Changed \year, \month, and \day from macros to counters. + - Warning for unknown languages. + - Fall-back format for unknown languages. + +2005/02/17 v2.24 Harald Harders (h.harders@tu-bs.de) + - Add option frenchb. + +2004/11/19 v2.23 Harald Harders (h.harders@tu-bs.de) + - Avoid to use the \texttt{calc} package since it causes problems + with many other packages. + +2004/02/12 v2.22 Harald Harders (h.harders@tu-bs.de) + - Path changed according to new CTAN structure. + - Makefile adapted for TeX Live. + +2003/12/06 v2.21 Harald Harders (h.harders@tu-bs.de) + - Fix some bugs in date ranges when both month and year are equal + (several languages). + - Support to print date without year (in all language-dependent + commands \iso@printmonthday@... and \iso@printdate@...). + - Switch on or off printing of year. + +2003/12/06 v2.20 Harald Harders (h.harders@tu-bs.de) + - Add Australian and New Zealand. + - Avoid usage of \filedate and \fileversion. + +2003/10/26 v2.14 Harald Harders (h.harders@tu-bs.de) + - Control the number of digits for the day by a boolean rather + than by the command calls. + - Don't print day with two digits when Roman numerals are used + for the month. + - Allow change in format for month. + - Test on babel, german, and ngerman. + +2003/10/14 v2.12 Harald Harders (h.harders@tu-bs.de) + - Wrong one-digit months avoided. + - Test for babel improved. + +2003/10/13 v2.10 Harald Harders (h.harders@tu-bs.de) + - Removed section about solvable problems since it was wrong. + - Add month in Roman numerals. + - Added \twodigitarabic. + +2003/07/29 v2.07 Harald Harders (h.harders@tu-bs.de) + - Added Swedish language by Christian Schlauer. + +2002/04/08 v2.06 Harald Harders (h.harders@tu-bs.de) + - Changed range sign for French language, thanks to Felix Pütsch. + +2001/05/19 v2.05 Harald Harders (h.harders@tu-bs.de) + - Added an original format with a two digit year. + - Execute options at the end of the package instead of at the + end of the preamble. + +2001/05/17 v2.04 Harald Harders (h.harders@tu-bs.de) + - Added section for solvable problems. + +2001/05/04 v2.03 Harald Harders (h.harders@tu-bs.de) + - Allow change of spaces for German language. + - Fixed a bug in the French language that caused not to switch to + it correctly on startup. + - Allow change of spaces for German language. + +2000/10/03 v2.02 Harald Harders (h.harders@tu-bs.de) + - Changed the umlauts to normal TeX commands to be able to use + German dates without german.sty or babel.sty. + - Added Norwegian language by Svend Tollak Munkejord. + +2000/08/24 v2.01 Harald Harders (h.harders@tu-bs.de) + - For the case that none of the packages babel, german, and + ngerman is loaded there is a new macro \iso@languagename that + contains the name of the last loaded language. If one of the + packages is loaded it contains the current language. + - Handle case of not loaded language package babel, german and + ngerman. + +2000/08/21 v2.00 Harald Harders (h.harders@tu-bs.de) + - Total reimplementation of the package. The old package has + renamed to isodateo. diff --git a/Master/texmf-dist/doc/latex/isodate/README b/Master/texmf-dist/doc/latex/isodate/README new file mode 100644 index 00000000000..0a43d34fa9c --- /dev/null +++ b/Master/texmf-dist/doc/latex/isodate/README @@ -0,0 +1,81 @@ +isodate.sty +=========== + +Tune the output format of dates. + +This package provides ten output formats of the +commands \today, \printdate, \printdateTeX, and \daterange +(partly language dependent): +ISO (yyyy-mm-dd), +numeric (e.g. dd.\,mm.~yyyy), +short (e.g. dd.\,mm.\,yy), +TeX (yyyy/mm/dd), +original (e.g. dd. mmm yyyy), +short original (e.g. dd. mmm yy), +as well as numerical formats with Roman numerals for the month. + +The commands \printdate and \printdateTeX print any date. +The date is given as an argument using the actual date format for output: +\printdate{yyyy-mm-dd}, \printdate{dd.mm.yyyy}, or \printdate{dd/mm/yyyy}, +and \printdateTeX{yyyy/mm/dd}. + +The command \daterange prints a date range and leaves out unnecessary +year or month entries. +E.g. 2000-05-03 to 2000-05-08 leads to `2000-05-03 to 08'. + +This package supports Danish, English (UK, US, Australian, New Zealand), +French, German (old and new orthography, Austrian), Norwegian (by Svend +Tollak Munkejord), and Swedish (by Christian Schlauer). + +The idea for this package was taken from the akletter class. + + +Version 2.0 was totally rewritten so that some incompatiblities may occur. +The old version is still available as isodateo.sty (`o' for old). + + +Copyright 2000--2005 Harald Harders + +This program can be redistributed and/or modified under the terms +of the LaTeX Project Public License Distributed from CTAN +archives in directory macros/latex/base/lppl.txt; either +version 1 of the License, or any later version. + + + +Installation: + +before installing: - be sure that the package substr.sty is installed on your + system. If not download it from + CTAN:/macros/latex/contrib/substr/ and install it. + +automatic: - run "make". + - copy isodate.sty and *.idf to a place where LaTeX can find them + or run "make install". + - run texhash or the corresponding command of your distribution. + +by hand: - execute latex on isodate.ins. + - run texhash or the corresponding command of your distribution. + You should not compile the documentation by yourself since it + uses a non-standard package (morefloats.sty). If you still want + to compile it by yourself, do the following: + - execute latex on isodate.dtx (2x). + - copy isodate.sty and *.idf to a place LaTeX can find them. + - run texhash or the corresponding command of your distribution. + + + +List of known errors: + - The \printdate and \printdateTeX commands are not very good in + checking the argument for correct syntax. + - Isodate and draftcopy do not work together. + +To do: + - add other languages + - Format short given years to four digits and calculate reasonable + first and second digits. + + +2005-02-17 +Harald Harders +h.harders@tu-bs.de diff --git a/Master/texmf-dist/doc/latex/isodate/getversion.tex b/Master/texmf-dist/doc/latex/isodate/getversion.tex new file mode 100644 index 00000000000..01d3b4bd352 --- /dev/null +++ b/Master/texmf-dist/doc/latex/isodate/getversion.tex @@ -0,0 +1,7 @@ +\documentclass[english]{ltxdoc} +\nofiles +\usepackage{isodate} +\GetFileInfo{isodate.sty} +\typeout{VERSION \fileversion} +\begin{document} +\end{document} diff --git a/Master/texmf-dist/doc/latex/isodate/install.bat b/Master/texmf-dist/doc/latex/isodate/install.bat new file mode 100644 index 00000000000..5c169c27781 --- /dev/null +++ b/Master/texmf-dist/doc/latex/isodate/install.bat @@ -0,0 +1,50 @@ +rem This file is not tested due to not having DOS or Windows
+
+rem Generate package file
+latex isodate.ins
+latex isodateo.ins
+
+rem Generate documentation
+latex isodate.dtx
+latex isodate.dtx
+makeindex -s gind.ist isodate
+makeindex -s gglo.ist -o isodate.gls isodate.glo
+latex isodate.dtx
+dvips -o isodate.ps isodate
+del isodate.glo
+del isodate.gls
+del isodate.idx
+del isodate.ilg
+del isodate.ind
+del isodate.aux
+del isodate.log
+del isodate.toc
+
+latex isodateo.dtx
+latex isodateo.dtx
+makeindex -s gind.ist isodateo
+makeindex -s gglo.ist -o isodateo.gls isodateo.glo
+latex isodateo.dtx
+dvips -o isodateo.ps isodateo
+del isodateo.glo
+del isodateo.gls
+del isodateo.idx
+del isodateo.ilg
+del isodateo.ind
+del isodateo.aux
+del isodateo.log
+del isodateo.toc
+
+rem Generate example
+latex testdate
+dvips -o testdate.ps testdate
+del testdate.aux
+del testdate.log
+
+rem test the package
+latex tstlang
+
+echo .
+echo .
+echo "Please copy isodate.sty, *.idf, and isodateo.sty to a directory"
+echo "in the LaTeX search path"
diff --git a/Master/texmf-dist/doc/latex/isodate/install.sh b/Master/texmf-dist/doc/latex/isodate/install.sh new file mode 100755 index 00000000000..72e1fd03d34 --- /dev/null +++ b/Master/texmf-dist/doc/latex/isodate/install.sh @@ -0,0 +1,48 @@ +#!/bin/sh +if [ -z `kpsewhich substr.sty` ] +then + echo + echo "Error installing isodate:" + echo "This version of isodate needs the package substr.sty" + echo "which cannot be found in your system." + echo + echo "Please download it from CTAN:/macros/latex/contrib/supported/substr/." + echo "One of the possible CTAN nodes is ftp.dante.de." + echo "Try to execute install.sh after installing substr.sty again." + echo + exit +fi + +# Generate package files +latex isodate.ins +latex isodateo.ins + +# Generate documentation +latex isodate.dtx +latex isodate.dtx +makeindex -s gind.ist isodate +makeindex -s gglo.ist -o isodate.gls isodate.glo +latex isodate.dtx +dvips -o isodate.ps isodate +rm isodate.{glo,gls,idx,ilg,ind,aux,log,toc} + +latex isodateo.dtx +latex isodateo.dtx +makeindex -s gind.ist isodateo +makeindex -s gglo.ist -o isodateo.gls isodateo.glo +latex isodateo.dtx +dvips -o isodateo.ps isodateo +rm isodateo.{glo,gls,idx,ilg,ind,aux,log,toc} + +# Generate example +latex testdate +dvips -o testdate.ps testdate +rm testdate.{aux,log} + +# test the package +latex tstlang + +echo +echo +echo "Please copy isodate.sty, *.idf, and isodateo.sty to a directory" +echo "in the LaTeX search path" diff --git a/Master/texmf-dist/doc/latex/isodate/isodate.pdf b/Master/texmf-dist/doc/latex/isodate/isodate.pdf Binary files differnew file mode 100644 index 00000000000..117c3f2ef8e --- /dev/null +++ b/Master/texmf-dist/doc/latex/isodate/isodate.pdf diff --git a/Master/texmf-dist/doc/latex/isodate/isodate.xml b/Master/texmf-dist/doc/latex/isodate/isodate.xml new file mode 100644 index 00000000000..93e6de239bc --- /dev/null +++ b/Master/texmf-dist/doc/latex/isodate/isodate.xml @@ -0,0 +1,42 @@ +<?xml version="1.0"?> +<!DOCTYPE entry SYSTEM "../catalogue.dtd"> +<entry id="isodate" + datestamp="2005/03/11" + modifier="h.harders@tu-bs.de"> + <about> + <name>isodate</name> + <caption>Tune the output format of dates language dependent.</caption> + <author> + <name>Harald Harders</name> + <email>h.harders@tu-bs.de</email> + </author> + <license type="lppl"/> + <version> + <number>2.27</number> + </version> + </about> + <description> + <abstract> + This package provides ten output formats of the + commands \today, \printdate, \printdateTeX, and \daterange + (partly language dependent): + ISO (yyyy-mm-dd), numeric (e.g. dd.\,mm.~yyyy), short + (e.g. dd.\,mm.\,yy), TeX (yyyy/mm/dd), original (e.g. dd. mmm yyyy), + short original (e.g. dd. mmm yy), as well as numerical formats with + Roman numerals for the month. + The commands \printdate and \printdateTeX print any date. + The command \daterange prints a date range and leaves out unnecessary + year or month entries. + This package supports German (old and new rules, Austrian), US + English, French, Danish, Swedish, and Norwegian. + </abstract> + <documentation location="http" type="pdf"> + http://www.act.cmis.csiro.au/gjw/tex/docs/isodate.pdf + </documentation> + </description> + <distribution> + <texlive>latex3</texlive> + <ctan>macros/latex/contrib/isodate</ctan> + </distribution> +</entry> + diff --git a/Master/texmf-dist/doc/latex/isodate/isodateo.pdf b/Master/texmf-dist/doc/latex/isodate/isodateo.pdf Binary files differnew file mode 100644 index 00000000000..5399398f183 --- /dev/null +++ b/Master/texmf-dist/doc/latex/isodate/isodateo.pdf diff --git a/Master/texmf-dist/doc/latex/isodate/testdate.pdf b/Master/texmf-dist/doc/latex/isodate/testdate.pdf Binary files differnew file mode 100644 index 00000000000..7aa5112cb25 --- /dev/null +++ b/Master/texmf-dist/doc/latex/isodate/testdate.pdf diff --git a/Master/texmf-dist/doc/latex/isodate/testdate.tex b/Master/texmf-dist/doc/latex/isodate/testdate.tex new file mode 100644 index 00000000000..c7d8086589c --- /dev/null +++ b/Master/texmf-dist/doc/latex/isodate/testdate.tex @@ -0,0 +1,165 @@ +\documentclass[spanish,swedish,norsk,danish,french,USenglish,english,newzealand,naustrian,ngerman,a4paper,fleqn,11pt]{article} +\usepackage[T1]{fontenc} +\usepackage{babel} +\usepackage[iso]{isodate} +%\usepackage{ngerman} +%\usepackage{bibgerm} +\shortyearsign{'} +%\printyearoff + +\setlength{\parindent}{0mm} +\addtolength\textheight{4\baselineskip} + +\makeatletter +\newcommand{\example}[2][]{% + \@ifundefined{l@#2}{% + \section*{Language: #2} + Not available since babel does not know this language. + }{% + \selectlanguage{#2} +% \ifthenelse{\equal{#2}{american}}{\dateamerican}{}% + \section*{Language: \languagename#1} + \begin{tabular}{@{}lll} + today&normal date format&``\origdate\today''\\ + &short original&``\shortorigdate\today''\\ + &isodate&``\isodate\today''\\ + &numdate&``\numdate\today''\\ + &shortdate&``\shortdate\today''\\ + &TeXdate&``\TeXdate\today''\\ + &Romandate&``\Romandate\today''\\ + &romandate&``\romandate\today''\\ + &shortRomandate&``\shortRomandate\today''\\ + &shortromandate&``\shortromandate\today''\\ + &back to normal&``\origdate\today''\\ + another day&normal date format&``\origdate\printdate{1972-1-9}''\\ + &short original&``\shortorigdate\printdate{9.1.1972}''\\ + &isodate&``\isodate\printdate{9.1.1972}''\\ + &numdate&``\numdate\printdate{1972-1-9}''\\ + &shortdate&``\shortdate\printdate{1972-1-9}''\\ + &TeXdate&``\TeXdate\printdate{1972-1-9}''\\ + &Romandate&``\Romandate\printdate{1972-1-9}''\\ + &romandate&``\romandate\printdate{1972-1-9}''\\ + &shortRomandate&``\shortRomandate\printdate{1972-1-9}''\\ + &shortromandate&``\shortromandate\printdate{1972-1-9}''\\ + &back to normal&``\origdate\printdate{9/1/1972}''\\ + range 1&normal date format&``\origdate\daterange{1972-1-30}{1972-1-31}''\\ + &short original&``\shortorigdate\daterange{1972-1-30}{1972-1-31}''\\ + &isodate&``\isodate\daterange{1972-1-30}{1972-1-31}''\\ + &numdate&``\numdate\daterange{1972-1-30}{1972-1-31}''\\ + &shortdate&``\shortdate\daterange{1972-1-30}{1972-1-31}''\\ + &TeXdate&``\TeXdate\daterange{1972-1-30}{1972-1-31}''\\ + &Romandate&``\Romandate\daterange{1972-1-30}{1972-1-31}''\\ + &back to normal&``\origdate\daterange{1972-1-30}{1972-1-31}''\\ + range 2&normal date format&``\origdate\daterange{1972-1-30}{1972-2-28}''\\ + &short original&``\shortorigdate\daterange{1972-1-30}{1972-2-28}''\\ + &isodate&``\isodate\daterange{1972-1-30}{1972-2-28}''\\ + &numdate&``\numdate\daterange{1972-1-30}{1972-2-28}''\\ + &shortdate&``\shortdate\daterange{1972-1-30}{1972-2-28}''\\ + &TeXdate&``\TeXdate\daterange{1972-1-30}{1972-2-28}''\\ + &Romandate&``\Romandate\daterange{1972-1-30}{1972-2-28}''\\ + &back to normal&``\origdate\daterange{1972-1-30}{1972-2-28}''\\ + range 3&normal date format&``\origdate\daterange{1972-1-30}{2001-1-28}''\\ + &short original&``\shortorigdate\daterange{1972-1-30}{2001-1-28}''\\ + &isodate&``\isodate\daterange{1972-1-30}{2001-1-28}''\\ + &numdate&``\numdate\daterange{1972-1-30}{2001-1-28}''\\ + &shortdate&``\shortdate\daterange{1972-1-30}{2001-1-28}''\\ + &TeXdate&``\TeXdate\daterange{1972-1-30}{2001-1-28}''\\ + &back to normal&``\origdate\daterange{1972-1-30}{2001-1-28}''\\ + \end{tabular}% + }% +} +\makeatother +\begin{document} +%\today + +%\monthyearsepgerman{\qquad}{\quad}% +%\daymonthsepgerman{\quad}% + +\example{ngerman} +\example{naustrian} +\example{english} +\example{newzealand} +\example{USenglish} +%\example{american} +\example{french} +\example{danish} +\example{norsk} +\example{swedish} +\example[ (not defined in isodate)]{spanish} + +\selectlanguage{english}% + +\section*{Changed ISO output} +\isodate +\printdate{24/12/2000} + +\isodash{--} +\printdate{24/12/2000} + +\isodash{$\cdot$} +\printdate{24.12.2000} + +\section*{Strange date formats} +\numdate[Alph] +\printdate{4.1.2000} + +\printdate{4.2.2000} + +\printdate{1.11.2000} + +\printdate{4.12.2000} + +\numdate[Alph]% +\isotwodigitdayfalse +\printdate{4.1.2000} + +\printdate{4.2.2000} + +\printdate{1.11.2000} + +\printdate{4.12.2000} + +\def\tuetel#1{\textsuperscript{\twodigitarabic{#1}}} +\numdate[tuetel] +\printdate{4.1.2000} + +\printdate{4.2.2000} + +\printdate{1.11.2000} + +\printdate{4.12.2000} + +\selectlanguage{ngerman} +\numdate +\printdate{4.12.0002} + +\shortdate +\printdate{4.12.0002} + +\selectlanguage{spanish} +\printdate{4.12.0002} + +\section*{Test input format} +\selectlanguage{english}% +\isodate\isodash{-}% + +\dateinputformat{english}% +\printdate{31/12/2004} (english \verb|\printdate{31/12/2004}|) + +\daterange{31/12/2004}{15/01/2005} + +\dateinputformat{USenglish}% +\printdate{12/31/2004} (american \verb|\printdate{12/31/2004}|) + +\daterange{12/31/2004}{01/15/2005} + + +\dateinputformat{tex}% +\printdate{2004/12/31} (tex \verb|\printdate{2004/12/31}|) + +\daterange{2004/12/31}{2005/01/15} + + + +\end{document} + diff --git a/Master/texmf-dist/doc/latex/isodate/testisodate_without_babel.pdf b/Master/texmf-dist/doc/latex/isodate/testisodate_without_babel.pdf Binary files differnew file mode 100644 index 00000000000..03a55b4db37 --- /dev/null +++ b/Master/texmf-dist/doc/latex/isodate/testisodate_without_babel.pdf diff --git a/Master/texmf-dist/doc/latex/isodate/testisodate_without_babel.tex b/Master/texmf-dist/doc/latex/isodate/testisodate_without_babel.tex new file mode 100644 index 00000000000..4a309973733 --- /dev/null +++ b/Master/texmf-dist/doc/latex/isodate/testisodate_without_babel.tex @@ -0,0 +1,5 @@ +\documentclass[american]{article} +%\usepackage{babel} +\usepackage[iso]{isodate} +\title{Just a Test}\author{Just a Test}\date{\today} +\begin{document}\maketitle\end{document} |