Sat Nov 28 10:08:27 2020, comment #9:
I can confirm that everything works as expected after today's TL update.
|
Fri Nov 27 20:07:13 2020, comment #8:
Great, so I will update ooffice.4ht with this change.
|
Fri Nov 27 15:23:25 2020, comment #7:
Thanks, this works indeed. So only this change is needed, not the change to csquotes.4ht
|
Fri Nov 27 13:54:29 2020, comment #6:
The paragraphs are added by the configuration, so you can just remove them, like this:
\Preamble{xhtml,ooffice}
\Configure{displayquote}{\EndP
\bgroup \Configure{HtmlPar}
{\EndP \HCode{<text:p text:style-name="quote">}}
{\EndP \HCode{<text:p text:style-name="quote">}}
{\HCode{</text:p>}}
{\HCode{</text:p>}}%
}{}{}{\egroup\noindent}
\begin{document}
\EndPreamble
This seems to remove all unnecessary paragraphs and disables the indent of the following paragraph.
|
Fri Nov 27 10:04:44 2020, comment #5:
And one final nitpick, if I may:
As with after quote, the followinf paragraph should not be indented if the environment and the following are logically in the same paragraph, as in the example case I provided.
|
Fri Nov 27 09:57:03 2020, comment #4:
Furthermore there is an empty paragraph after (and sometimes also before) the quotes. This should not be there IMHO, as the space is determined by paragraph separation.
|
Fri Nov 27 09:47:36 2020, comment #3:
FWIW the following change in the provided csquotes.4ht produces the desired output:
|
Fri Nov 27 09:33:59 2020, comment #2:
Many thanks for the swift reaction. There is one glitch still: The source information (first optional argument) is on a paragraph of its own, but it should be appended to the quote.
I.e.
should render
displayquote displayquote displayquote displayquote displayquote displayquote
displayquote displayquote displayquote displayquote displayquote displayquote
displayquote. (Source)
rather than
displayquote displayquote displayquote displayquote displayquote displayquote
displayquote displayquote displayquote displayquote displayquote displayquote
displayquote.
(Source)
|
Thu Nov 26 20:12:58 2020, comment #1:
Incidentally, I've dealt with these environments few days ago. Your request prompted me to test the support and add it to the sources. I've also added the ODT support.
It should be available in TL soon. You can test it using the attached csquotes.4ht file and config.cfg:
make4ht -c config.cfg -f odt mwe.tex
(file #381, file #382)
|
Thu Nov 26 06:06:23 2020, original submission:
While the standard quote and quotation environments are exported to respective styles and formatted accordingly, csquotes' displayquote environment is exported to the text body style. Same applies to the other csquotes display environments (foreigndisplayquote, hyphendisplayquote, displaycquote, foreigndisplaycquote, hyphendisplaycquote).
This results in a rather tedious and error-prone task of finding and reformatting all quotations in ODT.
Could these environments be exported to dedicated styles (or simply quote style) in output, please?
See MWE.
|