diff options
author | Karl Berry <karl@freefriends.org> | 2010-11-24 01:16:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-11-24 01:16:02 +0000 |
commit | 3b5412b9ecf89fd732c24ca00c3dcc8b4114b1b2 (patch) | |
tree | 059be570e28e9f1753c6905163d68d979816f3f1 /Master/texmf-dist/tex/latex | |
parent | a6c79ee97b4809b5fd4eee3135d73c2725df6d9f (diff) |
changes 0.5.3 (23nov10)
git-svn-id: svn://tug.org/texlive/trunk@20546 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/changes/changes.sty | 253 |
1 files changed, 127 insertions, 126 deletions
diff --git a/Master/texmf-dist/tex/latex/changes/changes.sty b/Master/texmf-dist/tex/latex/changes/changes.sty index efd654647fd..6beba57b167 100644 --- a/Master/texmf-dist/tex/latex/changes/changes.sty +++ b/Master/texmf-dist/tex/latex/changes/changes.sty @@ -7,7 +7,7 @@ %% changes.dtx (with options: `changes') %% %% changes.dtx -%% Copyright 2007 Ekkart Kleinod (ekkart@ekkart.de) +%% Copyright 2007-2010 Ekkart Kleinod (ekkart@ekkart.de) %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -34,13 +34,14 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{changes} -[2007/10/10 v0.5.2 changes-Paket] -\typeout{*** changes-Paket 2007/10/10 v0.5.2 ***} +[2010/11/22 v0.5.3 changes-Paket] +\typeout{*** changes-Paket 2010/11/22 v0.5.3 ***} \RequirePackage{xkeyval} \RequirePackage{ifthen} \newboolean{Changes@optiondraft} \setboolean{Changes@optiondraft}{true} \DeclareOptionX{draft}{ + \setboolean{Changes@optiondraft}{true} \typeout{changes-option '\CurrentOption'} } \DeclareOptionX{final}{ @@ -58,47 +59,47 @@ \DeclareOptionX*{ \PackageWarning{Unknown changes-option '\CurrentOption'} } -\ProcessOptionsX\relax +\ProcessOptionsX*\relax \RequirePackage{xcolor} \RequirePackage{pdfcolmk} \RequirePackage{ulem} \ifthenelse{\isundefined{\addto}} { - \def\listchangesname{\"Anderungen} - \def\changesaddname{Eingef\"ugt} - \def\changesdeletename{Gel\"oscht} - \def\changesreplacename{Ersetzt} - \def\changesauthorname{Autor} - \def\changesanonymousname{Anonym} - \def\changesnoloc{\"Anderungsliste erst nach dem n\"achsten Durchlauf verf\"ugbar.} +\def\listchangesname{\"Anderungen} +\def\changesaddname{Eingef\"ugt} +\def\changesdeletename{Gel\"oscht} +\def\changesreplacename{Ersetzt} +\def\changesauthorname{Autor} +\def\changesanonymousname{Anonym} +\def\changesnoloc{\"Anderungsliste erst nach dem n\"achsten Durchlauf verf\"ugbar.} }{ - \addto\captionsngerman{\def\listchangesname{\"Anderungen}} - \addto\captionsgerman{\def\listchangesname{\"Anderungen}} - \addto\captionsenglish{\def\listchangesname{Changes}} +\addto\captionsngerman{\def\listchangesname{\"Anderungen}} +\addto\captionsgerman{\def\listchangesname{\"Anderungen}} +\addto\captionsenglish{\def\listchangesname{Changes}} - \addto\captionsngerman{\def\changesaddname{Eingef\"ugt}} - \addto\captionsgerman{\def\changesaddname{Eingef\"ugt}} - \addto\captionsenglish{\def\changesaddname{Added}} +\addto\captionsngerman{\def\changesaddname{Eingef\"ugt}} +\addto\captionsgerman{\def\changesaddname{Eingef\"ugt}} +\addto\captionsenglish{\def\changesaddname{Added}} - \addto\captionsngerman{\def\changesdeletename{Gel\"oscht}} - \addto\captionsgerman{\def\changesdeletename{Gel\"oscht}} - \addto\captionsenglish{\def\changesdeletename{Deleted}} +\addto\captionsngerman{\def\changesdeletename{Gel\"oscht}} +\addto\captionsgerman{\def\changesdeletename{Gel\"oscht}} +\addto\captionsenglish{\def\changesdeletename{Deleted}} - \addto\captionsngerman{\def\changesreplacename{Ersetzt}} - \addto\captionsgerman{\def\changesreplacename{Ersetzt}} - \addto\captionsenglish{\def\changesreplacename{Replaced}} +\addto\captionsngerman{\def\changesreplacename{Ersetzt}} +\addto\captionsgerman{\def\changesreplacename{Ersetzt}} +\addto\captionsenglish{\def\changesreplacename{Replaced}} - \addto\captionsngerman{\def\changesauthorname{Autor}} - \addto\captionsgerman{\def\changesauthorname{Autor}} - \addto\captionsenglish{\def\changesauthorname{Author}} +\addto\captionsngerman{\def\changesauthorname{Autor}} +\addto\captionsgerman{\def\changesauthorname{Autor}} +\addto\captionsenglish{\def\changesauthorname{Author}} - \addto\captionsngerman{\def\changesanonymousname{Anonym}} - \addto\captionsgerman{\def\changesanonymousname{Anonym}} - \addto\captionsenglish{\def\changesanonymousname{anonymous}} +\addto\captionsngerman{\def\changesanonymousname{Anonym}} +\addto\captionsgerman{\def\changesanonymousname{Anonym}} +\addto\captionsenglish{\def\changesanonymousname{anonymous}} - \addto\captionsngerman{\def\changesnoloc{\"Anderungsliste erst nach dem n\"achsten \LaTeX-Lauf verf\"ugbar.}} - \addto\captionsgerman{\def\changesnoloc{\"Anderungsliste erst nach dem n\"achsten Durchlauf verf\"ugbar.}} - \addto\captionsenglish{\def\changesnoloc{List of changes is available after the next \LaTeX\ run.}} +\addto\captionsngerman{\def\changesnoloc{\"Anderungsliste erst nach dem n\"achsten \LaTeX-Lauf verf\"ugbar.}} +\addto\captionsgerman{\def\changesnoloc{\"Anderungsliste erst nach dem n\"achsten Durchlauf verf\"ugbar.}} +\addto\captionsenglish{\def\changesnoloc{List of changes is available after the next \LaTeX\ run.}} } \newcommand{\Changes@extension}{loc} \newcommand{\setlocextension}[1]{ @@ -125,8 +126,8 @@ } \newcommand{\setauthormarkup}[2][left]{% \ifthenelse{\equal{#1}{left}} - {\setboolean{Changes@AuthorPositionLeft}{true}} - {\setboolean{Changes@AuthorPositionLeft}{false}} +{\setboolean{Changes@AuthorPositionLeft}{true}} +{\setboolean{Changes@AuthorPositionLeft}{false}} \renewcommand{\Changes@AuthorMark}[1]{#2} } \newcommand{\Changes@Remark}[2]{% @@ -142,22 +143,22 @@ } \newcommand{\Changes@added}[2][\@empty]{% \ifthenelse{\boolean{Changes@optiondraft}}% - {% - \textcolor{Changes@Color\Changes@temp}{% - \ifthenelse{\boolean{Changes@AuthorPositionLeft}}% - {\ifthenelse{\equal{\@empty}{\Changes@temp}}% - {}{\Changes@AuthorMark{\Changes@temp}}% - }{}% - #2% - \ifthenelse{\not\boolean{Changes@AuthorPositionLeft}}% - {\ifthenelse{\equal{\@empty}{\Changes@temp}}% - {}{\Changes@AuthorMark{\Changes@temp}}% - }{}% - \ifthenelse{\equal{\@empty}{#1}}% - {}{\Changes@Remark{\Changes@temp}{#1}}% - }% - \stepcounter{Changes@AddCount\Changes@temp}% - }{#2}% +{% + \textcolor{Changes@Color\Changes@temp}{% +\ifthenelse{\boolean{Changes@AuthorPositionLeft}}% + {\ifthenelse{\equal{\@empty}{\Changes@temp}}% +{}{\Changes@AuthorMark{\Changes@temp}}% + }{}% +#2% +\ifthenelse{\not\boolean{Changes@AuthorPositionLeft}}% + {\ifthenelse{\equal{\@empty}{\Changes@temp}}% +{}{\Changes@AuthorMark{\Changes@temp}}% + }{}% +\ifthenelse{\equal{\@empty}{#1}}% + {}{\Changes@Remark{\Changes@temp}{#1}}% + }% + \stepcounter{Changes@AddCount\Changes@temp}% +}{#2}% } \newcommand{\deleted}[1][\@empty]{% \renewcommand{\Changes@temp}{#1}% @@ -165,22 +166,22 @@ } \newcommand{\Changes@deleted}[2][\@empty]{% \ifthenelse{\boolean{Changes@optiondraft}}% - {% - \textcolor{Changes@Color\Changes@temp}{% - \ifthenelse{\boolean{Changes@AuthorPositionLeft}}% - {\ifthenelse{\equal{\@empty}{\Changes@temp}}% - {}{\Changes@AuthorMark{\Changes@temp}}% - }{}% - \sout{#2}% - \ifthenelse{\not\boolean{Changes@AuthorPositionLeft}}% - {\ifthenelse{\equal{\@empty}{\Changes@temp}}% - {}{\Changes@AuthorMark{\Changes@temp}}% - }{}% - \ifthenelse{\equal{\@empty}{#1}}% - {}{\Changes@Remark{\Changes@temp}{#1}}% - }% - \stepcounter{Changes@DeleteCount\Changes@temp}% - }{\@bsphack \expandafter \@esphack}% +{% + \textcolor{Changes@Color\Changes@temp}{% +\ifthenelse{\boolean{Changes@AuthorPositionLeft}}% + {\ifthenelse{\equal{\@empty}{\Changes@temp}}% +{}{\Changes@AuthorMark{\Changes@temp}}% + }{}% +\sout{#2}% +\ifthenelse{\not\boolean{Changes@AuthorPositionLeft}}% + {\ifthenelse{\equal{\@empty}{\Changes@temp}}% +{}{\Changes@AuthorMark{\Changes@temp}}% + }{}% +\ifthenelse{\equal{\@empty}{#1}}% + {}{\Changes@Remark{\Changes@temp}{#1}}% + }% + \stepcounter{Changes@DeleteCount\Changes@temp}% +}{\@bsphack \expandafter \@esphack}% } \newcommand{\replaced}[1][\@empty]{% \renewcommand{\Changes@temp}{#1}% @@ -188,23 +189,23 @@ } \newcommand{\Changes@replaced}[3][\@empty]{% \ifthenelse{\boolean{Changes@optiondraft}}% - {% - \textcolor{Changes@Color\Changes@temp}{% - \ifthenelse{\boolean{Changes@AuthorPositionLeft}}% - {\ifthenelse{\equal{\@empty}{\Changes@temp}}% - {}{\Changes@AuthorMark{\Changes@temp}}% - }{}% - #2% - \sout{#3}% - \ifthenelse{\not\boolean{Changes@AuthorPositionLeft}}% - {\ifthenelse{\equal{\@empty}{\Changes@temp}}% - {}{\Changes@AuthorMark{\Changes@temp}}% - }{}% - \ifthenelse{\equal{\@empty}{#1}}% - {}{\Changes@Remark{\Changes@temp}{#1}}% - }% - \stepcounter{Changes@ReplaceCount\Changes@temp}% - }{#2}% +{% + \textcolor{Changes@Color\Changes@temp}{% +\ifthenelse{\boolean{Changes@AuthorPositionLeft}}% + {\ifthenelse{\equal{\@empty}{\Changes@temp}}% +{}{\Changes@AuthorMark{\Changes@temp}}% + }{}% +#2% +\sout{#3}% +\ifthenelse{\not\boolean{Changes@AuthorPositionLeft}}% + {\ifthenelse{\equal{\@empty}{\Changes@temp}}% +{}{\Changes@AuthorMark{\Changes@temp}}% + }{}% +\ifthenelse{\equal{\@empty}{#1}}% + {}{\Changes@Remark{\Changes@temp}{#1}}% + }% + \stepcounter{Changes@ReplaceCount\Changes@temp}% +}{#2}% } \def\changes@chopline#1;#2;#3;#4;#5;#6 \\{ \def\Changes@InID{#1} @@ -216,57 +217,57 @@ } \newcommand{\listofchanges}{% \ifthenelse{\boolean{Changes@optiondraft}} - { - \section*{\listchangesname} - \IfFileExists{\jobname.\Changes@extension} - { - \newboolean{Changes@MoreLines} - \setboolean{Changes@MoreLines}{true} - \newread\Changes@InFile - \openin\Changes@InFile = \jobname.\Changes@extension - \whiledo{\boolean{Changes@MoreLines}}{ - \read\Changes@InFile to \Changes@Line - \ifeof\Changes@InFile - \setboolean{Changes@MoreLines}{false} - \else - \expandafter\changes@chopline\Changes@Line\\ - \begin{tabbing} - mm\=mmmmmm\=\kill - \ifthenelse{\equal{\Changes@InID}{}} - {\textcolor{\Changes@InColor}{\changesauthorname: \changesanonymousname}\\} - {\textcolor{\Changes@InColor}{\changesauthorname: \Changes@InID} - \ifthenelse{\equal{\Changes@InName}{}}{} - { \textcolor{\Changes@InColor}{(\Changes@InName)}} - \\ - } - \>\changesaddname:\>\Changes@InAdded\\ - \>\changesdeletename:\>\Changes@InDeleted\\ - \>\changesreplacename:\>\Changes@InReplaced\\ - \end{tabbing} - \fi - } - \closein\Changes@InFile - }{ - \emph{\changesnoloc} - } - }{} +{ + \section*{\listchangesname} + \IfFileExists{\jobname.\Changes@extension} +{ + \newboolean{Changes@MoreLines} + \setboolean{Changes@MoreLines}{true} + \newread\Changes@InFile + \openin\Changes@InFile = \jobname.\Changes@extension +\whiledo{\boolean{Changes@MoreLines}}{ +\read\Changes@InFile to \Changes@Line + \ifeof\Changes@InFile +\setboolean{Changes@MoreLines}{false} + \else +\expandafter\changes@chopline\Changes@Line\\ +\begin{tabbing} + mm\=mmmmmm\=\kill + \ifthenelse{\equal{\Changes@InID}{}} +{\textcolor{\Changes@InColor}{\changesauthorname: \changesanonymousname}\\} +{\textcolor{\Changes@InColor}{\changesauthorname: \Changes@InID} + \ifthenelse{\equal{\Changes@InName}{}}{} + { \textcolor{\Changes@InColor}{(\Changes@InName)}} + \\ +} + \>\changesaddname:\>\Changes@InAdded\\ + \>\changesdeletename:\>\Changes@InDeleted\\ + \>\changesreplacename:\>\Changes@InReplaced\\ +\end{tabbing} + \fi +} + \closein\Changes@InFile +}{ + \emph{\changesnoloc} +} +}{} } \AtEndDocument{ \newwrite\Changes@OutFile \immediate\openout\Changes@OutFile = \jobname.\Changes@extension \setcounter{Changes@iAuthor}{0} \whiledo{\value{Changes@iAuthor} < \value{Changes@AuthorCount}}{ - \stepcounter{Changes@iAuthor} - \def\Changes@ID{\@nameuse{Changes@Author\theChanges@iAuthor}} - \immediate\write\Changes@OutFile{\Changes@ID;% - \@nameuse{Changes@AuthorColor\Changes@ID};% - \@nameuse{Changes@AuthorName\Changes@ID};% - \the\value{Changes@AddCount\Changes@ID};% - \the\value{Changes@DeleteCount\Changes@ID};% - \the\value{Changes@ReplaceCount\Changes@ID}} +\stepcounter{Changes@iAuthor} +\def\Changes@ID{\@nameuse{Changes@Author\theChanges@iAuthor}} +\immediate\write\Changes@OutFile{\Changes@ID;% + \@nameuse{Changes@AuthorColor\Changes@ID};% + \@nameuse{Changes@AuthorName\Changes@ID};% + \the\value{Changes@AddCount\Changes@ID};% + \the\value{Changes@DeleteCount\Changes@ID};% + \the\value{Changes@ReplaceCount\Changes@ID}} } \closeout\Changes@OutFile } -%% Copyright 2007 Ekkart Kleinod +%% Copyright 2007-2010 Ekkart Kleinod %% %% End of file `changes.sty'. |