diff options
author | Karl Berry <karl@freefriends.org> | 2010-09-08 23:10:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-09-08 23:10:15 +0000 |
commit | f328f8f461746d6d176bc5066247026665c2b141 (patch) | |
tree | 0e295aca8dd3bf56c1da940b81bc358b9c4dec32 /Master/texmf-dist/source/latex/isodoc/isodoc.dtx | |
parent | 09c06007c38c5bd1bfe5a3b367fe3a273277da8d (diff) |
isodoc update (25aug10)
git-svn-id: svn://tug.org/texlive/trunk@19617 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/isodoc/isodoc.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/isodoc/isodoc.dtx | 837 |
1 files changed, 502 insertions, 335 deletions
diff --git a/Master/texmf-dist/source/latex/isodoc/isodoc.dtx b/Master/texmf-dist/source/latex/isodoc/isodoc.dtx index 0f725ef2ec9..f59c2396af1 100644 --- a/Master/texmf-dist/source/latex/isodoc/isodoc.dtx +++ b/Master/texmf-dist/source/latex/isodoc/isodoc.dtx @@ -22,18 +22,16 @@ %<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<class>\ProvidesClass{isodoc}% %<*class> - [2009/11/16 v0.7 isodoc class for letters and invoices] + [2010/08/25 v0.8 isodoc class for letters and invoices] %</class> -%<class>\ifnum\pdfoutput=1\else\ClassError{isodoc}{Compile me with pdflatex!}{} -%<class>\fi +%<class>\ifx\pdfoutput\undefined\else% +%<class>\ifnum\pdfoutput=1\else\ClassError{isodoc}{Compile me with pdflatex or xelatex!}{} +%<class>\fi\fi %<*driver> \documentclass{ltxdoc} -\usepackage[a4paper,margin=25mm,left=50mm,nohead]{geometry} -\usepackage{txfonts}\pdfprotrudechars=1 \usepackage[l2tabu,orthodox]{nag} \usepackage{ctable,pdfpages,paralist,eurosym,sverb,ltablex} \parindent0pt\parskip1ex -\EnableCrossrefs \PageIndex \IndexPrologue{\section*{Index}} \newcommand{\FIG}[3]{ % pdfname label caption @@ -54,12 +52,11 @@ \def\CMP#1{\C{#1}\marginpar{\C{#1}}} \begin{document} \DocInput{isodoc.dtx} - \PrintIndex \end{document} %</driver> % \fi % -% \CheckSum{1941} +% \CheckSum{2301} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -139,7 +136,7 @@ % \lastpage@putlabel, \let, \long, \multicolumn, \newcommand, \newcount, % \newdimen, \newenvironment, \newif, \newlabel, \noindent, \number, \o, \or, % \pageref, \pagestyle, \paperheight, \paperwidth, \par, \parindent, \parskip, -% \pdfinfo, \pdfprotrudechars, \qquad, \quad, \raggedright, \raisebox, \relax, +% \pdfinfo, \qquad, \quad, \raggedright, \raisebox, \relax, % \rightskip, \rule, \scriptsize, \scshape, \selectlanguage, \setbox, % \setcounter, \setkeys, \sffamily, \space, \string, \tbfigures, \textbf, % \textbullet, \thepage, \thispagestyle, \undefined, \unskip, \usepackage, @@ -238,25 +235,27 @@ % source, although several will normally only be used in style files (such as % |company|) and some only in the document source (such as |to| or |opening|). % -% \OPTS{Language}{Currently only a few languages are defined. As I am not particularly +% \OPTS{Language}{The options described here relate to the language used +% for the isodoc interface (headings, footings, date, banking data and so +% on.) This language is independent of the language you set with the |babel| +% or |polyglossia| packages. So, for example, you can write your document in english and +% use dutch for the interface. Also, use of |babel| or |polyglossia| is not required. +% +% Currently only a few interface languages are defined. As I am not particularly % strong in the translation of administrative terminology, please feel free to % send me corrections. And if you don't find your own language here, please send -% me your translations and your language will be added. The keywords below set -% the language, English is used by default.}{ -% \T{dutch} & Set language to Dutch, \NN -% \T{english} & English,\NN -% \T{german} & German,\NN -% \T{american} & American,\NN -% \T{norwegian} & Norwegian,\NN -% \T{french} & or French.\NN -% \T{foreign} & Use this key if you send your letter to a foreign -% country. With it, your country will be added to -% return and logo addresses, your zip code will be -% prefixed with your country code, telephone numbers will -% be prefixed with +31-- (or whatever your \T{areacode} -% option has been set to) instead of just a 0. In -% the \C{accountdata} command, it causes \textsc{iban} en -% \textsc{bic} code to be included.\NN +% me your translations and your language will be added. +% +% The options below set the language, UKenglish is used by default. Preferably, the |language| +% option should be used; the other options are there for compatibility with earlier versions.}{ +% \T{language = ...} & sets the interface language to any language defined by the class. +% Currently these are: UKenglish, USenglish, french, german, dutch, +% italian, spanish, catalan, norsk, serbian\NN +% \T{dutch} & a synonym for |language = dutch|, \NN +% \T{english} & a synonym for |language = UKenglish|,\NN +% \T{german} & a synonym for |language = german|,\NN +% \T{american} & a synonym for |language = USenglish|,\NN +% \T{french} & a synonym for |language = french|.\NN % } % % \OPTS{Logo}{Information about the sender is defined here. The logo, by @@ -284,6 +283,15 @@ % key was used.\NN % \T{countrycode = ...}& Sender's country code. For The Netherlands: NL\NN % \T{areacode = ...} & Sender's area code. For The Netherlands: 31\NN +% \T{foreign} & Use this key if you send your letter to a foreign +% country. With it, your country will be added to +% return and logo addresses, your zip code will be +% prefixed with your country code, telephone numbers will +% be prefixed with +31-- (or whatever your \T{areacode} +% option has been set to) instead of just a 0. In +% the \C{accountdata} command, it causes \textsc{iban} en +% \textsc{bic} code to be included, unless the |localbank| +% option is used.\NN % } % % \OPTS{Address window}{The addressee's address is printed in a window. The @@ -324,6 +332,7 @@ % bullets.\NN % } % +% \pagebreak % \OPTS{Header fields}{Under the address window, a header is printed. The % page is vertically divided in six columns, one each for the left and right % margins, and four which, in the header, @@ -360,7 +369,6 @@ % third fields.\NN % } % -% \pagebreak %%% % \OPTS{Opening and Closing}{A letter is started with an opening -- something % like `Dear John', and ended with a closing -- something like % `Regards,\T{<newline>}Betty', perhaps with an autograph (or white space) in between.}{ @@ -399,8 +407,8 @@ % \T{[no]footer} & enables or disables printing a page footer; there is room % for upto four fields, if you set five fields, the last % one will appear in the right margin.\NN -% \T{phoneprefix} & prefix for phone numbers. The default is `0'; will be changed -% into `+$<$areacode$>$-' if the \T{foreign} option is used.\NN +% \T{phoneprefix} & prefix for phone numbers. The default is `0'; will be changed +% into `+$<$areacode$>$-' if the \T{foreign} option is used.\NN % \T{phone = ...} & if not empty, prints `phone' in the first field of the % page footer, with the contents under it, prefixed with a~0 or, % if the \T{foreign} option was used, the areacode (set with the @@ -464,9 +472,6 @@ % \T{[no]fill} & Use the \T{fill} keyword to justify text both left and % right; the default is \T{nofill}: left justification % only.\NN -% \T{fontpackage = ...} & The default font is Latin Modern (\T{fontpackage = lmodern}), -% but with the \T{fontpackage} keyword you can select another -% package, like \T{txfonts} or \T{osf-txfonts}.\NN % \T{shift = ...} & The many textpositions in isodoc are defined in millimeters, % but sometimes printers show an aberration in their horizontal % or vertical printing position. You can correct for this with the @@ -502,7 +507,7 @@ % acceptaccount &areacode &email &phone &who \NN % acceptaddress &autograph &enclosures &phoneprefix &yourletter \NN % acceptcents &bic &fax &returnaddress &yourref \NN -% acceptdesc &cellphone &fontpackage &rightaddress &zip \NN +% acceptdesc &cellphone &rightaddress &zip \NN % acceptdescription &chamber &forcedate &routingno & \NN % accepteuros &city &iban &signature & \NN % acceptreference &closing &leftaddress &street & \NN @@ -744,22 +749,19 @@ % spacing in tables and more. |ctable| also brings us |array|, |tabularx|, % |color|, and |xkeyval|. |eurosym| is used for the euro symbol. % \begin{macrocode} -\RequirePackage{ctable,eurosym,graphicx,stringstrings} -\RequirePackage[dutch,norsk,german,frenchb,american,english]{babel} +\RequirePackage{ctable,eurosym,graphicx,stringstrings,calc} % \end{macrocode} % % Since the name of the package contains 'iso', make the page A4. % For textpos, divide the page in 210 columns of 1mm each % and 297 rows, 1mm each. The page is vertically divided in 6 columns of % 35mm each: a left margin, 4 fields, and a right margin. -% If the class option |landscape| is used, the paper still stays divided in -% 1mm x 1mm cells. This may be useful if you use the isodoc class for other -% purposes. % % \begin{macrocode} -\RequirePackage[a4paper,margin=35mm,nofoot,head=\baselineskip]{geometry} +\RequirePackage[nofoot,head=\baselineskip]{geometry} \RequirePackage[absolute,overlay]{textpos} -\ifdim\paperwidth>\paperheight\TPGrid{297}{210}\else\TPGrid{210}{297}\fi +\geometry{papersize={210mm,297mm},margin=35mm} +\TPGrid{210}{297} % \end{macrocode} % Several colors can be changed, by using the |\definecolor| command; % the defaults (all black) are set here:\\ @@ -781,18 +783,7 @@ % \begin{macrocode} \RequirePackage{fancyhdr} \pagestyle{fancy} -\fancyhf{} -\if@twoside - \fancyhead[LE,RO]{\color{headingcolor}% - \pagetext\ \thepage\ \oftext{} \pageref{LastPageOf\thelettercount}} - \fancyhead[RE,LO]{\color{headingcolor}% - \totext: \toname\ (\date)} -\else - \fancyhead[L]{\color{headingcolor}% - \totext: \toname\ (\date)} - \fancyhead[R]{\color{headingcolor}% - \pagetext\ \thepage\ \oftext{} \pageref{LastPageOf\thelettercount}} -\fi +\AtBeginDocument{\addtolength{\headheight}{\baselineskip}} % \end{macrocode} % The |\xxxdoc| commands (like |\dutchdoc|) set the default language via % |\AtBeginDocument|, but other language changes should be done without that. @@ -816,13 +807,6 @@ % \end{macrocode} % \subsection{The options and their defaults} % \subsubsection{General options} -% The default font is latin modern (using the |lmodern| package). -% \DescribeMacro{fontpackage} -% The |fontpackage| option can be used to select another font. -% \begin{macrocode} -\define@key{isodoc}{fontpackage}{\def\fontpackage{#1}} - \def\fontpackage{lmodern} -% \end{macrocode} % The default shift is 0mm,0mm. % \DescribeMacro{shift} % The |shift| option moves the output to the right and down: @@ -837,10 +821,20 @@ % be sent abroad; this is set with the |foreign| option, false by default: % \DescribeMacro{foreign} % \begin{macrocode} -\define@key{isodoc}{cityzip}[\cityziptrue]{\cityziptrue} - \newif\ifcityzip\cityzipfalse \define@key{isodoc}{foreign}[\foreigntrue]{\foreigntrue} \newif\ifforeign\foreignfalse +% \end{macrocode} +% \DescribeMacro{cityzip} +% By default, the zip code is typeset before the city. +% The |cityzip| option reverses this: +% \begin{macrocode} +\define@key{isodoc}{cityzip}[\cityziptrue]{\cityziptrue} + \newif\ifcityzip\cityzipfalse +% \end{macrocode} +% \DescribeMacro{localbank} +% When the |foreign| option is used, \textsc{iban} and \textsc{bic} codes are +% reported, but this can be suppressed with the |localbank| option: +% \begin{macrocode} \define@key{isodoc}{localbank}[\localbanktrue]{\localbanktrue} \newif\iflocalbank\localbankfalse % \end{macrocode} @@ -849,17 +843,16 @@ % \DescribeMacro{german} % \DescribeMacro{american} % \DescribeMacro{french} -% \DescribeMacro{norwegian} +% \DescribeMacro{language} % The following keys set the language; English, set at the |\EndOfClass| is the % default. % \begin{macrocode} -\define@key{isodoc}{dutch} []{\dutchdoc} -\define@key{isodoc}{english} []{\englishdoc} - \AtEndOfClass{\englishdoc} -\define@key{isodoc}{german} []{\germandoc} -\define@key{isodoc}{american}[]{\americandoc} -\define@key{isodoc}{french} []{\frenchdoc} -\define@key{isodoc}{norwegian} []{\norwegiandoc} +\define@key{isodoc}{dutch} []{\isodoc@dutch} +\define@key{isodoc}{english} []{\isodoc@UKenglish} +\define@key{isodoc}{german} []{\isodoc@german} +\define@key{isodoc}{american}[]{\isodoc@USenglish} +\define@key{isodoc}{french} []{\isodoc@french} +\define@key{isodoc}{language}{\csname isodoc@#1\endcsname} % \end{macrocode} % \DescribeMacro{fill} % \DescribeMacro{nofill} @@ -972,9 +965,12 @@ % at 98mm from the top of the paper, but it can be shifted with % the |bodyshift| option. % \begin{macrocode} -\define@key{isodoc}{bodyshift} {\advance\headerpos#1\advance\bodyskip#1mm} - \newdimen\bodyskip\bodyskip=0mm +\define@key{isodoc}{bodyshift} {\advance\headerpos#1} \newcount\headerpos\headerpos=98 +\newcount\footerpos\footerpos=275 +\newcount\subjectpos +\newcount\openingpos +\newcount\textskip % \end{macrocode} % % \subsubsection{Footer} @@ -1100,7 +1096,6 @@ % |openingcomma| has been used to set it to a different character, like a % semicolon or an exclamation mark. % \begin{macrocode} -\newcount\openingpos \define@key{isodoc}{opening} {\def\opening{#1}} \def\openingcomma{,} \define@key{isodoc}{openingcomma}{\def\openingcomma{#1}} @@ -1166,7 +1161,7 @@ \define@key{isodoc}{chamber} {\def\chamber{#1}} \def\chamber{Undefined{chamber}} \define@key{isodoc}{currency} {\def\currency{#1}} - \def\currency{\EUR} + \def\currency{\EUR} % \end{macrocode} % \DescribeMacro{accept} % \DescribeMacro{acceptaccount} @@ -1317,8 +1312,6 @@ \newcommand{\setupdocument}[1]{ \setkeys{isodoc}{#1} \iffooter\else\geometry{bottom=25mm}\fi - \RequirePackage[T1]{fontenc} - \RequirePackage{\fontpackage}\pdfprotrudechars=1 } % \end{macrocode} % \DescribeMacro{\@isomakedate} @@ -1367,7 +1360,7 @@ % \begin{macrocode} \def\footfield#1#2#3{% \ifx#3\empty\else - \Tbox{\footcount}{275}{35}{\noindent + \Tbox{\footcount}{\footerpos}{35}{\noindent {\@hft#1}\\ #2#3 } @@ -1378,7 +1371,8 @@ % \DescribeMacro{\accountdata} % Print a table with banking information. Show account number, account % name + city, and a reference. If the |foreign| key was used, -% \textsc{iban} and \textsc{bic} codes are also reported. +% \textsc{iban} and \textsc{bic} codes are also reported, but can be suppressed +% with the |localbank| option. % \begin{macrocode} \def\accountdata{ \textbf{\accountdatatext:}\\ @@ -1440,7 +1434,6 @@ email & \email\NN enclosures & \enclosures\NN fax & \fax\NN - fontpackage & \fontpackage\NN forcedate & \forcedate\NN iban & \iban\NN leftaddress & \leftaddress\NN @@ -1471,7 +1464,7 @@ } \AtEndDocument{% \hypersetup{pdfauthor={\who}, - pdfproducer={isodoc v\fileversion}, + pdfproducer={isodoc v\fileversion} } } % \DescribeMacro{\itable} @@ -1494,20 +1487,15 @@ % |\itotal| inserts an invoice total in the |\itable|.\\ % It inserts |\cmidrule[.05em]{2-2}Total & arg1\NN|: % \begin{macrocode} -\def\itotal#1{\cmidrule[.05em]{2-2}\Totaltext&\textbf{#1}\NN} +\def\itotal#1{\cmidrule[.05em]{2-2}\totaltext&\textbf{#1}\NN} % \end{macrocode} % The counter |\lettercount| is used to construct a label on the last % page of each letter/invoice of this document; it wil be set to % \texttt{LastPageOf\textsl{n}}, where \textsl{n} is the letter % number: 1, 2, 3, ... This allows for page headings saying ``Page n -% of m.'' Whether we are on the last page of a letter is only known -% either at |\end{document}| or when a new letter is started. This is -% why a label is set at the start of a |\letter| call, thus labeling -% the last page of the previous letter and using |\AtEndDocument| for -% the last letter, which would otherwise stay unlabeled. +% of m.'' This label is automatically added at the end of each letter. % \begin{macrocode} \newcounter{lettercount}\setcounter{lettercount}{0} -\AtEndDocument{\label{LastPageOf\thelettercount}} % \end{macrocode} % \DescribeMacro{\invoice} % |\invoice| prints an invoice. The first argument is optional, and may @@ -1526,23 +1514,46 @@ \newcommand{\invoice}[2][]{% \closingfalse \def\barsep{\raisebox{-1.5ex}[0pt][0pt]{\rule{.05em}{4ex}}}% - \letter[#1,opening=\invoicetext,openingcomma={},closing={},signature={}]{% - \Tbox{35}{127}{140}{#2} - } + \letter[#1, + opening={\bfseries\scshape\Large\invoicetext}, + openingcomma={}, + closing={}, + signature={}]{\Tbox{35}{127}{140}{#2}} } % \end{macrocode} % \DescribeMacro{\letter} % |\letter| prints a letter... +% The code is enclosed in an extra pair of braces, in order to keep option changes local % \begin{macrocode} -\newcommand{\letter}[2][]{{ % extra brace keeps option changes local - \setkeys{isodoc}{#1} - \hypersetup{pdftitle={letter to \toname\ dated \today}, - pdfsubject={\subject}} - \label{LastPageOf\thelettercount} +\newcommand{\letter}[2][]{{% \newpage + \setkeys{isodoc}{#1} +% \end{macrocode} +% By now, a language should have been chosen; if not, issue a warning +% and set the language to the default: UKenglish +% \begin{macrocode} + \ifx\yourlettertext\undefined\ClassWarning{isodoc}{ + You did not use the language option; using the default: UKenglish + }\isodoc@UKenglish\fi + \ifnum\value{lettercount}=0% + \hypersetup{pdftitle={letter to \toname\ dated \today}, + pdfsubject={\subject}} + \fi \addtocounter{lettercount}{1} \setcounter{page}{1} \setcounter{footnote}{0} + \fancyhf{} + \if@twoside + \fancyhead[LE,RO]{\color{headingcolor}% + \pagetext\ \thepage\ \oftext{} \begin{NoHyper}\pageref{LastPageOf\thelettercount}\end{NoHyper}} + \fancyhead[RE,LO]{\color{headingcolor}% + \totext: \toname\ (\date)} + \else + \fancyhead[L]{\color{headingcolor}% + \totext: \toname\ (\date)} + \fancyhead[R]{\color{headingcolor}% + \pagetext\ \thepage\ \oftext{} \begin{NoHyper}\pageref{LastPageOf\thelettercount}\end{NoHyper}} + \fi \logo % \end{macrocode} % addresscenter is the center, vertically, of the to-address block: @@ -1559,10 +1570,12 @@ \toname\\\toaddress \end{textblock} } - \openingpos=\headerpos + \subjectpos=\headerpos + \textskip=\headerpos\advance\textskip-12 + \ifx\subject\empty\advance\textskip-10\else\advance\subjectpos10\fi + \openingpos=\subjectpos \ifheader - \advance\openingpos12 - \advance\bodyskip12mm + \openingpos=\subjectpos\advance\openingpos12 \Tbox{35}{\headerpos}{35}{\noindent {\@hft\yourlettertext}\\ \yourletter @@ -1582,14 +1595,14 @@ \else\forcedate\fi } \ifx\subject\empty\else% - \advance\openingpos10 - \advance\bodyskip10mm - \Tbox{35}{108}{105}{\noindent + \Tbox{35}{\subjectpos}{105}{\noindent \begin{tabularx}{\hsize}{@{}l>{\raggedright}X@{}} \@hft\subjecttext&\subject \end{tabularx} } \fi + \else + \advance\textskip-12 \fi \footcount=35 \iffooter @@ -1605,10 +1618,8 @@ \end{textblock*} } \ifx\undefined\accepttype\else\accept\fi - \ifx\subject\empty\vspace*{80mm}\else\vspace*{90mm}\fi - \noindent\Tbox{35}{\ifx\subject\empty110\else120\fi}{140}{\opening\openingcomma} - \thispagestyle{empty} - + \noindent\Tbox{35}{\openingpos}{140}{\opening\openingcomma} + \vspace{\textskip mm} \thispagestyle{empty} \noindent #2 @@ -1636,6 +1647,7 @@ \\\enclosures \fi } + \label{LastPageOf\thelettercount} }} % \end{macrocode} % \subsection{Internal Macros} @@ -1714,255 +1726,410 @@ {\ocrb\acceptcents} } % \end{macrocode} -% Definitions of field names in various languages; corrections -% and suggestions are very welcome: -% \DescribeMacro{\dutchdoc} -% \begin{macrocode} -\def\set@lang#1{% - \ifpreamble\AtBeginDocument{\selectlanguage{#1}}% - \else\selectlanguage{#1}\fi} -\def\dutchdoc{% - \set@lang{dutch} - \def\yourlettertext{Uw brief van} - \def\yourreftext{Uw kenmerk} - \def\ourreftext{Ons kenmerk} - \def\datetext{Datum} - \def\totext{Aan} - \def\pagetext{Bladnummer} - \def\oftext{van} - \def\date{\number\day~\ifcase\month\or +% \DescribeMacro{\isodoc@catalan} +% contributed by Cristian Peraferrer: +% \begin{macrocode} +\def\isodoc@catalan{% + \gdef\accountdatatext {Dades banc\`aries} + \gdef\accountnametext {a nom de} + \gdef\accountnotext {N\'um. de compte} + \gdef\amounttext {Quantitat} + \gdef\ccname {cc} + \gdef\cellphonetext {M\`obil} + \gdef\chambertext {Cambra de comer\c{c}} + \gdef\datetext {Data} + \gdef\daystext {dies} + \gdef\descriptiontext {Descripci\'o} + \gdef\emailtext {E-mail} + \gdef\enclosurestext {Annexos:} + \gdef\enclosuretext {Annex:} + \gdef\faxtext {Fax} + \gdef\invoicetext {factura} + \gdef\oftext {de} + \gdef\ourreftext {La nostra refer\`encia} + \gdef\pagetext {P\`agina} + \gdef\phonetext {Tel\`efon} + \gdef\referencetext {Refer\`encia} + \gdef\routingnotext {Nombre de ruta} + \gdef\subjecttext {Assumpte} + \gdef\termtext {Termini del pagament} + \gdef\totaltext {Total} + \gdef\totext {A} + \gdef\vatnotext {N\'um. IVA} + \gdef\vattext {IVA} + \gdef\websitetext {Web} + \gdef\yourlettertext {La seva carta del} + \gdef\yourreftext {La seva refer\`encia} + \gdef\date {\number\day\space\ifcase\month\or + gener\or febrer\or mar\c{c}\or abril\or maig\or juny\or + juliol\or agost\or setembre\or octubre\or novembre\or desembre\fi + \space \number\year + } +} +% \end{macrocode} +% \DescribeMacro{\isodoc@dutch} +% \begin{macrocode} +\def\isodoc@dutch{% + \gdef\accountdatatext {Betalingsgegevens} + \gdef\accountnametext {ten name van} + \gdef\accountnotext {rekening nr} + \gdef\amounttext {Bedrag} + \gdef\ccname {Cc:} + \gdef\cellphonetext {mobiel} + \gdef\chambertext {kvk} + \gdef\datetext {Datum} + \gdef\daystext {dagen} + \gdef\descriptiontext {Omschrijving} + \gdef\emailtext {e-mail} + \gdef\enclosurestext {Bijlagen:} + \gdef\enclosuretext {Bijlage:} + \gdef\faxtext {telefax} + \gdef\invoicetext {rekening} + \gdef\oftext {van} + \gdef\ourreftext {Ons kenmerk} + \gdef\pagetext {Bladnummer} + \gdef\phonetext {telefoon} + \gdef\referencetext {kenmerk} + \gdef\routingnotext {banknummer} + \gdef\subjecttext {Onderwerp:} + \gdef\termtext {betalingstermijn} + \gdef\totaltext {Totaal} + \gdef\totext {Aan} + \gdef\vatnotext {btw nr} + \gdef\vattext {Btw} + \gdef\websitetext {webstek} + \gdef\yourlettertext {Uw brief van} + \gdef\yourreftext {Uw kenmerk} + \gdef\date {\number\day\space\ifcase\month\or januari\or februari\or maart\or april\or mei\or juni\or juli\or augustus\or september\or oktober\or november\or december\fi \space \number\year} - \def\subjecttext{Onderwerp:} - \def\ccname{Cc:} - \def\enclosuretext{Bijlage:} - \def\enclosurestext{Bijlagen:} - \def\faxtext{telefax} - \def\websitetext{webstek} - \def\emailtext{email} - \def\phonetext{telefoon} - \def\cellphonetext{mobiel} - \def\chambertext{kvk} - \def\invoicetext{{\bfseries\Large\scshape rekening}} - \def\descriptiontext{Omschrijving} - \def\amounttext{Bedrag} - \def\accountdatatext{Betalingsgegevens} - \def\termtext{betalingstermijn} - \def\daystext{dagen} - \def\accountnotext{rekening nr} - \def\accountnametext{ten name van} - \def\referencetext{kenmerk} - \def\chambertext{kvk} - \def\vatnotext{btw nr} - \def\Vattext{Btw} - \def\Totaltext{Totaal} } % \end{macrocode} -% \DescribeMacro{\englishdoc} -% \begin{macrocode} -\def\englishdoc{% - \set@lang{english} - \def\yourlettertext{Your letter of} - \def\yourreftext{Your reference} - \def\ourreftext{Our reference} - \def\datetext{Date} - \def\totext{To} - \def\pagetext{Page} - \def\oftext{of} - \def\date{\ifcase\day\or - 1st\or 2nd\or 3rd\or 4th\or 5th\or - 6th\or 7th\or 8th\or 9th\or 10th\or +% \DescribeMacro{\isodoc@french} +% \begin{macrocode} +\def\isodoc@french{% + \gdef\accountdatatext {Donn\'ees banquaires} + \gdef\accountnametext {au nom de} + \gdef\accountnotext {no. compte} + \gdef\amounttext {Montant} + \gdef\ccname {Copie \`a} + \gdef\cellphonetext {portable} + \gdef\chambertext {c.c.i.} + \gdef\datetext {Date:} + \gdef\daystext {jours} + \gdef\descriptiontext {Description} + \gdef\emailtext {email} + \gdef\enclosurestext {Pi\`eces jointes:} + \gdef\enclosuretext {Pi\`ece jointe:} + \gdef\faxtext {t\'el\'efax} + \gdef\invoicetext {facture} + \gdef\oftext {de} + \gdef\ourreftext {Nos r\'ef\'erences:} + \gdef\pagetext {Page} + \gdef\phonetext {t\'el\'ephone} + \gdef\referencetext {r\'ef\'erence} + \gdef\routingnotext {num\'ero d'acheminement} + \gdef\subjecttext {Objet:} + \gdef\termtext {terme} + \gdef\totaltext {Total} + \gdef\totext {\`A l'attention de} + \gdef\vatnotext {no. T.V.A.} + \gdef\vattext {T.V.A.} + \gdef\websitetext {site Web} + \gdef\yourlettertext {Votre lettre du} + \gdef\yourreftext {Vos r\'ef\'erences:} + \gdef\date {\number\day\ifnum\day=1$^{er}$\fi\space\ifcase\month\or + janvier\or f\'evrier\or mars\or avril\or mai\or juin\or + juillet\or ao\^ut\or septembre\or octobre\or + novembre\or d\'ecembre\fi \space \number\year} +} +% \end{macrocode} +% \DescribeMacro{\isodoc@german} +% \begin{macrocode} +\def\isodoc@german{% + \gdef\accountdatatext {Bezahlungsdaten} + \gdef\accountnametext {Name} + \gdef\accountnotext {Konto Nr} + \gdef\amounttext {Betrag} + \gdef\ccname {Kopien an} + \gdef\cellphonetext {Handy} + \gdef\chambertext {Register Nr} + \gdef\datetext {Datum} + \gdef\daystext {Tage} + \gdef\descriptiontext {Umschreibung} + \gdef\emailtext {E-mail} + \gdef\enclosurestext {Anlagen:} + \gdef\enclosuretext {Anlage:} + \gdef\faxtext {Telefax} + \gdef\invoicetext {rechnung} + \gdef\oftext {aus} + \gdef\ourreftext {Unser Zeichen} + \gdef\pagetext {Seite} + \gdef\phonetext {Telefon} + \gdef\referencetext {Beleg Nr} + \gdef\routingnotext {BLZ} + \gdef\subjecttext {Betrifft:} + \gdef\termtext {Zahlungstermin} + \gdef\totaltext {Insgesamt} + \gdef\totext {An} + \gdef\vatnotext {Ustid Nr} + \gdef\vattext {MwSt} + \gdef\websitetext {Webseite} + \gdef\yourlettertext {Ihr Brief vom} + \gdef\yourreftext {Ihr Zeichen} + \gdef\date {\number\day.\space\ifcase\month\or + Januar\or Februar\or M\"arz\or April\or Mai\or Juni\or + Juli\or August\or September\or Oktober\or November\or Dezember\fi + \space\number\year} +} +% \end{macrocode} +% \DescribeMacro{\isodoc@italian} +% contributed by Walter Giocoso: +% \begin{macrocode} +\def\isodoc@italian{% + \gdef\accountdatatext {Coordinate bancarie} + \gdef\accountnametext {intestato a} + \gdef\accountnotext {n$^o$~del conto} + \gdef\amounttext {Prezzo} + \gdef\ccname {Per conoscenza a:} + \gdef\cellphonetext {cellulare:} + \gdef\chambertext {} + \gdef\datetext {Data:} + \gdef\daystext {giorni} + \gdef\descriptiontext {Descrizione} + \gdef\emailtext {e-mail:} + \gdef\enclosurestext {Allegati:} + \gdef\enclosuretext {Allegato:} + \gdef\faxtext {fax:} + \gdef\invoicetext {fattura} + \gdef\oftext {di} + \gdef\ourreftext {Nostro riferimento:} + \gdef\pagetext {Pagina} + \gdef\phonetext {telefono:} + \gdef\referencetext {riferimento} + \gdef\routingnotext {numero di routing} + \gdef\subjecttext {Oggetto:} + \gdef\termtext {scadenza} + \gdef\totaltext {Totale} + \gdef\totext {All'attenzione di:} + \gdef\vatnotext {Partita I.V.A.} + \gdef\vattext {I.V.A.} + \gdef\websitetext {sito Web:} + \gdef\yourlettertext {Vostra lettera del:} + \gdef\yourreftext {Vostro riferimento:} + \gdef\date {\number\day\ifnum\day=1\fi + ~\ifcase\month\or + Gennaio\or Febbraio\or Marzo\or Aprile\or Maggio\or Giugno\or + Luglio\or Agosto\or Settembre\or Ottobre\or Novembre\or Dicembre\fi + \space \number\year} +} +% \end{macrocode} +% \DescribeMacro{\isodoc@norsk} +% contributed by Sveinung Heggen: +% \begin{macrocode} +\def\isodoc@norsk {% + \gdef\accountdatatext {betales til} + \gdef\accountnametext {til} + \gdef\accountnotext {faktura nr} + \gdef\amounttext {Bel\o{}p} + \gdef\ccname {kopi til:} + \gdef\cellphonetext {mobil} + \gdef\chambertext {} + \gdef\datetext {Dato} + \gdef\daystext {dager} + \gdef\descriptiontext {Beskrivelse} + \gdef\emailtext {e-post} + \gdef\enclosurestext {Vedlegg:} + \gdef\enclosuretext {Vedlegg:} + \gdef\faxtext {telefaks} + \gdef\invoicetext {faktura} + \gdef\oftext {av} + \gdef\ourreftext {V\aa{}r ref:} + \gdef\pagetext {Side} + \gdef\phonetext {telefon} + \gdef\referencetext {referanse} + \gdef\routingnotext {routing-nummer} + \gdef\subjecttext {Vedr:} + \gdef\termtext {betalingsfrist} + \gdef\totaltext {Total} + \gdef\totext {Til} + \gdef\vatnotext {Org. nr.} + \gdef\vattext {Mva} + \gdef\websitetext {hjemmeside} + \gdef\yourlettertext {Deres brev av} + \gdef\yourreftext {Deres ref:} + \gdef\date {\number\day.\space\ifcase\month\or + januar\or februar\or mars\or april\or mai\or juni\or + juli\or august\or september\or oktober\or november\or desember\fi + \space \number\year} +} +% \end{macrocode} +% \DescribeMacro{\isodoc@serbian} +% contributed by Zoran T. Filipovic: +% \begin{macrocode} +\def\isodoc@serbian {% + \gdef\totaltext {Ukupno} + \gdef\vattext {PDV} + \gdef\accountdatatext {Podaci o bankarskom sektoru} + \gdef\accountnametext {na ime} + \gdef\accountnotext {Ra\v cun br.} + \gdef\amounttext {Iznos} + \gdef\ccname {Kopije} + \gdef\cellphonetext {Mobilni} + \gdef\chambertext {Spisak br.} + \gdef\datetext {Datum} + \gdef\daystext {dana} + \gdef\descriptiontext {Opis} + \gdef\emailtext {Email} + \gdef\enclosurestext {Prilozi:} + \gdef\enclosuretext {Prilog:} + \gdef\faxtext {Telefax} + \gdef\invoicetext {faktura} + \gdef\oftext {od} + \gdef\ourreftext {Na\v s broj} + \gdef\pagetext {Strana} + \gdef\phonetext {Telefon} + \gdef\referencetext {Dokumet br.} + \gdef\routingnotext {BLZ} + \gdef\subjecttext {Predmet:} + \gdef\termtext {rok pla\' canja} + \gdef\totext {U} + \gdef\vatnotext {porez br.} + \gdef\websitetext {Website} + \gdef\yourlettertext {Va\v se pismo od} + \gdef\yourreftext {Va\v s broj} + \gdef\date{\number\day.~\ifcase\month\or + Januar\or Februar\or Mart\or April\or Maj\or Jun\or + Jul\or Avgust\or Septembar\or Oktobar\or Novembar\or Decembar\fi + \space\number\year} +} +% \end{macrocode} +% \DescribeMacro{\isodoc@spanish} +% contributed by Cristian Peraferrer: +% \begin{macrocode} +\def\isodoc@spanish{% + \gdef\accountdatatext {Datos bancarios} + \gdef\accountnametext {a nombre de} + \gdef\accountnotext {N\'um. de cuenta} + \gdef\amounttext {Cantidad} + \gdef\ccname {cc} + \gdef\cellphonetext {M\'ovil} + \gdef\chambertext {C\'amara de comercio} + \gdef\datetext {Fecha} + \gdef\daystext {d\'{\i}as} + \gdef\descriptiontext {Descripci\'on} + \gdef\emailtext {E-mail} + \gdef\enclosurestext {Anexos:} + \gdef\enclosuretext {Anexo:} + \gdef\faxtext {Fax} + \gdef\invoicetext {factura} + \gdef\oftext {de} + \gdef\ourreftext {Nuestra referencia} + \gdef\pagetext {P\'agina} + \gdef\phonetext {Tel\'efono} + \gdef\referencetext {Referencia} + \gdef\routingnotext {n\'umero de ruta} + \gdef\subjecttext {Asunto} + \gdef\termtext {Plazo de pago} + \gdef\totaltext {Total} + \gdef\totext {A} + \gdef\vatnotext {N\'um. IVA} + \gdef\vattext {IVA} + \gdef\websitetext {Web} + \gdef\yourlettertext {Su carta de} + \gdef\yourreftext {Su referencia} + \gdef\date {\number\day\space\ifcase\month\or + enero\or febrero\or marzo\or abril\or mayo\or junio\or + julio\or agosto\or septiembre\or octubre\or noviembre\or diciembre\fi + \space \number\year + } +} +% \DescribeMacro{\isodoc@UKenglish} +% \begin{macrocode} +\def\isodoc@UKenglish{% + \gdef\accountdatatext {Banking data} + \gdef\accountnametext {in the name of} + \gdef\accountnotext {Account no.} + \gdef\amounttext {Amount} + \gdef\ccname {cc} + \gdef\cellphonetext {cellphone} + \gdef\chambertext {ch.comm.} + \gdef\datetext {Date} + \gdef\daystext {days} + \gdef\descriptiontext {Description} + \gdef\emailtext {email} + \gdef\enclosurestext {Enclosures:} + \gdef\enclosuretext {Enclosure:} + \gdef\faxtext {telefax} + \gdef\invoicetext {invoice} + \gdef\oftext {of} + \gdef\ourreftext {Our reference} + \gdef\pagetext {Page} + \gdef\phonetext {telephone} + \gdef\referencetext {Reference} + \gdef\routingnotext {Routing no} + \gdef\subjecttext {Subject:} + \gdef\termtext {term of payment} + \gdef\totaltext {Total} + \gdef\totext {To} + \gdef\vatnotext {vat no.} + \gdef\vattext {Vat} + \gdef\websitetext {website} + \gdef\yourlettertext {Your letter of} + \gdef\yourreftext {Your reference} + \gdef\date{\ifcase\day\or + 1st\or 2nd\or 3rd\or 4th\or 5th\or + 6th\or 7th\or 8th\or 9th\or 10th\or 11th\or 12th\or 13th\or 14th\or 15th\or 16th\or 17th\or 18th\or 19th\or 20th\or 21st\or 22nd\or 23rd\or 24th\or 25th\or 26th\or 27th\or 28th\or 29th\or 30th\or - 31st\fi~\ifcase\month\or + 31st\fi\space\ifcase\month\or January\or February\or March\or April\or May\or June\or July\or August\or September\or October\or November\or December\fi \space \number\year} - \def\subjecttext{Subject:} - \def\ccname{cc} - \def\enclosuretext{Enclosure:} - \def\enclosurestext{Enclosures:} - \def\faxtext{telefax} - \def\websitetext{website} - \def\emailtext{email} - \def\phonetext{telephone} - \def\cellphonetext{cellphone} - \def\invoicetext{{\bfseries\Large\scshape invoice}} - \def\descriptiontext{Description} - \def\amounttext{Amount} - \def\accountdatatext{Banking data} - \def\termtext{term of payment} - \def\daystext{days} - \def\accountnotext{Account no.} - \def\accountnametext{to the name of} - \def\referencetext{Reference} - \def\chambertext{ch.comm.} - \def\vatnotext{vat no.} - \def\Vattext{Vat} - \def\Totaltext{Total} } % \end{macrocode} -% \DescribeMacro{\americandoc} -% \begin{macrocode} -\def\americandoc{% - \set@lang{american} - \def\yourlettertext{Your letter of} - \def\yourreftext{Your reference} - \def\ourreftext{Our reference} - \def\datetext{Date} - \def\totext{To} - \def\pagetext{Page} - \def\oftext{of} - \def\date{\ifcase\month\or +% \DescribeMacro{\isodoc@USenglish} +% \begin{macrocode} +\def\isodoc@USenglish{% + \gdef\accountdatatext {Bank details} + \gdef\accountnametext {in the name of} + \gdef\accountnotext {Account no.} + \gdef\amounttext {Amount} + \gdef\ccname {cc} + \gdef\cellphonetext {cellphone} + \gdef\chambertext {ch.comm.} + \gdef\datetext {Date} + \gdef\daystext {days} + \gdef\descriptiontext {Description} + \gdef\emailtext {email} + \gdef\enclosurestext {Enclosures:} + \gdef\enclosuretext {Enclosure:} + \gdef\faxtext {telefax} + \gdef\invoicetext {invoice} + \gdef\oftext {of} + \gdef\ourreftext {Our reference} + \gdef\pagetext {Page} + \gdef\phonetext {telephone} + \gdef\referencetext {Reference} + \gdef\routingnotext {Routing no} + \gdef\subjecttext {Subject:} + \gdef\termtext {term of payment} + \gdef\totaltext {Total} + \gdef\totext {To} + \gdef\vatnotext {vat no.} + \gdef\vattext {Vat} + \gdef\websitetext {website} + \gdef\yourlettertext {Your letter of} + \gdef\yourreftext {Your reference} + \gdef\date {\ifcase\month\or January\or February\or March\or April\or May\or June\or July\or August\or September\or October\or November\or December\fi \space\number\day, \number\year} - \def\subjecttext{Subject:} - \def\ccname{cc} - \def\enclosuretext{Enclosure:} - \def\enclosurestext{Enclosures:} - \def\faxtext{telefax} - \def\websitetext{website} - \def\emailtext{email} - \def\phonetext{telephone} - \def\cellphonetext{cellphone} - \def\invoicetext{{\bfseries\Large\scshape invoice}} - \def\descriptiontext{Description} - \def\amounttext{Amount} - \def\accountdatatext{Bank details} - \def\termtext{term of payment} - \def\daystext{days} - \def\accountnotext{Account no.} - \def\accountnametext{to the name of} - \def\referencetext{Reference} - \def\chambertext{ch.comm.} - \def\vatnotext{vat no.} - \def\Vattext{Vat} - \def\Totaltext{Total} -} -% \end{macrocode} -% \DescribeMacro{\germandoc} -% \begin{macrocode} -\def\germandoc{% - \set@lang{german} - \def\yourlettertext{Ihr Brief vom} - \def\yourreftext{Ihr Zeichen} - \def\ourreftext{Unser Zeichen} - \def\datetext{Datum} - \def\totext{An} - \def\pagetext{Seite} - \def\oftext{aus} - \def\date{\number\day.~\ifcase\month\or - Januar\or Februar\or M\"arz\or April\or Mai\or Juni\or - Juli\or August\or September\or Oktober\or November\or Dezember\fi - \space\number\year} - \def\subjecttext{Betrifft:} - \def\ccname{Kopien an} - \def\enclosuretext{Anlage:} - \def\enclosurestext{Anlagen:} - \def\faxtext{Telefax} - \def\websitetext{Webseite} - \def\emailtext{Email} - \def\phonetext{Telefon} - \def\cellphonetext{Handy} - \def\invoicetext{{\bfseries\Large\scshape rechnung}} - \def\descriptiontext{Umschreibung} - \def\amounttext{Betrag} - \def\accountdatatext{Bezahlungsdaten} - \def\termtext{Zahlungstermin} - \def\daystext{Tage} - \def\accountnotext{Konto Nr} - \def\routingnotext{BLZ} - \def\accountnametext{Name} - \def\referencetext{Beleg Nr} - \def\chambertext{Register Nr} - \def\vatnotext{Ustid Nr} - \def\Vattext{MwSt} - \def\Totaltext{Insgesamt} -} -% \end{macrocode} -% \DescribeMacro{\frenchdoc} -% \begin{macrocode} -\def\frenchdoc{% - \set@lang{french} - \def\yourlettertext{Votre lettre du} - \def\yourreftext{Vos r\'ef\'erences:} - \def\ourreftext{Nos r\'ef\'erences:} - \def\datetext{Date:} - \def\totext{\`A l'attention de} - \def\pagetext{Page} - \def\oftext{de} - \def\date{\number\day\ifnum\day=1$^{er}$\fi - ~\ifcase\month\or janvier\or - f\'evrier\or mars\or avril\or mai\or juin\or - juillet\or ao\^ut\or septembre\or octobre\or - novembre\or d\'ecembre\fi \space \number\year} - \def\subjecttext{Objet:} - \def\ccname{Copie \`a} - \def\enclosuretext{Pi\`ece jointe:} - \def\enclosurestext{Pi\`eces jointes:} - \def\faxtext{t\'el\'efax} - \def\websitetext{site Web} - \def\emailtext{email} - \def\phonetext{t\'el\'ephone} - \def\cellphonetext{portable} - \def\invoicetext{{\bfseries\Large\scshape facture}} - \def\descriptiontext{Description} - \def\amounttext{Montant} - \def\accountdatatext{Donn\'ees banquaires} - \def\termtext{terme} - \def\daystext{jours} - \def\accountnotext{no. compte} - \def\accountnametext{au nom de} - \def\referencetext{r\'ef\'erence} - \def\chambertext{c.c.i.} - \def\vatnotext{no. T.V.A.} - \def\Vattext{T.V.A.} - \def\Totaltext{Total} -} -% \end{macrocode} -% \DescribeMacro{\norwegiandoc} -% \begin{macrocode} -\def\norwegiandoc{% - \set@lang{norsk} - \def\yourlettertext{Deres brev av} - \def\yourreftext{Deres ref:} - \def\ourreftext{V\aa{}r ref:} - \def\datetext{Dato} - \def\totext{Til} - \def\pagetext{Side} - \def\oftext{av} - \def\date{\number\day.~\ifcase\month\or - januar\or februar\or mars\or april\or mai\or juni\or - juli\or august\or september\or oktober\or november\or desember\fi - \space \number\year} - \def\subjecttext{Vedr:} - \def\ccname{kopi til:} - \def\enclosuretext{Vedlegg:} - \def\enclosurestext{Vedlegg:} - \def\faxtext{telefaks} - \def\websitetext{hjemmeside} - \def\emailtext{e-post} - \def\phonetext{telefon} - \def\cellphonetext{mobil} - \def\invoicetext{{\bfseries\Large\scshape faktura}} - \def\descriptiontext{Beskrivelse} - \def\amounttext{Bel\o{}p} - \def\accountdatatext{betales til} - \def\termtext{betalingsfrist} - \def\daystext{dager} - \def\accountnotext{faktura nr} - \def\accountnametext{til} - \def\referencetext{referanse} - \def\chambertext{} - \def\vatnotext{Org. nr.} - \def\Vattext{Mva} - \def\Totaltext{Total} } % \end{macrocode} % \Finale \endinput -$Id: isodoc.dtx,v 1.28 2010-01-02 16:54:02 wybo Exp $ +$Id: isodoc.dtx,v 1.31 2010-08-24 19:50:48 wybo Exp $ |