Questions tagged [tex4ht]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
52 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 ...
user avatar
  • 17.9k
3 votes
2 answers
62 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: ...
user avatar
  • 17.9k
1 vote
1 answer
31 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 = "...
user avatar
1 vote
1 answer
28 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 ...
user avatar
  • 601
1 vote
1 answer
35 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{...
user avatar
  • 17.9k
1 vote
1 answer
30 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. ...
user avatar
  • 17.9k
1 vote
1 answer
52 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, ...
user avatar
  • 17.9k
1 vote
1 answer
73 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 ...
user avatar
  • 17.9k
1 vote
1 answer
38 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 ...
user avatar
1 vote
1 answer
22 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}{\...
user avatar
  • 17.9k
1 vote
1 answer
31 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 ...
user avatar
  • 17.9k
4 votes
1 answer
55 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 ...
user avatar
  • 17.9k
1 vote
1 answer
48 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 ...
user avatar
  • 17.9k
1 vote
1 answer
42 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 (/...
user avatar
  • 17.9k
1 vote
1 answer
33 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 ...
user avatar
1 vote
1 answer
24 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. ...
user avatar
  • 17.9k
1 vote
1 answer
51 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 ...
user avatar
1 vote
1 answer
44 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+}{...
user avatar
1 vote
1 answer
33 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 ...
user avatar
  • 17.9k
2 votes
1 answer
64 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[...
user avatar
  • 2,036
3 votes
1 answer
75 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 ...
user avatar
  • 17.9k
0 votes
1 answer
135 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 (...
user avatar
  • 99
2 votes
1 answer
30 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 ...
user avatar
  • 656
1 vote
1 answer
29 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}]{...
user avatar
  • 2,036
2 votes
1 answer
24 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} @...
user avatar
  • 656
1 vote
1 answer
26 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 ...
user avatar
  • 17.9k
1 vote
1 answer
83 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 ...
user avatar
  • 17.9k
0 votes
0 answers
32 views

Should convert simple math into HTML tag and complex math into MathML

My tags are follows: \documentclass{book} \begin{document} This is for test $a+b=c^2$ also test $\sqrt{a+b=c^2}$ \end{document} While converting the above code using TeX4ht through the command line ...
user avatar
  • 10.9k
1 vote
1 answer
27 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 ...
user avatar
  • 11
1 vote
1 answer
67 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 ...
user avatar
  • 35
2 votes
1 answer
53 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{...
user avatar
  • 35
1 vote
1 answer
77 views

Make4ht MathML and TeX

When using Make4ht how to get MathML and LaTeX code in HTML? My MWE is: %!TEX TS-program = lualatex %!TEX encoding = UTF-8 Unicode \documentclass{elife} \title{Grasp movement initiation and ...
user avatar
  • 2,036
1 vote
2 answers
53 views

Include MATLAB code listing compiled into HTML with correct colors

I am compiling a LaTeX file my_document.tex into an HTML page my_document.html using htlatex with the following command: htlatex my_document.tex "xhtml,mathml-" " -cmozhtf" I have ...
user avatar
1 vote
1 answer
69 views

How to split an article at the subsubsection level using tex4ht?

tex4ht takes a number as an option which specifies the split level, i.e. to make a section or subsection and so on, as separate web pages. I have an article with sections and subsections and ...
user avatar
  • 17.9k
1 vote
1 answer
77 views

tex4ebook: Challenges with enumerate, identation and page breaks

I am new to tex4ebooks (which I totally like after my first experiences) and I have some troubles with correct formatting: Forcing a page break does not work for me, even when using the configuration ...
user avatar
  • 218
1 vote
0 answers
128 views

tex4ebook: Fatal error - Command tex4ht returned exit code 1

I try to use tex4ebook with MikTex and TeXnicCenter, but it always leads to a fatal error. My simple MWE: \documentclass{article} \begin{document} Text \end{document} I tried a lot of different ...
user avatar
  • 218
1 vote
1 answer
53 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 ...
user avatar
1 vote
1 answer
38 views

alt text for images in ODT files produced by make4ht

This post describes a way to have make4ht take a LaTeX source file and produce an HTML file which includes alt text for images. Is it possible to use make4ht to produce ODT files containing alt text ...
user avatar
2 votes
1 answer
144 views

Make4HT with LuaLaTeX

I have LuaLaTeX and it's working fine. But when i have converting LaTeX to HTML used make4ht test.tex it's showing error. make4ht -f html5+detect_engine test.tex make4ht -l test.tex How to fix this? ...
user avatar
  • 2,036
1 vote
1 answer
73 views

tex4ht: removing indentation from paragraph-continuation after block quote

problem When a paragraph contains a block quote, xelatex formats the portion after the quote, correctly, without an indent. Tex4ht, however, treats it as a new, and therefore indented, paragraph. MWE ...
user avatar
  • 1,303
1 vote
1 answer
50 views

recovering space between biblatex book series and series number in tex4ht output

Problem Tex4ht seems to omit a necessary space in between a book series title and the following number in biblatex-chicago output. Xelatex has the correct output. MWE main.tex: %!TEX TS-program = ...
user avatar
  • 1,303
3 votes
1 answer
136 views

make4ht-lib: Fatal error

At some point in the past week or so, tex4ht seems to have stopped working on my computer. I now get this error when I run it while trying to convert from tex to odt: [ERROR] htlatex: ? ? ...
user avatar
  • 1,303
2 votes
1 answer
37 views

tex4ht and tex4ebook: problems when tikzcd is put in the inline math

MWE: \documentclass[oneside]{amsart} \usepackage{amsmath,amssymb,amsfonts, accents} % Include the following code before \usepackage{tikz} \ifdefined\HCode \def\pgfsysdriver{pgfsys-dvisvgm4ht.def} \...
user avatar
  • 669
3 votes
1 answer
66 views

tex4ht having trouble with $\frac{\partial u}{\partial x}=0$ in mathjax mode

For some reason, after recent update of texlive, tex4ht in mathjax mode no longer generate valid math for this \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \[ \frac{\partial ...
user avatar
  • 17.9k
3 votes
1 answer
54 views

TeX4ht: conflict between hyperref and cleveref (II)

This is another problem after applying the code in https://tex.stackexchange.com/a/623536/ MWE: \documentclass{amsart} \usepackage{hyperref} \usepackage{cleveref} \newtheorem{theorem}{Theorem} \...
user avatar
  • 669
1 vote
1 answer
50 views

TeX4ht: conflict between hyperref and optional arguments of proof

MWE: \documentclass{amsart} \usepackage{hyperref} \newtheorem{theorem}{Theorem} \begin{document} \begin{theorem}\label{thm} This is a theorem. \end{theorem} \begin{proof}[Proof of Theorem~\ref{...
user avatar
  • 669
2 votes
1 answer
57 views

how to scale math in tex4ht?

I need to scale some math using tex4ht. I assume this will only work when compiling latex to HTML when telling tex4ht to use svg for math equations and not mathjax. ps. (if math can scale using ...
user avatar
  • 17.9k
1 vote
1 answer
62 views

I am confused as how to use make4ht to execute tex4ht with several command line options, to produce HTML

Here are the options I would like to exercise and the various ways I have tried to invoke make4ht: % invocation: % $ make4ht -c config.cfg notes.tex % $ make4ht -d notes config.cfg notes.tex % $ ...
user avatar
  • 13
2 votes
1 answer
53 views

Latex to html : keep white space between colored cells in booktabs tables

I use a colored Table to illustrate a concept called 5-fold cross-validation. (Code is below). In latex, it looks as follows: When I convert this to html using tex4ebook cv_table.tex I get this: ...
user avatar
2 votes
1 answer
57 views

Tcolorbox counters with TeX4ht

Only the first numbered environment created with tcolorbox gets an <a> tag destination in the HTML when converted with htlatex. Consider the following MWE: \documentclass{article} \usepackage[...
user avatar
  • 601

1
2 3 4 5
17