| 1 |
%% |
| 2 |
%% This is file `rcsinfo2html.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% rcsinfo.dtx (with options: `header,html') |
| 8 |
%% |
| 9 |
%% IMPORTANT NOTICE: |
| 10 |
%% |
| 11 |
%% For the copyright see the source file. |
| 12 |
%% |
| 13 |
%% Any modified versions of this file must be renamed |
| 14 |
%% with new filenames distinct from rcsinfo2html.tex. |
| 15 |
%% |
| 16 |
%% For distribution of the original source see the terms |
| 17 |
%% for copying and modification in the file rcsinfo.dtx. |
| 18 |
%% |
| 19 |
%% This generated file may be distributed as long as the |
| 20 |
%% original source files, as listed above, are part of the |
| 21 |
%% same distribution. (The sources need not necessarily be |
| 22 |
%% in the same archive or directory.) |
| 23 |
|
| 24 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 25 |
%% |
| 26 |
%% `rcsinfo' package to use with LaTeX2e. |
| 27 |
%% |
| 28 |
%% This package is used to extract the revision and file information provided |
| 29 |
%% by the RCS revision control system. |
| 30 |
%% A PERL-package supporting rcsinfo and LaTeX2HTML is provieded too. |
| 31 |
%% |
| 32 |
%% Copyright (C) 1995 Dr. Juergen Vollmer |
| 33 |
%% Viktoriastrasse 15, D-76133 Karlsruhe, Germany |
| 34 |
%% [email protected] |
| 35 |
%% License: |
| 36 |
%% This program can be redistributed and/or modified under the terms |
| 37 |
%% of the LaTeX Project Public License Distributed from CTAN |
| 38 |
%% archives in directory macros/latex/base/lppl.txt; either |
| 39 |
%% version 1 of the License, or any later version. |
| 40 |
%% |
| 41 |
%% If you find this software useful, please send me a postcard. |
| 42 |
%% |
| 43 |
%% $Id: rcsinfo.dtx,v 1.7 2005/02/25 08:37:03 vollmer draft vollmer $ |
| 44 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 45 |
|
| 46 |
%% \CheckSum{397} |
| 47 |
%% \CharacterTable |
| 48 |
%% {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 |
| 49 |
%% Lower-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 |
| 50 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 51 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 52 |
%% Dollar \$ Percent \% Ampersand \& |
| 53 |
%% Acute accent \' Left paren \( Right paren \) |
| 54 |
%% Asterisk \* Plus \+ Comma \, |
| 55 |
%% Minus \- Point \. Solidus \/ |
| 56 |
%% Colon \: Semicolon \; Less than \< |
| 57 |
%% Equals \= Greater than \> Question mark \? |
| 58 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 59 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 60 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 61 |
%% Right brace \} Tilde \~} |
| 62 |
|
| 63 |
\documentclass{article} |
| 64 |
\usepackage{html} |
| 65 |
\usepackage{rcsinfo} |
| 66 |
|
| 67 |
\begin{htmlonly} |
| 68 |
\input{rcsinfo2html.aux} |
| 69 |
\end{htmlonly} |
| 70 |
|
| 71 |
\newcommand{\LatexToHtml}{\LaTeX 2\texttt{HTML}} |
| 72 |
\newcommand{\Var}[1]{\texttt{\$rcsinfo::#1}} |
| 73 |
\newcommand{\RCS}{\emph{RCS}} |
| 74 |
|
| 75 |
\pagestyle{fancy} |
| 76 |
|
| 77 |
\begin{document} |
| 78 |
\rcsInfo $Id: rcsinfo.dtx,v 1.7 2005/02/25 08:37:03 vollmer draft vollmer $ |
| 79 |
|
| 80 |
\author{Dr.~J{\"u}rgen Vollmer\\ |
| 81 |
Viktoriastra{\ss}e 15, D-76133 Karlruhe, Germany\\ |
| 82 |
\small{\texttt{[email protected]}}} |
| 83 |
\date{\today} |
| 84 |
\title{Example for converting a \LaTeX\ document to \texttt{HTML}\\ |
| 85 |
using \LatexToHtml\ and the \texttt{rcsinfo}-package} |
| 86 |
\maketitle |
| 87 |
|
| 88 |
\section{Notes} |
| 89 |
%%%%%%%%%%%%%%% |
| 90 |
|
| 91 |
\begin{itemize} |
| 92 |
\item Use at least version \emph{99.1 release (March 30, 1999)} of |
| 93 |
\LatexToHtml. |
| 94 |
|
| 95 |
\item You should \verb|\usepackage{html}|. |
| 96 |
|
| 97 |
\item You must run \LaTeX\ on the input file before running \LatexToHtml. |
| 98 |
|
| 99 |
\item In order to make \LatexToHtml\ read the \verb|.aux| file, you must |
| 100 |
either: |
| 101 |
\begin{itemize} |
| 102 |
\item call \LatexToHtml\ with the option |
| 103 |
\verb|-show_section_numbers| or |
| 104 |
\item include the \verb|.aux| file explicitly in your \LaTeX-source, by |
| 105 |
adding the lines in the preamble:\\ |
| 106 |
\verb|\begin{|\verb|htmlonly}|\\ % looks ulgy, but otherwise |
| 107 |
\verb|\input{|\emph{source}\verb|.aux}|\\ |
| 108 |
\verb|\end{|\verb|htmlonly}|\\ % latex2html fails. |
| 109 |
which requires \verb|\usepackage{html}|. |
| 110 |
\end{itemize} |
| 111 |
If you don't do so, the \verb|\rcsInfo...| commands give no value. |
| 112 |
|
| 113 |
\item If using the \LatexToHtml\ tool, only the last \verb|\rcsInfo| takes |
| 114 |
effect, e.g.~if using several input files each having the \verb|\rcsInfo| |
| 115 |
command, only the vales of the last included file are used. |
| 116 |
(If this is a serious problem for you, drop me a mail). |
| 117 |
|
| 118 |
\item If the \verb|fancy| / \verb|fancyhdr| option is given to the |
| 119 |
\verb|rcsinfo| package, |
| 120 |
the date of the \verb|ADDRESS| at the bottom of the \texttt{HTML} |
| 121 |
page is set to the \RCS\ date. |
| 122 |
|
| 123 |
\item If you would like to set your own \verb|ADDRESS| text, you should |
| 124 |
define a procedure, which sets \texttt{perl} \verb|$main::ADDRESS| |
| 125 |
variable in your local \texttt{.latex2html} initialization file. |
| 126 |
The routine may use the \texttt{perl} |
| 127 |
variables shown below. Assign a reference of this procdure to the |
| 128 |
\texttt{perl}-variable |
| 129 |
\verb|$rcsinfo::SetAddressProc|. |
| 130 |
E.g.\ if you have a \texttt{perl} routine \verb|&my_address_field|, |
| 131 |
then \\ |
| 132 |
\verb|$rcsinfo::SetAddressProc = &my_address_field|. |
| 133 |
|
| 134 |
For example the follownig \texttt{perl}-code does the job: |
| 135 |
\begin{verbatim} |
| 136 |
sub my_address_field |
| 137 |
{ |
| 138 |
$ADDRESS = '<hr>This file was last updated on ' . |
| 139 |
$rcsinfo::Date . |
| 140 |
' by ' . |
| 141 |
'<a href="mailto: [email protected]">' . |
| 142 |
'Dr. Juergen Vollmer ' . |
| 143 |
'<[email protected]></a>'; |
| 144 |
} |
| 145 |
$rcsinfo::SetAddressProc = \&my_address_field; |
| 146 |
\end{verbatim} |
| 147 |
\end{itemize} |
| 148 |
|
| 149 |
\newpage |
| 150 |
|
| 151 |
\section{Example} |
| 152 |
%%%%%%%%%%%%%%%%% |
| 153 |
|
| 154 |
\label{sec-examples} |
| 155 |
Here are the commands and their output: |
| 156 |
|
| 157 |
\begin{tabular}{lll} |
| 158 |
\LaTeX-command & \texttt{perl} variable & Result for this file \\\hline |
| 159 |
\verb|\today| & \texttt{\$today} & \today \\ |
| 160 |
\verb|\rcsInfoFile| & \Var{File} & \rcsInfoFile \\ |
| 161 |
\verb|\rcsInfoOwner| & \Var{Owner} & \rcsInfoOwner \\ |
| 162 |
\verb|\rcsInfoStatus| & \Var{Status} & \rcsInfoStatus \\ |
| 163 |
\verb|\rcsInfoLocker| & \Var{Locker} & \rcsInfoLocker \\ |
| 164 |
\verb|\rcsInfoDate| & \Var{Date} & \rcsInfoDate \\ |
| 165 |
\verb|\rcsInfoLongDate| & \Var{LongDate} & \rcsInfoLongDate \\ |
| 166 |
\verb|\rcsInfoDay| & \Var{Day} & \rcsInfoDay \\ |
| 167 |
\verb|\rcsInfoMonth| & \Var{Month} & \rcsInfoMonth \\ |
| 168 |
\verb|\rcsInfoYear| & \Var{Year} & \rcsInfoYear \\ |
| 169 |
\end{tabular} |
| 170 |
|
| 171 |
\end{document} |
| 172 |
\endinput |
| 173 |
%% |
| 174 |
%% End of file `rcsinfo2html.tex'. |