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
1answer
28 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
30 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
48 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
54 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
55 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
30 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
41 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
32 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
26 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
22 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
46 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
35 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
54 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
37 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
28 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
27 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
42 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
33 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
20 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
20 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
18 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
125 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
74 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
29 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
22 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
25 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
58 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
57 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
55 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
21 views

Cross reference (\cite) separation - TeX4ht

My codes are follows: \documentclass{article} \usepackage{ifthen} \makeatletter \newboolean{Journal} \newboolean{Proceedings} \newboolean{NewProceedings}% 02-14-...
2
votes
1answer
27 views

Affiliation numbers in Author's Name - using TeX4ht

My code are follows: \documentclass{article} \usepackage{ifthen} \makeatletter \newboolean{Journal} \newboolean{Proceedings} \newboolean{NewProceedings}% 02-14-13 ...
2
votes
1answer
30 views

Uppercase Greek in Roman - TeX4ht

My code as follows: \documentclass{book} \usepackage{amsmath} \begin{document} \begin{align} \label{eq:ocdphi} E(\Delta\phi_{r,j}^s)&=g^s_r\tilde{\tau}_r+d\tilde{t}_r-d\tilde{t}^s-\mu_j\tilde{\...
4
votes
1answer
67 views

Use tabu with htlatex

I'm trying to export my Latex document to HTML, but run into problems using the tabu-environment. As a test case I use the following source file \documentclass{article} \usepackage[utf8]{inputenc} \...
0
votes
0answers
35 views

tex4ht: a link between 1.3 and 2.1?

I am using tex4ht. In my document, there is 3 sections, and 3 subsections in each section. When I am section 1.1, I can go to 1.2 using next. From 1.2, I can go to 1.3 using next. Is it possible to ...
2
votes
1answer
25 views

tex4ht: How to change the order of the prev / next / up?

I am using tex4ht. The "arrow" that are generated are in the ordre next/prev/up. I would prefers to have them in the ordre prev / up / next, on all the pages. Is there a way to do that? Christophe
4
votes
1answer
65 views

Are recent pstricks changes to PStricks incompatible with tex4ht?

There have been a few updates to pstricks on ctan recently. The code: \documentclass{article} \usepackage{pstricks} \begin{document} \begin{pspicture}(0,5)(2,2) \rput(1,1){Hi!} \end{...
5
votes
1answer
88 views

Use ODT Template for make4ht

When converting a document with pandoc to ODT or DOCX it is possible to specify a reference document with --reference-doc=. The produced file will use the styles from the reference document. This ...
3
votes
1answer
50 views

scrjura link does not become converted to html using tex4ht

This is a question for tex4ht experts. I'm writing contracts in German language. MWE: \documentclass[pagesize, ngerman, fontsize=12pt, parskip=half, ref=nosentence]{scrartcl} \usepackage[T1]{fontenc}...
1
vote
1answer
33 views

Using adjustbox in tex4ht does not work. Is this known limitation?

This MWE, thanks for solution from this post %----------------------------- \documentclass[12pt]{article} \usepackage{graphicx} \usepackage[export]{adjustbox} \begin{document} \begin{enumerate} \...
3
votes
2answers
78 views

tex4ht doesn't render \not correctly

I tried to htlatex the following code: \documentclass{article} \usepackage{amssymb} \begin{document} Given two sets $A,B$ such that $A$ is not a subset of $B$, i.e., $A\not\subseteq B$. \end{...
2
votes
1answer
60 views

tex4ebook: stack not empty at end of page?

I tried to compile an article, the source code of which is downloadable, to an ebook with tex4ebook. After some trivial modifications: --- ../formal.orig.tex 2018-11-23 17:05:07.032134691 +0100 +++ ...
2
votes
1answer
62 views

minilot and minilof with tex4ht

I'm working on an ebook and i'd like to have a list of figures/tables at the end of every chapter and only for that chapter (so just like minilot and minilof, but unfortunately minitoc doesn't work ...
2
votes
1answer
46 views

Is it possible to add an entry to the HEAD section of the HTML from inside the latex file with tex4ht?

I use a global .cfg file for all my latex source tree when compiling with tex4ht. This file has generic configuration common to all latex files. I'd like to add a specific META tags to the HEAD ...
2
votes
0answers
45 views

tex4ht: custom list of … (part 3 of 3)

This is a direct follow-up to tex4ht: custom list of … (part 2 of 3) I have a custom list of <things>. The code below provides two-way links between the occurrence of the <thing> on the ...
1
vote
1answer
38 views

Ligatures generated by tex4ebook inconsistently supported

As a followup to htlatex, garamond fonts, and nulled "ff" and "fi" strings on getting ligatures working correctly with tex4ebook, I've managed to get ligatures to not be replaces ...
1
vote
1answer
115 views

Tex file to HTML conversion

I tried to convert multiple .tex files, but I'm having problems with it, I tried htlatex, pandoc, latex2html, but none of them have worked. The one who at least show signs of success was using the ...
2
votes
1answer
32 views

Showing Paragraphs in ToC in tex4ht

I've been fiddling with this for three hours and I feel so lost because it seems like nothing I do has any effect on the tex4ht generated html. I have a fairly large document that I'm building as a ...
2
votes
1answer
64 views

tex4ht (or tex4ebook) is not compatible with ^\mathbb, _\mathfrak, etc

To export many mathematical articles and surveys to Kindle from the LaTeX source code, I am trying to use tex4ebook. It seems to me that I still need to hack many LaTeX codes to finish the compilation,...