| 1 |
% $DocId: rcs-conf.tex,v 2.6 1995/08/02 12:08:41 schrod Exp $ |
| 2 |
%------------------------------------------------------------ |
| 3 |
|
| 4 |
% |
| 5 |
% internal interface of the rcs package |
| 6 |
% |
| 7 |
% [LaTeX] |
| 8 |
% (history at end) |
| 9 |
|
| 10 |
|
| 11 |
% This file is either a subdocument of the style or a document on |
| 12 |
% its own. In the former case it's a chapter, in the latter it's a |
| 13 |
% ``normal'' LaTeX progltx document. |
| 14 |
% If it's a subdocument, this file will be included after |
| 15 |
% \begin{document}. We can detect this: \document redefines |
| 16 |
% \documentclass to be \@twoclasseserror. Then we also have to define |
| 17 |
% how this document is ended: Either by \endinput or by an additional |
| 18 |
% revision log. |
| 19 |
% Of course, this test works only if LaTeX 2e is used for processing. |
| 20 |
|
| 21 |
\expandafter\ifx \csname @twoclasseserror\endcsname \documentclass |
| 22 |
|
| 23 |
\let\endSubDocument=\endinput |
| 24 |
|
| 25 |
\chap The internal interface. |
| 26 |
|
| 27 |
\else |
| 28 |
|
| 29 |
\let\endSubDocument=\relax |
| 30 |
|
| 31 |
\documentclass{progltx} |
| 32 |
|
| 33 |
\usepackage{rcs-doc} % additional document-specific markup |
| 34 |
\usepackage{a4-9} % Tschichold's A4 layout |
| 35 |
|
| 36 |
\nofiles |
| 37 |
|
| 38 |
\begin{document} |
| 39 |
|
| 40 |
\title{The \texttt{rcs} Package\\ |
| 41 |
{\large (Internal Interface)}% |
| 42 |
} |
| 43 |
\author{Joachim Schrod% |
| 44 |
\thanks{Email: \texttt{[email protected]}}% |
| 45 |
} |
| 46 |
|
| 47 |
\RCS $DocDate: 1995/08/02 12:08:41 $ |
| 48 |
\date{% |
| 49 |
\RCSDocDate\\[3pt] % LaTeX Error: Paragraph terminated too early |
| 50 |
(Revision \RCSStyleRevision{} of \texttt{rcs.sty})% |
| 51 |
} |
| 52 |
|
| 53 |
\maketitle |
| 54 |
|
| 55 |
\sect |
| 56 |
|
| 57 |
\fi |
| 58 |
|
| 59 |
|
| 60 |
You can configure the |rcs| package by redefining control |
| 61 |
sequences (cseqs for short). The cseqs which may be redefined form the |
| 62 |
\textsl{protected interface}, all of them start with `|Rcs|'. Some cseqs |
| 63 |
may be used by you to get information about the state of this module. |
| 64 |
These form the \textsl{observer interface}, all cseqs herein start with |
| 65 |
`|RCS_|'. Both cseq sets together form the internal interface. |
| 66 |
|
| 67 |
You must not redefine a cseq starting with `|rcs|' or `|RCS|'. In no |
| 68 |
case redefine a cseq containing an at~sign or an underscore---all of |
| 69 |
them belong to the implementation. Here you have a description of an |
| 70 |
internal interface you can rely on, use it (and only it) for |
| 71 |
configuration. |
| 72 |
|
| 73 |
|
| 74 |
\sect \textsl{The protected interface}. |
| 75 |
|
| 76 |
\medskip |
| 77 |
|
| 78 |
\noindent The cseqs of the protected interface fall in two |
| 79 |
categories: Configuration of RCS fields and of revision logs. |
| 80 |
|
| 81 |
In general, handlers for RCS fields may be defined, they have the |
| 82 |
name |\RcsHandle|\textit{Keyword}. These sequences are responsible for |
| 83 |
the filtering of the value of the RCS \textit{Keyword} field. The |
| 84 |
unfiltered value itself is provided in the cseq |
| 85 |
|\RCSRaw|\textit{Keyword} or in |\RCS_value| (see below). |
| 86 |
|
| 87 |
\smallskip |
| 88 |
|
| 89 |
\noindent The following cseqs my be redefined to configure the |rcs| |
| 90 |
package: |
| 91 |
% |
| 92 |
\begin{quote} |
| 93 |
\begin{tabular}{ll} |
| 94 |
|\RcsEmptyValue| & used as value for an empty field\\ |
| 95 |
|\RcsHandleDate| & handler for the \Date{} field\\[1ex] |
| 96 |
% |
| 97 |
|\RcsLogStyle| & determines general layout of revision log\\ |
| 98 |
& must define |\RcsLogHeading|\\ |
| 99 |
|\RcsLogListStyle| & determines layout of revision log list\\ |
| 100 |
\itshape |\RcsLogHeading{|text\/|}| & heading of revision log\\ |
| 101 |
\itshape |\RcsLogDate| date\/|\endDate| |
| 102 |
& typesets date in revision entry intro;\\ |
| 103 |
& \textit{date} has the form \textit{yyyy/mm/dd}\\ |
| 104 |
\itshape |\RcsLogTime{|time\/|}| |
| 105 |
& typesets time in revision entry intro\\ |
| 106 |
\end{tabular} |
| 107 |
\end{quote} |
| 108 |
|
| 109 |
|
| 110 |
\sect The cseq |\RcsLogListStyle| needs further explanation: The |
| 111 |
|rcslog| environment is, in fact, a list environment. |
| 112 |
|\RcsLogListStyle| will be used as the second argument of |\list|, it |
| 113 |
must define |\makelabel| and setup all list layout parameters. |
| 114 |
|
| 115 |
Even though |rcslog| is implemented via |list|, I don't regard it as |
| 116 |
such. For example, I think it should not increase the list level: an |
| 117 |
item list in a revision entries should use the first-level item |
| 118 |
labels. This is realized by placing the |rcslog| environment on list |
| 119 |
level~0. It follows that |\endlist| must not be used for |\endrcslog|, |
| 120 |
|\endtrivlist| is used instead. If you redefine |\RcsLogListStyle| in |
| 121 |
such a way that this special list level setting is not done any more, |
| 122 |
you \emph{must} redefine |\endrcslog| as well. You were warned. |
| 123 |
|
| 124 |
Of course, if you just want to change some paragraph layout values, |
| 125 |
it's better to append your definitions to the end of |
| 126 |
|\RcsLogListStyle|. |
| 127 |
|
| 128 |
|
| 129 |
\sect The following macros must be looked at for internationalization: |
| 130 |
% |
| 131 |
\begin{quote} |
| 132 |
\begin{tabular}{ll} |
| 133 |
|\RcsLogHeadingName| & log heading text, in front of filename\\ |
| 134 |
|\RcsUnknownFile| & used for unknown filename\\ |
| 135 |
|\RcsEmptyLog| & no revision entries are available\\ |
| 136 |
\itshape |\RcsLogRevision{|rev\/|}{|date\/|}{|time\/|}{|uid\/|}|% |
| 137 |
\hidewidth\null \\ |
| 138 |
& introduces a revision entry, must be an |\item|\\ |
| 139 |
\end{tabular} |
| 140 |
\end{quote} |
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
\sect \textsl{The observer interface}. |
| 145 |
|
| 146 |
\medskip |
| 147 |
|
| 148 |
\noindent The following cseqs provide you with information you might |
| 149 |
utilize in your configuration. |
| 150 |
% |
| 151 |
\begin{quote} |
| 152 |
\begin{tabular}{ll} |
| 153 |
|\rcs@loaded| & the module's RCS revision field\\ |
| 154 |
& (This name does not follow the name conventions\\ |
| 155 |
& for internal reasons.)\\[1ex] |
| 156 |
|\RCS_keyword| & keyword of the last parsed RCS field\\ |
| 157 |
|\RCS_value| & value of the last parsed RCS field\\ |
| 158 |
\itshape |\RCS_get_author{|uid\/|}| & gets \textit{uid}'s author name\\ |
| 159 |
\end{tabular} |
| 160 |
\end{quote} |
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
\endSubDocument |
| 165 |
|
| 166 |
|
| 167 |
\vskip \PltxPreSectSkip |
| 168 |
|
| 169 |
\begin{rcslog} |
| 170 |
$DocLog: rcs-conf.tex,v $ |
| 171 |
\Revision 2.6 1995/08/02 12:08:41 schrod |
| 172 |
Transformed this style option into a \LaTeXe{} package. |
| 173 |
|
| 174 |
\Revision 2.5 1995/08/01 22:54:09 schrod |
| 175 |
Updated to \LaTeXe{}; |\RcsLoadHook| is not necessary any more as that |
| 176 |
functionality is provided by \LaTeX{} now. |
| 177 |
|
| 178 |
Spell checked. |
| 179 |
|
| 180 |
\Revision 2.4 1993/11/08 20:15:12 schrod |
| 181 |
Added possibility to configure the layout of the log list |
| 182 |
(|\RcsLogListStyle|). |
| 183 |
|
| 184 |
Now the log list is on level~0. Thereby item lists or enumerations in |
| 185 |
revision entries get first-level labels. This has consequences for |
| 186 |
the configuration, this implementation strategy must therefore be |
| 187 |
specified in the internal interface description. |
| 188 |
|
| 189 |
\Revision 2.3 1993/11/03 20:04:05 schrod |
| 190 |
Cleaned up for distribution: Added email address to each document, |
| 191 |
added copyright info to |rcs.doc|, added acknowledgments. Checked my |
| 192 |
English and the spacing. |
| 193 |
|
| 194 |
\Revision 2.2 1993/11/02 18:43:03 schrod |
| 195 |
|\RcsLoaded| must not be redefined, belongs therefore to the observer |
| 196 |
interface. I don't write it as |\RCS_loaded| though---it must be |
| 197 |
usable outside of style files. |
| 198 |
|
| 199 |
Don't need auxiliary files. |
| 200 |
|
| 201 |
\Revision 2.1 1993/11/01 19:49:21 schrod |
| 202 |
Added sub-document that describes the internal interface. |
| 203 |
|
| 204 |
\end{rcslog} |
| 205 |
|
| 206 |
|
| 207 |
\end{document} |
| 208 |
|
| 209 |
% LocalWords: rcs yyyy mm dd rcslog rev uid |