Questions tagged [htlatex]
htlatex is the command that loads a script to invoke the different steps of the conversion process from LaTeX to HTML.
292
questions
0
votes
1
answer
149
views
Parsing 1994 TeX
I have these 1994 TeX documents which I would like to produce html and pdf files from.
Here's an example of one of them: https://github.com/lisp-docs/cl-standard/blob/master/new-spec/spec-source/chap-...
1
vote
1
answer
108
views
Make4HT - HTML with LaTeX equation and MathML output
I am trying to convert the HTML output with MathML and TeX equations based on the brilliant Solution given by michal.h21 in the below Thread
Make4HT with \begin{align} (MathML and LaTeX Output)
...
2
votes
1
answer
36
views
tex4ht converts included eps graphics to png with wrong dimensions
I recently updated my Ubuntu environment from 18.04 to 22.04 and I noticed that the default behavior of tex4ht (or htlatex) with respect to included graphics significantly changed.
Consider the basic ...
4
votes
1
answer
66
views
htlatex: problem with caption in longtable
I have the following latex file:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{longtable}
\begin{document}
\begin{longtable}{|ll|}
%\toprule
converter &...
1
vote
1
answer
40
views
make4ht multiple files hyperref issues with labels at the top of the file
The following compiles with make4ht but htlatex throws some errors. I'm trying to use make4ht to handle multiple files and link between them using xr-hyper and hyperref. In some cases I want to link ...
1
vote
0
answers
81
views
Research papers in LaTeX to epub
I really don't have any kind of experience dealing with LaTeX files. I'm just trying to read some research papers released in the field of Deep Learning on my Kindle. Mostly, these papers are released ...
0
votes
0
answers
57
views
make4ht and hyphens and apostrophes
make4ht incorrectly outputs en-dash, em-dash and apostrophes.
\documentclass{article}
\begin{document}
-- --- '
\end{document}
Compiling this with make4ht test.tex outputs garbage – — ’. Note ...
1
vote
0
answers
98
views
Error converting Latex to HTML - package algorithm2e?
Update
I've reduced the entire thesis down to an empty doc with the packages that I'm using.
I've tried commenting out each of the packages one by one, and including them one by one, and the results ...
1
vote
1
answer
152
views
Convert equations into Outlined EPS or SVG format by using TeX4ht
I've tried with:
\documentclass{book}
\usepackage{amsmath}
\begin{document}
This is for test $a+b=c$
\begin{align*}
\int+\prod=\sum
\end{align*}
This is for test $d+e=f$
\begin{align*}
\alpha+\beta=...
1
vote
1
answer
111
views
custom tagging for authors and affiliations when converting to HTML using htlatex
I am trying to convert to HTML using tex4ht without luck. The following is what I have got so far:
sample.tex
% https://elife-cdn.s3.amazonaws.com/author-guide/elife-latex-template.zip
\documentclass[...
1
vote
1
answer
45
views
make4ht mathml array strange output
I am compiling the following latex file:
\documentclass{article}
\usepackage[british]{babel}
\begin{document}
\begin{equation}
\begin{array}{|r|rrrr|}
\hline
& x_1 & x_2 & x_3 &...
1
vote
1
answer
62
views
make4ht creates images for double-dollar formulas despite mathjax option
I want to convert the following (minimized) TeX file to HTML:
\documentclass{article}
\begin{document}
We have $a = a$, \(a = a\) and also
\[c = c\] and even
\begin{equation*}
E = mc^2.
\end{...
0
votes
0
answers
105
views
Is the htlatex tool of the latest texlive broken?
I'm using the latest texlive to compile tex file into HTML:
$ apt show texlive
Package: texlive
Version: 2021.20220204-1
Priority: optional
Section: universe/tex
Source: texlive-base
Origin: Ubuntu
...
1
vote
1
answer
137
views
htlatex fails to convert file
I try to convert the following LaTeX code to HTML using htlatex
\listfiles
\documentclass[a4paper,12pt,oneside,openany]{book}
\begin{document}
\appendix
\chapter{Regular expressions}
\label{sec:...
1
vote
1
answer
50
views
How to get \hypereff[]{} working with htlatex?
In this minimal example:
\documentclass[11pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[]{hyperref}
\begin{document}
Hahaha \hyperref[other]{2}
\end{document}
Compiling with pdflatex, it ends ...
0
votes
0
answers
242
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
83
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
95
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 ...
1
vote
1
answer
54
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
50
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
71
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
298
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
84
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
131
views
Inherit page layout when converting LaTeX to HTML
I use tex4ht but Im open to other suggestions.
So tex4ht documentation tells how you can set the margins by yourself, but nothing about inheriting them from the LaTeX document. By default there are no ...
1
vote
0
answers
37
views
Why does mk4ht oolatex wrap up the whole folder of nearly 1 GB into .odt file?
On Ubuntu 20.10 I am trying to use mk4ht oolatex filename.tex and I get (after some messages) 'System call: cd sxw-Test_2.dir; zip -r Test_2.odt * ; cd ..', which zips my whole folder of nearly 1 GB ...
1
vote
1
answer
104
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
76
views
TeX4ht / tex4ebook: labeling unnumbered equations
I am trying to understand whether it is possible to allow labels in equation*-environments as long as they are not referred. This is allowed in pdflatex, but when compiling with tex4ebook (with ...
0
votes
0
answers
45
views
how to convert xv6 book to html with pictures saved
the book is here: https://github.com/mit-pdos/xv6-riscv-book/
after make, it will generate book.tex, book.pdf and some other tex files. book.pdf have all pictures.
I have tried to pandoc book.tex -o ...
2
votes
1
answer
85
views
Generating jpg images of Questions and Options in Exam Document Class through any method
The following is a code of TeX file.
\documentclass{exam}
\begin{document}
\begin{questions}
\question Sample Question
\begin{choices}
\choice choice 1
\choice choice 2
\...
1
vote
1
answer
189
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
2
answers
277
views
Converting Latex \label to HTML ID attribute
Our organization has their reference manual published in LaTeX. It is a basic 300 page reference manual with tables, figures and sections. The organization also has publications database to track the ...
2
votes
1
answer
120
views
Is htlatex with the beamer class broken [duplicate]
If I try to compile this example document
\documentclass{beamer}
\begin{document}
\begin{frame}{Test}
Test
\end{frame}
\end{document}
with htlatex temp.tex I get the output:
l.34951 --- TeX4ht ...
1
vote
1
answer
128
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 ...
3
votes
1
answer
108
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
220
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
147
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....
3
votes
1
answer
225
views
make4ht - broken cross references
I am using make4ht on the file Test.tex containing:
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
Testing cross references for equations.
\begin{equation}
e^{\...
2
votes
1
answer
123
views
Problem with inserting graphics with HtLaTeX on Debian buster
I've been tasked with porting some software to Debian buster. The software has pretty extensive documentation using latex.
I'm mainly a sysadmin/software guy and only know a little TeX.
When building ...
2
votes
1
answer
89
views
Wrong doi link with htlatex --> biber --> htlatex
When compiling the following MWE with pdflatex --> biber --> pdflatex, a correct doi link is generated:
https://doi.org/10.1016/j.automatica.2013.06.002
However, when compiling with htlatex --&...
3
votes
2
answers
241
views
if caption package is loaded autoref doesn't work correctly when using htlatex
If I use autoref while the caption package is loaded, the target type does not appear in the reference if I generate html with htlatex. If I use pdflatex, autoref works as expected.
Here's an example ...
2
votes
0
answers
378
views
Problem when compiling using htlatex and using biblatex-abnt
I'm trying to create HTML from TeX file. It compiles smoothly with pdflatex but when I use htlatex the following error shows:
Package biblatex Warning: File 'brazilian-abnt-abnt.lbx' not found!
(...
1
vote
1
answer
351
views
Producing ODT from LaTeX using htlatex
The command htlatex filename "xhtml,ooffice" "ooffice/! -cmozhtf" "-coo" produces an ODT file with 2 major problems:
All cross references are lost; and
Figures not ...
2
votes
1
answer
85
views
htlatex ignores value in brackets in item statement when using itemize
In Latex I have the following statements:
\begin{itemize}
\item[P)] Lorem ipsum dolor sit amet
\item[E)] Pellentesque interdum eros in erat
\item[Q)] Vestibulum ante ipsum primis
\end{itemize}
...
1
vote
1
answer
754
views
Missing images with LaTeX to HTML
I would like to create an HTML file from a LaTeX document. The probably most convenient approach using TeXStudio's Tools | Convert to Html... | Launch results in an error:
Error : a process has failed
...
2
votes
1
answer
606
views
How should I work with multiple make4ht filters?
As I use tex4ht/make4ht more, I find I'm building up a collection of my own customisations. To help organise this, is there a recommended way to manage including (multiple) custom filters/domfilters ...
2
votes
1
answer
421
views
Heading hierarchy in tex4ht
It looks like tex4ht headings start at <h2> for the title. The following tex:
\documentclass{article}
\title{Testing headings}
\author{Alex Watson}
\date{\today}
\begin{document}
\maketitle
\...
7
votes
1
answer
545
views
Graphics scaling in tex4ht
When I introduce graphics with \includegraphics[width=0.5\textwidth]{fig}, tex4ht processes this into some number of pixels (I'm not sure how - presumably there's a ppi setting I've not encountered?) ...
0
votes
1
answer
57
views
How to put contents of file in a \path
Take the following file called "version"
5.1
I'd like to take the contents of version and insert in a \path. I've tried
\documentclass{article}
\usepackage{url}
\begin{document}
\path{\...
1
vote
1
answer
612
views
Textcolor from awesomebox with htlatex
I'm trying to convert a TeX document that uses the package awesomebox to HTML using htlatex. Although I did not expect this to work out of the box and probably requires me to configure some ...
2
votes
1
answer
238
views
Bad SVG output when using htlatex
I am trying to compile some minimal test.tex using htlatex test.tex "xhtml,svg", but the SVG generated from tikz pictures does not seem to work.
\documentclass[11pt]{article}
\usepackage{tikz}
\...