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

How to put contents of file in a \path

Take the following file called "version" 5.1 I'd like to take the contents of version and insert in a \path. I've tried \documentclass{article} \usepackage{url} \begin{document} \path{\...
1
vote
1answer
46 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 ...
2
votes
1answer
27 views

Bad SVG output when using htlatex

I am trying to compile some minimal test.tex using htlatex test.tex "xhtml,svg", but the SVG generated from tikz pictures does not seem to work. \documentclass[11pt]{article} \usepackage{tikz} \...
0
votes
0answers
19 views

Size of displayed equations in html file produced by htlatex

I am using htlatex to produce a html file from a latex file, with no particular config file. It works relatively well except for the following problems. Loading the html file in Chrome android on my ...
1
vote
1answer
23 views

Including pstex_t figures when using htlatex

I am trying to create html file from my test.tex document including a .pstex_t file that include a .ps figure. Here is my test.tex file \documentclass[12pt,a4paper]{article} \usepackage[francais]{...
1
vote
1answer
69 views

htlatex-Biber-htlatex compilation error (not present in Latex-Biber-Latex)

The MWE below is issued from here It compiles with no errors when using: Latex —> Biber —> Latex. Moreover, it produces exactly the desired result. However, when compiling using: htlatex —> Biber —>...
0
votes
0answers
80 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
287 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
111 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
238 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
72 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
61 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
77 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
36 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
39 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
88 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
79 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
61 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
46 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
57 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 ...
2
votes
1answer
70 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
98 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
39 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 ...
2
votes
1answer
105 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
96 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
48 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
134 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
156 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
266 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
113 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
170 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
120 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
28 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
63 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
415 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
204 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
53 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
52 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
68 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
68 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
141 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
61 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
228 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 ...
4
votes
1answer
7k 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
172 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
78 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"> ...
2
votes
2answers
117 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
344 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
547 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
2 3 4 5