diff options
author | Dr. Clea F. Rees <cfrees@imapmail.org> | 2009-03-01 20:31:44 +0000 |
---|---|---|
committer | Dr. Clea F. Rees <cfrees@imapmail.org> | 2009-03-01 20:31:44 +0000 |
commit | 98b2e0029dce671be04c9bd02fa94109e0c67ad1 (patch) | |
tree | a06138d56d54921d2dffdaa0071131ea9129e166 /Master/texmf-dist/tex | |
parent | 6ed4b79b8c635fe33641578f412d5d907fe5d573 (diff) |
svn-multi new version
git-svn-id: svn://tug.org/texlive/trunk@12276 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty | 39 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/svn-multi/svnkw.sty | 4 |
2 files changed, 33 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty b/Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty index f8d8e4b1000..8caa4016b7d 100644 --- a/Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty +++ b/Master/texmf-dist/tex/latex/svn-multi/svn-multi.sty @@ -28,7 +28,7 @@ %% DTX Id: $Id: svn-multi.dtx 628 2007-07-10 20:32:06Z martin $ \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{svn-multi} - [2008/12/03 v1.3b SVN Keywords for multi-file LaTeX documents] + [2009/02/27 v1.4 SVN Keywords for multi-file LaTeX documents] \newcommand{\svn}{\@ifnextchar{*}{\svn@s}{\svn@n}} \def\svn@n#1{\@svn@n#1} @@ -45,8 +45,23 @@ \def\svnhour{0} \def\svnfilehour{0} \def\@svn@hour{0} \def\svnminute{0} \def\svnfileminute{0} \def\@svn@minute{0} \def\svnsecond{0} \def\svnfilesecond{0} \def\@svn@second{0} -\def\svntimezone{0} \def\svnfiletimezone{0} \def\@svn@timezone{0} +\def\svntimezonehour{+00} \def\svnfiletimezonehour{+00} \def\@svn@timezonehour{+00} +\def\svntimezoneminute{00} \def\svnfiletimezoneminute{00} \def\@svn@timezoneminute{00} \def\svnmainurl{NOT SET}\def\svnmainfilename{NOT SET} +\def\svntimezone{\svntimezonehour\svntimezoneminute\svn@gobblezeros} +\def\svnfiletimezone{\svnfiletimezonehour\svnfiletimezoneminute\svn@gobblezeros} + +\def\svn@gobblezeros{% +\futurelet\svn@nextchar\svn@gobblezeros@ +} +\def\svn@gobblezeros@{% +\let\@tempa=\relax +\def\@tempb{0}% +\ifx0\svn@nextchar +\let\@tempa=\@gobbletwo +\fi +\@tempa +} \newcommand*{\svnid}{% \@svnidswtrue @@ -79,7 +94,8 @@ \xdef\@svn@hour{\svnfilehour}% \xdef\@svn@minute{\svnfileminute}% \xdef\@svn@second{\svnfilesecond}% -\xdef\@svn@timezone{\svnfiletimezone}% +\xdef\@svn@timezonehour{\svnfiletimezonehour}% +\xdef\@svn@timezoneminute{\svnfiletimezoneminute}% \else\fi \fi } @@ -234,22 +250,28 @@ \gdef\svnfilehour{#4}% \gdef\svnfileminute{#5}% \gdef\svnfilesecond{#6#7}% -\gdef\svnfiletimezone{+00}% #8 always 'Z' for Zulu-time (UTC) +\gdef\svnfiletimezonehour{+00}% +\gdef\svnfiletimezoneminute{00}% #8 always 'Z' for Zulu-time (UTC) } \def\@svn@scanlongdate#1{\expandafter\@svn@scanlongdate@#1\relax} -\def\@svn@scanlongdate@#1-#2-#3 #4:#5:#6 #700 #8\relax{% +\def\@svn@scanlongdate@#1-#2-#3 #4:#5:#6 #7 #8\relax{% \gdef\svnfileyear{#1}% \gdef\svnfilemonth{#2}% \gdef\svnfileday{#3}% \gdef\svnfilehour{#4}% \gdef\svnfileminute{#5}% \gdef\svnfilesecond{#6}% -\gdef\svnfiletimezone{#7}% +\@svn@parsetimezone#7\relax% +} + +\def\@svn@parsetimezone#1#2#3#4#5\relax{% +\gdef\svnfiletimezonehour{#1#2#3}% +\gdef\svnfiletimezoneminute{#4#5}% } \def\svnpdfdate{\svnyear\svnmonth\svnday -\svnhour\svnminute\svnsecond\svntimezone'00'} +\svnhour\svnminute\svnsecond\svntimezonehour'\svntimezoneminute'} \newcommand{\svnsetmainfile} {\edef\svnmainurl{\svnkw{HeadURL}} @@ -316,7 +338,8 @@ \noexpand\def\noexpand\svnhour{\@svn@hour}^^J% \noexpand\def\noexpand\svnminute{\@svn@minute}^^J% \noexpand\def\noexpand\svnsecond{\@svn@second}^^J% - \noexpand\def\noexpand\svntimezone{\@svn@timezone}^^J% + \noexpand\def\noexpand\svntimezonehour{\@svn@timezonehour}^^J% + \noexpand\def\noexpand\svntimezoneminute{\@svn@timezoneminute}^^J% } \immediate\closeout\svn@write% \fi\fi\fi\fi\fi% diff --git a/Master/texmf-dist/tex/latex/svn-multi/svnkw.sty b/Master/texmf-dist/tex/latex/svn-multi/svnkw.sty index ca72d3de2ca..451b992bb7d 100644 --- a/Master/texmf-dist/tex/latex/svn-multi/svnkw.sty +++ b/Master/texmf-dist/tex/latex/svn-multi/svnkw.sty @@ -1,4 +1,4 @@ \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{svnkw} - [2007/07/10 v1.3a Backward compatibility wrapper for svn-multi] -\RequirePackage{svn-multi}[2007/07/10] + [2009/02/27 v1.4 Backward compatibility wrapper for svn-multi] +\RequirePackage{svn-multi}[2009/02/27] |