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
1answer
39 views

Convert CV template from tex to html using make4ht

I am trying to get a proper html version of my cv from the tex file. I like to do the conversion as perfectly as possible so that the structure of the html can match with the pdf properly. cv.tex \...
1
vote
1answer
19 views

Can tex4ht use internal css instead of external css?

By default tex4ht uses external css, i.e., the generated HTML file contains a line like this: <link type="text/css" rel="stylesheet" href="jobname.css"> Can ...
1
vote
1answer
18 views

where is the tex4ebook configuration file in debian

Debian appears to load tex4ebook and tex4ht as part of TeXLive. I can run the packages, but they are not found by Synaptic. tex4ebook creates an EPUB document, but the SHOW METADATA function of ...
2
votes
1answer
69 views

Generating jpg images of Questions and Options in Exam Document Class through any method

The following is a code of TeX file. \documentclass{exam} \begin{document} \begin{questions} \question Sample Question \begin{choices} \choice choice 1 \choice choice 2 \...
1
vote
1answer
50 views

tex4ht in TL 2021 gives error on code that compiles OK with lualatex

Here is a MWE to reproduce it \documentclass[12pt]{article} \usepackage{graphicx} \begin{document} The following is plot of solution \begin{figure}[h] \centering \includegraphics[scale=0.45]{example-...
1
vote
1answer
25 views

Can I output arbitrary HTML code while converting LaTeX to HTML using make4ht?

My code: \documentclass{article} \newcommand{\world}{world} \begin{document} hello \world{} \end{document} I compile this with make4ht like this: $ make4ht foo.tex [STATUS] make4ht: ...
1
vote
2answers
58 views

Converting Latex \label to HTML ID attribute

Our organization has their reference manual published in LaTeX. It is a basic 300 page reference manual with tables, figures and sections. The organization also has publications database to track the ...
2
votes
1answer
32 views

Linking to \phantomsection with \ref does not work in make4ht

My code: \documentclass{article} \usepackage{hyperref} \begin{document} Top of document \section{Section heading} Top of section . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ . \\ ...
2
votes
1answer
46 views

Can I make cross-references between multiple HTML pages using make4ht/tex4ht?

Here is how my project looks. foo.tex: \documentclass{article} \usepackage{amsmath} \usepackage{hyperref} \begin{document} \begin{equation} \label{truth} 1 + 1 = 2 \end{equation} \( \eqref{truth} \) ...
1
vote
1answer
26 views

tex4ht and colortbl creates a misplaced \noalign error

It seems to be a problem still not solved (related to question 311689 and 73508). The usage of colortbl package with tex4ht causes the error: Misplaced \noalign. Here is a short example to reproduce ...
0
votes
0answers
28 views

htlatex with “early_” option shows error while using biblatex used tex file

while running biblatex used tex file in htlatex htlatex "file.tex" "xhtml,mathml,early_" "early_" this option shows below errors ! Undefined control sequence. \blx@tempa ....
1
vote
1answer
51 views

tex4ht, missing TFM files, and “make4ht -l”

I'm having a problem with make4ht/tex4ht identifying fonts. $ make4ht --version make4ht version v0.3g $ lualatex --version This is LuaHBTeX, Version 1.13.0 (TeX Live 2021/Cygwin) $ kpsewhich ...
3
votes
1answer
40 views

TeX4ht: can we prevent italic capital greek letters in mathml or mathml,mathjax output

I am trying to convert document to HTML with MathML rendered by MathJax (the reason is that pure mathjax output does not do proper equation numbering). Unfortunately, I get all the capital greek ...
0
votes
0answers
59 views

Extraction of high level objects from .tex source files

I have idea of a tool to conveniently skim through arXiv papers/articles. In short, it ought filter out parts of document based on its type (images, tables, formulas, paragraphs etc). Obviously it ...
1
vote
1answer
42 views

How to configure tex4ht to accept macros in TeX path?

I am using the configuration suggested in this answer to import a file Macros.tex containing a bunch of \newcommand macros to be processed using MathJax. It works as long as the main LaTeX file and ...
1
vote
1answer
33 views

Caption package breaks tex4ht automatic sectioning pagination

The caption package seems to break automatic sectioning pagination in tex4ht. The document test.tex \documentclass{article} \usepackage{graphicx, caption, blindtext} \begin{document} \part{Part ...
3
votes
1answer
40 views

Why does make4ht mathjax convert AMS gather environment to html code?

With the mathjax option, make4ht fails to render the following: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather} E=mc^2\\ e^{i\pi}+1=0 \end{gather} These ...
1
vote
2answers
57 views

htlatex: method to set fraction of textwidth as minipage width not compatible with TikZ

I am using the make4ht configuration from this answer to extract width as a fraction of textwidth from LaTeX code and add it to the CSS file. The configuration works as expected until I add a TikZ ...
1
vote
1answer
34 views

tex4ht does not scale math font along with text when using mathjax

In this MWE \documentclass{article} \usepackage{amsmath} \begin{document} \tiny All of this font should be tiny include the math \begin{align*} \sin x &= 1 \end{align*} \normalsize All of ...
1
vote
1answer
113 views

Tikz patterns library and dvisvgm4ht

Does the dvisvgm4ht driver with make4ht support the TikZ Patterns library? The following MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{patterns} \def\pgfsysdriver{pgfsys-dvisvgm4ht....
2
votes
1answer
34 views

Typesetting issues with make4ht and tex4ht--kerning of math characters seems too close

I am really loving make4ht and tex4ht, as they finally allow me to keep all of my tooling while generating web pages. One minor issue I am running into has to do with the kerning of some characters ...
3
votes
1answer
47 views

make4ht - broken cross references

I am using make4ht on the file Test.tex containing: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} Testing cross references for equations. \begin{equation} e^{\...
1
vote
0answers
21 views

tex4ebook: \bookmarksetup{startatroot} does not reset bookmark level

I'm compiling a .tex document to .epub with tex4ebook and I would like the back matter of the book (additional chapters, glossary, index, references) to appear in the bookmarks at the top level (same ...
0
votes
1answer
34 views

Convert two column tex document to html

I want to produce a html output for a basic two column article given in this link. I used htlatex to produce the html output. However the output is in single column format. Is there any way to ...
1
vote
1answer
32 views

tex4ebook: html parsing errors when content contains tables

I'm generating an .epub with tex4ebook. There are two sets of errors that come up during compilation, both related to parsing of html files that contain tables (unbalanced or unexpected tags). Any ...
2
votes
1answer
42 views

tex4ebook: issues with xifthen functions if biblatex is imported

I'm trying to generate an .epub with tex4ebook. One of the commands I've defined uses \ifelsethen and \isempty to check for empty parameters and produce different output depending on which parameters ...
2
votes
2answers
39 views

tex4ht using \(…\) in moving arguments

I'm using tex4ht to produce HTML that contains mathematical content to be rendered using MathJax. This question is about inline mathematical content in moving arguments, such as \section{\(y^2\)} and \...
0
votes
0answers
21 views

tex4ht problem when creating gif files

i have small tex file for tex4ht. With the following call: htlatex test.tex 'html,gif' it should generate test0x.gif, test1x.gif files and other dvi/html files. I tested with tex4ht 2019 and the ...
2
votes
1answer
44 views

tex4ebook subfigures: (1) side-by-side subfigures (2) styling changes when .tex inserted with \include

I'm using tex4ebook to generate an epub. I want subfigures to be placed side-by-side with subcaptions below the subfigures. I came across a couple of issues and I'd appreciate any hints for how to ...
1
vote
1answer
61 views

tex4ebook: .svg images are correctly resized with \includegraphics but not with \includesvg

I'm generating an .epub with tex4ebook. Most of the graphics I want to include are svg. If I include them with \includesvg, and specify the graphics path with \svgpath, I can compile the document with ...
0
votes
0answers
35 views

Trying to convert a .tex File into xml with tex4ht

i am trying to use tex4ht to create an xml file for my document written tex to be read on ebooks and such. My sample file is \documentclass[ebook,oneside,openany]{memoir} \usepackage{tex4ht} ...
3
votes
2answers
46 views

if caption package is loaded autoref doesn't work correctly when using htlatex

If I use autoref while the caption package is loaded, the target type does not appear in the reference if I generate html with htlatex. If I use pdflatex, autoref works as expected. Here's an example ...
3
votes
1answer
35 views

How to prevent make4ht from creating unnecessary span sibling tags in abstract?

make4ht is creating unnecessary span sibling tags in abstract. The following example shows this behavior: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{lipsum} \begin{document} \...
1
vote
1answer
36 views

Image for equation is not generated when compiling with make4ht and XeLaTeX

When compiling with make4ht and XeLaTeX engine, the images for equations are not created. Here is a sample code to illustrate it: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
2
votes
1answer
39 views

problem when using abnTEX2 class and make4ht

When creating HTML using make4ht for a document using the class abnTEX2, the generated document has a new paragraph for each diacritical marks in the abstract (only). An example file follows: \...
1
vote
1answer
31 views

Rotatexbox is not working with TEX4ht in a picture tabular enviroment

I'm trying to generate HTML from TeX and I want the tables to be converted into images. Here follows a simples example showing the problem I found when I have a rotated element in the table: \...
1
vote
1answer
48 views

tex4ebook - Change encoding of output to latin1

My tex4ebook ebook is formated in utf8. However, in the Kindle preview, characters are not shown correctly. Indeed, Kindle publishing seems to require latin1 encoding ... ( https://kdp.amazon.com/...
1
vote
1answer
74 views

Tex4ebook - reference within endnote / footnote reference

I use references to other endnotes within an endnote. Example: \usepackage{endnotes} \renewcommand{\footnote}{\endnote} ... \footnote{... siehe Fußnote \textsuperscript{\ref{org4b3dd1c}} (tex is ...
1
vote
1answer
32 views

Tex4ebook - cellspacing and cellpadding

my ebook created with tex4ebook contains cellspacing and cellpadding in tables. These attributes are not tolerated anymore (according to the ebookcheck). How can I remove them in the build process? &...
1
vote
1answer
58 views

Producing ODT from LaTeX using htlatex

The command htlatex filename "xhtml,ooffice" "ooffice/! -cmozhtf" "-coo" produces an ODT file with 2 major problems: All cross references are lost; and Figures not ...
1
vote
0answers
33 views

Horizontal lines in tabular with tex4ht

Let be the table: \documentclass{article} \begin{document} \begin{tabular}{|*3{c|}} \hline & \multicolumn{2}{c|}{test} \\ \cline{2-3} & test & test \\ \hline test & test & test \\ ...
2
votes
1answer
74 views

How to use tex4ht with the new Maple Latex style file?

Maple has a new Latex conversion software now. This converts Maple expressions (and whole documents) to Latex. Maple comes with its own style files which are now needed since the Latex generated uses ...
2
votes
1answer
60 views

Alternative TikZ drivers for tex4ht. Installation and first steps

I am new to tex4ht but not to tex or pdflatex. Since I could not correctly get text inside TikZ figures, I tried the solution proposed here. I've copied the pgfsys-dvisvgm4ht.def file to the home tree:...
4
votes
2answers
98 views

tex4ht gives \catcode`\^^ error when loading mathtools

I do not know if this is new error, caused by latest TL update. But this is first time I see it. This MWE compiles with no problem with lualatex, but gives (/usr/local/texlive/2020/texmf-dist/tex/...
1
vote
1answer
48 views

How to set table of contents in 2 columns with tex4ht?

This is tex4ht specific question. I'd like to set table of contents only to be displayed in 2 columns. Following article given in https://texblog.org/2013/08/14/tidy-and-compact-table-of-contents-with-...
2
votes
1answer
123 views

TeX4ht : How to configure new environment with arguments?

I'm using the tcolorbox package to produce definition and other theorems-like environments with xelatex, and I'm aiming now to convert my latex files to html files with make4ht. Here I must thank all ...
3
votes
1answer
66 views

tex4ht place maintext and footnote in the same file

I'm using tex4ht, or more specifically htxelatex, to convert a rather large xelatex file to HTML but I noticed that all my footnotes are turned into separate HTML files. Is there a way to tell the ...
1
vote
1answer
30 views

a problem configuring tex4ht after OCT TL update

I found another problem using tex4ht in mathjax mode after updating TL 2020 two night ago. Something that was working, now does not work. I had solution that allowed me to use a \newcommand correctly ...
3
votes
1answer
88 views

very serious problem with hyperref in tex4ht after TL Oct. update

This seems to have happened after I updated TL 2020 on my Linux last night. Now when building the same Latex file, with url{} in them, to HTML, using tex4ht, all the URL's are messed up and clicking ...
2
votes
1answer
86 views

! Paragraph ended before \doTocEntry was complete

I'm writing my thesis and stuck here. Below is my preamble and some code. I'm knew to latex and Don't know what is the problem with the code. \documentclass[twosided,12pt]{book} \usepackage[authoryear,...

1
2 3 4 5
16