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
29 views

Problem with index when using tex4ebook and sanitize-umlaut

I used the package sanitize-umlaut for more convenient use of indexing in german. But producing an ebook the index lacks links to the index entries. Here is the MWE: \documentclass{report} \...
Thomkrates's user avatar
3 votes
1 answer
32 views

make4ht \boxed rendering wrong when using MathML

My MWE is: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \boxed{A} \boxed{B} \] \end{document} When I compile using pdflatex I got the two boxes side by side, but when compiling ...
Valdinei Rodrigues's user avatar
1 vote
1 answer
42 views

Combination of \cline and p-type column in table seems to break make4ht

I am trying to convert a .tex file into .odt using make4ht. This is the MWE that is able to generate the error that I face: \documentclass[a4paper,12pt]{article} \usepackage{multirow} \usepackage{...
Miloop's user avatar
  • 699
1 vote
1 answer
53 views

tex4ht breaks URL text leading to empty spaces between words generated in final HTML when \urldef

I use \urldef in order to make href, because the names are folder/file path which can contain many different strange characters. This works fine in PDF with lualatex. But I noticed that the HTML ...
Nasser's user avatar
  • 20.9k
2 votes
1 answer
81 views

Change font of tikz diagrams in html produced by make4ht

I'm building an html document from latex file using make4ht. I've successfully set the font of document body to Libertinus Serif using CSS. But I can't set the font that's used by make4ht to build ...
Ivan's user avatar
  • 33
1 vote
1 answer
49 views

TeX4ht does not generate accented characters (with dot below) correctly

I want to generate accented characters (with dot bellow) in HTML from LaTeX using TeX4ht. This is my MWE.tex: \documentclass{book} \begin{document} \d{s} \d{ŕ} \end{document} I get HTML using ...
texrob's user avatar
  • 87
1 vote
0 answers
40 views

Why text4ht does not produce colored text using \color command with xcolor package? [duplicate]

Is there a reason why tex4ht does not produce color using the command {\color{red} {some colored text}} But only when using the command \textcolor{red}{some colored text} I started using the first ...
Nasser's user avatar
  • 20.9k
2 votes
1 answer
73 views

make4ht compiled HTML math doesn't justify with text

My test.tex MWE is: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{mathtools} \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam a ...
Valdinei Rodrigues's user avatar
0 votes
0 answers
66 views

User TeX Macro Expansion for XHTML

Is there way especially in math the user defined macros (even complicate definition) should get expand and the expanded version should stored in the respective equation. Basically, this to retain the ...
RampSmart's user avatar
  • 103
1 vote
1 answer
52 views

\downarrow is not centered in table when using tex4ht with column type centered paragraph

I am making a table, with one column. The table is centered. The column type is centered paragraph. I am using \downarrow for annotation between each row to indicate transformation made. In pdf, ...
Nasser's user avatar
  • 20.9k
2 votes
1 answer
71 views

make4ht math input error when using amsmath

My MWE is the file test.tex here: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{mathtools} \begin{document} \begin{equation} y[n] = \begin{cases}...
Valdinei Rodrigues's user avatar
1 vote
1 answer
103 views

error using htlatex and no output file is generated :(

I am very new to using LaTeX so please be kind :) Specs: Using Windows OS, TexLive, Overleaf(initially). Used the accessible package from https://libguides.lib.msu.edu/c.php?g=995742&p=8207771 ...
Locke's user avatar
  • 13
6 votes
1 answer
181 views

tex4ht produces funny characters in table (TL 2023 only)

I noticed tex4ht generates funny characters now in table when surrounding table with \begin{small}...\end{small} and at same time using p-width as option. This happens only in TL 2023. Here is an MWE ...
Nasser's user avatar
  • 20.9k
3 votes
2 answers
99 views

tex4ht gives compile error when using transparent package

I was trying https://ctan.org/pkg/transparent package. I get an error when using it with tex4ht. Same code works OK in lualatex and pdf. Is there a way to make it work with tex4ht? Here is MWE \...
Nasser's user avatar
  • 20.9k
2 votes
1 answer
32 views

Strange tex4ht behaviour with Devanagari text

I'm currently writing some text citing a lot of international literature, which I like to quote genuinely i.e., without using latin approximations. This in general works well using polyglossia, but ...
Lars Hanke's user avatar
1 vote
1 answer
64 views

How to use verbatimbox in tex4ht? Compile error. OK in pdf

I found great solution here which allows one to use verbatim as second argument for href. It is the only solution I found after trying many, where I can use verbatim as second argument of href. (No, I ...
Nasser's user avatar
  • 20.9k
1 vote
1 answer
65 views

How to modify existing environment in one place only for tex4ht?

I need to modify enumeration list environment, but just in one place and not globally, for tex4ht. I have reason where this one particular enumeration list, I need it not to wrap. i.e. each \item ...
Nasser's user avatar
  • 20.9k
2 votes
1 answer
36 views

How to keep titlepage centered when using tex4ht?

This is tex4ht issue only. I use \begin{titlepage}...\end{titlepage} in some documents. After I started using p {text-align:justify; } in my configuration for tex4ht, I noticed now all the titles are ...
Nasser's user avatar
  • 20.9k
0 votes
0 answers
84 views

Why is tex4ht not installing?

I've installed TeX Live, but was told that there was an error installing tex4ht, and to run tlmgr update --all --reinstall-forcibly-removed to fix it. I did so, but got this: tlmgr.pl: package ...
The Eye's user avatar
0 votes
0 answers
27 views

how to turn off the Image creation in TeX4ht

I don't want to reproduce the images as any format, like png, I need to turn off the options, For the equation, I am using the mathjax option I run the file through make4ht.exe -l -a debug -u -c mycfg....
sizr's user avatar
  • 55
1 vote
1 answer
33 views

\multirow in tex4ht -- in the next row extra <td> not removed and produced wrong HTML view

In tex4HT, \multirow produced the HTML output, but the extra <td> element not deleted when the previous row has more rows option (\multorow) I run the file through make4ht.exe -l -a debug -u <...
sizr's user avatar
  • 55
1 vote
1 answer
93 views

Table Column Alignment to HTML

How to retain the LaTeX tabular cell alignment in the converted HTML col element? For example: \begin{tabular}{**lcr**} should convert as <col align="**left**" ..><col align="...
RampSmart's user avatar
  • 103
1 vote
1 answer
15 views

redefined section configuration \Configure{likesection} in TeX4HT shows error

I redefined the configuration of \section and \section* in cfg file for modifying the HTML output, I am getting the below error (see the screenshot below). I used amsart.cls, when changing class file ...
sizr's user avatar
  • 55
0 votes
1 answer
23 views

Long table showing error when running tex4ht

Long table showing below error when running tex4ht, but it is running in normal latex compilation. Please suggest how to rectify this error in TeX4HT? I am running through make4ht.exe -l -u -a debug ...
sizr's user avatar
  • 55
2 votes
1 answer
50 views

Adding hyperref package makes tex4ht change its split level order

I noticed big problem. When I was using split level on document, which should split it at section level because I used level 2, it did not. It turned out when I remove the hyperref, then it does the ...
Nasser's user avatar
  • 20.9k
2 votes
1 answer
41 views

TeX4HT - How to add extra tag on theorem-like environments

I am using TeX4HT to convert LaTeX into HTML. I need the HTML structure of theorem-like environment to be like below: The <div> class attribute value should be the name of the type, such as ...
sizr's user avatar
  • 55
1 vote
1 answer
37 views

Re configuring theorem like environment in tex4ht

When configuring the theorem like environment, the para tags are wrongly inserting when inline equations before like below in the screenshot, I tried to correct, but unable to update, How to achieve ...
RCV's user avatar
  • 2,000
2 votes
2 answers
96 views

listings package in tex4ht. How to prevent listing code from wrapping long lines

This issue is for tex4ht only. Summary of the current problem I'd like to make the HTML page smaller width (so easier to read) using say max-width:700px; but at the same time, I do not want to have ...
Nasser's user avatar
  • 20.9k
2 votes
1 answer
44 views

htlatex with tcolorbox ignoriing left whitespace inside box

I am using the tcolorbox package and I need to produce html output together with pdf output. When I use tcolorbox with pdflatex it works fine and produces a nice box with space on either side. Wnen I ...
user12833's user avatar
2 votes
1 answer
32 views

How to reconfigure maketitle, author and affiliation in tex4ht

I am trying to reconfigure the \title{}, \author{}, \affiliation{} in tex4ht. I am unable to reconfigure, i am facing the below issue. need to re-configure title as need to configure subtitle as , ...
RCV's user avatar
  • 2,000
1 vote
1 answer
30 views

Index not listed in TOC and no hyperlinks in Index after tex4ebook conversion

The MWE below creates and index with hyperlinks on pages in the generated PDF. The index also appears in the TOC. However, the epub generated with tex4ebook looks great and the index appears. However, ...
buttonsrtoys's user avatar
1 vote
1 answer
51 views

Why doesn't centered paragraph work inside table with tex4ht?

I am using the solution given in How to vertically-center the text of the cells? by Jimi Oke, which works well for me: If you also want to align all the cell contents toward the center in a ...
Nasser's user avatar
  • 20.9k
1 vote
1 answer
130 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) ...
RCV's user avatar
  • 2,000
3 votes
1 answer
92 views

tex4ht duplicates TOC in two columns in TL 2023 but OK in TL 2022. What changed?

I found a problem in TL 2023 on same document and same command, where now tex4ht duplicates the TOC in two columns instead of spreading the TOC over the two columns as it always did before. Same ...
Nasser's user avatar
  • 20.9k
2 votes
1 answer
56 views

Large difference in spacing of TOC between book and article class with tex4ht. How to make them both use same spacing?

Compare this TOC in book class with tex4ht \documentclass[12pt]{article} \setcounter{tocdepth}{5} % for main TOC must be in preamble \setcounter{secnumdepth}{5} \begin{document} \title{my book} \...
Nasser's user avatar
  • 20.9k
2 votes
1 answer
72 views

How to get same TOC for tex4ht as with PDF?

TOC in tex4ht still confuses me to this day. Does one still need to use \Configure{tableofcontents*}{section,subsection,etc...} or can tex4ht use the standard latex setting used for PDF, which is \...
Nasser's user avatar
  • 20.9k
1 vote
1 answer
45 views

Using lstinputlisting with tex4ht hides all ASCII characters in the caption?

I'm using tex4ht to build my LaTex source to EPUB. Currently I'm having problems with lstinputlisting, where the caption (in Vietnamese) isn't showing up correctly. \lstinputlisting[float,language=C++,...
Giang's user avatar
  • 13
2 votes
0 answers
49 views

tex4ht in TL 2023 broke something in handling breqn compared to TL 2022

This MWE compiled under TL 2022 gives correct output, while using same command and same configuration file, under TL 2023 gives wrong output. Here is MWE \documentclass[12pt]{book} \usepackage{amsmath}...
Nasser's user avatar
  • 20.9k
1 vote
1 answer
36 views

Fontspec interfering with footnote sizing in tex4ebook

After playing around with tex4ebook, I've noticed that italic and bold in footnotes don't work correctly if fontspec package is loaded. It applies the bold/italic, but the text is no longer footnote ...
ArneHeiko612's user avatar
3 votes
1 answer
57 views

tex4ebook does not render Japanese text

I'm trying to use tex4ebook to generate an epub file from a project in LaTeX. The original project, targetting pdf, uses XeLaTeX and the package xeCJK, and works fine. With tex4ebook, I get the ...
Sérgio Domingues's user avatar
3 votes
1 answer
95 views

Using -a warning in make4ht does not stop at first error

sometimes I like to use -a warning with make4ht to reduce the amount of information printed. The big problem is that it does not stop at first error. It keeps running. When I change to -a debug it ...
Nasser's user avatar
  • 20.9k
1 vote
1 answer
68 views

Introducing Arbitrary book cuts for Tex4Ebook

Whenever I try to introduce arbitrary cut points with tex4ebook, I'm getting the pages returned in a strange, incorrectly ordered way. Here's my MWE: \newcommand{\mycut}{} \begin{document} A \mycut{} ...
ArneHeiko612's user avatar
2 votes
1 answer
41 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
1 vote
1 answer
47 views

tex4ebook/tex4ht epub: tcolorbox How to center title and set title font

pdftex sets the box in the mwe below correctly with a centered, large, bold title. However with tex4ebook it is neither centered nor bold and large. Please help me set a centered, bold, larger font ...
David B's user avatar
  • 357
7 votes
2 answers
417 views

13 figures OK, 14 figures gives ! LaTeX Error: Counter too large. only with tex4ht and subfigure

I changed to using subfigure inside figure. Now when I include more than 13 figures in one document, tex4ht gives ! LaTeX Error: Counter too large. Same document compiles OK with lualatex. I made MWE ...
Nasser's user avatar
  • 20.9k
1 vote
1 answer
84 views

How can I convert a chess PDF to a HTML file to include diagrams using tex4ht?

I'm trying to convert a chess pdf to html file before converting to mobi and keeping it with the diagrams. I'm doing this through tex4ht on TeXStudio. I have the code: \documentclass{article} \...
Cauê's user avatar
  • 11
1 vote
1 answer
399 views

LaTeX mark Error: Infinite shrinkage found in 'page'. when using tex4ht only

ps. I can not paste the whole MWE here as I get error Body is limited to 30000 characters; you entered 501493 This is using the smallest size of the table I can make it while producing the error. I ...
Nasser's user avatar
  • 20.9k
2 votes
1 answer
41 views

tex4ebook: file nameof image appears right next to the image in the ebook, etc

I am using tex4ebook to convert a memoir class document into epub. The document has several images included thru \includegraphics{}. The images are saved as .eps in the same folder as the .tex file. I ...
SPRIyer's user avatar
  • 23
2 votes
1 answer
40 views

tex4ebook: How to get colored text in tables

Extending the question here, is there also a way to get a colored text in a tabularx environment? Here is an MWE: \documentclass[12pt]{book} \usepackage{tabularx} \usepackage{xcolor} \newenvironment{...
Jack's user avatar
  • 314
1 vote
1 answer
47 views

tex4ebook: Numbering in Table of Contents

tex4ebook adds an additional numbering in front of each part/chapter/section etc in the table of contents: 1. I First Part 1. 1 First Chapter of Part 1 1. 1.1 Header of Section 1 2. 1.2 ...
Jack's user avatar
  • 314

1
2 3 4 5
19