diff options
author | Norbert Preining <norbert@preining.info> | 2021-10-19 03:01:14 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-10-19 03:01:14 +0000 |
commit | d045bcbc99b0eda65a444496d60d16ea2d063c65 (patch) | |
tree | 86dd463beaafa251038cf6f29adadd6276da1250 /support/TeX4ht/source | |
parent | ad3ad18aa939862832c90a74bcf41e8a5570ff65 (diff) |
CTAN sync 202110190301
Diffstat (limited to 'support/TeX4ht/source')
-rw-r--r-- | support/TeX4ht/source/ChangeLog | 8 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-html5.tex | 3 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-ooffice.tex | 34 |
3 files changed, 42 insertions, 3 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index 1422a4f626..bf2b91b40d 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,3 +1,11 @@ +2021-10-18 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-html5.tex (html5.4ht): removed CSS declaration that prevented + horizontal scacking of images in figure environment. + https://tex.stackexchange.com/a/619302/2891 + * tex4ht-ooffice.tex (ooffice.4ht): fixed abstract support for Koma classes. + https://puszcza.gnu.org.ua/bugs/?507 + 2021-10-12 Michal Hoftich <michal.h21@gmail.com> * tex4ht-html4.tex (html4.4ht): clean up for \paragraph and \subparagraph diff --git a/support/TeX4ht/source/tex4ht-html5.tex b/support/TeX4ht/source/tex4ht-html5.tex index c11fffa026..96e726f58d 100644 --- a/support/TeX4ht/source/tex4ht-html5.tex +++ b/support/TeX4ht/source/tex4ht-html5.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html5.tex 949 2021-06-13 08:57:21Z michal_h21 $ +% $Id: tex4ht-html5.tex 994 2021-10-18 08:59:43Z michal_h21 $ % compile 3 times: latex tex4ht-moz % or xhlatex tex4ht-moz "html,3,sections+" % @@ -338,7 +338,6 @@ Configure HTML5 figures. Floats are converted as captions too. {}{} \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}} -\Css{figure.float img, figure.figure img {display: block; margin-left: auto; margin-right: auto;}} \Css{figure.figure {text-align:center;}} \Configure{caption}{\:xhtml{\IgnorePar\EndP}\HCode{<figcaption class="caption" ><span class="id">}} diff --git a/support/TeX4ht/source/tex4ht-ooffice.tex b/support/TeX4ht/source/tex4ht-ooffice.tex index bce861e38f..6ee4b95cee 100644 --- a/support/TeX4ht/source/tex4ht-ooffice.tex +++ b/support/TeX4ht/source/tex4ht-ooffice.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-ooffice.tex 993 2021-10-12 15:19:37Z michal_h21 $ +% $Id: tex4ht-ooffice.tex 995 2021-10-18 13:45:08Z michal_h21 $ % compile 3 times: latex tex4ht-ooffice % htlatex tex4ht-ooffice "xhtml,4,sections+" % @@ -1564,6 +1564,36 @@ when the files are ready for zipping. \section{Abstract} %%%%%%%%%%%%%%%%%%%%%%%%%%%% +\subsection{Scr} + +The paragraph styles are already defined in ooffice title page +section, which is included by scrartcle and scrreprt before this +code. + +Koma classess don't contain mandatory abstract title, so we must +change the configuration slightly. We modify directly the +\verb|\abstractname| command to print XML tags. + +\<scr abstract\><<< +\ConfigureEnv{abstract} + {\IgnorePar\EndP \bgroup + \Configure{HtmlPar} + {\EndP \HCode{<text:p + text:style-name="abstract|<cond rtl class|>">}} + {\EndP \HCode{<text:p + text:style-name="abstract|<cond rtl class|>">}} + {\HCode{</text:p>}} + {\HCode{</text:p>}}% + \par \ShowPar + } + {\ifvmode \IgnorePar\fi \EndP \egroup \ShowPar\par \IgnoreIndent } + { + \pend:def\abstractname{\ifvmode \IgnorePar\fi\EndP\HCode{<text:p text:style-name="abstract-title">}} + \append:def\abstractname{\HCode{</text:p>}} + } + {} +>>> + %%%%%%%%%%%%%%%%%%%%%%%%%%%%% \subsection{LaTeX} %%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -9063,6 +9093,7 @@ fn\the\c@footnote x\minipageNum \<configure ooffice scrreprt\><<< |<ooffice title page|> +|<scr abstract|> |<content styles|> |<chap tocs|> |<scr chap tocs|> @@ -9080,6 +9111,7 @@ fn\the\c@footnote x\minipageNum \<configure ooffice scrartcl\><<< |<ooffice title page|> +|<scr abstract|> |<content styles|> |<ooffice bib with bibname|> |<ooffice begin-end env|> |