Skip to main content

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
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
2 votes
1 answer
33 views

\nameref and \@currentlabelname don't work with tex4ht

I would like to be able to use \nameref and \@currentlabelname with tex4ht. Consider the following example file: \documentclass{article} \usepackage{hyperref} \newcounter{mylabelcounter} \begin{...
Daniel's user avatar
  • 23
1 vote
1 answer
33 views

TeX4ht: footnotes that reset per page get mixed up

I want to create footnotes that reset per page (think of translators' footnotes that are labeled by *, **, ... but are not global in a chapter). I set it up with perpage but when I generate HTML by ...
texrob's user avatar
  • 119
2 votes
0 answers
34 views

TeX4ht doesn't work with bigfoot

I've been translating a book that contains regular footnotes (1, 2, 3, ...) and I'd like to include another set of footnotes for the translator (*, **, ***, would reset per page) — in other words I ...
texrob's user avatar
  • 119
1 vote
1 answer
22 views

tex4ht warning cannot determine size of graphic

With tex4ebook I get warnings for tex4ht when includegraphics, and the images are squared in the epub and not rectangular like in the pdf, so they seem a bit distorted. TeX4ht warning --- Cannot ...
Thomkrates's user avatar
1 vote
1 answer
52 views

handling \raisebox in tex4ht with mathjax mode [closed]

Latex generated by Maple uses \raisebox in some places. This causes problem in mathjax. First will show the MWE and then show some attempts I made to fix it but it is not working well. I can't modify ...
Nasser's user avatar
  • 20.3k
1 vote
1 answer
43 views

Color not coming in Make4ht

My codes are: \documentclass[]{article} \usepackage{array,booktabs,makecell} \usepackage{relsize} \usepackage{collcell} \usepackage[table]{xcolor} \usepackage{pgf} % \usepackage[flushleft]{...
MadyYuvi's user avatar
  • 13.9k
1 vote
1 answer
45 views

How to use alternative make for parallelizing dvisvgm in make4ht on windows

On linux, make4ht is able to parallelize the build of SVGs in dvisvgm. It looks like dvisvgm_hashes.lua expects to run exactly "make -j". I'm stuck with jom (https://wiki.qt.io/Jom) for ...
Allen's user avatar
  • 25
1 vote
1 answer
35 views

Increase SVG size in make4ht

I would like to increase the default scale of dvisvgm as invoked from the make4ht scripts. Is there a way to pass the "scale" option to dvisvgm_hashes from the command line? Thanks, Allen
Allen's user avatar
  • 25
1 vote
1 answer
26 views

Add translate="no" attribute in the elements generated from code listings

I'm using make4ht to convert .tex files to HTML, and I added google translate API to the generated website, but some elements shouldn't be translated and adding translate="no" attribute to ...
Valdinei Rodrigues's user avatar
1 vote
1 answer
100 views

Pagenotes with multiple index and useage with tex4ebook - needs support

Please refer to \index in \pagenote with splitindex option (for multiple index) With the following MWE no epub could be made with tex4ebook. \documentclass{report} \usepackage{index} \usepackage[...
Thomkrates's user avatar
1 vote
1 answer
65 views

tex4ht - how to properly number equations (MathJax)

I'm using \numberwithin{equation}{section} in my LaTeX preambule and I'd like that the same numbering applies in resulting HTML when compiled using tex4ht. My latex code block in Section 2 is: This is ...
user2743931's user avatar
1 vote
1 answer
19 views

make4ht place footnotes container inside "main-content" container

My MWE is: \documentclass{article} \begin{document} Test \footnote{This is a test!} \end{document} When I compile using this configuration file (.cfg): \Preamble{xhtml,html5,fn-in} \Configure{...
Valdinei Rodrigues's user avatar
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
1 vote
1 answer
36 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
45 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
65 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
  • 976
1 vote
1 answer
58 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.3k
2 votes
1 answer
91 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
57 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
  • 119
2 votes
1 answer
79 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
67 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
  • 125
1 vote
1 answer
58 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.3k
2 votes
1 answer
109 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
122 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
182 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.3k
3 votes
2 answers
108 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.3k
2 votes
1 answer
36 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
65 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.3k
1 vote
1 answer
70 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.3k
2 votes
1 answer
41 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.3k
0 votes
0 answers
108 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
32 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
40 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
108 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
  • 125
1 vote
1 answer
18 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
27 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
51 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.3k
2 votes
1 answer
49 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
2 votes
1 answer
42 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 ...
pdy-ind's user avatar
  • 2,122
2 votes
2 answers
108 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.3k
2 votes
1 answer
56 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
41 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 , ...
pdy-ind's user avatar
  • 2,122
1 vote
1 answer
36 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
54 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.3k
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
3 votes
1 answer
93 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.3k
2 votes
1 answer
59 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.3k
2 votes
1 answer
75 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.3k

1
2 3 4 5
19