summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/vhistory/vhistory.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/vhistory/vhistory.sty')
-rw-r--r--Master/texmf-dist/tex/latex/vhistory/vhistory.sty79
1 files changed, 64 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/latex/vhistory/vhistory.sty b/Master/texmf-dist/tex/latex/vhistory/vhistory.sty
index 7b9812bc6a8..07ebb0e5e68 100644
--- a/Master/texmf-dist/tex/latex/vhistory/vhistory.sty
+++ b/Master/texmf-dist/tex/latex/vhistory/vhistory.sty
@@ -3,8 +3,8 @@
%% FILE: vhistory.sty %%
%% %%
%% AUTHOR: Jochen Wertenauer %%
-%% VERSION: 1.4 %%
-%% DATE: 2009-03-01 %%
+%% VERSION: 1.5 %%
+%% DATE: 2010-07-17 %%
%% %%
%% LICENSE: This program may be distributed and/or modified under the %%
%% conditions of the LaTeX Project Public License, either version 1.2 %%
@@ -81,7 +81,6 @@
\RequirePackage{ltxtable, sets}
%% Helper methods ------------------------------------------------------------
-\let \vh@xpa=\expandafter
\def \vh@empty{\empty}
\def \vh@iwrite{\immediate\write}
@@ -91,12 +90,12 @@
\def \vh@Ifundefined #1{\expandafter\ifx\csname#1\endcsname\relax}
%% Prints the content of macro #1 without expansion.
-\long \def \vh@verbprint #1{\vh@xpa\vh@eraseToBrace\meaning #1}
+\long \def \vh@verbprint #1{\expandafter\vh@eraseToBrace\meaning #1}
%% This macro writes #2 verbatim to the (open) file #1.
\long \def \vh@verbwrite #1#2{%
\long \def \vh@verbtemp{#2}%
- \vh@xpa\vh@iwrite\vh@xpa#1\vh@xpa{\vh@xpa\vh@eraseToBrace \meaning\vh@verbtemp}%
+ \expandafter\vh@iwrite\expandafter#1\expandafter{\expandafter\vh@eraseToBrace \meaning\vh@verbtemp}%
}
%% Deletes everything before the next > e.g. "macro ->". Used by \vh@verbprint
@@ -121,14 +120,24 @@
\vh@GermanCaptions
\fi
\fi
+ \vh@Ifundefined{l@french}\else
+ \ifnum \language=\l@french\relax
+ \vh@FrenchCaptions
+ \fi
+ \fi
+ \vh@Ifundefined{l@dutch}\else
+ \ifnum \language=\l@dutch\relax
+ \vh@DutchCaptions
+ \fi
+ \fi
}
\def \vh@EnglishCaptions{%
- \def\vhhistoryname{History of versions}%
- \def\vhversionname{Version}%
+ \def\vhhistoryname{Revision History}%
+ \def\vhversionname{Revision}%
\def\vhdatename{Date}%
\def\vhauthorname{Author(s)}%
- \def\vhchangename{Changes}%
+ \def\vhchangename{Description}%
}
\def \vh@GermanCaptions{%
@@ -138,6 +147,22 @@
\def\vhauthorname{Autor(en)}%
\def\vhchangename{\"Anderungen}%
}
+
+\def \vh@FrenchCaptions{%
+ \def\vhhistoryname{Historique}%
+ \def\vhversionname{Version}%
+ \def\vhdatename{Date}%
+ \def\vhauthorname{Auteur(s)}%
+ \def\vhchangename{Modifications}%
+}
+
+\def \vh@DutchCaptions{%
+ \def\vhhistoryname{Wijzigingen}%
+ \def\vhversionname{Herziening}%
+ \def\vhdatename{Datum}%
+ \def\vhauthorname{Auteur(s)}%
+ \def\vhchangename{Beschrijving}%
+}
%% ---------------------------------------------------------------------------
%% -- Options ----------------------------------------------------------------
@@ -196,15 +221,39 @@
%% Prints the contents of \vhAllAuthorsSet but regards the elements as
%% commands. Instead of XY, the definition of the command \XY will be used.
-\def \vhListAllAuthorsLong{\vh@xpa\vh@longlistset \vhAllAuthorsSet|\empty\endset}
+\def \vhListAllAuthorsLong{\expandafter\vh@longlistset\vhAllAuthorsSet|\endset|}
+
+%% Helper method for \vhListAllAuthorsLong.
+\def \vh@longlistset #1|#2|{%
+ \expandafter\ifx\csname#1\endcsname\relax
+ #1%
+ \else
+ \csname#1\endcsname % Create command and expand
+ \fi
+ \ifx\endset#2%
+ \else
+ \setseparator\sets@ReturnFi{\vh@longlistset#2|}%
+ \fi
+}
+
+%% Prints the contents of \vhAllAuthorsSet but regards the elements as
+%% commands. Instead of XY, the definition of the command \XY will be used.
+\def \vhListAllAuthorsLongWithAbbrev{\expandafter\vh@longlistsetWithAbbrev\vhAllAuthorsSet|\endset|}
+
+\def \vhAbbrevSeparator{\ }
+\def \vhAbbrevLeft{(}
+\def \vhAbbrevRight{)}
%% Helper method for \vhListAllAuthorsLong.
-\def \vh@longlistset #1|#2\endset{%
- \csname #1\endcsname % Create command and expand
- \def\vh@tmp{#2}%
- \ifx\vh@tmp\vh@empty{}\else
- \setseparator
- \vh@ReturnFi{\vh@longlistset #2\endset}%
+\def \vh@longlistsetWithAbbrev #1|#2|{%
+ \expandafter\ifx\csname#1\endcsname\relax
+ #1%
+ \else
+ \csname#1\endcsname\vhAbbrevSeparator\vhAbbrevLeft #1\vhAbbrevRight%
+ \fi
+ \ifx\endset#2%
+ \else
+ \setseparator\sets@ReturnFi{\vh@longlistsetWithAbbrev#2|}%
\fi
}