Skip to main content

Questions tagged [htlatex]

htlatex is the command that loads a script to invoke the different steps of the conversion process from LaTeX to HTML.

Filter by
Sorted by
Tagged with
1 vote
1 answer
43 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} \...
FireBird Press LLC's user avatar
1 vote
1 answer
22 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,...
Christopher Kodama's user avatar
1 vote
1 answer
27 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 ...
Rewbert's user avatar
  • 111
0 votes
0 answers
38 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 ...
user2609605's user avatar
2 votes
1 answer
91 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, ...
mistral's user avatar
  • 105
0 votes
0 answers
37 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} \...
Lev's user avatar
  • 181
2 votes
1 answer
102 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 ...
Miloop's user avatar
  • 978
2 votes
1 answer
31 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 ...
Joe's user avatar
  • 479
0 votes
1 answer
157 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-...
Daniel's user avatar
  • 103
1 vote
1 answer
165 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) ...
pdy-ind's user avatar
  • 2,122
2 votes
1 answer
49 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 ...
wynlatex's user avatar
4 votes
1 answer
82 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 &...
user2609605's user avatar
1 vote
1 answer
51 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 ...
holmes's user avatar
  • 65
1 vote
0 answers
134 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 ...
kiran pradeep's user avatar
0 votes
0 answers
60 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 ...
David Wood's user avatar
1 vote
0 answers
147 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 ...
memo's user avatar
  • 111
1 vote
1 answer
226 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=...
MadyYuvi's user avatar
  • 13.9k
1 vote
1 answer
122 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[...
Parivalavan's user avatar
1 vote
1 answer
53 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 &...
qarabala's user avatar
  • 202
1 vote
1 answer
79 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{...
qarabala's user avatar
  • 202
0 votes
0 answers
133 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 ...
tribbloid's user avatar
  • 113
1 vote
1 answer
167 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:...
Hilmar Preuße's user avatar
1 vote
1 answer
57 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 ...
Socrates's user avatar
0 votes
0 answers
345 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 ...
Jamie's user avatar
  • 1
1 vote
1 answer
91 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 = "...
Teymour's user avatar
  • 117
1 vote
1 answer
165 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 ...
Oliver Freyermuth's user avatar
1 vote
1 answer
73 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 ...
BlenderBender's user avatar
1 vote
1 answer
60 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....
Luis Turcio's user avatar
  • 2,759
1 vote
1 answer
94 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 ...
hfactor's user avatar
  • 11
1 vote
1 answer
397 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 ...
hfactor's user avatar
  • 35
2 votes
1 answer
103 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{...
hfactor's user avatar
  • 35
1 vote
1 answer
161 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 ...
Павел Фуров's user avatar
1 vote
0 answers
39 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 ...
Dmitry Starostin's user avatar
1 vote
1 answer
129 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 ...
ChristianB's user avatar
1 vote
1 answer
92 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 ...
Yai0Phah's user avatar
  • 669
0 votes
0 answers
51 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 ...
Chen Li's user avatar
  • 101
2 votes
1 answer
91 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 \...
user61681's user avatar
  • 1,769
1 vote
1 answer
213 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: ...
Lone Learner's user avatar
  • 3,256
2 votes
2 answers
328 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 ...
KarenM's user avatar
  • 23
2 votes
1 answer
126 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 ...
Volker Weißmann's user avatar
1 vote
1 answer
136 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 ...
Rushi's user avatar
  • 837
3 votes
1 answer
129 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 ...
Rushi's user avatar
  • 837
1 vote
2 answers
241 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 ...
Rushi's user avatar
  • 837
2 votes
1 answer
168 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....
Rushi's user avatar
  • 837
3 votes
1 answer
270 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^{\...
Rushi's user avatar
  • 837
2 votes
1 answer
129 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 ...
David Good's user avatar
2 votes
1 answer
90 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 --&...
rasha's user avatar
  • 704
3 votes
2 answers
302 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 ...
avren's user avatar
  • 133
2 votes
0 answers
453 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! (...
LEo's user avatar
  • 772
1 vote
1 answer
495 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 ...
Samuel Enibe's user avatar

1
2 3 4 5 6