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
0 votes
0 answers
48 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 ...
  • 103
1 vote
1 answer
52 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
35 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
55 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
1 vote
1 answer
58 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
46 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
41 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
29 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....
  • 2,452
1 vote
1 answer
38 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 ...
  • 11
1 vote
1 answer
108 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 ...
  • 35
2 votes
1 answer
57 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{...
  • 35
1 vote
1 answer
64 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
35 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
56 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
54 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 ...
  • 669
0 votes
0 answers
31 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 ...
  • 101
2 votes
1 answer
81 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,443
1 vote
1 answer
103 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,937
1 vote
2 answers
148 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 ...
  • 13
2 votes
1 answer
83 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
81 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 ...
  • 763
3 votes
1 answer
69 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 ...
  • 763
1 vote
2 answers
148 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 ...
  • 763
2 votes
1 answer
86 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....
  • 763
3 votes
1 answer
132 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^{\...
  • 763
2 votes
1 answer
93 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
68 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 --&...
  • 688
3 votes
2 answers
107 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 ...
  • 133
2 votes
0 answers
211 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! (...
  • 666
1 vote
1 answer
182 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
60 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} ...
  • 53
1 vote
1 answer
590 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 ...
  • 125
2 votes
1 answer
519 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
154 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 \...
5 votes
1 answer
343 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
40 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
479 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 ...
  • 113
2 votes
1 answer
162 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} \...
0 votes
0 answers
24 views

Size of displayed equations in html file produced by htlatex

I am using htlatex to produce a html file from a latex file, with no particular config file. It works relatively well except for the following problems. Loading the html file in Chrome android on my ...
  • 101
1 vote
1 answer
162 views

Including pstex_t figures when using htlatex

I am trying to create html file from my test.tex document including a .pstex_t file that include a .ps figure. Here is my test.tex file \documentclass[12pt,a4paper]{article} \usepackage[francais]{...
2 votes
1 answer
126 views

htlatex-Biber-htlatex compilation error (not present in Latex-Biber-Latex)

The MWE below is issued from here It compiles with no errors when using: Latex —> Biber —> Latex. Moreover, it produces exactly the desired result. However, when compiling using: htlatex —> Biber —>...
  • 688
0 votes
0 answers
208 views

Cannot find latex.fmt or pdflatex.fmt

Honestly I am about to snap. I don't know - I installed TeX Live yesterday, 2019 version for Windows and I spent over 8 hours trying to figure out why it's not working. I keep getting these errors ...
1 vote
1 answer
2k views

install htlatex

I need to convert a series of latex documents to a single html file. I would like to know how to install the htlatex program on fedora 31. I tried to install the tex4ht package without being able to. ...
2 votes
1 answer
444 views

Convert xelatex to html

I take this minimal example for document. I need 'polyglossia'. \documentclass{article} \usepackage{polyglossia} %\usepackage[utf8]{inputenc} \setdefaultlanguage{arabic} \newfontfamily\arabicfont[...
  • 123
1 vote
1 answer
401 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 ...
1 vote
1 answer
144 views

Longtable displays extra cells in html output

In HTML, my table has extra cells below the header row and below the left hand cell on the bottom row. \begin{longtable}{ | p{2.0cm} | *{5}{>{\raggedright\arraybackslash}p{3.5cm} |} } \hline \b{...
2 votes
1 answer
115 views

Filenames of images in tex4ht

I have two systems where I need to run tex4ht/make4ht. They are different versions of Ubuntu, I believe 18.04 LTS vs 19.04. I use the most recent version of make4ht from github, but the version of ...
2 votes
2 answers
143 views

split environment with tex4ht

The following MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{split} a &= b \\ c &= d \end{split} \] \end{document} compiles fine with pdflatex, but when I ...
0 votes
0 answers
120 views

How do change the output directory of `htlatex`

Every time I execute the htlatex command in TeXsudio (htlatex %.tex) I get a lot of files in my main folder. I would prefer that the target files (html, css, png, etc.) to a folder called html and all ...
  • 711
2 votes
1 answer
67 views

tex4ht ignores \input@path when looking for .4ht files?

My situation is like this. I have a LaTeX file that I want to compile with pdflatex and tex4ht, which includes a package in another directory. The file bug.tex contains: \documentclass{article} \...

1
2 3 4 5 6