Questions tagged [make4ht]
The make4ht tag has no usage guidance.
141
questions
0
votes
0
answers
28
views
errors when using htlatex
I'm trying to compile a .tex document into an html format, so I can convert it into a .doc file. I have enabled htlatex in MikTex, an am using windows command line by cd-ing to my directory and then ...
1
vote
1
answer
32
views
Tex4ht error when trying to include more complex html
I'm trying to change the MathJax font used by Tex4ht to AMS Euler, which can be done by including the following code on a webpage
<script type="text/x-mathjax-config">
var font = "...
1
vote
1
answer
39
views
htlatex: tikzpicture with alt tag and custom class
Consider the following example:
\documentclass{scrbook}
\usepackage{blindtext}
\usepackage{pgfornament}
\title{Some Book}
\subtitle{A novel}
\author{Some Author}
\begin{document}
\chapter{Chapter ...
2
votes
1
answer
47
views
dvisvgm invoked multiply for saved boxes with 4ht
With the following MWE, I observe dvisvgm is called twice instead of once:
\documentclass{scrbook}
\usepackage{blindtext}
\usepackage{pgfornament}
\tikzset{
myfroufrou/.pic={
\node {\...
0
votes
0
answers
31
views
make4ht/mk4ht does not make breaks between words
make4ht/mk4ht produces an odt file with no breaks between words after the 1st footnote. But it used to be ok just recently. What can be the problem? Disabling `hyphenat' package does not help.
\...
1
vote
1
answer
33
views
Pound sign # in title creates error with htlatex and make4ht
If I try to typeset the following minimal working example with latex, no errors occur:
\documentclass{article}
\title{\#}
\author{}
\begin{document}
\maketitle
\end{document}
However if I try to ...
1
vote
1
answer
26
views
Empty html with Blogging in LaTeX
As the title suggests, this is a follow up of this question.
I'm following Michal's answer, I have created the same structure suggested in the answer, created the .make4ht file and the same hello....
1
vote
1
answer
45
views
How to prefix <title> in tex4ht in split chapters?
I am trying to get tex4ht to add a prefix to the <title> tags of split chapters.
Using the following make4ht config file:
\Preamble{xhtml,ext=html,charset="utf-8"}
\Configure{TITLE+}{...
2
votes
1
answer
64
views
Make4HT with \begin{align} (MathML and LaTeX Output)
When using Make4ht how to get MathML and LaTeX Output for \begin{align}. It's coverted \begin{equation} Refer Make4ht MathML and TeX.
\documentclass[9pt]{elife}
\usepackage[utf8]{inputenc}
\usepackage[...
1
vote
1
answer
30
views
Make4HT with Subscript and ensuremath issues
When I am using Make4ht with subscript it's showing a compile error, but LaTeX is not showing any issues. In the \epp also output html is wrong (subscript is missing). How to solve this?
My MWE is:
...
0
votes
1
answer
137
views
How to convert this Latex document to HTML?
I am trying to convert a Latex document using tex4ht program, but various errors occur during conversion. To perform conversion, I inserted make4ht -l something.tex in the TeX Live command-line (...
2
votes
1
answer
31
views
Error compiling with make4ht
I could not find exactly where the error is generated, but I've made a small example to reproduce it.
The example file is:
\documentclass{example}
\begin{document}
\keywords{ábaba \sep Abba2 \sep ...
1
vote
1
answer
31
views
elife Template section to HTML using Make4ht
Using Make4ht how to convert \section to HTML code using elife.cls template?
MWE:
\documentclass{elife}
\usepackage{lipsum}
\title{Grasp movement initiation and representation}
\author[1\authfn{1}]{...
2
votes
1
answer
25
views
etoolbox error with make4ht
The following example, despite a the generated HTML seems okay, shows an error message.
Example file:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@...
0
votes
0
answers
18
views
tex4ebook texlive installation failure on cygwin on windows
I am trying to give tex4ebook or make4ht a try, but I get the following messages on my console.
$ tex4ebook lsdas15f
/usr/bin/tex4ebook:6: module 'lapp-mk4' not found:
no field package.preload[...
1
vote
1
answer
30
views
How to well convert underscore with catcode=12 with make4ht?
I have the following 'MWE.tex' file where I defined underscore with \catcode'_=12:
\documentclass{article}
\catcode`_=12
\begin{document}
Text containing underscore between parenthesis (_)
\end{...
1
vote
1
answer
28
views
Changing generated image directory in make4ht
I have used make4ht build system to convert my .tex file to HTML. During the conversion many svg files are generated .Those files lies in the same directory as that of HTML file. Is there any way to ...
1
vote
1
answer
70
views
Help to write configuration file for make4ht
I have a latex file as shown below.
\documentclass[11pt,twoside]{book}
\ifdefined\HCode
\def\pgfsysdriver{pgfsys-dvisvgm4ht.def}
\fi
%Below two lines to completely remove page numbering,header and ...
2
votes
1
answer
53
views
Problem with task list in htlatex
I have a .tex file as shown
\documentclass[a4paper,12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{tasks}
\usepackage{xcolor}
\usepackage{float}
\begin{document}
\begin{...
1
vote
1
answer
78
views
Make4ht MathML and TeX
When using Make4ht how to get MathML and LaTeX code in HTML?
My MWE is:
%!TEX TS-program = lualatex
%!TEX encoding = UTF-8 Unicode
\documentclass{elife}
\title{Grasp movement initiation and ...
1
vote
0
answers
132
views
tex4ebook: Fatal error - Command tex4ht returned exit code 1
I try to use tex4ebook with MikTex and TeXnicCenter, but it always leads to a fatal error.
My simple MWE:
\documentclass{article}
\begin{document}
Text
\end{document}
I tried a lot of different ...
1
vote
1
answer
40
views
alt text for images in ODT files produced by make4ht
This post describes a way to have make4ht take a LaTeX source file and produce an HTML file which includes alt text for images. Is it possible to use make4ht to produce ODT files containing alt text ...
2
votes
1
answer
150
views
Make4HT with LuaLaTeX
I have LuaLaTeX and it's working fine. But when i have converting LaTeX to HTML used make4ht test.tex it's showing error.
make4ht -f html5+detect_engine test.tex
make4ht -l test.tex
How to fix this?
...
1
vote
1
answer
62
views
I am confused as how to use make4ht to execute tex4ht with several command line options, to produce HTML
Here are the options I would like to exercise and the various ways I have tried to invoke make4ht:
% invocation:
% $ make4ht -c config.cfg notes.tex
% $ make4ht -d notes config.cfg notes.tex
% $ ...
1
vote
1
answer
50
views
make4ht and fontspec: lualatex not recognized?
I added \usepackage{fontspec} to my .tex file and the magic comment % !TeX program = lualatex in the preamble of my document.
Since I did so, I can no longer convert my document to HTML from a .bat ...
1
vote
1
answer
60
views
Error messages when compiling with make4ht and using biblatex and geometry
Using biblatex and geometry leads to error when compiling with make4ht. The example document is:
\documentclass{article}
\usepackage{biblatex}
\usepackage{geometry}
\begin{document}
Test
\end{document}...
2
votes
0
answers
31
views
Using polyglossia inside a class creates error when compiling with make4ht
When I set polyglossia as a required package in my class, the following error arises when compiling with make4ht:
[ERROR] htlatex: Compilation errors in the htlatex run
[ERROR] htlatex: Filename ...
3
votes
1
answer
105
views
tex4ht: using tikzexternalize still includes svg, not png
I'm using make4ht to generate HTML from a .tex file which contains tikz images.
I use the tikzexternalize command together with code from Htlatex and Tikz creates sometimes incorrect svgs to ensure ...
1
vote
1
answer
70
views
error using ABNT style for biblatex along with hyperref package and compiling with make4ht
A document using abnt style for biblatex and also including hyperref packages leads to an error when compiling make4ht. The following error appears:
[ERROR] htlatex: Compilation errors in the ...
1
vote
1
answer
64
views
Bad SVG when two TikZ pictures are placed side by side in a figure environment - make4ht
When I use make4ht index.tex "xhtml" to compile the file
\documentclass{report}
\ifdefined\HCode
\def\pgfsysdriver{pgfsys-dvisvgm4ht.def}
\fi
\usepackage{tikz}
\begin{document}
\...
1
vote
1
answer
52
views
problem when adding a source caption to longtable and compiling with make4ht
The following example adds a source caption to a longtable. It compiles with no error using xelatex but crashes when m̀ake4ht is used.
\documentclass{article}
\usepackage{caption}
\usepackage{...
4
votes
1
answer
29
views
Problem when inserting an url inside lstlisting and compiling with make4ht
The following examples shows an error when an URL is inserted inside a lstlisting caption.
\documentclass{article}
\usepackage{listings}
\usepackage{hyperref}
\begin{document}
\begin{lstlisting}[...
1
vote
1
answer
71
views
Problem using arrayrulecolor and compiling with make4ht
The following example crashes when compiling with make4ht The problem relies on the usage of \arrayrulecolor.
\documentclass{article}
\usepackage{booktabs,colortbl}
\begin{document}
\begin{table}
\...
2
votes
1
answer
33
views
float placement for listings causes warnings in make4ht
The following examples compiles but creates warnings just when the float parameter is used.
\documentclass{article}
\usepackage{listings}
\begin{document}
\begin{lstlisting}[float, language=tex, label=...
3
votes
1
answer
51
views
make4ht finds erros when biblatex and hyperref are included in a class
I've created the following class file:
\ProvidesClass{myarticle}[Test class]
\ExecuteOptions{}
\LoadClass{article}
\RequirePackage[backend=biber,style=authoryear]{biblatex}
\PassOptionsToPackage{...
1
vote
1
answer
29
views
Can I make make4ht to copy the output.html file as index.html?
I use the command "make4ht -e test.mk4 test.tex" to produce a number of html files named "test.html" , "test1.html" etc. This works fine. Now, I would like to have at the ...
1
vote
1
answer
32
views
Math and German characters in make4ht
I have the problem of using make4ht to compile my file which contains both math symbols and special German characters. If I use option -u I get charset="utf-8" in the head section and teh ...
1
vote
1
answer
96
views
Convert CV template from tex to html using make4ht
I am trying to get a proper html version of my cv from the tex file. I like to do the conversion as perfectly as possible so that the structure of the html can match with the pdf properly.
cv.tex
\...
3
votes
1
answer
65
views
Using \textquotedbl with make4ht
I help maintain a document which is built, among other ways, with make4ht --utf8 --lua document.tex for HTML output.
In order to typeset command line excerpts, the document sometimes uses \...
1
vote
1
answer
84
views
Can I output arbitrary HTML code while converting LaTeX to HTML using make4ht?
My code:
\documentclass{article}
\newcommand{\world}{world}
\begin{document}
hello \world{}
\end{document}
I compile this with make4ht like this:
$ make4ht foo.tex
[STATUS] make4ht: ...
2
votes
1
answer
53
views
Linking to \phantomsection with \ref does not work in make4ht
My code:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
Top of document
\section{Section heading}
Top of section
. \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ ...
2
votes
1
answer
86
views
Can I make cross-references between multiple HTML pages using make4ht/tex4ht?
Here is how my project looks.
foo.tex:
\documentclass{article}
\usepackage{amsmath}
\usepackage{hyperref}
\begin{document}
\begin{equation}
\label{truth}
1 + 1 = 2
\end{equation}
\( \eqref{truth} \) ...
1
vote
0
answers
91
views
tex4ebook: module char-def not found
I'm trying to typeset a multi-chapter book for use with Kindle.
Hence, I'm looking to use tex4ebook.
I got this error:
tex4ebook book.tex
[STATUS] tex4ebook: Conversion started
[STATUS] tex4ebook: ...
1
vote
1
answer
74
views
How to configure tex4ht to accept macros in TeX path?
I am using the configuration suggested in this answer to import a file Macros.tex containing a bunch of \newcommand macros to be processed using MathJax. It works as long as the main LaTeX file and ...
1
vote
1
answer
42
views
Caption package breaks tex4ht automatic sectioning pagination
The caption package seems to break automatic sectioning pagination in tex4ht. The document test.tex
\documentclass{article}
\usepackage{graphicx, caption, blindtext}
\begin{document}
\part{Part ...
3
votes
1
answer
57
views
Why does make4ht mathjax convert AMS gather environment to html code?
With the mathjax option, make4ht fails to render the following:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{gather}
E=mc^2\\
e^{i\pi}+1=0
\end{gather}
These ...
1
vote
2
answers
126
views
htlatex: method to set fraction of textwidth as minipage width not compatible with TikZ
I am using the make4ht configuration from this answer to extract width as a fraction of textwidth from LaTeX code and add it to the CSS file. The configuration works as expected until I add a TikZ ...
2
votes
1
answer
72
views
Configuring htlatex for nested minipages or minipages outside floating environments
I am trying to do something similar to this post on configuring minipages with htlatex. However, my minipages are not inside a figure environment, so the strategy to apply a float: right css to div....
1
vote
1
answer
167
views
Tikz patterns library and dvisvgm4ht
Does the dvisvgm4ht driver with make4ht support the TikZ Patterns library? The following MWE:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{patterns}
\def\pgfsysdriver{pgfsys-dvisvgm4ht....
2
votes
1
answer
64
views
Typesetting issues with make4ht and tex4ht--kerning of math characters seems too close
I am really loving make4ht and tex4ht, as they finally allow me to keep all of my tooling while generating web pages. One minor issue I am running into has to do with the kerning of some characters ...