Questions tagged [tex4ht]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
22 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
31 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
19 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
36 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
42 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
28 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} ...
4
votes
2answers
41 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 ...
2
votes
1answer
24 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
27 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{...
1
vote
1answer
27 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
30 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
37 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
53 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
25 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
35 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
25 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
56 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
57 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
83 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
38 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
83 views

TeX4ht : How to configure new environnement 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 ...
2
votes
1answer
41 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
29 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
77 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
58 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,...
2
votes
1answer
32 views

tex4ht: inline equations after subsubsection and theorem

MWE: \documentclass{amsart} \newtheorem{theorem}{Theorem} \begin{document} \section{SecTmp} \subsection{SubsecTmp} \subsubsection{SubsubsecTmp} \begin{theorem} \end{theorem} Here, \(H_n^i(X)\) \end{...
1
vote
1answer
37 views

latex to html conversion with make4ht - pictures' width and height

I'm approaching the issue of converting TeX documents to html. After some googling and reading, I ended up with make4ht. As a starting point, I'm trying to convert a simple tex document to html (+css) ...
2
votes
2answers
56 views

How to use \ifdefined inside align*

I need to use \ifdefined inside align to tell latex to use different code for pdf and for tex4ht. But it gives an error. Is there any way around this (other than putting the ifdefined outside ...
1
vote
1answer
47 views

How to make tex4ht ignore some commands automatically?

I need to use some latex command, which only makes sense when compiling to PDF. The typical way to process the same latex file by both lualatex (or pdflatex) and tex4ht, is to use \ifdefined\HCode to ...
3
votes
1answer
26 views

Problem with boldmath followed by super or subscript in tex4ebook

The latex file \documentclass{amsbook} \begin{document} $\mathbf{x}^y$ \end{document} when compiled with tex4ebook -f epub3 test "mathml" produces the following mathml: <math xmlns=&...
0
votes
1answer
40 views

enumerate item showing errors in tex4ht

The below LaTeX enumerate list and after end{equation}\\ showing errors in tex4ht. How do solve this? I know to solve this errors through Lua Script. But i would like to know how to fix this type of ...
1
vote
1answer
26 views

Inline Equations problems in tex4ht

My Line Equations are: $k'^4_{i}$ i'm expecting this $k^{\prime 4}_{i}$ How to change ' to \prime and grouping all the things. How to do?
0
votes
0answers
29 views

How to work the below equations in tex4ht/make4ht

I have very very simple equations. It's working well in PdfLaTeX and not working in tex4ht. \documentclass[a4paper,twoside]{book} \begin{document} $K^\mathrm{mno}$ \end{document} I know before ...
0
votes
0answers
24 views

PdfLaTeX is working fine and tex4ht is not working and showing error

The below simple equations are working fine in PdfLaTeX and not working in fine htlatex. My MWE is: \documentclass[11pt,reqno]{article} \def\a{\alpha} \begin{document} Test $\varphi_{\a}$, $\varphi_1$ ...
1
vote
0answers
54 views

LaTeX to html pages with interactive features

My search has brought to several questions with a similar gist to mine, but I could not find a satisfying ansewr to my specific needs. In addition, these threads were quite old and maybe things have ...
1
vote
1answer
56 views

tex4ht does not handle \ifdefined\HCode in mathjax mode

This is issue with tex4ht only. This is the first time I found where tex4ht does not process \ifdefined\HCode. I put \ifdefined\HCode inside an equation, since I need different code for HTML vs. pdf ...
1
vote
1answer
50 views

tex4ebook and minted

I'm evaluating the possibility to convert my latex book to epub3. This is the MWE: \documentclass[a4paper,11pt]{book} \usepackage[top=1in, bottom=1in, left=1.1in, right=1in]{geometry} \usepackage[T1]{...
2
votes
1answer
62 views

How should I work with multiple make4ht filters?

As I use tex4ht/make4ht more, I find I'm building up a collection of my own customisations. To help organise this, is there a recommended way to manage including (multiple) custom filters/domfilters ...
0
votes
1answer
26 views

TeX4ht shows error “v'^\dagger_i ” while using align environment but not in inline equation

TeX4ht shows error "v'^\dagger_i " while using align environment but not in inline equation. The pdflatex not shown error both inline and align environment The Tex4ht error as follow: ! ...
0
votes
0answers
27 views

TeX4ht not render correct font style for \rm command

The command "htlatex "rm.tex" "xhtml,mathml,Fonts,mml-fonts"" will produce italic font style instead of roman. How to get correct font style for \rm command. I dont want ...
1
vote
1answer
36 views

Heading hierarchy in tex4ht

It looks like tex4ht headings start at <h2> for the title. The following tex: \documentclass{article} \title{Testing headings} \author{Alex Watson} \date{\today} \begin{document} \maketitle \...
1
vote
1answer
95 views

Graphics scaling in tex4ht

When I introduce graphics with \includegraphics[width=0.5\textwidth]{fig}, tex4ht processes this into some number of pixels (I'm not sure how - presumably there's a ppi setting I've not encountered?) ...
4
votes
1answer
85 views

How to use my own HTML template with make4ht?

Here is my LaTeX file foo.tex: \documentclass{article} \usepackage{amsmath} \title{Demo} \begin{document} \begin{align} 1 + 0 & = 1, \label{eq1} \\ 1 + 1 & = 2, \label{eq2} \\ e^{i \pi} = -1. ...
1
vote
1answer
82 views

textit use with tex4ht in mathjax mode

I am trying to compile Latex code generated by Maple. The Latex generated contains things like \textit{\_C1} which works OK in pdf, but when compiled to HTML using tex4ht, in mathjax mode, it does not ...
1
vote
1answer
34 views

How to prevent hyperlink from wrapping in fixed width column in tex4ht?

This is tex4ht only issue. I have table where first column has links to internal sections (hyperlinks). These links are all numbers. They point to subsections which are not shown in the example below ...
2
votes
1answer
55 views

Customizing existing single line classes in ODT output from mk4ht oolatex

As an extension to this question: Creating new single line classes in ODT output from mk4ht oolatex I've been attempting to use this approach to reassign the style assigned in existing commands that ...
1
vote
1answer
30 views

How to get margins on dynamically inserted page breaks within a figure of a tex4ht ebook

Summary I'm creating an ebook using LaTeX and tex4ht. I have certain text that I want to treat as a figure. Sometimes, this text spans multiple pages. When that happens, the dynamically inserted page ...
1
vote
0answers
48 views

Babel Arabic + bidi crashes Make4ht + PdfLaTex in TexStudio

I'm trying to convert a multi-language document (Arabic, Russian, English) into an HTML or an ODT. I call make4ht dummy.tex, either from the command line or a TexStudio custom command. dummy.tex ...
4
votes
2answers
135 views

why does make4ht generate an extra : in this math expression?

This MWE \documentclass{article} \usepackage{amsmath} \begin{document} \[ W = \begin{vmatrix} \sqrt {x} & {x}^{{\frac{3}{2}}} \\ {\frac {1}{2}{\frac {1}{\sqrt {x}}}} & {\frac {3}{...
4
votes
2answers
193 views

Creating better HTML code with minted and tex4ht

I have a web publishing setup where I compile my LaTeX down to static HTML templates using tex4ht. I end up creating my own styling for these pages. I also use the minted package to style code in my ...

1
2 3 4 5
15