A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [tex4ebook]

TeX4ebook is a collection of lua scripts and LaTeX packages for converting LaTeX files to ebook formats, including epub, epub3, and mobi.

Filter by
Sorted by
Tagged with
1
vote
0answers
22 views

tex4ht: conflict between `\[`..`\]` and `split` environment [duplicate]

MWE: \documentclass{amsart} \begin{document} split, also from amsmath, similar alignment to align, but the whole construct fits within equation (or other display math) and is numbered as a unit. \[ ...
0
votes
0answers
27 views

tex4ht: possible conflict between \emph and \xymatrix

MWE: \documentclass{amsart} \usepackage[all]{xy} \begin{document} \emph{ Test \[ \xymatrix@C-20pt{ {\mathbf R} f_*\big[{\mathbf L} f^*A\otimes^{\mathbf L} f^\times{\mathcal O}_Y^{}\...
1
vote
1answer
21 views

tex4ebook: generating broken ebooks when there are footnotes for title or author

MWE: \documentclass{article} \begin{document} \title{Hello}%\footnote{Just a test}} \author{Somebody\footnote{Anonymous.}} \date{} \maketitle \end{document} It compiles with errors line 13 column ...
1
vote
1answer
23 views

tex4ht: conflict between `symbol` option in `footmisc` and `hyperref`

MWE: \documentclass{book} \usepackage[symbol]{footmisc} \usepackage{hyperref} \begin{document} Maintext\footnote{Footnote \phantomsection \label{gtag:xxx} } Hyperref \hyperref[gtag:xxx]{abcd}...
2
votes
1answer
32 views

tex4ht: conflict between `wrapfig` and `caption` packages

MWE: \documentclass[12pt]{book} \usepackage{caption} \usepackage{wrapfig} \begin{document} \begin{wrapfigure}{o}{1.25in} \end{wrapfigure} \end{document} If I compile it with tex4ebook, or htlatex, ...
1
vote
1answer
23 views

tex4ht: customized commands does not work in equation environment

The following code does not compile under tex4ebook: \documentclass{amsart} \newcommand\Tag[1]{} \begin{document} \begin{equation} x=y\label{t1}\Tag{(*)} \end{equation} Look at equation \ref{t1}. \...
2
votes
2answers
47 views

tex4ht: conflict between `\[` `\]` environment and label, ref?

I try to compile the following very simple code by tex4eboot: \documentclass{amsart} \begin{document} \[ x=y\label{t1}\tag{Test} \] Look at equation \ref{t1}. \end{document} It gives me errors: [...
1
vote
1answer
127 views

tex4ebook: error in compiling with configuration file

My myconfig.cfg code block is: \Preamble{xhtml} \Configure{AddCss}{blitz-lite.css} \begin{document} \EndPreamble My command line is tex4ebook -c myconfig test2.tex -f epub3 mathml I get the ...
1
vote
1answer
76 views

tex4ebook: unable to include picture using \includegraphics and package \usepackage

The preamble of the tex file: %% LyX 2.3.3 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[letterpaper,oneside,...
1
vote
0answers
62 views

Error in hyperlink with biblatex in tex4ebook compilation

\documentclass[ebook,12pt,oneside,openany]{memoir} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{xurl} \usepackage{lipsum} \usepackage[backend = biber,url= false,style=numeric,sorting=...
3
votes
1answer
84 views

Error using hyperref and tex4ebook

\documentclass[ebook,12pt,oneside,openany]{memoir} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{xurl} \usepackage[hyperindex=true]{hyperref} \hypersetup{ colorlinks = true, %...
2
votes
1answer
65 views

Make tex4ebook support memoir's \book

Running tex4ebook on the following example \documentclass{memoir} \begin{document} Some dedication text \book{Hello} \part{World} \chapter{How are you} \end{document} produces an .epub where ...
2
votes
1answer
69 views

tex4ebook or tex4ht: optional arguments for \title not supported

Sample code: \documentclass{amsart} \begin{document} \title[Short]{Long} \maketitle Hello \end{document} compiled with tex4ebook, the optional argument of \title is mistakenly proceeded (the ...
2
votes
1answer
73 views

Smallcaps disappearing in tex4ebook compilation

I am using smallcaps to mark certain direct speech (essentially uttered by non-human entities). I use it almost exclusively through the following macro: \usepackage{quotmark} \newcommand{\gqt}[1]{\...
1
vote
1answer
69 views

Images disappearing when compiling with tex4ebook

I am trying to convert an existing book from plain PDF output to ebook format for online publishing (and doing some reformatting in the process, but that's another question). I have images in the \...
1
vote
1answer
52 views

tex4ebook: nodes vanishes for TikZ?

The test code: \documentclass{amsart} \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{fadings} \DeclareMathOperator\Spec{Spec} \newcommand\Z{\mathbb Z} \newcommand\OO{\mathcal O} \begin{...
2
votes
1answer
49 views

tex4ebook or tex4ht: confliction of amsart, hyperref and `\part`?

The test code: \documentclass{amsart} \usepackage{hyperref} \begin{document} \part{Part1} \section{Sec1} \section{Sec2} \part{Part2} \end{document} Compiled with tex4ebook, it returns with ! ...
1
vote
0answers
42 views

tex4ebook generates incorrect hyperlink references

I am sorry that I am unable to extract a minimal working example. I downloaded the source code from arxiv, commented out \usepackage{times,fullpage} and \usepackage{xr-hyper} in the preamble: \...
1
vote
1answer
43 views

tex4ebook: the incorrect order of reference and appendices

I found that the order of reference and appendices is compiled incorrectly by tex4ebook. Sample code: \documentclass{amsbook} \usepackage{bookmark} \begin{document} \tableofcontents \chapter{Hello} ...
2
votes
1answer
105 views

tex4ebook (or htlatex) doesn't treat (mathematical) accents properly?

I tried some codes like \documentclass{amsart} \begin{document} Let's see $\widehat{\mathcal F}=\hat F=\bar F=\tilde F=\overline F$. \end{document} with default compilation. Only \overline is ...
1
vote
1answer
36 views

tex4ebook: How to use dvisvgm_hashes properly?

I tried to compile a tex file with a lot of math formulae. I tried tex4ebook -c test.cfg -f epub+dvisvgm_hashes test with the test.tex \documentclass{amsart} \begin{document} Two formulae ...
2
votes
1answer
30 views

tex4ebook (or tex4ht) doesn't treat newcommand and sub/supscript well in math mode

I found that tex4ebook (or tex4ht) doesn't treat well with subscripts or superscripts in \newcommand. For example, \documentclass{amsart} \newcommand\dotimes{{\otimes}^{\mathbb L}} \newcommand\...
1
vote
0answers
60 views

Using minitoc and hyperref with tex4ebook

the question results from this thread minilot and minilof with tex4ht . when compiling with tex4ebook, there seems to be a problem with the hyperref package when generating the minilot and minilof: ...
1
vote
1answer
52 views

mathdisplay in tex4ebook

i've read this question Choppy equations with tex4ht and currently im displaying math as png pictures with the mybuild.mk4 file Make:image("png$","dvipng -bg Transparent -T tight -D151 -o ${...
1
vote
1answer
35 views

Memory error with tabular and latest Tex4ebook running on Texlive 2018

This is a followup of my question here and uses the same MWE and the config file provided by michal.h21. MWE \documentclass[ebook,12pt,oneside,openany]{memoir} \usepackage{lipsum} \setsecheadstyle{...
2
votes
1answer
79 views

Faulty chapter header with latest Tex4ebook running on Texlive 2018

This is a followup of my question here and uses the same MWE and the config file provided by michal.h21. MWE: \documentclass[ebook,12pt,oneside,openany]{memoir} \usepackage{lipsum} \...
1
vote
1answer
28 views

How to add appendix into bookmark for tex4ebook?

Here is the code: \documentclass{amsbook} \usepackage{bookmark} \begin{document} \tableofcontents \chapter{Hello} Hello \chapter{Hi} Hi \appendix \chapter{One} One \chapter{Two} ...
2
votes
1answer
89 views

tex4ebook: stack not empty at end of page?

I tried to compile an article, the source code of which is downloadable, to an ebook with tex4ebook. After some trivial modifications: --- ../formal.orig.tex 2018-11-23 17:05:07.032134691 +0100 +++ ...
1
vote
1answer
66 views

Ligatures generated by tex4ebook inconsistently supported

As a followup to htlatex, garamond fonts, and nulled "ff" and "fi" strings on getting ligatures working correctly with tex4ebook, I've managed to get ligatures to not be replaces ...
2
votes
1answer
95 views

tex4ht (or tex4ebook) is not compatible with ^\mathbb, _\mathfrak, etc

To export many mathematical articles and surveys to Kindle from the LaTeX source code, I am trying to use tex4ebook. It seems to me that I still need to hack many LaTeX codes to finish the compilation,...
3
votes
1answer
65 views

Using subfigure with tex4ht

i've read this question and the subfigure environment works fine, except captions aren't centered below the images. Instead, it looks like this: is there a way to fix this? my config.cfg looks like ...
3
votes
1answer
127 views

Problems with ligature and libertine font -

I cannot post a comment under my previous question so (i fixed some files because i misunderstood somethings, but there is a problème with tt => fl in sffamily not smallcaps and it seems it cannot do ...
1
vote
1answer
50 views

Configure bibitem command in tex4ebook/make4ht

I am looking for a place to find how to configure the \bibitem tag in tex4ebook/make4ht. All bibitems are inlined without </br> I tried: {\Configure{bibitem}{\NoFonts \HCode{</br>}}{}\...
1
vote
1answer
156 views

Problems with ligatures

I have some problems to make ligatures (not) work in epub. my MWE : \documentclass[10pt,a5paper]{book} \usepackage[french]{babel} \usepackage{libertine} \usepackage[T1]{fontenc} \usepackage[utf8]{...
2
votes
1answer
74 views

tex4ht, including graphics in a table with pic-tabular option

i'm trying to convert a Latex document into an ebook using tex4ht. The document contains many tables, which are way too large and complex for an ebook. After some research i found the "pic-tabular" ...
3
votes
1answer
163 views

Faulty section header with latest Tex4ebook running on Texlive 2018

This is a followup of my question here and uses the same MWE and the config file provided by michal.h21. MWE: \documentclass[ebook,12pt,oneside,openany]{memoir} \usepackage{lipsum} \...
6
votes
1answer
177 views

Using imakeidx in tex4ebook with Polyglossia for Devanagari

I am trying to create a Marathi ebook using the packages Polyglossia an tex4ebook. Following is the MWE I prepared following the instructions from @michal.h21 (which were given to produce the MWE that ...
1
vote
1answer
263 views

Error with latest tex4ebook and biblatex using Texlive 2017 (Windows)

I am using the test setup from this question. I updated my Texlive 2017 packages and now the file will not process and gives an error: Package biblatex Info: Trying to load bibliographic data... ...
1
vote
1answer
117 views

tex4ebook with diacritics and tibetan font

I'm trying to convert to ePub an english commentary of a Tibetan text which includes some mantras in Tibetan writing and helpful pronunciation, using tex4ebook. The follow test.tex is an example: % !...
2
votes
0answers
104 views

tex4ht/tex4ebook: resetting footnote counter, allowing for multiple footnotes with same number

I've got a book containing multiple articles. Since each article is a text on its own, I reset the footnote counter to 0, whenever a new article starts, so that the numbering of the footnotes starts ...
1
vote
1answer
292 views

Strange page numbers with mobi format and tex4ebook

Tex4ebook is producing strange page numbers in the toc on a kindle. MWE: \documentclass[ebook,12pt,oneside,openany]{memoir} \begin{filecontents}{\jobname.bib} @book{Hiemenz, author={Hiemenz}, ...
1
vote
1answer
262 views

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} \setsecheadstyle{\normalsize\itshape\...
1
vote
1answer
391 views

Errors when generating epub and mobi formats with tex4ebook

This is a follow-up of my questions from here and here. The setup files have been provided by @Michal.h21. I am getting errors when using tex4ebook and generating epub and mobi outputs. The input ...
2
votes
1answer
158 views

Some further issues with index generation and tex4ebook

This is a follow-up of my previous question here. It uses the files provided by @Michal.h21. I have modified the input file as below: \documentclass[ebook,12pt,oneside,openany]{memoir} \begin{...
2
votes
1answer
224 views

Using storebox with tex4ebook

Is there any way to get the storebox package to work with tex4ebook? A MWE based on the storebox document is: \documentclass{article} \usepackage{storebox} \newstorebox{\mybox} \begin{document} \...
3
votes
1answer
738 views

Book template for tex4ebook

I am trying to set up a book template for tex4ebook using memoir and Texlive. The MWE that has everything I want is: \documentclass[ebook,12pt,oneside,openany]{memoir} \begin{filecontents}{test.bib}...
4
votes
1answer
162 views

tex4ebook paragraph spacing, centering, and newpages

I'm having trouble replicating the work of others in getting a LaTeX document properly rendering in the epub format. Specifically I'm having trouble with paragraph spacing, centering, and newpage/...
1
vote
1answer
163 views

Change the appearance of the section and subsection of the TOC of an epub tex4epub tex4ht

I hope that @michal.h21 can help me. I tried your solution which works well, but I did not mention that the section and subsections too are modified. I generalized the situation with the following ...
1
vote
1answer
316 views

Tex4ebook and bibliographies

What is the preferred way of using bibliographies with Tex4ebook? I have tried using bibtex and biblatex but cannot get the bibliography to show on the epub. I tried the method in In which order ...
2
votes
1answer
175 views

tex4ebook, use paragraph and subsubsubsection in TOC

@michal.h21 EDIT2: I updates all the repositories from https://github.com/michal-h21. It works . I edited the code which does not work this is what I do. I copy your cfg.cfg, I create the myfile.tex ...