Questions tagged [htlatex]
htlatex is the command that loads a script to invoke the different steps of the conversion process from LaTeX to HTML.
305 questions
1 vote
1 answer
82 views
Why does the HTML file generated by make4ht -x abc.tex have no style?
The make4ht command is used to generate HTML from LaTeX source files. However, when there is \usepackage{fontspec} in the LaTeX source file, the xelatex compilation method is required. So my code is ...
3 votes
1 answer
77 views
Make4ht with frames : how to add a picture above the table of content?
Goal : add a picture and title on top of the table of contents, in the left frame, using make4ht. Problem : I used htlatex a while ago and at this time, I have found a preamble which was able to do ...
0 votes
1 answer
42 views
Get link to homepage inside make4ht configuration file
make4ht generates a <header> block at the top of the html <body> element which contains the \@title value as plain text inside an <h2> element. I want to make this header title a ...
1 vote
1 answer
77 views
collapsetoc filter option in make4ht
I tried running make4ht article.tex "2,next,nominitoc,fulltoc,collapsetoc" on \documentclass{article} \usepackage{forloop} \usepackage{fmtcount} \usepackage{lipsum} \newcounter{level1} \...
1 vote
1 answer
56 views
Specify font-family in tex4ht generated css file
My latex document is using the newtx font packages which is causing tex4ht to generate the following css classes in the generated article.css file: /* start css.sty */ .ntx-Regular-tlf-t1-x-x-120{ ...
1 vote
1 answer
99 views
Environment for Make4ht that automatically converts to svg images
I frequently use Make4ht to translate .tex files to html. When I don't get a satisfactory translation of some environment, I open the pdf in Inkskape and generate an .svg figure. My question is if it ...
1 vote
1 answer
112 views
Viewer in HTML view - TeX4ht
Have tried with: \documentclass{article} \usepackage{amsmath} \begin{document} $\beta\quad\boldsymbol{\beta}$ \end{document} I created the HTML with MathML option using htlatex, then HTML was ...
1 vote
1 answer
84 views
no hyperref in index of html
Here an mwe off this site. If i process it with pdflatex i get the hyperrefs. But if i process it with htlatex the index does not have working hyperrefs. What am i missing? \documentclass{article} \...
1 vote
1 answer
88 views
Issue converting moderncv file to html via htlatex
I am trying to convert a moderncv latex file to html using htlatex and am running into an issue. Here is a minimal failing example (fails in htlatex but works fine with pdflatex): \documentclass[11pt,...
1 vote
1 answer
153 views
htlatex listings emergency stop
I am trying to generate some HTML (using htlatex) from a very simple .tex-file containing some listings. If I do not set my own style, it proceeds as expected and generates the HTML, but when I choose ...
0 votes
0 answers
98 views
htlatex causes Package auxhook Warning: Cannot patch \document
I try to compile the following file test.tex \documentclass{article} \usepackage[tex4ht]{hyperref} \begin{document} Some text. \end{document} with htlatex test but in the resulting log file I read ...
2 votes
1 answer
171 views
make4ht unable to compile with TikZ pictures
I am having troubles making make4ht working with Tikz pictures. My computer is a Mac M1 Sonoma 14.2.1, I have TeX Live 2024 and Ghostscript 10.03.0 on my computer: lualatex --version This is LuaHBTeX, ...
0 votes
0 answers
48 views
Cannot convert tex file into html in Centos
I have this tex file: test.tex \documentclass{report} \usepackage{tikz} \begin{document} \begin{center} \begin{tikzpicture} \draw(0,0)--(1,0)--(0.5,2)--(0,0); \draw(0,0)circle(1.2); \end{tikzpicture} \...
2 votes
1 answer
144 views
htlatex breaks down when using siunitx
I have a manuscript that is written in LaTeX. After a couple of rejections and modifications, the new journal seems to only accept .docx files. I plan to convert my manuscript to a .odt as the editor ...
2 votes
1 answer
66 views
Why is a single line in this table of contents not a link (tex4ebook on Kindle)
It's not clear if the issue here is with tex or with Amazon; however I think it should be at least asked here in case anyone else finds it by Googling. I am writing an ebook using tex4ebook. I have ...