# Tag Info

## New answers tagged tex4ht

2

I looked into this issue and updated tex4ebook so it should work now. To add some background about the issue. Because of memory limits of e-readers, it is good to break ebook files into smaller chunks, so each chapter or section is in a standalone file. In our example, following file structure is created: toctest.html -> blank file toctestli1.html ...

2

You can deal with <p> using some tex4ht internal commands. In this case, you need to: close all paragraphs before section start at <i> suppress <p> inside header start new noindent paragraph after header close paragraph before section end with </i> So you can use this configuration: \Preamble{xhtml} ...

0

another edit: of you don't want to postprocess html, you may use different mean to achieve verbatim environment. For example with fancyvrb package: \usepackage{fancyvrb} \Preamble{xhtml} \def\StartSuppressPage{\nobreak\vfil\penalty0\vfilneg\vtop\bgroup} \def\EndSuppressPage{\egroup} \renewenvironment{tawny} ...

2

As I said in another question, you cannot put anything as parameter of sectioning commands, as it will be processed in order to make the TOC. so while it works in normal LaTeX, it doesn't work with tex4ht. So from conceptual point of view your workaround is in much better than your initial try. I think that instead of misusing \chapter command it would be ...

1

tex4ht is quite sensitive on things which are written to toc (and because it uses own configurable mechanism for controlling which sectioning commands should be printed in toc, even starred commands are saved), so you need to be careful in what you use. easy solution is to use normal chapter with optional parameter: \newcommand{\MyChapter}[3]{% % #1 = ...

3

The problem is that lot of things is happening at begin document in tex4ht. This is the moment when patches from .4ht files are loaded, and html header is printed. So your dedication text is printed before any html tags in your example. Probably easiest solution is to use etoolbox command \AfterEndPreamble, which print content after all \AtBeginDocument ...

1

pdfpages is obviously one of packages which causes tex4ht to fail just with loading. some other example of such package is fontspec. only solution is to prevent usage of such packages when tex4ht is loaded and to provide alternative definitions for macros used in the document. To simplify this process, I created simple package, called alternative4ht.sty: ...

5

If you want to generate <mi>abc</mi> the latex input should be \mathrm{abc}

Top 50 recent answers are included