Commit 0e71cefd authored by pknaggs's avatar pknaggs

*** empty log message ***

parent ddef8bb2
......@@ -2509,7 +2509,7 @@
condition exists if the most recent definition does not have a
name or if it was defined as a \word[tools]{SYNONYM}.
\see \wref{tools:SYNONYM},
\see \wref{tools:SYNONYM}{},
\xref[D.6.7 Immediacy]{diff:immediate}.
......@@ -5539,7 +5539,7 @@
\item \stack{"<spaces>name<space>"}{c-addr u}
Skip leading space delimiters. Parse \param{name} delimited by a
......@@ -693,7 +693,7 @@ to provide all of the Facility and Facility Extensions word sets.
% -------------------------------------
\item \stack{struct-sys +n}{}
Terminate definition of a structure started by
......@@ -962,7 +962,7 @@ provide all of the File Access and File Access Extensions word sets.
\item \stack{i*x "name"}{j*x}
Skip leading white space and parse \param{name} delimited by a
......@@ -1064,7 +1064,7 @@ provide all of the File Access and File Access Extensions word sets.
\item \stack{i*x c-addr u}{i*x}
If the file specified by \param{c-addr u} has been \word{INCLUDED}
% history package
% Actually it should be called changes but that is already used by
% the docstrip system.
% This is a first draft of a change history package and is not
% ready for public distribution. It is provided on an "as you find
% it" basis, and no support is offered.
% The code has been developed by Dr. Peter Knaggs.
% 0.1 PjK Original Code
% 0.2 PjK Complete rewrite of original code
% Introducing \@history@test
% 0.3 PjK Added History Log
% 0.4 PjK \@history@test now useable in inner paragraphs
% Fixed problem with \openhistory
% Added silent labelling on same page (\@history@label)
\def\filedate{04 Aug 2007 17:08:00 BST}
\def\Copyright{Copyright (C) 2007 Peter Knaggs,
University of Bournemouth, England}
\typeout{Package `history' <\filedate>.}
% Define a file to record the changes / history
\typeout{Writing Change History to #1}
% Define a list of accepted changes
\def\accept#1{\edef\@history@accepted{\zap@space#1 \@empty,\@history@accepted}}
% Define a list of rejected changes
\def\reject#1{\edef\@history@rejected{\zap@space#1 \@empty,\@history@rejected}}
\@for\temp@a:=\@history@accepted\do{\temp@a }
\@for\temp@a:=\@history@rejected\do{\temp@a }
{Change on line \the\inputlineno\space has no label}
{Give the damn thing a label.}%
{The change \temp@a\space is neither accepted or rejected}
{Add the change label to either the \noexpand\accept or \noexpand\reject list.}%
% The \@history@label macro is used to hold the last displayed label.
% It is used to control the printing of the change label in the margin
% note.
% The \@history@test macro is the work horse of this package. It take
% a number of parameters as follows:
% label: The label of a change (may be left blank)
% accept: The Latex code required to typeset the change if it has been
% accepted
% reject: The LaTeX code for typesetting the change if it was rejected
% review: The code to typeset a change under review
% log: the log entry text
% If the label is blank a warning will be produced.
\newcommand{\@history@test}[5]{% {label}{accept}{reject}{review}{log}
\edef\temp@a{#1}% Remember the change label
\@tempswatrue % Change Processed
\@tempswbfalse % Don't Log the change
\ifx\temp@a\empty % The label is empty
% Change is accepted
\@tempswafalse % Change shown
\@tempswbtrue % Log the change
{#2}% % Show the accepted text
% Change is rejected
\@tempswafalse % Change Shown
{#3}% % Show the rejected text
% Neither Accepted or Rejected, so must be in review
% Review in a Final revision - Something wrong with this
\@tempswbtrue% Log the review
\cbstart% Start the change bar
% We are in an inner paragraph
% Fix the extra vspace \cbstart puts in for us.
{#4}% Output the change text
% Margin par is not allowed in an inner paragraph
% Make up the last displayed label, on this page
% Have we seen this label before?
% Yes - then ignore the label
% No - Must be a either a new label, or the
% first label on this page. Output the label
% Remember the label for next time.
\cbend% Make the end of the Change bar
% Write a log entry
{\temp@a}% Change Label
{\thepage}% Page Number
#5% Log entry
\newcommand{\place}[2]{% {label}{text}
{#1}% Change Label
{#2}% Accepted text
{}% Rejected text
{\uline{#2}}% Review text
{place{#2}}% Log text
\newcommand{\remove}[2]{% {label}{text}
{#1}% Change Label
{}% Accepted text
{#2}% Rejected text
{\sout{#2}}% Review text
{remove{#2}}% Log text
\newcommand{\replace}[3]{% {label}{old}{new}
{#1}% Change Label
{#3}% Accepted text
{#2}% Rejected text
{\sout{#2}\uline{#3}}% Review text
{replace{#2}{#3}}% Log text
......@@ -342,7 +342,7 @@ to provide all of the Locals and Locals Extensions word sets.
Parse \param{ccc} according to the following syntax:
\word{b:} \arg{arg}* [\textbf{\textbar} \arg{val}*] [\textbf{--\,--} \arg{out}*] \textbf{:\}"}
\word{b:} \arg{arg}* [\textbf{\textbar} \arg{val}*] [\textbf{--\,--} \arg{out}*] \textbf{:\}}
where \arg{arg}, \arg{val} and \arg{out} are local names, and
\param{i} is the number of \arg{arg} names given.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment