Questions tagged [tex4ht]

TeX4ht is a highly configurable TeX-based authoring system dedicated mainly to produce hypertext.

Filter by
Sorted by
Tagged with
2 votes
1 answer
35 views

TeX4ht: \displaystyle in eqnarray, align and array environments

I am using tex4ht to convert a LaTeX document to HTML. I would like to know how to obtain a full display of equations either in the eqnarray, align and array environments. The following snippet ...
2 votes
1 answer
38 views

Using mhchem, make4ht, and cleverref issues with equation rendering

This is a follow-up question to the one answered here: Issue with mhchem and fractions in make4ht and mathml. Using that same MWE, but adding in hyperref, cleverref, and a label in the equation does ...
2 votes
0 answers
41 views

Referencing an equation from a different chapter of the same document with tex4ht

I am trying to convert to HTML a big LaTeX document (book class) subdivided into several chapters. I am using tex4ht. My problem is that, if I choose to export each chapter as separate pages, when I ...
1 vote
1 answer
32 views

tex4ht and the multicol package

The combination make4ht and the multicol package seems to be not working together. If I compile %% mwe-listen.tex \documentclass{scrartcl} \newcommand{\mytext}{This is some text for testing the ...
  • 707
1 vote
1 answer
39 views

tex4ht and Japanese font

A similar question and an answer can be found on How to get Unicode characters into HTML output but I post a new question because the recommendation regarding my question there is not working for me. ...
  • 707
1 vote
1 answer
23 views

tex4h and IGO font

Using tex4ht in combination with the igo package gives some error messages. The igo package can be found on CTAN. Step 1: I have generated for test purposes igobl10.mf and igowh10.mf using the ...
  • 707
2 votes
2 answers
88 views

tex4ht: what to do if a font is missing

I have just started to learn the features of the tex4ht tool. It is working with one exception: Compiling \documentclass{scrartcl} \usepackage{igo} \usepackage[T1]{fontenc} %% \begin{document} %% \...
  • 707
2 votes
1 answer
36 views

How to add alt text to tikzpicture using TeX4ht

As I understand TeX4ht, for \includegraphics you add alt text, the kind a screen reader would find, using the alt key. What is the recommended approach to a graphic created by tikzpicture?
1 vote
1 answer
42 views

TeX4ht and Tikz missing Ghostcript

I'm trying to use TeX4ht with Tikz and running into problems. Here's my minimal example \documentclass{article} \ifdefined\HCode \def\pgfsysdriver{pgfsys-dvisvgm4ht.def} \fi \usepackage{tikz} \begin{...
3 votes
1 answer
51 views

make4ht: Reference site title in other HTML meta tags (e.g. "og:title")

I would like to add metadata (via meta tags and JSON-LD) to my tex4ht output, and for this leverage the title tag content in some places. Using the following MWE: \documentclass{scrbook} \title{Some ...
2 votes
1 answer
84 views

Issue with mhchem and fractions in make4ht and mathml

I am compiling a chemistry-heavy text and I noticed that mhchem on Overleaf did not create superscripts and subscripts when compiled with make4ht. Upon downloading the newest release, which put the ...
3 votes
1 answer
54 views

How to make a table of fixed width in tex4ht? (not fixed column width)

This is related to tex4ht only and not pdf. This is a problem that existed in tex4ht forever. I just found in HTML that by fixing the width of the whole table, then the column width will remain fixed ...
  • 18.5k
2 votes
1 answer
52 views

Make4ht with \ref and \index in the Caption

The below file compile fine with pdflatex and showing error in make4ht. How to rectify this? \documentclass{book} \usepackage{lipsum,hyperref} \begin{document} \chapter{Chapter Title} \section{...
  • 2,206
1 vote
1 answer
39 views

Expect Output HTML filename same as Input/Include

Expect the final output html filename is same as \include filename or \input filename. How to get this using make4ht. I had referred this link How to control the name of the HTML files that tex4ht ...
  • 2,206
1 vote
1 answer
57 views

Make4ht with % in the Caption

The below LaTeX file is working fine with pdflatex and showing error in make4ht. How to recetify this? When I have used % in the figure captions it's writing in the aux file and show error. \...
  • 2,206
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
34 views

Reference in caption, errors with make4ht

Putting a cross-reference inside a caption prompts a bunch of scary error messages from make4ht, though somehow the example still converts. In a larger document, it would abort or hang. Take this ...
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
53 views

tex4ebook with listings package

The below files is working fine with pdflatex and not working when converting to epub. Its not showing any error also. lstlistings indent also not correct. How to solve this? tex4ebook -a debug -f ...
  • 2,206
1 vote
1 answer
83 views

LaTeX to Epub Conversion

I would like to convert epub file from LaTeX or XML. Could you please advise which is best way for that? LaTeX to EPUB Conversion? XML to EPUB Conversion. TeX4HT? Make4HT? Pandoc? Which is the best ...
  • 2,206
3 votes
2 answers
112 views

Is there any way to make tex4ebook support unicode characters?

There is nothing wrong with generating the epub file with the following code: \documentclass{ctexart} \begin{document} Hello World $x_1$ \end{document} $ tex4ebook -f epub3 ./demo.tex But when ...
  • 247
1 vote
1 answer
27 views

tex4ht does not see listings style using \lstinputlisting[style=style_name]{file}

I am using the code from how to make tex4ht work with listings styles for only basic decoration? (frame and background coloring)? thanks to Michal.h2 which works great except that the style defined ...
  • 18.5k
1 vote
1 answer
78 views

How to control the name of the HTML files that tex4ht uses for splitting subsubsections to?

I am trying to make my own links to targets in separate subsubsections. (I have reasons why I can't use tex4ht own links, since it does not work when splitting using separate files. Long story. I ...
  • 18.5k
3 votes
2 answers
90 views

--- warning --- Couldn't find font `mlmsy8.htf' (char codes: 0--173) how to correct? TL 2022

I was compiling older source tree I have using TL 2022 on Ubuntu. I noticed this warning, which I do not know where the source of it is, and how to correct it [INFO] htlatex: LaTeX call: ...
  • 18.5k
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

Safari font bug with TeX4ht

I have the following TeX4ht issue: If the document contains a multicolumn list and I open the resulting HTML file in Safari, then some of the items in the list are not showing. For example, look at ...
  • 601
1 vote
1 answer
36 views

longtable in HTML has stretched lines after compiling one more time in tex4ht

I've seen this problem for long time and never really could figure why it happens. Given this MWE \documentclass[12pt]{book} \usepackage{longtable} \begin{document} \begin{longtable}[c]{|p{1in}|p{...
  • 18.5k
1 vote
1 answer
33 views

tex4ht drops subsections when using \PauseCutAt{section}. Why does it happen?

I want to make a webpage with 2 chapters in which each chapter contains some sections and subsections inside some sections. I use split=4 when calling tex4ht. Which means to split at section. i.e. ...
  • 18.5k
1 vote
1 answer
59 views

How to use dmath with tex4ht without using mathjax? TL 2022

I am using the solution given in tex4ht-generates-invalid-math-in-mathjax-mode-when-using-dmath which allows one to use breqn package in tex4ht which is very useful. I am now trying to use the above, ...
  • 18.5k
1 vote
1 answer
80 views

problem using tex4ht with xr-hyper when other documents are in separate folders

ps. a zip file at bottom which contains all files. I am splitting my large document into smaller separate documents, where now each chapter will be compiled separately (in its own folder), as separate ...
  • 18.5k
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
32 views

tex4ht fails on rendering \cmark first time, but works second time

Given this MWE \documentclass[11pt]{book} \usepackage{xcolor} \usepackage{pifont} %http : // ctan.org/pkg/pifont \newcommand{\cmark}{\textcolor{green!80!black}{\ding{51}}} \newcommand{\xmark}{\...
  • 18.5k
1 vote
1 answer
35 views

How to make title appear the same with tex4ht as in PDF?

according to How to make tex4ht output a title an answer says tex4ht works in the same way as ordinary LaTeX with regard to titles But I want to make title where there is second line in it, with ...
  • 18.5k
4 votes
1 answer
68 views

Tex4ht generates invalid math in mathjax mode when using dmath

The following MWE generates invalid math in HTML using mathjax mode. This only happens when using dmath*. I am using the solution from Error using \ifdefined\HCode with TeX4ht, but it works in LuaTeX ...
  • 18.5k
1 vote
1 answer
56 views

how to make tex4ht work with listings styles for only basic decoration? (frame and background coloring)?

This is tex4ht only issue. There is a good answer in How to add frame and background color with listing when used with text4ht That shows how to make tex4ht put frame and background color when using ...
  • 18.5k
1 vote
1 answer
67 views

error using tikz with tex4ht. \Extra \else

I was compiling an old latex file using tex4ht and now it gives an error. I tried both pgfsys-dvisvgm4ht.def and pgfsys-tex4ht-updated.def from https://github.com/michal-h21/dvisvgm4ht The error is (/...
  • 18.5k
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
42 views

how to increase space between table of content entries for tex4ht?

This issue is only for tex4ht. How to increase the space a little more between entries in main TOC when using tex4ht? There is a solution for this when generating PDF but it does not work for tex4ht. ...
  • 18.5k
1 vote
1 answer
78 views

tex4ebook does not accept config file

I installed today March 27 2022 new version of texlive. I made MWE which works well with pdfLatex. It works well with "tex4ebook -l myfile.tex". But, if I include minimal config file (from ...
1 vote
1 answer
51 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+}{...
1 vote
1 answer
37 views

tex4ht no longer process some math. What is the cause?

This looks like a new serious problem. I have a document that used to compile OK with tex4ht. I have not build it for sometime. Today when I build it to HTML (in both case using mathjax mode) it is ...
  • 18.5k
2 votes
1 answer
108 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[...
  • 2,206
3 votes
1 answer
114 views

How to add frame and background color with listing when used with text4ht

This issue is only for tex4ht. I want to move all my code formatting away from using a Javascript package I am now using, and to use listings instead. As is known, listings package works as is with ...
  • 18.5k
1 vote
1 answer
52 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: ...
  • 2,206
0 votes
1 answer
182 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 (...
  • 109
2 votes
1 answer
50 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 ...
  • 666
1 vote
1 answer
41 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,206
2 votes
1 answer
35 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} @...
  • 666
1 vote
1 answer
41 views

how to make minted options work with tex4ht? fontsize not changing

This answer shows how to use minted in tex4ht. But options do not seem to be passed through as with pdf. For example, trying to change the font size as shown in this answer does not work with tex4ht ...
  • 18.5k
1 vote
1 answer
106 views

How to make lstlisting work with tex4ht in table with fixed column width?

I am generating a table with fixed width with p specifications. In one column I need to put some text which is meant to be verbatim and can be few lines long so it will have to also automatically wrap ...
  • 18.5k

1
2 3 4 5
17