diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/isodoc/isodoc.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/isodoc/isodoc.cls | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/isodoc/isodoc.cls b/Master/texmf-dist/tex/latex/isodoc/isodoc.cls index e0388a81c58..4037b9d21b3 100644 --- a/Master/texmf-dist/tex/latex/isodoc/isodoc.cls +++ b/Master/texmf-dist/tex/latex/isodoc/isodoc.cls @@ -6,21 +6,23 @@ %% %% isodoc.dtx (with options: `class') %% -%% Copyright (C) 2006 by Wybo Dekker <wybo@dekkerdocumenten.nl> +%% IMPORTANT NOTICE: %% -%% This work may be distributed and/or modified under the conditions of -%% the LaTeX Project Public License, either version 1.3 of this license -%% or (at your option) any later version. The latest version of this -%% license is in: +%% For the copyright see the source file. %% -%% http://www.latex-project.org/lppl.txt +%% Any modified versions of this file must be renamed +%% with new filenames distinct from isodoc.cls. %% -%% and version 1.2 or later is part of all distributions of LaTeX version -%% 2003/12/01 or later. +%% For distribution of the original source see the terms +%% for copying and modification in the file isodoc.dtx. %% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{isodoc}% - [2021/02/20 v1.12 isodoc class for letters and invoices] + [2021/06/22 v1.13 isodoc class for letters and invoices] \ifx\pdfoutput\undefined\else% \ifnum\pdfoutput=1\else% \ClassError{isodoc}{Compile me with pdflatex, lualatex or xelatex!}{} @@ -62,14 +64,19 @@ \define@key{isodoc}{cityzip}[\cityziptrue]{\cityziptrue} \newif\ifcityzip\cityzipfalse \define@key{isodoc}{language}{ - \StrSubstitute{#1}{-}{}[\@iso]\csname isodoc@\@iso\endcsname} + \StrSubstitute{#1}{-}{}[\@iso] + \ifcsname isodoc@\@iso\endcsname\csname isodoc@\@iso\endcsname\else + \ClassError{isodoc}{Unknown language #1}{} + \fi +} \define@key{isodoc}{ordinalss}[\@isodocordinalsstrue]{% - \ifx\yourlettertext\undefined% - \@isodocordinalsstrue - \else - \ClassError{isodoc}{ - You must use the ordinalss option before any language option} - \fi} + \ifx\yourlettertext\undefined% + \@isodocordinalsstrue + \else + \ClassError{isodoc}{ + You must use the ordinalss option before any language option}{} + \fi +} \newif\if@isodocordinalss\@isodocordinalssfalse \define@key{isodoc}{fill} []{\rightskip=1\rightskip} \define@key{isodoc}{nofill}[]{\rightskip=0mm plus 35mm} @@ -482,7 +489,7 @@ accountname;payref;vatno;chamber} closing={}, signature={}]{\isodoc@Tbox{35}{127}{140}{\ignorespaces#2}} } -\newcommand{\letter}[2][]{{% +\newcommand{\letter}[2][]{% \clearpage{\pagestyle{empty}\cleardoublepage} \setcounter{section}{0} \setkeys{isodoc}{#1} @@ -618,7 +625,7 @@ accountname;payref;vatno;chamber} \end{minipage} }\fi \label{LastPageOf\thelettercount} -}} +} % end letter \newcommand{\isodocFootFields}{% \footcount=35 \enlargethispage{-10mm} |