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
0
votes
0answers
54 views

Cannot find latex.fmt or pdflatex.fmt

Honestly I am about to snap. I don't know - I installed TeX Live yesterday, 2019 version for Windows and I spent over 8 hours trying to figure out why it's not working. I keep getting these errors ...
1
vote
1answer
66 views

install htlatex

I need to convert a series of latex documents to a single html file. I would like to know how to install the htlatex program on fedora 31. I tried to install the tex4ht package without being able to. ...
2
votes
1answer
57 views

Convert xelatex to html

I take this minimal example for document. I need 'polyglossia'. \documentclass{article} \usepackage{polyglossia} %\usepackage[utf8]{inputenc} \setdefaultlanguage{arabic} \newfontfamily\arabicfont[...
1
vote
1answer
181 views

tex4ebook: error in compiling with configuration file

My myconfig.cfg code block is: \Preamble{xhtml} \Configure{AddCss}{blitz-lite.css} \begin{document} \EndPreamble My command line is tex4ebook -c myconfig test2.tex -f epub3 mathml I get the ...
1
vote
1answer
50 views

Longtable displays extra cells in html output

In HTML, my table has extra cells below the header row and below the left hand cell on the bottom row. \begin{longtable}{ | p{2.0cm} | *{5}{>{\raggedright\arraybackslash}p{3.5cm} |} } \hline \b{...
2
votes
1answer
47 views

Filenames of images in tex4ht

I have two systems where I need to run tex4ht/make4ht. They are different versions of Ubuntu, I believe 18.04 LTS vs 19.04. I use the most recent version of make4ht from github, but the version of ...
2
votes
2answers
57 views

split environment with tex4ht

The following MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{split} a &= b \\ c &= d \end{split} \] \end{document} compiles fine with pdflatex, but when I ...
0
votes
0answers
24 views

How do change the output directory of `htlatex`

Every time I execute the htlatex command in TeXsudio (htlatex %.tex) I get a lot of files in my main folder. I would prefer that the target files (html, css, png, etc.) to a folder called html and all ...
2
votes
1answer
32 views

tex4ht ignores \input@path when looking for .4ht files?

My situation is like this. I have a LaTeX file that I want to compile with pdflatex and tex4ht, which includes a package in another directory. The file bug.tex contains: \documentclass{article} \...
2
votes
1answer
66 views

Converting pdf to png with htlatex and format controlling problem -resolved

I am using miktex on windows system. I try to convert .tex file to html and then copy it to word. The challenge comes from .pdf figure Converting process can be achieved by the previous post ...
1
vote
1answer
54 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
33 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
34 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
46 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
25 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
61 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
76 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
35 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
60 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
81 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
43 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
110 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
116 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 ...
6
votes
1answer
153 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
22 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
84 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
134 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
105 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
26 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
60 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
375 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
152 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
47 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
45 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
54 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
58 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
135 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
54 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
190 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
4k 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
110 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
69 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
102 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
272 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 :...
2
votes
1answer
361 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
79 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
225 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
285 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
113 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
45 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 2 3 4 5