Tag Info

New answers tagged

3

I don't have access to kindle previewer, so I don't know what is the issue, probably it is a Kindle DX bug. You can try to configure \emph to produce html code more suitable for kindle, something like: \Preamble{xhtml} \begin{document} \Configure{emph}{\Protect\HCode{<em>}\NoFonts}{\EndNoFonts\Protect\HCode{</em>}} \Css{em{font-style:italic;}} ...


1

I've created new project, helpers4ht, which will be collection of various packages for simplification of tex4ht usage. These packages are possible to include in the .cfg file. First package is indexing4ht, for working with indexes. Place files indexing4ht.4ht and indexing4ht.sty in your working directory and add \RequirePackage{indexing4ht} to the .cfg ...


2

id of current sectioning command is stored in \CurSecHaddr macro, it may look in a following way: x1-130006.7 this looks cryptic, but in fact x is just prefix, 1 is number of current file (because multiple files may be produced in tex4ht run), 13000 means that this is 13th sectioning command and 6.7 is subsection number. I don't think you should use ...


4

figure environment isn't configured using \Configure{figure}, but with \ConfigureEnv{figure}. It must be configured for each output format supported by tex4ht, so which one is used depends on the output format. If you use html, then configuration from html4.4ht is used: \ConfigureEnv{figure} {\:xhtml{\IgnorePar\EndP}\HCode{<hr ...


3

You should use .cfg file for this stuff, it is really not needed to clutter your documents with tex4ht configurations. It works with following file, hello.cfg: \Preamble{xhtml} \begin{document} \CssFile /* css.sty */ .imageWrapperHi { height:99%; width:100%; text-align:center; page-break-inside:avoid; } .imageWrapperHi img { display:inline-block; ...


2

This definitely isn't easy. By default, toc produced by tex4ht isn't hierarchic, and we must use pretty complicated code to achieve it. This is borrowed from tex4ebook. First simple helper file, hierarchictoc.sty: \ProvidesPackage{hiearchictoc} \RequirePackage{etoolbox} \endinput main purpose of this file is to enable us to use \usepackage{hierarchictoc} ...



Top 50 recent answers are included