# Tag Info

23

tex4ebook can be used for LaTeX to ebook formats conversion. It supports epub, epub3 and mobi formats. I've had some presentations about it last year, slides in Czech are online, as well as source code of examples. Examples include sample code and results, so they are interesting even when you don't understand Czech. Default look is rather plain and basic, ...

5

This is because all chapters are extracted to standalone html files by tex4ebook, which is recommended practice for ebooks, because of memory and computing constraints of ebook devices. But appendices were kept in the main html file, which resulted in that they appeared before all extracted chapters. I hope I've fixed that in the tex4ebook sources now, so ...

5

You definitely should use X^{\mathbb{T}}$, the syntax you use, while it works with LaTeX, cannot be supported by tex4ht configurations. The only way to support it to convert math to pictures. Which doesn't look nice, but it preserves the original appearance of math. It may work on Kindle (but not really well). The pictures for inline math can be requested ... 4 Regarding math, there are always some readers that doesn't do it well. And also other things. Some readers probably don't support svg (only really old, I hope). Some don't support css well. Image math is always wrong, because different font than normal text is used (even if you add custom fonts, they may not be supported or turned off by the user), they ... 4 To make this question on topic, I will answer two questions, one which was asked, other question is whether exists a better solution for modifying the output. To answer first question, generated and post-processed files are saved in directory filename-outputformat/OEBPS/, so if you want to edit files by hand, do it in this directory. Say you have file ... 4 You shouldn't use tex4ht commands like \Picture directly in your document, they are supposed to be used in configuration files. The problem is, that this way you are no longer able to process your document with normal LaTeX in order to produce pdf. I would use following schema in your case: if you have figures in svg format, convert them also to pdf, so ... 4 It is quite a lot of requirements, I hope I didn't forget about anything. I've moved your code from the TeX file to the .cfg file, which is more flexible. You also need the development version of tex4ebook, because the version in distributions has fixed level of sections which go to the NCX file (it is used in the side menu). \Preamble{xhtml,sections+} \... 4 The problem with index is that there are no pages in the HTML, so it doesn't make sense to use them. Instead, we can number each \index use and insert link destination in that place. This way, we can go directly to the place where the index entry has been used. We will use xindy, because it is more flexible than makeindex and it supports additional ... 4 You've found quite a lot issues. I've found issues in tex4ht, tex4ebook and make4ht. I had to fix lot of files, so I cannot post the correct versions here, this post would be too large. It is necessary to wait few days until everything is fixed in TL (yes, it will work only in TL 2018, I am not sure about Miktex). ad 1) title is printed in different font ... 4 The ligatures are decomposed to individual letters by default in tex4ebook, because is is better for accessibility and the support on all devices is not universal. It is up to the reading device then to render text and display it ligatured. You can use font which contains ligatures, as in this post. But I am not sure about Kindle's support for custom fonts, ... 4 Since you are targeting eBooks with poor MathML and even CSS support, I guess the only universal fix is to use images for math. Try the pic-m option for converting all inline math to images: tex4ebook filename.tex "pic-m" The result: There ale also some undocumented options that requires images for accented characters: tex4ebook filename.tex "new-accents,... 3 You can use the make4ht build file to call biber or bibtex directly in the tex4ebook run. Save the following file as mybuild.mk4: Make:add("biber","biber${input}") Make:htlatex {} Make:biber {} Make:htlatex {} You can select the build file using -e option (alternatively, you can name it as your TeX file, but with .mk4 extension) tex4ebook -e mybuild.mk4 ...

3

You can use trick I showed you earlier to include file with \special{t4ht+@File: filename}. You won't use \CoverImage command this way, so you will also need to make some additional configurations: \Preamble{xhtml} \special{t4ht+@File: cover.jpg} \Configure{CoverMimeType}{image/jpeg} \CoverMetadata{cover.jpg} \begin{document} \EndPreamble Use \Configure{...

3

Your tidy installation is correct, this is a bug in tex4ebook distribution, because I omitted this file from the zip file which is posted to CTAN. I should update it, but there were some changes which depends on updated version of make4ht, which in turn depends on new features of LuaXML, which isn't in the state to be posted to CTAN yet. meanwhile, you ...

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;}} \...

3

ncxtable is printed using complicated customized \tableofcontents. I didn't realize that I have to deal with missing sectioning numbers when secnumdepth counter is used. I updated tex4ebook with some tests for this case and it should work correctly on your file now: <navMap> <navPoint id="navPoint-1" playOrder="1"> <navLabel> ...

3

There are two main sources of problems - first is that chesboard package uses Tikz to draw some stuff to the chess board and it produces broken SVG images, the second issue is that \usestorebox and probably some other configurations produces wrong paragraphs in the HTML. It is easy to disable the SVG images, we just need to use different Tikz backend to ...

3

tex4ebook doesn't produce any page numbers at all. It is even not possible at the moment even if you want to do it. I would like to produce package which could insert page break marks in the ebook at places where the page break occurred in the PDF version. I think that it should be possible to use LuaTeX callbacks to do that, but I wasn't successful yet. ...

3

As Ulrike already pointed out, this is a bug in tex4ht support for Biblatex. It keeps some macros intended for the older Biblatex versions and it use some tests for their loading: \ifdim\abx@version pt < 3.3pt The problem is that the current Biblatex version is 3.10 and it test positively in this test. So the wrong macros are loaded. I think that we can ...

3

This is result of wrong support files for Libertine fonts in tex4ht. Each used font needs special file with mapping of the character codes in the DVI file to Unicode. The mappings for fonts used in your document expects the standard T1 font encoding, but Libertine fonts use some additional ligatures, so some characters are mapped incorrectly. The process of ...

3

In this particular case, the issue was caused by wrong redefinition of the \xrightarrow command. The amsmath.4ht contained this definition: \newcommand\:temp#1#2{\a:xrightarrow \o:xrightarrow:{#1}\b:xrightarrow} \HLet\xrightarrow\:temp \NewConfigure{xrightarrow}{2} This may seem to be little bit to understand, so I will explain it. The \NewConfigure{...

3

Sub and super scripts are bit complicated. tex4ht is being activated only after \begin{document}, so the commands defined in the preamble cannot use the configurations for sub and superscripts that are used later in the document. It is possible to use the early^ and early_ options to fix that: tex4ebook filename.tex "early_,early^" Better solution is to ...

3

The TikZ driver for tex4ht doesn't support many more complicated features, especially regarding to the node contents. It is safer to use the alternative driver, which uses Dvisvgm for the SVG creation and it keeps much more details. After installation of the alternative driver, add the following code before \usepackage{tikz}: \ifdefined\HCode \def\...

3

tex4ht redefines all sectioning commands, in order to provide a uniform configurable interface for all LaTeX classes. So the \printparttitle command is not used in tex4ht. Instead, the image can be printed in configuration for \part. Try the following configuration file: \Preamble{xhtml} \CoverMetadata{thano.jpg} \Configure{AddCss}{blitz-lite.css} \...

3

There is no support for the \book command in tex4ht, so what you see is just the formatting based on the fonts used by this command. Try the following configuration code that redefines it as a sectioning command recognized by tex4ht: \Preamble{xhtml} \NewSection\book{\thebook} \Configure{book}{\ifvmode\IgnorePar\fi\EndP\HCode{<h2 class="bookHead"><...

3

There is a clash between Memoir, Hyperref and tex4ht in a definition of footnotes. The simplest fix is to define the Hfootnote counter in tex4ht. This can be done in a custom configuration file. Save the following code as mycfg.cfg: \Preamble{xhtml} \makeatletter \@ifpackageloaded{hyperref}{% \ifHy@hyperfootnotes \newcounter{Hfootnote} \fi }{} \makeatother \...

3

It seems that MikTeX version of TeX4ht is not up-to date. It can happen as TeX4ht is installed directly to TeX Live, the updates are not installed on CTAN, so MikTeX maintainer are not notified of updates. I've made a request on MikTeX issue tracker for the update, so these issues will be hopefully fixed soon. In the meantime, we can fix your issues using ...

2

A package is missing: sudo apt-get install dvipng solves the problem. The package dvipng was missing

2

OP has following \includeonly command in his project \includeonly{% Miscellaneus/Abstract,% Linux_chapters/Chap1,% Linux_chapters/Chap2,% Linux_chapters/Chap3,% Linux_chapters/Chap4,% Linux_chapters/Chap5,% Linux_chapters/Chap6,% Linux_chapters/Chap7,% Linux_chapters/Chap9,% Linux_chapters/Chap8,% Windows_chapters/Chap1,% Windows_chapters/Chap2,% ...

2

Starting from @WojtekMyszka's nice answer (you should take a little time away from your computer more often, @michal.h21), I dealt with these issues and some html cleanup issues of getting rid of empty <p class="indent></p> elements, empty <a></a> elements and empty <div></div> elements. I missed the fact that you can ...

Only top voted, non community-wiki answers of a minimum length are eligible