summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/titlesec.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/titlesec.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/titlesec.4ht17
1 files changed, 14 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/titlesec.4ht b/Master/texmf-dist/tex/generic/tex4ht/titlesec.4ht
index 3ccd3dd3eb7..9fd69202343 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/titlesec.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/titlesec.4ht
@@ -1,6 +1,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% titlesec.4ht 2005-10-23-04:19 %
-% Copyright (C) 2000--2005 Eitan M. Gurari %
+% titlesec.4ht 2006-12-01-16:02 %
+% Copyright (C) 2000--2006 Eitan M. Gurari %
% %
% This work may be distributed and/or modified under the %
% conditions of the LaTeX Project Public License, either %
@@ -24,7 +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}
\ifx \ttl@assign@ii\:Undef
\ifx \ttl@sect\:UnDef\else
@@ -65,8 +65,19 @@
\else
\let\ttl:straight@i\ttl@straight@i
\def\ttl@straight@i#1[#2]#3{%
+ \gdef\NR:Title{\a:newlabel{#3}}%
+%
\ifttl@label \else
+ \def\:temp{#1}\edef\:tempa{\expandafter
+ \expandafter\expandafter\:gobble
+ \expandafter\string\csname section\endcsname}\ifx \:temp\:tempa \else
+ \edef\:tempa{\expandafter\expandafter\expandafter\:gobble
+ \expandafter\string\csname subsection\endcsname}\ifx \:temp\:tempa \else
{\ttl@labeltrue \ttl@addcontentsline{like#1}{#3}}%
+\fi
+%
+\fi
+%
\fi
\edef\sc:tp{\ifttl@label\else like\fi #1}%
\ttl:straight@i{#1}[#2]{#3}%