diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-04-30 21:02:54 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-04-30 21:02:54 +0000 |
commit | 0d3960d88898b0af67c4c022ee49601dd5f84968 (patch) | |
tree | ebf80e88a4adb9d2d641a170e667e5a271ec6d00 /Master/texmf-dist/doc | |
parent | 1bbe1e023af3abf0bce342ecfd49b09053ca7b28 (diff) |
isodoc v0.4 (2008/08/22??)
git-svn-id: svn://tug.org/texlive/trunk@7753 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/latex/isodoc/README | 16 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodoc/accept.tex | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodoc/isodoc.cls | 151 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodoc/isodoc.pdf | bin | 999974 -> 1006602 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodoc/listkeys | 7 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodoc/logostyle.sty | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodoc/mystyle.sty | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/isodoc/typo | 2 |
8 files changed, 128 insertions, 60 deletions
diff --git a/Master/texmf-dist/doc/latex/isodoc/README b/Master/texmf-dist/doc/latex/isodoc/README index c4beef02256..5f2f30b0b46 100644 --- a/Master/texmf-dist/doc/latex/isodoc/README +++ b/Master/texmf-dist/doc/latex/isodoc/README @@ -1,11 +1,21 @@ -This is version 0.3 of the isodoc class. +This is version 0.4 of the isodoc class The isodoc class can be used for the preparation of letters, invoices, and, in the future, similar documents. Documents are set -up with options, thus making the class easily adaptable to user's +up with options, thus making the class easily adaptable to user’s wishes and extensible for other document types. -Victor Eijkhout's NTG brief class, which implements the NEN1026 +Victor Eijkhout’s NTG brief class, which implements the NEN1026 standard, was the starting point. License: LPPL +major changes of v0.4 relative to v0.3) +- norwegian translations added (thanks Sveinung Heggen) +- option shift: shift all output on the page +- option currency added: changes euro into other +- option cityzip added: put zip behind city instead of before + +major changes of v0.3 relative to v0.2) +- documentation corrected + +$Id: README,v 1.1 2008/04/30 13:46:46 wybo Exp $ diff --git a/Master/texmf-dist/doc/latex/isodoc/accept.tex b/Master/texmf-dist/doc/latex/isodoc/accept.tex index 26d982d625a..9f9c6449bc9 100644 --- a/Master/texmf-dist/doc/latex/isodoc/accept.tex +++ b/Master/texmf-dist/doc/latex/isodoc/accept.tex @@ -17,9 +17,9 @@ ourref=308, ]{\itable{\iitem{Contributie NTG voor 2006}{40,00}}\\[3ex] \accountdata - \begin{textblock}{210}(0,199) + \begin{textblock}{210}(0,199.5) \noindent\includegraphics[width=210mm]{acceptform.jpg} \end{textblock} } \end{document} -$Id: accept.tex,v 1.5 2007/08/21 22:11:14 wybo Exp $ +$Id: accept.tex,v 1.6 2008/04/07 10:54:31 wybo Exp $ diff --git a/Master/texmf-dist/doc/latex/isodoc/isodoc.cls b/Master/texmf-dist/doc/latex/isodoc/isodoc.cls index 0fb7da86462..0f01cb577cf 100644 --- a/Master/texmf-dist/doc/latex/isodoc/isodoc.cls +++ b/Master/texmf-dist/doc/latex/isodoc/isodoc.cls @@ -22,7 +22,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{isodoc}% - [2008/08/22 v0.3 isodoc class for letters and invoices] + [2008/08/22 v0.4 isodoc class for letters and invoices] \ifnum\pdfoutput=1\else\ClassError{isodoc}{Compile me with pdflatex!}{} \fi %% \StopEventually{} @@ -51,6 +51,13 @@ \def\@hft{\footnotesize\sffamily} \define@key{isodoc}{fontpackage}{\def\fontpackage{#1}} \def\fontpackage{lmodern} +\def\@xyshift#1,#2@@@{\def\@xshift{#1}\def\@yshift{#2}} +\define@key{isodoc}{shift}{% + \@xyshift#1@@@ + \AtBeginDocument{\textblockorigin{\@xshift mm}{\@yshift mm}} +} +\define@key{isodoc}{cityzip}[\cityziptrue]{\cityziptrue} + \newif\ifcityzip\cityzipfalse \define@key{isodoc}{foreign}[\foreigntrue]{\foreigntrue} \newif\ifforeign\foreignfalse \define@key{isodoc}{localbank}[\localbanktrue]{\localbanktrue} @@ -83,9 +90,8 @@ \define@key{isodoc}{leftaddress} []{\def\xaddress{35}} \def\xaddress{35} \define@key{isodoc}{rightaddress}[]{\def\xaddress{105}} -\define@key{isodoc}{addresscenter} {\def\addresscenter{#1}} +\define@key{isodoc}{addresscenter} {\def\addresscenter{#1}} \def\addresscenter{63.5} - \define@key{isodoc}{to}{\processto{#1}}\def\toname{Various people} \def\toaddress{\Undefined{to}} \long\def\processto#1{\xproc #1\\@@@\ifx\toaddress\empty @@ -114,7 +120,6 @@ \define@key{isodoc}{email} {\def\email{#1}} \def\email{} \def\lead{\ifforeign+\areacode-\else\phoneprefix\fi} - \define@key{isodoc}{nofold}[]{\yfold=-1mm} \newdimen\yfold\yfold=-1mm \define@key{isodoc}{fold2}[]{\yfold=158mm} @@ -171,6 +176,8 @@ \define@key{isodoc}{vatno} {\def\vatno{#1}} \define@key{isodoc}{chamber} {\def\chamber{#1}} \def\chamber{Undefined{chamber}} +\define@key{isodoc}{currency} {\def\currency{#1}} + \def\currency{\EUR} \define@key{isodoc}{accept}[E05]{\def\accepttype{#1} \newfont\ocrb{ocrb10} } @@ -188,7 +195,7 @@ \def\accepteuros{Undefined{}} \define@key{isodoc}{acceptreference} {\def\acceptreference{#1}} \def\acceptreference{Undefined{ref}} -\def\xacceptdescription{105}\def\yacceptdescription{200}\def\wacceptdescription{100} +\def\xacceptdescription{105}\def\yacceptdescription{202}\def\wacceptdescription{100} \def\xacceptref{7} \def\yacceptref{212} \def\wacceptref{30} \def\xaccepteuros{60} \def\yaccepteuros{218} \def\waccepteuros{32} \def\xacceptcents{89} \def\yacceptcents{218} \def\wacceptcents{13} @@ -196,8 +203,8 @@ \def\xaccepteur{14.4} \def\yaccepteur{231} \def\waccepteur{21} \def\xacceptct{32} \def\yacceptct{231} \def\wacceptct{9} \def\xacceptaccount{75} \def\yacceptaccount{231} \def\wacceptaccount{65} -\def\xacceptdesc{7} \def\yacceptdesc{240} \def\wacceptdesc{26} -\def\xacceptaddress{58} \def\yacceptaddress{243} \def\wacceptaddress{90} +\def\xacceptdesc{7} \def\yacceptdesc{242} \def\wacceptdesc{26} +\def\xacceptaddress{58} \def\yacceptaddress{242} \def\wacceptaddress{90} \newdimen\acceptreferenceskip\acceptreferenceskip=5.15mm \newdimen\myoutdent \newdimen\signskip @@ -224,26 +231,30 @@ \closing\\[-2\baselineskip]\\[#2\signskip]\signature% } } +\newcommand{\zippedcity}{\ifcityzip\city\ \prezip\ \zip\else\prezip\ \zip\ \city\fi} \newcommand{\logo}{% - \begin{textblock}{140}[0,1](35,20)\noindent - \textsf{\LARGE\company}\\[-1.7ex] % large company name - \rule{\hsize}{.3pt} % on top a rule - \end{textblock} + { \parskip=0pt\parindent=0pt + \begin{textblock}{140}[0,1](35,20)% + \textsf{\LARGE\company}\\[-1.7ex] % large company name + \rule{\hsize}{.3pt} % on top a rule + \end{textblock} + } \Tbox{140}{22}{35}{\noindent \@hft \ifx\undefined\logoaddress% \ifx\undefined\tbfigures\else\tbfigures\fi \ifx\who\empty\else\who\\\fi \ifx\street\empty\else\street\\\fi - \prezip\ \zip\ \city + \zippedcity \ifforeign\\\country\fi \else\logoaddress\fi } } \def\returnaddress{% + \ifx\undefined\tbfigures\else\tbfigures\fi % when using osf-txfonts... just for me \company\\ \street\\ - \prezip{} \zip{} \city + \zippedcity \ifforeign\\\country\fi } \newcommand{\setupdocument}[1]{ @@ -288,6 +299,7 @@ } \def\showkeys{% \begin{tabular}{ll} + accept & \accept\NN acceptaccount & \acceptaccount\NN acceptaddress & \acceptaddress\NN acceptcents & \acceptcents\NN @@ -299,6 +311,7 @@ accountno & \accountno\NN addresscenter & \addresscenter\NN areacode & \areacode\NN + autograph & \autograph\NN bic & \bic\NN cellphone & \cellphone\NN chamber & \chamber\NN @@ -307,11 +320,13 @@ company & \company\NN country & \country\NN countrycode & \countrycode\NN + currency & \currency\NN email & \email\NN enclosures & \enclosures\NN fax & \fax\NN fontpackage & \fontpackage\NN iban & \iban\NN + leftaddress & \leftaddress\NN logoaddress & \logoaddress\NN opening & \opening\NN openingcomma & \openingcomma\NN @@ -319,10 +334,12 @@ phone & \phone\NN phoneprefix & \phoneprefix\NN returnaddress & \returnaddress\NN + rightaddress & \rightaddress\NN routingno & \routingno\NN signature & \signature\NN street & \street\NN subject & \subject\NN + term & \term\NN vatno & \vatno\NN website & \website\NN who & \who\NN @@ -331,22 +348,19 @@ zip & \zip\NN \end{tabular} } - \AtEndOfClass{% \usepackage{hyperref} \year=0 } - \AtBeginDocument{% \hypersetup{pdfauthor={\who}, pdfsubject={\subject}, pdfproducer={isodoc v\fileversion}, } } - \def\itable#1{ \begin{tabularx}{\hsize}{@{}X@{\barsep\quad\qquad}r@{}} - \multicolumn{2}{@{}c@{}}{\sffamily\descriptiontext\hfill \amounttext (\EUR)}\ML + \multicolumn{2}{@{}c@{}}{\sffamily\descriptiontext\hfill \amounttext (\currency)}\ML #1 \end{tabularx} } @@ -354,7 +368,6 @@ \def\itotal#1{\cmidrule[.05em]{2-2}\Totaltext&\textbf{#1}\NN} \newcounter{lettercount}\setcounter{lettercount}{0} \AtEndDocument{\label{LastPageOf\thelettercount}} - \newif\ifclosing\closingtrue \newcount\footcount \newcommand{\invoice}[2][]{% @@ -362,8 +375,7 @@ \hypersetup{pdftitle={invoice to \toname\ dated \today}} \def\barsep{\raisebox{-1.5ex}[0pt][0pt]{\rule{.05em}{4ex}}}% \letter[#1,opening=\invoicetext,openingcomma={},closing={},signature={}]{% - \noindent - #2 + \Tbox{35}{127}{140}{#2} } } \newcommand{\letter}[2][]{{ % extra brace keeps option changes local @@ -375,15 +387,17 @@ \setcounter{page}{1} \setcounter{footnote}{0} \logo - \begin{textblock}{70}[0,.5](\xaddress,\addresscenter)\noindent - \ifreturn - {\def\\{\unskip\enspace\textbullet\enspace\ignorespaces}% - \sffamily\scriptsize\bfseries\returnaddress - }\\[-.8\baselineskip] - \rule{\hsize}{.2pt}\\ - \fi - \toname\\\toaddress - \end{textblock} + { \parskip=0pt\parindent=0pt + \begin{textblock}{70}[0,.5](\xaddress,\addresscenter)% + \ifreturn + {\def\\{\unskip\enspace\textbullet\enspace\ignorespaces}% + \sffamily\scriptsize\bfseries\returnaddress + }\\[-.8\baselineskip] + \rule{\hsize}{.2pt}\\ + \fi + \toname\\\toaddress + \end{textblock} + } \ifx\subject\empty\else% \Tbox{35}{108}{105}{\noindent \begin{tabularx}{\hsize}{@{}l>{\raggedright}X@{}} @@ -407,7 +421,6 @@ {\@hft\datetext}\\ \ifnum\year=0\Undefined{date}\else\date\fi } - \footcount=35 \iffooter \footfield{\websitetext}{}{\website} @@ -416,13 +429,16 @@ \footfield{\faxtext}{\lead}{\fax} \footfield{\emailtext}{}{\email} \fi - \begin{textblock*}{3mm}(201mm,\yfold)\noindent % rule from 201-204mm - \rule{\hsize}{.2pt} - \end{textblock*} + { \parskip=0pt\parindent=0pt + \begin{textblock*}{3mm}(201mm,\yfold)% + \rule{\hsize}{.2pt} + \end{textblock*} + } \ifx\undefined\accepttype\else\accept\fi - \ifx\subject\empty\vspace*{80mm}\else\vspace*{90mm}\fi - \noindent\opening\openingcomma\\[\baselineskip] + \noindent\Tbox{35}{120}{140}{\opening\openingcomma} + \thispagestyle{empty} + \thispagestyle{empty} \noindent #2 @@ -451,18 +467,23 @@ \fi } }} -\def\Cbox#1#2#3#4{ - \begin{textblock}{#3}[.5,.5](#1,#2) - \begin{center} - #4 - \end{center} -\end{textblock}} -\long\def\Tbox#1#2#3#4{ - \begin{textblock}{#3}(#1,#2)\noindent - \begin{minipage}[t]{\hsize} - \noindent#4 - \end{minipage} - \end{textblock} +\def\Cbox#1#2#3#4{% + { \parskip=0pt\parindent=0pt + \begin{textblock}{#3}[.5,.5](#1,#2)% + \begin{center} + #4 + \end{center} + \end{textblock} + } +} +\long\def\Tbox#1#2#3#4{% + { \parskip0pt\parindent=0pt + \begin{textblock}{#3}(#1,#2)% + \begin{minipage}[t]{\hsize} + \noindent#4 + \end{minipage} + \end{textblock} + } } \def\accept{ \Tbox{\xacceptdescription} @@ -697,6 +718,42 @@ \def\Vattext{T.V.A.} \def\Totaltext{Total} } +\def\norskdoc{% + \set@lang{norsk} + \def\yourlettertext{Deres brev av} + \def\yourreftext{Deres ref:} + \def\ourreftext{V^^c3^^a5r 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 + july\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^^c3^^b8p} + \def\accountdatatext{betales til} + \def\termtext{betalingsfrist} + \def\daystext{dager} + \def\accountnotext{faktura nr} + \def\accountnametext{til} + \def\referencetext{referanse} + \def\chambertext{BIC} + \def\vatnotext{Org. nr.} + \def\Vattext{Mva} + \def\Totaltext{Total} +} \endinput %% %% End of file `isodoc.cls'. diff --git a/Master/texmf-dist/doc/latex/isodoc/isodoc.pdf b/Master/texmf-dist/doc/latex/isodoc/isodoc.pdf Binary files differindex 885b1e1c232..987191acb9e 100644 --- a/Master/texmf-dist/doc/latex/isodoc/isodoc.pdf +++ b/Master/texmf-dist/doc/latex/isodoc/isodoc.pdf diff --git a/Master/texmf-dist/doc/latex/isodoc/listkeys b/Master/texmf-dist/doc/latex/isodoc/listkeys index d6728cf6d03..b06e9a7648c 100644 --- a/Master/texmf-dist/doc/latex/isodoc/listkeys +++ b/Master/texmf-dist/doc/latex/isodoc/listkeys @@ -1,4 +1,4 @@ -#!/usr/local/bin/ruby +#!/usr/bin/env ruby # after the addition of new options, two regions of the documentation in # isodoc.dtx need to be updated: @@ -21,7 +21,8 @@ type = ARGV.pop ARGV.push('isodoc.dtx') a = [] -a.push($1) if ~ /\\define@key\{isodoc\}\{(.*)\}\s*\{\\def\\/ while gets +# find keys which have a corresponding command: +a.push($1) if ~ /\\define@key\{isodoc\}\s*\{(.*)\}\s*(\[.*?\])?\s*\{\\def\\/ while gets a.sort! case type when 'show' @@ -47,4 +48,4 @@ case type usage end -# $Id: listkeys,v 1.1.1.1 2006/09/15 21:27:36 wybo Exp $ +# $Id: listkeys,v 1.3 2008/04/30 13:42:18 wybo Exp $ diff --git a/Master/texmf-dist/doc/latex/isodoc/logostyle.sty b/Master/texmf-dist/doc/latex/isodoc/logostyle.sty index 928b43add5e..3cd2fd8656b 100644 --- a/Master/texmf-dist/doc/latex/isodoc/logostyle.sty +++ b/Master/texmf-dist/doc/latex/isodoc/logostyle.sty @@ -8,7 +8,7 @@ country = The Netherlands, countrycode = IN, areacode = 31, - phone = {345-65\,21\,46}, + phone = {87-87\,48\,496}, cellphone = {6-15\,49\,20\,70}, fax = {}, website = www.servalys.nl, @@ -44,4 +44,4 @@ \end{textblock} } \endinput -$Id: logostyle.sty,v 1.3 2006/11/07 09:34:34 wybo Exp $ +$Id: logostyle.sty,v 1.4 2007/09/02 09:35:59 wybo Exp $ diff --git a/Master/texmf-dist/doc/latex/isodoc/mystyle.sty b/Master/texmf-dist/doc/latex/isodoc/mystyle.sty index b86f5a2c1ca..1a8bd526a07 100644 --- a/Master/texmf-dist/doc/latex/isodoc/mystyle.sty +++ b/Master/texmf-dist/doc/latex/isodoc/mystyle.sty @@ -14,7 +14,7 @@ country = The Netherlands, countrycode = NL, areacode = 31, - phone = {345-65\,21\,46}, + phone = {87-87\,48\,496}, cellphone = {6-15\,49\,20\,70}, fax = {}, website = www.servalys.nl, @@ -31,4 +31,4 @@ \graphicspath{{./graphics/}} \autograph{2}{.30}{75bp}{87bp}{216bp}{261bp}{signw_marked} \endinput -$Id: mystyle.sty,v 1.4 2007/08/21 22:09:48 wybo Exp $ +$Id: mystyle.sty,v 1.5 2007/09/02 09:35:59 wybo Exp $ diff --git a/Master/texmf-dist/doc/latex/isodoc/typo b/Master/texmf-dist/doc/latex/isodoc/typo index d2635a3d7db..6f71756e3ef 100644 --- a/Master/texmf-dist/doc/latex/isodoc/typo +++ b/Master/texmf-dist/doc/latex/isodoc/typo @@ -68,4 +68,4 @@ prettig. Andere gewoontes zoals het gebruik van aanhalingstekens en gedachtestreepjes verschillen van tijd tot tijd en van land tot land en daarbinnen nog weer van publicatie tot publicatie. -% $Id: typo.tex,v 1.1.1.1 2006/09/15 21:27:36 wybo Exp $ +% $Id: typo,v 1.1.1.1 2006/09/15 21:27:36 wybo Exp $ |