From 712090dc284290d0ff2fa3221056a7663af9c871 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 19 Apr 2011 23:07:27 +0000
Subject: oberdiek

git-svn-id: svn://tug.org/texlive/trunk@22124 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/source/latex/oberdiek/hobsub.dtx | 112 ++++++++++++++++++---
 1 file changed, 100 insertions(+), 12 deletions(-)

(limited to 'Master/texmf-dist/source/latex/oberdiek/hobsub.dtx')

diff --git a/Master/texmf-dist/source/latex/oberdiek/hobsub.dtx b/Master/texmf-dist/source/latex/oberdiek/hobsub.dtx
index d383ea89bd2..f0da815c82d 100644
--- a/Master/texmf-dist/source/latex/oberdiek/hobsub.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/hobsub.dtx
@@ -1,5 +1,8 @@
 % \iffalse meta-comment
 % 
+% File: hobsub.dtx
+% Version: 2011/04/18 v1.3
+% 
 % Copyright (C) 2011 by
 %    Heiko Oberdiek <heiko.oberdiek at googlemail.com>
 % 
@@ -78,7 +81,7 @@
 \input docstrip.tex
 \Msg{************************************************************************}
 \Msg{* Installation}
-\Msg{* Package: hobsub 2011/01/30 v1.0 Subsetting bundle oberdiek (HO)}
+\Msg{* Package: hobsub 2011/04/18 v1.3 Subsetting bundle oberdiek (HO)}
 \Msg{************************************************************************}
 
 \keepsilent
@@ -89,6 +92,9 @@
 
 This is a generated file.
 
+Project: hobsub
+Version: 2011/04/18 v1.3
+
 Copyright (C) 2011 by
    Heiko Oberdiek <heiko.oberdiek at googlemail.com>
 
@@ -125,6 +131,73 @@ and the derived files
   \usedir{doc/latex/oberdiek/test}%
   \file{hobsub-test1.tex}{\from{hobsub.dtx}{test1}}%
 }
+\let\hobsubSavedNormalLine\normalLine
+\def\hobsubGobble#1{}
+\begingroup
+  \lccode`\0=32 % space
+  \lccode`\1=35 % hash
+  \lccode`\2=37 % percent
+  \lccode`\3=92 % backslash
+  \lccode`\4=123 % {
+  \lccode`\5=125 % }
+\lowercase{\endgroup
+  \let\hobsubTokenSpaceOther= 0%
+  \let\hobsubTokenHash= 1%
+  \let\hobsubTokenPercent= 2%
+  \let\hobsubTokenBackslash= 3%
+  \let\hobsubTokenBraceLeft= 4%
+  \let\hobsubTokenBraceRight= 5%
+  \def\hobsubNormalLineWithSpace{%
+    \hobsubSavedNormalLine0%
+  }%
+}
+\def\normalLine{%
+  \futurelet\hobsubToken\hobsubFirst
+}
+\def\hobsubFirst{%
+  \ifx\hobsubToken\hobsubTokenSpaceOther
+    \expandafter\expandafter\expandafter\futurelet
+    \expandafter\expandafter\expandafter\hobsubToken
+    \expandafter\expandafter\expandafter\hobsubNext
+    \expandafter\hobsubGobble
+  \else
+    \expandafter\hobsubSavedNormalLine
+  \fi
+}
+\def\hobsubNext{%
+  \ifx\hobsubToken\hobsubTokenSpaceOther
+    \expandafter\expandafter\expandafter\futurelet
+    \expandafter\expandafter\expandafter\hobsubToken
+    \expandafter\expandafter\expandafter\hobsubNext 
+    \expandafter\hobsubGobble
+  \else
+    \let\hobsubWithSpace=Y%
+    \ifx\hobsubToken\hobsubTokenBackslash
+      \let\hobsubWithSpace=N%
+    \else
+      \ifx\hobsubToken\hobsubTokenBraceRight
+        \let\hobsubWithSpace=N%
+      \else
+        \ifx\hobsubToken\hobsubTokenBraceLeft
+          \let\hobsubWithSpace=N%
+        \else
+          \ifx\hobsubToken\hobsubTokenPercent
+            \let\hobsubWithSpace=N%
+          \else
+            \ifx\hobsubToken\hobsubTokenHash
+              \let\hobsubWithSpace=N%
+            \fi
+          \fi
+        \fi
+      \fi
+    \fi
+    \ifx\hobsubWithSpace Y%
+      \expandafter\expandafter\expandafter\hobsubNormalLineWithSpace
+    \else
+      \expandafter\expandafter\expandafter\hobsubSavedNormalLine
+    \fi
+  \fi
+}
 \generate{%
   \usedir{tex/generic/oberdiek}%
   \file{hobsub-generic.sty}{%
@@ -181,6 +254,7 @@ and the derived files
     \from{hobsub.dtx}{post}%
   }%
 }
+\let\normalLine\hobsubSavedNormalLine
 
 \catcode32=13\relax% active space
 \let =\space%
@@ -206,7 +280,7 @@ and the derived files
 %<*driver>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{hobsub.drv}%
-  [2011/01/30 v1.0 Subsetting bundle oberdiek (HO)]%
+  [2011/04/18 v1.3 Subsetting bundle oberdiek (HO)]%
 \documentclass{ltxdoc}
 \usepackage{holtxdoc}[2011/02/04]
 \usepackage{array}
@@ -219,7 +293,7 @@ and the derived files
 %</driver>
 % \fi
 %
-% \CheckSum{763}
+% \CheckSum{764}
 %
 % \CharacterTable
 %  {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
@@ -240,7 +314,7 @@ and the derived files
 % \GetFileInfo{hobsub.drv}
 %
 % \title{The \xpackage{hobsub} package}
-% \date{2011/01/30 v1.0}
+% \date{2011/04/18 v1.3}
 % \author{Heiko Oberdiek\\\xemail{heiko.oberdiek at googlemail.com}}
 %
 % \maketitle
@@ -254,7 +328,7 @@ and the derived files
 %
 % \def\TableGeneric{^^A
 %   \TableEntry{\xpackage{infwarerr}}{}{2010/04/08 v1.3}^^A
-%   \TableEntry{\xpackage{ltxcmds}}{}{2011/04/14 v1.19}^^A
+%   \TableEntry{\xpackage{ltxcmds}}{}{2011/04/18 v1.20}^^A
 %   \TableEntry{\xpackage{ifluatex}}{}{2010/03/01 v1.3}^^A
 %   \TableEntry{\xpackage{ifvtex}}{}{2010/03/01 v1.5}^^A
 %   \TableEntry{\xpackage{intcalc}}{}{2007/09/27 v1.1}^^A
@@ -450,7 +524,7 @@ and the derived files
 % using \xpackage{hobsub}:
 % \begin{quote}
 %   \dots\\
-%   |\RequirePackage{hobsub}[2011/01/30]|\\
+%   |\RequirePackage{hobsub}[2011/04/18]|\\
 %   \dots\\
 %   |\hobsub@StartPackage{foo1}|\\
 %   \textit{\dots\unskip\ package code of \xfile{foo1.sty} \dots}\\
@@ -553,7 +627,7 @@ and the derived files
   \fi
 \expandafter\x\csname ver@hobsub.sty\endcsname
 \ProvidesPackage{hobsub}%
-  [2011/01/30 v1.0 Subsetting bundle oberdiek (HO)]%
+  [2011/04/18 v1.3 Subsetting bundle oberdiek (HO)]%
 %    \end{macrocode}
 %    \begin{macrocode}
 %</package>
@@ -635,7 +709,7 @@ and the derived files
   \fi
 \expandafter\x\csname ver@hobsub-generic.sty\endcsname
 \ProvidesPackage{hobsub-generic}%
-  [2011/01/30 v1.0 Bundle oberdiek, subset generic (HO)]%
+  [2011/04/18 v1.3 Bundle oberdiek, subset generic (HO)]%
 %    \end{macrocode}
 %    \begin{macrocode}
 %</generic>
@@ -717,7 +791,7 @@ and the derived files
   \fi
 \expandafter\x\csname ver@hobsub-hyperref.sty\endcsname
 \ProvidesPackage{hobsub-hyperref}%
-  [2011/01/30 v1.0 Bundle oberdiek, subset hyperref (HO)]%
+  [2011/04/18 v1.3 Bundle oberdiek, subset hyperref (HO)]%
 %    \end{macrocode}
 %    \begin{macrocode}
 %</hyperref>
@@ -781,7 +855,7 @@ and the derived files
 %    \begin{macrocode}
 %<*hyperref>
 \NeedsTeXFormat{LaTeX2e}
-\RequirePackage{hobsub-generic}[2011/01/30]
+\RequirePackage{hobsub-generic}[2011/04/18]
 %</hyperref>
 %    \end{macrocode}
 %
@@ -816,6 +890,7 @@ and the derived files
   \begingroup
   \catcode92=14 % backslash: comment
   \catcode32=14 % space: comment
+  \catcode35=14 % hash: comment
   \catcode123=14 % left brace: comment
   \catcode125=14 % right brace: comment
   \catcode60=3 % less: math
@@ -931,11 +1006,11 @@ and the derived files
 \begingroup\expandafter\expandafter\expandafter\endgroup
 \expandafter\ifx\csname ProvidesPackage\endcsname\relax
   \immediate\write-1{%
-    Package: hobsub 2011/01/30 v1.0 Subsetting bundle oberdiek (HO)%
+    Package: hobsub 2011/04/18 v1.3 Subsetting bundle oberdiek (HO)%
   }%
 \else
   \ProvidesPackage{hobsub}%
-  [2011/01/30 v1.0 Subsetting bundle oberdiek (HO)]%
+  [2011/04/18 v1.3 Subsetting bundle oberdiek (HO)]%
 \fi
 %</preamble>
 %    \end{macrocode}
@@ -1298,6 +1373,19 @@ and the derived files
 %   \item
 %     First public version.
 %   \end{Version}
+%   \begin{Version}{2011/04/16 v1.1}
+%   \item
+%     Package updates.
+%   \end{Version}
+%   \begin{Version}{2011/04/17 v1.2}
+%   \item
+%     White spaces at line begins are removed or reduced
+%     in the generated collection packages.
+%   \end{Version}
+%   \begin{Version}{2011/04/18 v1.3}
+%   \item
+%     Package updates.
+%   \end{Version}
 % \end{History}
 %
 % \PrintIndex
-- 
cgit v1.2.3

