Inspired by the custom environments created from the cfg file referenced during mk4ht oolatex test.tex custom.cfg compilations as demonstrated in the answer
Configure tex4ht/oolatex output
I'm wondering how far this can be taken. For example, starting with the test code in the aforementioned question, I've been unable to get any actual changes like font size changes or font changes to the text of this quote environment. Some change efforts are seen below in the lightly modified MWE. Specifically, I've tried to insert: style:font-name="Times New Roman" and fo:font-size="18pt" but I see no change to my odt file. I've tried a dozen or so logical variations to "font-name" like:
- font
- font-name
- fonts
- font-face
- font-family
but none have changed my formatting. The document compilation didn't crash either, so I'm not even sure if I'm successfully using this part of the cfg file.
Is there a list of oolatex parseable style properties anywhere in the documentation that I've missed?
custom.cfg
\Preamble{xhtml}
\makeatletter
\ConfigureEnv{quote}
{\ifvmode \IgnorePar\fi \EndP}
{\ifvmode \IgnorePar\fi\EndP\par\ShowPar}
{\EndP \ifvmode \IgnorePar\fi
\bgroup \Configure{HtmlPar}
{\EndP \HCode{<!--l. \the\inputlineno-->%
<text:p text:style-name="quote\if@rl-rtl\fi">}}
{\EndP \HCode{<!--l. \the\inputlineno-->%
<text:p text:style-name="quote\if@rl-rtl\fi">}}
{\HCode{</text:p>}}
{\HCode{</text:p>}}%
}
{\IgnorePar\EndP \egroup \ShowPar \ShowIndent}
\ConfigureOO{quote}{\Hnewline
<style:style style:name="quote"
style:font-name="Times New Roman"
fo:font-size="18pt"
style:family="paragraph"
style:parent-style-name="Text-body"
style:next-style-name="Text-body">\Hnewline
<style:paragraph-properties fo:margin-left="2cm"
fo:margin-right="1cm"
fo:margin-top="0.199cm"
fo:margin-bottom="0.199cm"
fo:text-indent="0cm"
style:auto-text-indent="false"/>\Hnewline
</style:style>
\Hnewline <style:style style:name="quote-trl"
style:family="paragraph"
style:parent-style-name="Text-body-trl"
style:next-style-name="Text-body-trl">\Hnewline
<style:paragraph-properties fo:margin-left="1cm"
fo:margin-right="1cm"
fo:margin-top="0.199cm"
fo:margin-bottom="0.199cm"
fo:text-indent="0cm"
style:auto-text-indent="false"
fo:text-align="end"
style:writing-mode="rl-tb" />\Hnewline
</style:style>
\Hnewline
}
\makeatother
\begin{document}
\EndPreamble
test.tex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
This is a normal paragraph.
\begin{quote}
This is an blockquote.
\end{quote}
Another paragraph.
\end{document}
Ultimately I'd like to be able to control:
- fonts
- font sizes
- margin formatting
- paragraph spacing and alignment type (i.e. square or ragged)
- heading enumeration
- continuous section breaks
- column control (number of columns, spacing, etc)
But, baby steps in customizing styles (xml? or css?) in these office documents.

Liberation Seriffonts. – EngBIRD Apr 20 '18 at 23:36styles.xmlfile, buttex4htdoesn't provide interface for that. I need to investigate this further. – michal.h21 Apr 21 '18 at 19:00make4htinstead ofmk4ht, so I'm still troubleshooting and investigating. I'm sure I've still got much to investigate around the errormake4ht:35: attempt to call field 'process_args' (a nil value)so I won't open a new question yet. I'm sure it's something silly I'm overlooking. Just wanted to leave a comment in the interim as I really appreciate your incredible contributions with this build file and configurations, and didn't want to appear to be ignoring them. Thanks again! – EngBIRD Apr 24 '18 at 03:14make4htfrom your distribution, or manually installed version? if it is provided by distribution, which distribution do you use? it seems that some files are missing on your computer. – michal.h21 Apr 24 '18 at 07:51[string "local mkutils = require "mkutils"..."]:4: attempt to index global 'settings' (a nil value)&C:/Program Files/MiKTeX 2.9/scripts/make4ht/mkutils.lua:382: assertion failed!. – EngBIRD Apr 27 '18 at 22:02make4ht. I've updated it and it should work now. – michal.h21 May 04 '18 at 11:08make4ht -e fonts.mk4 test.tex myconfig.cfgormake4ht -e fonts.mk4 test.texboth result in an odt file with no changes. I've now lost the size change that I was originally getting, as well as still not getting a font change. – EngBIRD May 10 '18 at 02:42make4ht -e fonts.mk4 -c myconfig.cfg test.tex– michal.h21 May 10 '18 at 07:56Liberation Seriffont. Times New Roman isn't showing up yet. I also triedCourier Newbut no change there either. Sorry to have taken up so much of your time with this. THANKS! – EngBIRD May 10 '18 at 23:30<style:font-face style:name="Times New Roman" svg:font-family="'Times New Roman'" style:font-family-generic="roman" style:font-pitch="variable"/> </office:font-face-decls> <office:styles>and ~100 lines later<style:text-properties fo:font-size="18pt" style:font-name="Times New Roman" />. The Liberation Serif font is not mentioned anywhere in the style output. Also, I the version of LibreOffice I had been working with was 5.4.4.2. I have installed 6.0.4.2, the latest, but get the same results. Anything else I can add to facilitate debugging? – EngBIRD May 22 '18 at 13:37Times New Roman Font, so I would have guessed that it is installed. Is there a way I can output a list of fonts that are either installed or visible or just plain available to use via a properly configured path variable (i.e. Could there be a manual pointer needed to point to this font?)? I'm not sure what else to debug against unfortunately. – EngBIRD May 22 '18 at 15:08styles.xmlfrom the ODT file somewhere? – michal.h21 May 22 '18 at 15:32make4htcan output ODT file directly now, with filter support, so the build file can be simplified a lot. – michal.h21 Nov 20 '18 at 22:22fo:font-familyandstyle:font-family-genericfor use withinstyle:text-properties. – Davislor Jun 14 '19 at 23:00Configurewith the accompanying bracket pairs (I think I remember trying 6 pairs of open close way back when), but this didn't work. I'd like to be able to set up style links using the latex commands as well as environments. I don't intend on overloading the same command, but using the example above, what would you be able to demo what the blank cfgConfigurecommand (if this is the one) would look like to link a\quote{xxx}command with a document style? Thanks! – EngBIRD Jan 31 '20 at 13:58