# Section head style with memoir class and tex4ebook

Tex4ebook seems to ignore the \setsecheadstyle command with the memoir class.

MWE:

\documentclass[ebook,12pt,oneside,openany]{memoir}

\usepackage{lipsum}

\title{Book}
\author{Author}
\date{}

\begin{document}

\maketitle

\frontmatter

\tableofcontents \newpage

\mainmatter

\chapter{C1}

\section{S1}

\lipsum[1]

\end{document}


Running normal Latex gives an italic section heading:

Running tex4ebook gives the default bold section heading:

Is there any way to fix this?

Thank you.

You need to specify the section format using custom CSS rule. First of all, you need to find the element which needs to configure in the HTML file:

<h3 class="sectionHead"><span class="titlemark">1.1   </span> <a
id="x1-30001.1"></a>S1</h3>


In this case, we need to configure h3 element with sectionHead class. We can then use the following CSS in the .cfg file:

\Preamble{xhtml}