summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/listings.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/listings.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/listings.4ht23
1 files changed, 17 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/listings.4ht b/Master/texmf-dist/tex/generic/tex4ht/listings.4ht
index 12e656d6efb..57ebe0c02ea 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/listings.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/listings.4ht
@@ -1,6 +1,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% listings.4ht 2005-10-23-04:19 %
-% Copyright (C) 2001--2005 Eitan M. Gurari %
+% listings.4ht 2006-12-01-16:02 %
+% Copyright (C) 2001--2006 Eitan M. Gurari %
% %
% This work may be distributed and/or modified under the %
% conditions of the LaTeX Project Public License, either %
@@ -24,8 +24,7 @@
% gurari@cse.ohio-state.edu %
% http://www.cse.ohio-state.edu/~gurari %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\immediate\write-1{version 2005-10-23-04:19}
-
+\immediate\write-1{version 2006-12-01-16:02}
\append:defII\lst@EnterMode{%
\pend:def\lsthk@EveryLine{\c:listings}%
@@ -38,6 +37,14 @@
\a:lstinline \bgroup \aftergroup\b:lstinline\aftergroup\egroup
}
\NewConfigure{lstinline}{2}
+\pend:defI\lst@MakeCaption{%
+ \let\lst:addcontentsline\addcontentsline
+ \def\addcontentsline{\gHAdvance\TitleCount by 1
+ \lst:addcontentsline}%
+}
+\append:defI\lst@MakeCaption{%
+ \let\addcontentsline\lst:addcontentsline
+}
\def\lst@NewLine{%
\ifx\lst@OutputBox\@gobble\else \the\everypar \fi
\global\advance\lst@newlines\m@ne
@@ -50,12 +57,16 @@
\setbox\z@\hbox{{\lst@currstyle{\kern#1}}}%
\global\advance\lst@currlwidth \wd\z@
\tmp:dim=#1 \let\:tempc=\empty
- \loop \ifdim \tmp:dim>1ex
- \advance \tmp:dim by -1ex
+ \loop \ifdim \tmp:dim>\a:lst@Kern
+ \advance \tmp:dim by -\a:lst@Kern
+ \advance \tmp:dim by -\b:lst@Kern
\append:def\:tempc{\:nbsp}%
\repeat
\setbox\z@\hbox{{\lst@currstyle{\:tempc}}}%
\lst@OutputBox\z@}
+\NewConfigure{lst@Kern}{2}
+\Configure{lst@Kern}{0.499em}{0.1em}
+\def\lst@outputspace{\:nbsp}
\HLet\lst@frameInit=\empty
\HLet\lst@frameExit=\empty