Questions tagged [tex4ht]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
35 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
19 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
26 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
22 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
38 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
49 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
39 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
43 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
25 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
25 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
24 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
30 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
74 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
51 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
31 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
51 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
26 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
39 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
115 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
169 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 ...
3
votes
0answers
55 views

Anchor at end of every line

Is it possible to fix any Anchor or any indicator at the end of each an every line of a document? Also note that Anchor/Indicator should not be displayed in the output. I am searching for this to ...
1
vote
1answer
51 views

How to remove the word “Chapter” from the heading in ebook: tex4ebook

I am compiling an ebook in Kannada and I would like to remove the word "Chapter" from the heading in the ebook. The output of ebook as shown in the first image . However, I would want it ...
0
votes
0answers
79 views

How do you actually use LaTeX conversion systems like make4ht and tex4ht?

I have acquainted myself with the export methods of LaTeX but I am utterly confounded by how I am supposed to actually utilize conversion software created by others out in the web. I understand the ...
0
votes
0answers
34 views

TeX4ht: broken hyperlinks when using internal counters for `\newtheorem`

MWE: \documentclass{amsart} \usepackage{hyperref} \newtheorem{lemma}[equation]{Lemma} \begin{document} We see Lemma~\ref{lem:test} \begin{lemma} We have \begin{equation} i^2=-1 \end{...
1
vote
1answer
25 views

texh4t produces bad table of content when some math is used with mathjax mode

This is problem specific to tex4ht only. I noticed when I have some math in section names, sometimes the table of content is corrupted, even though the same math displayed OK in the body of the ...
0
votes
0answers
33 views

Help me to understand Tex4ht script

Help me to understand this script: \NewConfigure{twosidepic}{2} \renewcommandx\twosidepic[2][2]{% \ifvmode\IgnorePar\fi\EndP% \a:twosidepic% \begin{figure}% \def\my@ext{.jpg} \ifx\Ginput@path\@...
1
vote
1answer
63 views

Textcolor from awesomebox with htlatex

I'm trying to convert a TeX document that uses the package awesomebox to HTML using htlatex. Although I did not expect this to work out of the box and probably requires me to configure some ...
0
votes
0answers
50 views

The script for printing pictures on the page spread

This is continuation of includegraphics does not clip pictures with ebook conversion In my last topic I was shown a script that, using an external ImageMagic program, divides an image into two parts ...
2
votes
1answer
34 views

why tex4ht adds extra frame when table inside longtable?

This is related to tex4ht only. tex4ht adds extra frame around tabular when it is a cell inside longtable but not when it is on its own. How to fix this issue? MWE \documentclass[11pt]{article} ...
1
vote
2answers
144 views

includegraphics does not clip pictures with ebook conversion

This is continuation of my efforts to create an eBook from LaTeX, the previous is here: tex4ht caption problem: undefind control sequences When converting my document to eBook, the command \...
1
vote
1answer
41 views

tex4ht caption problem: undefind control sequences

I trying to compile my tex document with png pictures. This throw an error when I add captions to minipages. If I exclude \caption*{#2} and \caption*{} that compile. My code: \documentclass[12pt, ...
0
votes
2answers
51 views

How to wrap paragraphs in XML tags?

Closely Related: Changing paragraph begin/end commands Is there a LaTeX "hook" for automatically wrapping paragraphs in boxes, or preferably XML tags? I would like to load the outputted file into an ...
0
votes
0answers
126 views

Help me to install TeX4ht on windows

I am trying to ask new ways of converting tex -> HTML here: Latex to not PDF on Windows but it seems nothing new and I need to edit ini files manually. Ok. I am trying to follow this manual: https:/...
2
votes
2answers
80 views

What are the limitations of using tikz with tex4ht?

As I was trying tikz with tex4ht, I found some small pics are not generated correctly, which means they do not show the same as when compiled using lualatex. Here is one such example Example 1 \...
0
votes
1answer
21 views

tex4ht: Single quote will trigger `Double superscript` error in `align` environments

MWE: \documentclass{amsart} \begin{document} Now aligned \begin{align*} i_\lambda'^* &= a\\ &= b \end{align*} \end{document} Compile with tex4ebook, the error message ...
0
votes
0answers
35 views

problem using tex4ht in mathjax mode when using array with text{}

This is problem specific to tex4ht only. When compiling this MWE \documentclass[11pt]{article} \usepackage{amsmath} \begin{document} \[% \begin{array} [c]{c}% \text{{\small bottom edge}}\\ \text{{\...
1
vote
1answer
49 views

How to disable a command with argument?

I had to remove the caption package when compiling with tex4ht after finding problems with it in tex4ht mode only. So I edited my main include tex file and did the following \ifdefined\HCode %do ...
2
votes
1answer
70 views

tex4ht problem when using amsmath, hyperref, and cleveref packages with report/book documentclass

I am trying to convert my PhD dissertation (\documentclass{report}) from LaTeX to HTML using make4ht. It uses the amsmath, hyperref, and cleveref packages, which are causing a problem when used with ...
3
votes
1answer
58 views

tex4ht removes space causing mathjax to fail

This is tex4ht specific issue only. This MWE \documentclass[11pt]{article} \usepackage{amsmath} \begin{document} $ 2\ x\ {\arcsin x} $ \end{document} is valid latex. It compiles using lualatex to ...
1
vote
1answer
54 views

Is this CAS generated Latex invalid? tex4ht with mathjax problem

The following is Latex generated by CAS called Fricas. It compiles OK in lualatex (but get a warning about it using \over) but the end result looks correct. But when I try to compile the same latex ...
5
votes
1answer
214 views

What is so special about $\ln$ when using TeX4ht in MathJax mode?

This question is specific only to TeX4ht. When using MathJax mode in tex4ht, it fails to render the section title which contains $\ln$, but it works for all other symbols I tried so far. What is so ...
1
vote
1answer
25 views

Centering images in html using tex4ht

I am trying to convert latex doxument in html using tex4htand to get centered image. I am inspired by the code in the post here I use the following .tex file \documentclass[12pt,a4paper,twoside]{book}...
1
vote
1answer
48 views

Convert to html using tex4ht with .ps and Tikz figures

I am trying to convert a .tex file listed below to html using tex4ht \documentclass[12pt,a4paper]{book} \usepackage[francais]{babel} \usepackage[latin1]{inputenc} \usepackage{lmodern} \ifdefined\...
1
vote
2answers
23 views

tex4ht has strange characters at end of section titles when using cprotect

I use cprotect package so I can use math in section titles. It works OK in pdf, but tex4ht generates strange characters at end of section title. If I do not use cprotect, then it will not compile in ...
1
vote
1answer
60 views

How can I save indexes while converting a LaTeX file to ODT?

Recently, I have completed a LaTeX document where I had created two indexes using the \splitidx package, the index entries marked with \sindex terms. For example, \documentclass[b5paper,polish]{book} ...
2
votes
1answer
42 views

Creating new single line classes in ODT output from mk4ht oolatex

I've been trying to follow a tutorial here: github.com/michal-h21/helpers4ht/wiki/tex4ht-tutorial My MWE files below produce a valid output with the text from the command, but I was expecting the ...
2
votes
1answer
177 views

How does tex4ebook work with images (png, jpg)?

After finish writing a book in LaTeX, I learned the many online books are published in the ePub format. Then I decided to learn a little bit of how to convert .tex (or .pdf) into .epub. The book has ...
4
votes
1answer
117 views

tex4ht: including section/subsection number in toc link

I'm producing a document using tex4ht, and I would like to have the section and subsection numbers within the links in the TOCs, both main and mini. For the main TOC, the following strategy works: \...
1
vote
1answer
71 views

make4ht cannot render newcommand in mathjax mode

I use file here, and then I run a command make4ht -uf html5 maths.tex "mathjax" but the result is not what I want. I find some solution says I have to add something to cfg file, but I do not ...
0
votes
1answer
36 views

how to make `arraystretch` work in tex4ht? It has no effect now

I need a bit more extra vertical space between rows of a longtable. But \renewcommand\arraystretch{3} has no effect on the HTML output compare to PDF. MWE \documentclass[11pt]{article}% \usepackage{...

1
2 3 4 5
15