Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tex4ht]

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

3
votes
0answers
31 views

how to fix inline math alignment in svg mode when using tex4ht?

fyi, reported also to tex4ht bug tracking https://puszcza.gnu.org.ua/bugs/index.php?424 This is a problem I knew about for years now, and never got the chance to ask about it except now. When using ...
5
votes
1answer
94 views

how to improve SVG for math resolution in tex4ht?

make4ht now supports both mathjax and svg for math. I noticed that the math displayed in the browser when using mathjax mode looks sharper/crisper than when using svg for math. So this question ...
1
vote
0answers
24 views

tex4ht: incompatibility of cleveref and amsthm?

I found that tex4ht doesn't work with cleveref and amsthm. I just modified the HWE from an old post: \documentclass{article} \usepackage{hyperref} \usepackage{amsthm} \usepackage{cleveref} \...
2
votes
1answer
27 views

tex4ht: Wrapping several paragraphs inside a div tag

I want to wrap several paragraphs inside a div with a custom class, but the div is closed automatically in the resulting HTML when a new paragraph begins. This shows the issue: \documentclass{...
4
votes
1answer
50 views

problem with Vertical alignment of text and images in long table when using tex4ht

With the help of experts in Yet another images in tables question alignment. Want text to start at top of cell. Not cetered I can now get text to show in correct place with images in a long table, ...
1
vote
1answer
20 views

frame option from adjustbox does not work in tex4ht

This MWE works in pdf. It puts frame around an image. But in HTML I see no frame produces \documentclass[12pt]{article}% \usepackage{graphicx} \usepackage[export]{adjustbox}%for frame option \begin{...
2
votes
1answer
56 views

error from pgflibraryfadings when adding tcolorbox with new tex4ht tikz driver. TL 2019

Just installed fresh TL 2019. I was trying the new tikz driver for tex4ht. I found this error. Here is a MWE. This error only shows up in tex4ht and not in lualatex and it shows up only when adding ...
2
votes
1answer
83 views

What is current status of using tikz with tex4ht?

I am completely confused now about how to use tikz with tex4ht, since there seems to be some latest changes and not able to figure what is the way to make it work. Here is a MWE, which I'd like to ...
2
votes
1answer
41 views

tex4ebook or tex4ht: optional arguments for \title not supported

Sample code: \documentclass{amsart} \begin{document} \title[Short]{Long} \maketitle Hello \end{document} compiled with tex4ebook, the optional argument of \title is mistakenly proceeded (the ...
1
vote
1answer
41 views

tex4ebook: nodes vanishes for TikZ?

The test code: \documentclass{amsart} \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{fadings} \DeclareMathOperator\Spec{Spec} \newcommand\Z{\mathbb Z} \newcommand\OO{\mathcal O} \begin{...
2
votes
1answer
39 views

tex4ebook or tex4ht: confliction of amsart, hyperref and `\part`?

The test code: \documentclass{amsart} \usepackage{hyperref} \begin{document} \part{Part1} \section{Sec1} \section{Sec2} \part{Part2} \end{document} Compiled with tex4ebook, it returns with ! ...
1
vote
0answers
26 views

tex4ebook generates incorrect hyperlink references

I am sorry that I am unable to extract a minimal working example. I downloaded the source code from arxiv, commented out \usepackage{times,fullpage} and \usepackage{xr-hyper} in the preamble: \...
3
votes
1answer
90 views

Error when rendering svg

I'm trying to generate a svg image of a reaction mechanism. However I keep receiving the error: ! Undefined control sequence. \pgfsys@svg@newline ->\Hnewline when running the command make4ht -u "...
2
votes
1answer
55 views

tex4ebook (or htlatex) doesn't treat (mathematical) accents properly?

I tried some codes like \documentclass{amsart} \begin{document} Let's see $\widehat{\mathcal F}=\hat F=\bar F=\tilde F=\overline F$. \end{document} with default compilation. Only \overline is ...
1
vote
1answer
31 views

tex4ebook: How to use dvisvgm_hashes properly?

I tried to compile a tex file with a lot of math formulae. I tried tex4ebook -c test.cfg -f epub+dvisvgm_hashes test with the test.tex \documentclass{amsart} \begin{document} Two formulae ...
2
votes
1answer
41 views

htlatex: img with alt tag and custom class

This question is something of a follow-up to tex4ht: customize \includegraphics conversion to HTML and also to When generating html, how do you specify image size? background In my .tex file I ...
4
votes
1answer
53 views

Beamer to HTML using make4ht

\documentclass{beamer} \usetheme{Madrid} \begin{document} \begin{frame} aaa \end{frame} \begin{frame} bbb \end{frame} \end{document} The above tex file is to be converted into html. I am using the ...
2
votes
1answer
23 views

tex4ebook (or tex4ht) doesn't treat newcommand and sub/supscript well in math mode

I found that tex4ebook (or tex4ht) doesn't treat well with subscripts or superscripts in \newcommand. For example, \documentclass{amsart} \newcommand\dotimes{{\otimes}^{\mathbb L}} \newcommand\...
3
votes
1answer
29 views

Multiple boxes with many rows on a line with wrapping when overflowing

I would like to have multiple boxes with many rows on a line with wrapping when the boxes are overflowing. The idea would be to build a custom contributors/reviewers environment that I can also use ...
0
votes
0answers
45 views

Tex4ht not generating html tags

I'm trying to generate an html document from my .tex file (I just need paragraph and link formatting, nothing fancy). I'm using Texmaker 5.0.3, Miktex 2.9 on Windows 10, with the tex4ht package ...
1
vote
1answer
57 views

Proper enumerate with tex4ht/make4ht and no css style sheet

I'm attempting to convert a LaTeX document of mine as no-style sheet html to be copy-pasted as a (Wordpress) blog post (thus the css-less requirement). So, I've started from michal.h21's instructions ...
1
vote
1answer
67 views

Making hyperlinks working with cleveref and htlatex/TeX4HT

Following Are htlatex (TeX4HT) and cleveref compatible? I am able to create cross-references with cleveref package with htlatex. Still, these cross-references are not hyperlinked, while those created ...
1
vote
1answer
23 views

TeX4ht generates double footnotes when footnote is defined inside of a csquotes blockquote

TeX4ht generates a double footnotes when a footnote is defined inside of a csquotes \blockquote. Here is a LaTeX reproducible example: \documentclass[a4paper]{report} \usepackage{csquotes} \...
4
votes
1answer
58 views

tex4ht \Css code works using standard book class but has no effect using koma-script scrbook class

I am using a \Css configuration which centers a caption under a figure thanks to how-to-make-caption-be-centered-under-table-when-using-tex4ht Now I find this does not work if I change document ...
1
vote
0answers
40 views

On centering image on a web page using tex4ht. Is this the correct way?

Images using tex4ht do not show centered on the web page. I'll show a MWE and what I tried. \documentclass[11pt]{article}% \usepackage{graphicx} \usepackage{float} \begin{document} This is some ...
1
vote
1answer
43 views

Superscript not working in footnotes in tex4ht output

When I use \textsuperscript in footnotes (in memoir class, compiled with xetex), tex4ht fails to make the text in question superscript, even though it does so successfully in the main body text. I ...
2
votes
1answer
34 views

spuriously italicized footnote hooks in tex4ht output

tex4ht spuriously italicizes footnote hooks (e.g., "1" for the first footnote) at the bottom of the page when the first word of the footnote is italicized. MWE: %!TEX TS-program = xelatex %!TEX ...
1
vote
1answer
29 views

section numbering in tex4ht using memoir class with article option

tex4ht seems to ignore the article option in the memoir class. I say this because section numbers (and the corresponding cross-references) appear as 0.1, 0.2, etc. instead of 1, 2, etc. when ...
1
vote
0answers
24 views

spurious section breaks in tex4ht's output before lists, block quotes, etc

When I use tex4ht to convert a xelatex document using the memoir class to .odt (and then convert that to .docx), spurious Section Breaks appear throughout the resulting .docx file. They appear ...
1
vote
1answer
72 views

adjusting formatting of footnotes in tex4ht's .docx output

A default Word document formats footnotes as follows: at the bottom of the page, the footnote hook (e.g., the number '1') appears in superscript, then there is a space, then the footnote text begins. ...
1
vote
1answer
30 views

shortcut macros not working in TeX4ht

\documentclass{book} \begin{document} \newcommand{\testscsar}{E_c} This is for test $Ec\testscsar$ \end{document} Above code works everything fine to generate HTML conversion, but if I place the \...
0
votes
0answers
51 views

Writing config.cfg for htlatex

I wish to write my own config.cfg file (used by htlatex to convert .tex to html) that uses my custom defined header/footer, frames and background.
2
votes
1answer
60 views

hyperreferencing include files

I have a latex file that i wish to convert into an html document. It is made up of many sub-files with a master document. I want to hyperlink different parts/sections of these files(included/master-...
1
vote
0answers
44 views

Using minitoc and hyperref with tex4ebook

the question results from this thread minilot and minilof with tex4ht . when compiling with tex4ebook, there seems to be a problem with the hyperref package when generating the minilot and minilof: ...
1
vote
1answer
34 views

mathdisplay in tex4ebook

i've read this question Choppy equations with tex4ht and currently im displaying math as png pictures with the mybuild.mk4 file Make:image("png$","dvipng -bg Transparent -T tight -D151 -o ${...
1
vote
1answer
28 views

tex4ht produces a corrupted file when a \label and a \ref to that label use a double-hyphen

When my document has a figure with a \label{aa--bb} or any other label that uses two hyphens (-) in a row (--), tex4ht produces a corrupt .odt file. Is there a way to fix this bug? MWE Using the ...
3
votes
1answer
45 views

longtable with caption has extra edge lines in tex4ht

When I compile this MWE in lualatex \documentclass[11pt]{article}% \usepackage{longtable} \begin{document} This is my long table \begin{longtable}{|c|c|} \caption{my caption}\\\hline A & B \...
3
votes
1answer
37 views

how to make tex4ht center a long table as it does with table?

when using \centering option in table, and then using either tabular or longtable then both come out centered in PDF as expected. But in tex4ht, only the tabular comes out centered in middle of the ...
2
votes
1answer
28 views

How to remove lines added above and below table when using tex4ht?

tex4ht for some reasons added extra horizontal lines above and below each table. While these lines do not show in pdf. Here is a MWE \documentclass[11pt]{article}% \usepackage{float} \begin{...
3
votes
1answer
24 views

how to make caption be centered under table when using tex4ht?

What is the correct way to force tex4ht to put the caption under the table like it shows in pdf? The caption always comes out shifted to the edge, while the table is centered OK in the middle of the ...
1
vote
1answer
23 views

How to wrap an hyperlink generated with a new command with Tex4ht?

I'm defining a new command to generate achromatic hyperlinks as follows: \newcommand{\CNameRef}[1]{{\hypersetup{hidelinks}\nameref{#1}}} It works well with the PDF output however the HTML version of ...
5
votes
1answer
133 views

A new problem with tex4ht and tikz

When run through pdflatex the code snippet below produces: but when I run it through make4ht the following web page, without the numbers, is generated: (The difference in scale is an artifact of my ...
2
votes
1answer
83 views

Using ODT styles in a reference template to format make4ht

Following my recent question Customizing ODT output from mk4ht oolatex and a improved process alternative described here: Use ODT Template for make4ht (which makes use of direct formatting by using ...
2
votes
1answer
33 views

Conditions under which the paragraph <p> tags are generated by Tex4ht

I would like to understand better what is responsible in Tex4ht for inserting the <p class="indent"></p> and <p class="noindent"></p> tag statements. I get a lot of empty ones ...
1
vote
1answer
27 views

Problems with verse environment from xelatex to docx via tex4ht

Note: To convert from XeLaTeX source to .odt/.docx, I am using the solution provided by Michal Hoftich. (See there for MWE and the solution by @michal.h21.) The present question is follows upon an ...
2
votes
1answer
29 views

How to prevent the loss of a Greek Unicode character when converting to ODT using tex4ht

To convert from XeLaTeX source to .odt/.docx, I am using the solution provided by Michal Hoftich. (See there for MWE and the solution by @michal.h21.) That setup works great for converting Unicode, ...
3
votes
1answer
81 views

Using tex4ht to convert from XeLaTeX source that uses Unicode-named macros to Word (.docx) format

I asked a very similar question several years ago on the tex4ht listserv and received a very helpful answer from Michal Hoftich. He described certain limitations for working with Unicode and tex4ht ...
4
votes
1answer
69 views

why \textcolor works but not \color in tex4ht?

In this MWE \documentclass{article} \usepackage{xcolor} \usepackage{pifont}% http://ctan.org/pkg/pifont \newcommand{\cmark}{\ding{51}} \newcommand{\xmark}{\ding{55}} \begin{document} Why this is ...
3
votes
1answer
68 views

biblatex + TeX4ht

My tags are follows: \documentclass{book} \usepackage[english]{babel} \usepackage[notes, short, backend=biber]{biblatex-chicago} \usepackage{xpatch} \usepackage{endnotes}% \let\footnote\endnote% \...
2
votes
1answer
24 views

Cross reference (\cite) separation - TeX4ht

My codes are follows: \documentclass{article} \usepackage{ifthen} \makeatletter \newboolean{Journal} \newboolean{Proceedings} \newboolean{NewProceedings}% 02-14-...