diff options
author | Karl Berry <karl@freefriends.org> | 2021-10-18 20:11:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-10-18 20:11:06 +0000 |
commit | 7852cbe3304d06a1e3fca1724f50ae4d076bfd3b (patch) | |
tree | a4fcb2fe5dc986b046f49b6509150b3b450b3e4d /Master/texmf-dist/source | |
parent | 49e777f6f83a332a92073b54271abe892f29c226 (diff) |
figure css, tex4ht r994; koma abstracts, tex4ht r995
git-svn-id: svn://tug.org/texlive/trunk@60797 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 8 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-html5.tex | 3 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex | 34 |
3 files changed, 42 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 1422a4f6262..bf2b91b40d7 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/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/Master/texmf-dist/source/generic/tex4ht/tex4ht-html5.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html5.tex index c11fffa0265..96e726f58db 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html5.tex +++ b/Master/texmf-dist/source/generic/tex4ht/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/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex index bce861e38fd..6ee4b95cee6 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex +++ b/Master/texmf-dist/source/generic/tex4ht/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|> |