diff options
author | Karl Berry <karl@freefriends.org> | 2006-12-06 01:23:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-12-06 01:23:33 +0000 |
commit | 3b0d4121fbdaa8b4dc48c1aeab08bd63d71d0307 (patch) | |
tree | c0e71b65ec445e74e995d7853a367aa30e50f0dd /Master/texmf-dist/tex/generic/tex4ht/listings.4ht | |
parent | ee72c8e218febb4e5e2395951e36cd91b36aabcd (diff) |
tex4ht-1.0.2006_12_04_1651
git-svn-id: svn://tug.org/texlive/trunk@2598 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/listings.4ht')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/listings.4ht | 23 |
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 |