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.
98
questions
1
vote
0answers
9 views
tex4ebook: bookmarks are duplicated when titlesec package is imported
I'm generating an .epub with tex4ebook and I need to use titlesec. When I compiled the document, I noticed that if I import titlesec and compile more than once, the bookmarks for sections and ...
2
votes
1answer
22 views
tex4ebook: issues with xifthen functions if biblatex is imported
I'm trying to generate an .epub with tex4ebook. One of the commands I've defined uses \ifelsethen and \isempty to check for empty parameters and produce different output depending on which parameters ...
2
votes
1answer
36 views
tex4ebook subfigures: (1) side-by-side subfigures (2) styling changes when .tex inserted with \include
I'm using tex4ebook to generate an epub. I want subfigures to be placed side-by-side with subcaptions below the subfigures. I came across a couple of issues and I'd appreciate any hints for how to ...
1
vote
1answer
42 views
tex4ebook: .svg images are correctly resized with \includegraphics but not with \includesvg
I'm generating an .epub with tex4ebook. Most of the graphics I want to include are svg. If I include them with \includesvg, and specify the graphics path with \svgpath, I can compile the document with ...
0
votes
0answers
38 views
Renewcommand \[\] to include \par afterwards
I'd like to redefine the \[ \] command to have a \par afterwards, or rename it to be equation*
The reason is that \[\] on its own for some reason causes formatting issues when converting to epub (...
1
vote
1answer
37 views
tex4ebook - Change encoding of output to latin1
My tex4ebook ebook is formated in utf8. However, in the Kindle preview, characters are not shown correctly. Indeed, Kindle publishing seems to require latin1 encoding ... ( https://kdp.amazon.com/...
1
vote
1answer
53 views
Tex4ebook - reference within endnote / footnote reference
I use references to other endnotes within an endnote.
Example:
\usepackage{endnotes}
\renewcommand{\footnote}{\endnote}
...
\footnote{... siehe Fußnote \textsuperscript{\ref{org4b3dd1c}}
(tex is ...
1
vote
1answer
25 views
Tex4ebook - cellspacing and cellpadding
my ebook created with tex4ebook contains cellspacing and cellpadding in tables. These attributes are not tolerated anymore (according to the ebookcheck). How can I remove them in the build process?
&...
2
votes
1answer
57 views
tex4ebook displays accents as wrong characters [duplicate]
I'm trying to make an ebook, on windows 7 sp1, with both italian and cyrillic (and chinese in future).
Minimum example with LuaTeX, Version 1.12.0 (MiKTeX 20.11):
\documentclass[12pt,a4paper,openright,...
6
votes
1answer
126 views
TeX4ebook handles accented characters incorrectly
I'm trying TeX4ebook on the following minimal LaTeX file:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\usepackage{csquotes}
\title{Título}
\author{Autor}
\date{...
2
votes
1answer
32 views
tex4ht: inline equations after subsubsection and theorem
MWE:
\documentclass{amsart}
\newtheorem{theorem}{Theorem}
\begin{document}
\section{SecTmp}
\subsection{SubsecTmp}
\subsubsection{SubsubsecTmp}
\begin{theorem}
\end{theorem}
Here, \(H_n^i(X)\)
\end{...
1
vote
1answer
183 views
Double bibliography entries in table of contents with latest tex4ebook and texlive 2020
This is a followup of this question.
sample.tex:
\documentclass[ebook,12pt,oneside,openany]{memoir}
\begin{filecontents}{test.bib}
@book{Hiemenz,
author={Hiemenz},
title={Polymer Chemistry}
}
\end{...
3
votes
1answer
26 views
Problem with boldmath followed by super or subscript in tex4ebook
The latex file
\documentclass{amsbook}
\begin{document}
$\mathbf{x}^y$
\end{document}
when compiled with
tex4ebook -f epub3 test "mathml"
produces the following mathml:
<math xmlns=&...
1
vote
1answer
22 views
Using `\widehat` in tex4ebook fails
In the generated epub file, the hat is invisible.
The MWE is:
\documentclass{amsbook}
\begin{document}
$\widehat{t_0}$
\end{document}
This compiles under plain LaTeX, without any problems, and ...
1
vote
1answer
50 views
tex4ebook and minted
I'm evaluating the possibility to convert my latex book to epub3. This is the MWE:
\documentclass[a4paper,11pt]{book}
\usepackage[top=1in, bottom=1in, left=1.1in, right=1in]{geometry}
\usepackage[T1]{...
3
votes
0answers
114 views
tex4ebook can't change directory because of UNC paths [closed]
I had used tex4ebook to make an epub3 book about two years ago. After updating my MikTeX, and moving to the book directory, I tried to remake the epub file using the command:
cd \Users\me\Documents\...
1
vote
1answer
63 views
How to remove the word “Chapter” from the heading in ebook: tex4ebook
I am compiling an ebook in Kannada and I would like to remove the word "Chapter" from the heading in the ebook.
The output of ebook as shown in the first image . However, I would want it ...
1
vote
2answers
170 views
includegraphics does not clip pictures with ebook conversion
This is continuation of my efforts to create an eBook from LaTeX, the previous is here: tex4ht caption problem: undefind control sequences
When converting my document to eBook, the command
\...
2
votes
1answer
90 views
undefined control sequence \titlefont
I want to compile my document with tex4ebook texlive. But it found a few errors, first of them is
"!Undefined control sequence.
\cw:TITLE+ ->\titlefont
Title
1.104 \begin{...
3
votes
1answer
241 views
Error with accent characters in index item with tex4ebook and xindy (Texlive 2020)
This is a follow-up of my previous question here. I'm using texlive 2020 and using the files provided by @Michal.h21.
I have modified the input file sample.tex.
\documentclass[ebook,12pt,oneside,...
0
votes
1answer
23 views
tex4ht: Single quote will trigger `Double superscript` error in `align` environments
MWE:
\documentclass{amsart}
\begin{document}
Now aligned
\begin{align*}
i_\lambda'^* &= a\\
&= b
\end{align*}
\end{document}
Compile with tex4ebook, the error message ...
1
vote
1answer
61 views
How to make the list of listings to work properly in tex4ebook?
How to make the list of listings to work properly in tex4ebook?
Commands \tableofcontents and \listoffigureswork correctly.
The pdf result
The epub result
I didn't found any suggestion to ...
1
vote
0answers
54 views
tex4ebook: formatting equation, align and split
I realized tex4ebook does not format the align environment the same way it does to equation.
I would like to know how to format/to config so that align has the correct symbols as equation without ...
2
votes
1answer
286 views
How does tex4ebook work with images (png, jpg)?
After finish writing a book in LaTeX, I learned the many online books are published in the ePub format. Then I decided to learn a little bit of how to convert .tex (or .pdf) into .epub.
The book has ...
1
vote
2answers
124 views
Rewriting makechapterhead to include stuff on previous page
I'm using the memoir class to typeset a book in which I want to start chapters with a picture on the left page and then on the right page "Chapter 1: Hello World" followed by text. So I'm playing ...
2
votes
0answers
27 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
39 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
36 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
49 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
97 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
53 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
57 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
297 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 ...
2
votes
1answer
185 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
71 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
124 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
79 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
113 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
91 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
112 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 \...
2
votes
1answer
221 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
63 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
55 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
56 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
145 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
45 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
39 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
69 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
91 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
48 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{...