summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht/source')
-rw-r--r--support/TeX4ht/source/ChangeLog15
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex26
-rw-r--r--support/TeX4ht/source/tex4ht-html4.tex8
-rw-r--r--support/TeX4ht/source/tex4ht-ooffice.tex47
4 files changed, 91 insertions, 5 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index bf2b91b40d..64fa3128d4 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,18 @@
+2021-10-19 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-4ht.tex (caption.4ht): fixed number of parameters for
+ \caption@@@addcontentsline.
+ https://puszcza.gnu.org.ua/bugs/?532
+
+ * tex4ht-ooffice.tex (ooffice.4ht): added subtitle support.
+ https://puszcza.gnu.org.ua/bugs/?507
+
+ * tex4ht-html4.tex (html4.4ht): added subtitle support.
+
+ * tex4ht-4ht.tex (scrartcl.4ht, scrbook.4ht, scrreprt.4ht): added support
+ for \subtitle command.
+ https://puszcza.gnu.org.ua/bugs/?507
+
2021-10-18 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-html5.tex (html5.4ht): removed CSS declaration that prevented
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index a7621ecb95..e751b79b5d 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 991 2021-10-10 18:03:42Z michal_h21 $
+% $Id: tex4ht-4ht.tex 998 2021-10-19 15:53:25Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2021 TeX Users Group
@@ -11596,7 +11596,7 @@ may lead to errors when for example \''\%' is used. The use of detokenize should
prevent this issue.
\<caption addtocontents\><<<
- \renewcommand*\caption@@@addcontentsline[5]{%
+ \renewcommand*\caption@@@addcontentsline[4]{%
\def\temp{#1}\def\tempa{toc}\ifx \temp\tempa\else%
\gHAdvance\TitleCount 1%
\fi%
@@ -16993,6 +16993,7 @@ See report at screnggu.tex
|<scr old fonts|>
\input article.4ht
|<scr artcl, reprt, book|>
+|<scr artcl subtitle|>
\Hinput{scrartcl}
\endinput
>>> \AddFile{9}{scrartcl}
@@ -17035,6 +17036,7 @@ See report at screnggu.tex
\pend:def\@dedication{\a:dedication}%
\append:def\@dedication{\b:dedication}%
\fi
+ |<scr def subtitle|>
}
\NewConfigure{dedication}{2}
>>>
@@ -17053,10 +17055,28 @@ See report at screnggu.tex
\pend:def\@author{\a:author}\append:def\@author{\b:author}%
\pend:def\@date{\a:date}\append:def\@date{\b:date}%
\def\and{\a:and}
+ |<scr def subtitle|>
}
\NewConfigure{dedication}{2}
>>>
+Support for subtitles:
+
+\<scr artcl, reprt, book\><<<
+\NewConfigure{subtitle}{2}
+>>>
+
+\<scr artcl subtitle\><<<
+\pend:def\maketitle{%
+ |<scr def subtitle|>
+}
+>>>
+
+\<scr def subtitle\><<<
+ \pend:def\@subtitle{\a:subtitle}
+ \append:def\@subtitle{\b:subtitle}
+>>>
+
%%%%%%%%%%%%%%%%%%
\Section{TOC}
%%%%%%%%%%%%%%%%%%%
@@ -17122,7 +17142,7 @@ UnDFexyz}%
}
>>>
-%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%
\Section{other}
%%%%%%%%%%%%%%%%%%%
diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex
index 15c1f88db8..e77a08d20c 100644
--- a/support/TeX4ht/source/tex4ht-html4.tex
+++ b/support/TeX4ht/source/tex4ht-html4.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 992 2021-10-12 12:17:53Z michal_h21 $
+% $Id: tex4ht-html4.tex 996 2021-10-19 08:41:34Z michal_h21 $
% Compile 4 times: latex tex4ht-html4
% Copy html4.4ht into the work directory before all but the last compilation.
%
@@ -6197,6 +6197,7 @@ thanks author date and>>>
{\ifvmode \IgnorePar\fi\EndP \HCode{<div class="dedication" >}}
{\ifvmode \IgnorePar\fi\EndP \HCode{</div>}}
\Css{div.dedication {text-align:center;}}
+\Css{div.titlepage{ margin-bottom: 2em; text-align:center; }}
>>>
@@ -10408,6 +10409,11 @@ need to change early the catcodes of `\verb'_' and `\verb'^'.
{\HCode{</h5>}\HtmlParOn \IgnoreIndent\egroup\par\ShowPar}
>>>
+Support for subtitle
+\<scr article,report,book\><<<
+\Configure{subtitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<div class="subtitle">}}{\HCode{</div>}}
+>>>
+
\<scrbook end units\><<<
\Configure{endlikeparagraph}
{paragraph,subsubsection,likesubsubsection,subsection,%
diff --git a/support/TeX4ht/source/tex4ht-ooffice.tex b/support/TeX4ht/source/tex4ht-ooffice.tex
index 6ee4b95cee..411342a899 100644
--- a/support/TeX4ht/source/tex4ht-ooffice.tex
+++ b/support/TeX4ht/source/tex4ht-ooffice.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-ooffice.tex 995 2021-10-18 13:45:08Z michal_h21 $
+% $Id: tex4ht-ooffice.tex 997 2021-10-19 12:30:26Z michal_h21 $
% compile 3 times: latex tex4ht-ooffice
% htlatex tex4ht-ooffice "xhtml,4,sections+"
%
@@ -1560,6 +1560,48 @@ when the files are ready for zipping.
{\ifvmode \IgnorePar\fi\EndP \HCode{</text:p>}}
>>>
+Koma classes have subtitle command and option.
+
+\<scr subtitle\><<<
+\Configure{subtitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<text:p text:style-name="subtitle|<cond rtl class|>">}}{\HCode{</text:p>}}
+
+\NewConfigureOO{subtitle}
+\ConfigureOO{subtitle}{%
+<style:style style:name="subtitle"
+ style:family="paragraph"
+ style:parent-style-name="Heading"
+ style:next-style-name="author"
+ style:class="chapter">\Hnewline
+<style:paragraph-properties fo:margin-top="0.42cm"
+ fo:margin-bottom="0.51cm"
+ fo:font-size="20pt"
+ fo:font-weight="normal"
+ style:font-size-asian="18pt"
+ style:font-weight-asian="bold"
+ style:font-size-complex="18pt"
+ style:font-weight-complex="bold"
+ fo:text-align="center"
+ style:justify-single-word="false"/>
+</style:style> \Hnewline <style:style style:name="subtitle-rtl"
+ style:family="paragraph"
+ style:parent-style-name="Heading-rtl"
+ style:next-style-name="author-rtl"
+ style:class="chapter">\Hnewline
+<style:paragraph-properties fo:margin-top="0.42cm"
+ fo:margin-bottom="0.51cm"
+ fo:font-size="20pt"
+ fo:font-weight="normal"
+ style:font-size-asian="18pt"
+ style:font-weight-asian="bold"
+ style:font-size-complex="18pt"
+ style:font-weight-complex="bold"
+ fo:text-align="center"
+ style:justify-single-word="false"
+ style:writing-mode="rl-tb" />
+</style:style> \Hnewline
+ }
+>>>
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Abstract}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -9075,6 +9117,7 @@ fn\the\c@footnote x\minipageNum
\<configure ooffice scrbook\><<<
|<ooffice title page|>
+|<scr subtitle|>
|<content styles|>
|<chap tocs|>
|<scr chap tocs|>
@@ -9093,6 +9136,7 @@ fn\the\c@footnote x\minipageNum
\<configure ooffice scrreprt\><<<
|<ooffice title page|>
+|<scr subtitle|>
|<scr abstract|>
|<content styles|>
|<chap tocs|>
@@ -9111,6 +9155,7 @@ fn\the\c@footnote x\minipageNum
\<configure ooffice scrartcl\><<<
|<ooffice title page|>
+|<scr subtitle|>
|<scr abstract|>
|<content styles|>
|<ooffice bib with bibname|>