Questions tagged [htlatex]

htlatex is the command that loads a script to invoke the different steps of the conversion process from LaTeX to HTML.

Filter by
Sorted by
Tagged with
1
vote
1answer
27 views

Problems with graphicx and htlatex

I try to convert the file 3AHET.tex to HTML but get the Error: ! LaTeX Error: File `test' not found. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate ...
1
vote
0answers
23 views

tex4ht and beamer, re-patching \section

I'm using tex4ht to generate accessible versions of presentations created using the beamer package. Beamer redefines \section and friends, and so the tex4ht configuration hooks are lost. I know how ...
4
votes
1answer
23 views

Htlatex and beamer, strange output with \emph

I'm seeing some strange output for \emph text using htlatex with the beamer class. Using the following source: \documentclass{beamer} \begin{document} \begin{frame}{Test} \emph{bold text}...
0
votes
1answer
41 views

tex4ht: italicized matrices inline and display mode when using \mathbf{X}

I have had good experience with tex4ht (htlatex), but in a new article I am compiling, there are random cases where inline and display mode matrices are in italics when using $\mathbf{L}$ for inline ...
0
votes
0answers
21 views

tex4ht image sizing issues

I have a lot of EPS images used in a large .tex file. Most of the pixel dimensions are 2100 x 1800. The EPS were derived from two different graphics programs however: original GIFs with 72x72 dpi ...
2
votes
1answer
52 views

Enforcing ImageMagick parameters into tex4ht during magick convert (Windows)

Use of the newer versions of ImageMagick in Windows with MikTeX and tex4ht requires a trick in the preamble to enforce tex4ht to invoke magick convert instead of the previously used convert.exe, which ...
1
vote
1answer
53 views

tex4ht not converting .eps images in converted_graphics folder to .png or .svg

Inside the latex file (.tex) the typical picture command is used: \includegraphics[bb=0 0 2100 1528,width=3.83in,height=2.79in,keepaspectratio]{summbetadiethist.eps} However, when running htlatex ...
0
votes
1answer
26 views

Tex4ht (htlatex) html output in sans serif typeface and narrow textwidth

Using the htlatex myfile.tex command which invokes tex4ht, I learned that a rather nice text for web pages can be obtained by simply using the \sf command for an entire web article. Using the helvet ...
1
vote
1answer
39 views

\displaystyle and \limit commands don't seem to work when rendering to mathml

I am trying to render a latex file to mathml for viewing in firefox. However, when trying to render the following example: \documentclass{article} \begin{document} \(\displaystyle\sum\limits_i\) \end{...
1
vote
2answers
66 views

Why does \renewcommand{\Pr} trigger “Limit controls must follow a math operator” with MathJax+htlatex?

I have ht5mjlatex.cfg as defined here, and a foo.tex containing: \documentclass{article} \renewcommand{\Pr}[1]{P(#1)} \begin{document} $\Pr{h}$ \end{document} As described in that post, I try to ...
1
vote
0answers
36 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: \...
2
votes
1answer
77 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 ...
2
votes
1answer
63 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
79 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 ...
0
votes
0answers
19 views

Htlatex and chapters/sections malfunction

When using htlatex on the file with \chapter{...} etc., the resulting html file loses paragraph formatting and is all one big paragraph. When I comment out \chapter etc., all works fine. I use ...
1
vote
1answer
51 views

htlatex failing with custom documentclass: Error LaTeX Error: File `email' not found

I have created a custom class for a personal curriculum. It can be found at https://github.com/igormorgado/elegantcv It compiles nicely with pdlatex, XeTeX and LuaLaTeX, but trying to build with ...
1
vote
1answer
93 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 ...
4
votes
1answer
81 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} \...
2
votes
1answer
24 views

Display equation also needs to convert as HTML tag (TeX4ht)

Is this possible to get the simple math as in HTML tag in display math? My tags are follows: \documentclass{book} \begin{document} This is for test $a+b=c$ \[ a+b=c\qquad p_1 = \frac{m}{x_1}- p_2. ...
2
votes
0answers
50 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 ...
8
votes
1answer
322 views

htlatex, garamond fonts, and nulled “ff” and “fi” strings

I stumbled across a continuation of a problem that seemed to have been fixed at tex.stackexchange.com/questions/162626/, but the problem comes back if I'm using some form of Garamond font. None of ...
4
votes
1answer
101 views

htlatex: extra row at end of table

I'm using htlatex to produce HTML that is designed to be read with assistive technology. In the following minimum working example: \documentclass{article} \begin{document} Here is a table with 2 ...
1
vote
1answer
45 views

htlatex Defines a Command Then Chokes on it

I'm trying to compile a LaTeX document into a HTML document but I keep hitting the same problem. When I compile (using the command htlatex .\scratch.tex myhtml), I get the following output: G:\PhD\...
1
vote
1answer
32 views

Hyperlinks for blank section titles in html file compiled with make4ht

The hyperlinks work in compiled pdf file for the following tex document. The section names are blank. However when it is compiled to html using make4ht, the hyperlinks won't work. So there is problem ...
2
votes
1answer
42 views

Hyperref package not working with titlesec package when compiled with make4ht

The hyperref package seems to have conflict with titlesec package when compiled with make4ht. The following document is compiled with make4ht. The compiled html file doesn't contain table of contents. ...
1
vote
0answers
42 views

htlatex: use the argument of \label as the value of the attribute id in the HTML file

I have been using htlatex to convert my LaTeX files to HTML. In my experience, htlatex doesn't use the argument of \label associated to a section in the LaTeX file to assign the value of idin the HTML ...
3
votes
1answer
117 views

How do I convert LaTeX containing arbitrary Unicode to XHTML?

I was reading this question(How to get Unicode characters into HTML output) and because his intent is simply to ouput the text to HTML, I was wondering if there is a command that simple does binary ...
3
votes
1answer
48 views

htlatex : lstlisting colors stop after using tikz

Building a tikz figure between two lstlisting scripts remove all the color components of the scripts after the figure. I am using the method listed below (or is there a better way ?). If I may, does ...
7
votes
1answer
156 views

How do I deactivate tikz output to the document and only generate PNGs?

I want to use tikz images but include them in my document via PNG with includegraphics. This works nicely both for PDF and HTML, but the original tikz image is displayed, too. The reason why I need ...
3
votes
1answer
2k views

\mathds from dsfont package works with latex and not with htlatex

When using dsfont package with latex, rendering is fine : \usepackage{dsfont} $A\,\otimes\,\mathds{1}_{q}$ here the result : Unfortunately, this doesn't work with htlatex : I have also tried with :...
3
votes
1answer
82 views

French accent into align environment with htlatex

I am using first latex compiler to generate pdf document. Into .tex source, I have the following equation : \begin{align} \text{tenseur sym\'etrique :}\,\,\,\,& S_{ij}=(1/2)\,(T_{ij}+T_{ji}) \...
2
votes
1answer
58 views

Configuring htlatex for section names in html

If one uses htlatex filename "xhtml,svg" The section name in html file begins as <h3 class="sectionHead"> Also the subsection name in html file begins as <h4 class="subsectionHead"> ...
1
vote
2answers
83 views

\newcommand works with latex but not with tex4ht( htlatex)

I am working on 2 rendering, the first one with the classical latex command and the other with htlatex command (tex4ht). I have defined the following \newcommand : \newcommand{\btFma}[2]{$\mathfrak{...
1
vote
1answer
192 views

\mathlarger with htlatex not supported : looking for other alternatives

I tried to use \mathlarger with integrals with htlatex but the MathJax page generated doesn't seem to support \mathlarger : you can see the result on this link : Issue with \mathlarger Latex source :...
1
vote
1answer
225 views

Latex: create html for opening in word

I have written my master thesis in latex and got beautiful pdf. Now I want to publish it in a journal for which I need to convert it to html to convert it to word. I now that there options out there ...
1
vote
1answer
61 views

htlatex: incorrect minitoc when using custom list of <things>

This question is a follow-up to tex4ht: custom list of … (part 2 of 2) I'm using htlatex to produce html on a one-subsection-per-page basis. I'm also using the technique described in the post linked ...
2
votes
1answer
157 views

htlatex combining multiple command line options

I use htlatex to generate an html file with this command: htlatex filename.tex "html,1,sections+" I ran into a problem where the output used iso-88859-1 instead of utf-8, which was solved: Use utf-...
1
vote
1answer
217 views

Use utf-8 encoding instead of iso-8859-1

I am using htlatex to generate an html file. I use some special characters like é and å in the document. These characters come out looking fine when I open the resulting html file in Safari. ...
3
votes
1answer
96 views

Simple Color Environment for htlatex

I have a class I originally used for PDF output, but now want to also have an option for HTML. I have a very basic environment where the block of text is a different color. For example: \...
1
vote
1answer
40 views

Split outputs for Tikz-plot after htlatex

I am currently working on a website that gererates exercises for students out of a .tex file. for one of these exercises the solution is a plot, which i am using tkiz for. when i use the normal ...
1
vote
1answer
53 views

Wrong tag ordering in mathml produced using htlatex

I am converting large mathematical documents from latex to html + mathml. I have wrongly shaped file as output in some situations. An example is as follows. The main file test.tex is: \documentclass{...
3
votes
1answer
166 views

htlatex: tweaking the MathML output for numbers with more than one digit

I'm using htlatex to produce screen-readable (https://www.nvaccess.org/) MathML. Using the following file mwe.tex \documentclass{article} \begin{document} Here is a function $f(x)=15$. Here is a ...
3
votes
0answers
99 views

babel causing cref mistakes to labels when compiled with htlatex

Update: I'd be very interested to know what babel does to that enables the advanced hungarian accents to be loaded. The comments below indicate that it should really have no affect. Given the ...
2
votes
1answer
117 views

htlatex, imakeidx, and textit in an index entry

I'm using htlatex to create an ebook. For some customization reasons, I need to use imakeidx instead of makeidx. Additionally, some of my index entries are using \textit{}, e.g. \index{\textit{...
3
votes
1answer
82 views

htlatex: customising the build process

I'd like to customise the processes used when calling htlatex; in particular, I'd like to be able to switch off the conversion of included images into .png files. With the following file, say mwe....
3
votes
1answer
498 views

Pre-compiled mathjax output using mathjax node in make4ht or htlatex

It is possible to convert latex to html with make4ht or htlatex in which mathematics content gets converted into svg. Is it possible to pre-compile mathematics content of latex file into mathjax (...
2
votes
1answer
351 views

Svg output for Mathematics using htlatex or tex4ht

A LaTeX document is to be converted to html using tex4ht or htlatex. If the .cfg file is included with \Configure{html}{xml} \Preamble{xhtml} or \Configure{html}{xml} \Preamble{xhtml,png} The ...
1
vote
3answers
337 views

Problems of .pdf format graphic or image when using htlatex to convert .tex to html

Recently I have worked on converting .tex to .html. I have solved a lot of problems with the help of @michal.h21. the last question is about the image problem. I use the MiKTeX system, it is basic-...
1
vote
1answer
481 views

Compiling error when use htlatex to convert html

I now want to convert tex to html file. it only has some errors before but after i seems to update some package or something, it can not produce html file. the source code and the bib code is ...
1
vote
1answer
256 views

Problems using htlatex and bibtex to html and then to word

i am now trying to convert .tex file to HTML and then to word, but there is problem about figure. if you want debug such file, four other file are needed. they are 1 iopams, latex style file 2 ...