Debian Codegraph @

texmf-dist/source/latex/koma-script/scrkernel-addressfiles.dtx

raw
1 % \iffalse meta-comment
2 % ======================================================================
3 % scrkernel-addressfiles.dtx
4 % Copyright (c) Markus Kohm, 2006-2023
5 %
6 % This file is part of the LaTeX2e KOMA-Script bundle.
7 %
8 % This work may be distributed and/or modified under the conditions of
9 % the LaTeX Project Public License, version 1.3c of the license.
10 % The latest version of this license is in
11 % http://www.latex-project.org/lppl.txt
12 % and version 1.3c or later is part of all distributions of LaTeX
13 % version 2005/12/01 or later and of this work.
14 %
15 % This work has the LPPL maintenance status "author-maintained".
16 %
17 % The Current Maintainer and author of this work is Markus Kohm.
18 %
19 % This work consists of all files listed in MANIFEST.md.
20 % ======================================================================
21 %%% From File: $Id: scrkernel-addressfiles.dtx 4032 2023-04-17 09:45:11Z kohm $
22 %<option>%%% (run: option)
23 %<body>%%% (run: body)
24 %<*dtx>
25 \ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi
26 \begingroup
27 \def\filedate$#1: #2-#3-#4 #5${\gdef\filedate{#2/#3/#4}}
28 \filedate$Date: 2023-04-17 11:45:11 +0200 (Mo, 17. Apr 2023) $
29 \def\filerevision$#1: #2 ${\gdef\filerevision{r#2}}
30 \filerevision$Revision: 4032 $
31 \edef\reserved@a{%
32 \noexpand\endgroup
33 \noexpand\ProvidesFile{scrkernel-addressfiles.dtx}%
34 [\filedate\space\filerevision\space
35 KOMA-Script source
36 (circular letters)]%
37 }%
38 \reserved@a
39 \documentclass[USenglish]{koma-script-source-doc}
40 \usepackage{babel}
41 \setcounter{StandardModuleDepth}{2}
42 \begin{document}
43 \DocInput{scrkernel-addressfiles.dtx}
44 \end{document}
45 %</dtx>
46 % \fi
47 %
48 % \changes{v2.95}{2006/03/22}{first version by splitting of \file{scrclass.dtx}}
49 % \changes{v3.36}{2022/02/11}{switch over from \cls*{scrdoc} to
50 % \cls*{koma-script-source-doc}}
51 % \changes{v3.36}{2022/02/11}{whole implementation documentation in English}
52 % \changes{v3.40}{2023/04/17}{guide names changed}
53 %
54 % \GetFileInfo{scrkernel-addressfiles.dtx}
55 % \title{Circular Letters and Address Files as Part of
56 % \href{https://komascript.de}{\KOMAScript} Class \cls*{scrlttr2} and
57 % \href{https://komascript.de}{\KOMAScript} Package \pkg*{scrletter}}
58 % \author{\href{mailto:[email protected]}{Markus Kohm}}
59 % \date{Revision \fileversion{} of \filedate}
60 % \maketitle
61 % \begin{abstract}
62 % \filename{} is used to generate \cls*{scrlttr2} and \pkg*{scrletter}. It
63 % provides features for handling address files with well defined address
64 % data. This can be used to print circular letters from one master document.
65 % \end{abstract}
66 % \tableofcontents
67 %
68 % \section{User Manual}
69 %
70 % You can find the user documentation of the commands implemented here in the
71 % \KOMAScript{} manual, either the German \file{scrguide-de.pdf} or the English
72 % \file{scrguide-en.pdf}.
73 %
74 % \MaybeStop{\PrintIndex}
75 %
76 % \section{Implementation of the Address File Feature}
77 %
78 % \begin{macrocode}
79 %<*letter>
80 % \end{macrocode}
81 %
82 % \subsection{Options}
83 % We do not have any options for this feature
84 %
85 %
86 % \subsection{Macros and commands for address files}
87 %
88 % \begin{command}{\adrentry}
89 % \changes{v2.8q}{2002/05/19}{\cs{adrentry} uses new \cs{addrentry}}
90 % \changes{v3.36}{2022/02/11}{deprecated}
91 % \begin{command}{\addrentry}
92 % \changes{v2.8n}{2001/09/06}{added}
93 % The basic feature of \cs{addrentry} is to read nine arguments. The first
94 % argument is interpreted as family name, the second as first name. The first
95 % name is optional, the family name should be given. Alternatively the first
96 % argument can be a company name or similar (and the second can be
97 % empty). The third argument should be the postal address. Then a command with
98 % the name of the ninth argument is defines, containing name and address as
99 % expected by \cls*{scrlttr2}'s or \pkg*{scrletter}'s \env{letter}
100 % environment. To be able to do so, only character sequence characters should
101 % be used for argument number 9. For more information about the recommended
102 % meaning of the other arguments, see one of the \KOMAScript{} manuals.
103 % \cs{adrentry} is the former version of \cs{addrentry}. It does only have eight
104 % argument. So it sets an empty argument number 8. This implementation does
105 % read only seven arguments immediately. The last argument is read by
106 % \cs{addrentry}.
107 % \begin{macrocode}
108 %<*body>
109 \newcommand*{\adrentry}[7]{%
110 %<class> \ClassWarning{\KOMAClassName}{%
111 %<package> \PackageWarning{scrletter}{%
112 command `\string\adrentry' is deprecated.\MessageBreak
113 You should use `\string\addrentry' with additional\MessageBreak
114 empty 8th argument}%
115 \addrentry{#1}{#2}{#3}{#4}{#5}{#6}{#7}{}}
116 \newcommand*{\addrentry}[9]{\def\@tempa{#1}\ifx \@tempa\@empty \else
117 \def\@tempa{#2}\ifx \@tempa\@empty
118 \expandafter\def\csname #9\endcsname{#1\\#3}%
119 \else
120 \expandafter\def\csname #9\endcsname{#2 #1\\#3}%
121 \fi \fi}
122 % \end{macrocode}
123 % \end{command}
124 % \end{command}
125 %
126 % \begin{command}{\adrchar}
127 % \changes{v2.8q}{2002/05/19}{\cs{adrchar} used new \cs{addrchar}}
128 % \changes{v3.36}{2022/02/11}{deprecated}
129 % \begin{command}{\addrchar}
130 % \changes{v2.8n}{2001/09/06}{added}
131 % Address files should be organized in alphabetic order. To be able to
132 % generate dictionaries or lists of the addresses, it is useful mark the
133 % beginning of a new letter. We have \cs{addrchar} to do so. The argument is
134 % the new letter, but ignored by the default implementation. The default of
135 % deprecated \cs{adrchar} is to use \cs{addrchar}.
136 % \begin{macrocode}
137 \newcommand*{\adrchar}{%
138 %<class> \ClassWarning{\KOMAClassName}{%
139 %<package> \PackageWarning{scrletter}{%
140 command `\string\adrchar' is deprecated.\MessageBreak
141 You should use `\string\addrchar'}
142 \addrchar}
143 \newcommand*{\addrchar}[1]{}
144 %</body>
145 % \end{macrocode}
146 % \end{command}
147 % \end{command}
148 %
149 %
150 % \begin{macrocode}
151 %</letter>
152 % \end{macrocode}
153 %
154 % \Finale
155 % \PrintChanges
156 %
157 \endinput
158 % Local Variables:
159 % mode: doctex
160 % ispell-local-dictionary: "en_US"
161 % eval: (flyspell-mode 1)
162 % TeX-master: t
163 % TeX-engine: luatex-dev
164 % eval: (setcar (or (cl-member "Index" (setq-local TeX-command-list (copy-alist TeX-command-list)) :key #'car :test #'string-equal) (setq-local TeX-command-list (cons nil TeX-command-list))) '("Index" "mkindex %s" TeX-run-index nil t :help "makeindex for dtx"))
165 % End: