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

learn more… | top users | synonyms

3
votes
1answer
23 views

How do I improve the quality of png images when converting to html using htlatex?

I have tried to convert my LaTeX document into xhtml running the following commands (found here): htlatex source.tex tidy -asxhtml -output seconddraft.xhtml firstdraft.html Everything displays ...
0
votes
0answers
21 views

Change background color for html export

When I modify the background colour of the document, it works fine when I export it to PDF or to LyxHTML but not with simple HTML. I would prefer to export in HTML rather than LyxHTML but when doing ...
2
votes
1answer
11 views

Add a css class to graphics in tex4ht

So I have this \includegraphics[width=0.5\linewidth]{./src/images/screenshot--superman.png} And using make4ht (tex4ht) it generates the following markup (I'm pasting it as outputed): <p> ...
3
votes
0answers
77 views

Conversion to *.odt - error in odt's styles.xml

I'm trying to turn my latex document into an odt file to be able to open it with LibreOffice (to then be able and save it as MS Word file so colleagues can open and comment on it). Although the file ...
3
votes
1answer
13 views

htlatex having problems with a document written in Spanish?

I don't seem to be able to get past the following error: [4] [5] [6] [7] [8] ("C:\Program Files (x86)\MikTeX portable\tex\latex\lm\ot1lmr.fd") ("C:\Program Files (x86)\MikTeX ...
1
vote
1answer
32 views

Converting to html keeping equations as latex and using dollar signs

I can convert tex to html keeping equations as latex (to be rendered by MathJax) but using multiple dollar signs in a paragraph poses a problem. If there's only one dollar sign in a paragraph, using ...
3
votes
1answer
24 views

`make4ht`: title date font size is gigantic compared to title font size, and body font size

For this problem, I am using the following MnWE: \documentclass[fontsize=18pt, paper=letter]{scrartcl} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} \title{A ...
1
vote
1answer
18 views

`make4ht`, `htlatex`: calls out error when called on an absolute filepath

For this problem, I am using the following .tex file: \documentclass[fontsize=16pt, paper=letter]{scrartcl} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} ...
2
votes
1answer
22 views

`make4ht`: increasing font size

I have a simple *.tex file for this question: \documentclass[12pt,letterpaper]{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} \title{A test \LaTeX to ...
2
votes
1answer
24 views

`make4ht`, `htlatex`: “cannot read log file” issue with minimal example

I have a simple *.tex file for this question: \documentclass[12pt,letterpaper]{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} \title{A test \LaTeX to ...
4
votes
1answer
83 views

Examples of HTML documentation produced with LaTeX

I am considering writing some software documentation in LaTeX to compile to HTML. I know this is possible with at least two tools (htlatex, latex2html) but have not seen any examples of their output. ...
2
votes
2answers
73 views

How to get Unicode characters into HTML output

I am trying to make a book in both print and ebook. To make the print book I generate a PDF with xelatex. I have reconstructed all the source files to be encoded in UTF-8 and the Cyrillic and ...
1
vote
1answer
78 views

Renew itemize environment for customization in tex4ht

In a htlatex compiled document a standard enumerated list environment shows up as a <li class="itemize"> tag. For the pdf version I have loaded the enumitem package to aid with list ...
1
vote
0answers
28 views

htlatex doesn't notice font change after tikz picture

Even a minimal tikz picture in my causes htlatex not translating commands like \emph or \textbf if they come after a tikz picture. Here is a minimal example \documentclass{article} \usepackage{tikz} ...
3
votes
1answer
81 views

mathml with actual latex coding in htlatex

I would like to get HTML + MathML with LaTeX equation in the alt attribute. htlatex filename.tex "xhtml,mathml,charset=utf-8" ' -cunihtf' My LaTeX MWE is: \documentclass{article} ...
2
votes
1answer
19 views

Make a column vanish / package parcolumns

I wrote a report in German and English language. It has two columns, German on the left, English on the right side. Now, I need to produce a word file, but only including the german text. I've got ...
1
vote
0answers
41 views

dvisvgm not working when called by htlatex

I'm trying to make tex4ht produve svg-pictures instead of the normal png ones. I'm working with MiKTeX 2.9 under Windows 10. I tried the following tex-file (mwe.tex): \documentclass{book} ...
0
votes
1answer
127 views

Texmaker doesn't export to html (OS X El Capitan)

After upgrading to El Capitan I fixed the configuration and it is working fine. But it does not export to html with the tex4ht option. It yields the following output: "/Library/TeX/texbin/htlatex" ...
3
votes
1answer
61 views

How to create multilingual (English, Japanese) html document with htlatex

Japanese html using htlatex [TexLive 2014 on Ubuntu 14.04]: Using pdflatex/xelatex I can generated pdf document from the latex source but I have problem generating html document. Note: I have ...
4
votes
1answer
41 views

htlatex converting ligatures to null bytes

I am familiar with questions 162626 and with 204822, and have followed the instructions therein, but have been unable to get a good solution. htlatex is converting all of the ligatures in a document ...
2
votes
1answer
41 views

htlatex crops too much for picture environment

I use htlatex to convert a large latex file to html pages. All works with one exception. Anything drawn in the picture environment gets cropped. I have isolated the problem in the code example below. ...
2
votes
2answers
55 views

htlatex changes \textasciigrave to “Left Single Quotation Mark” (&#8216;)

To display grave accents correctly in DVI and PDF I use \textasciigrave. But htlatex changes this to &#8216; (Left Single Quotation Mark). Is this a bug? (I use texlive 2015.) For example ...
3
votes
1answer
32 views

How to get correct htlatex output with lithuanian letters?

My example \documentclass{article} \usepackage[T1,L7x]{fontenc} \usepackage[utf8x]{inputenc} \begin{document} ąčęėįšųūĄČĘĖĮŠŲŪžŽ \[ \alpha + \beta = \gamma \] \end{document} produces incorect ...
4
votes
1answer
71 views

htlatex filename.tex “xhtml,mathml”

I want to generate XHTML/MathML along with all equations as image. If I run the below command, I get html and equation-images htlatex filename.tex If I run the below command, I get html, and ...
1
vote
0answers
49 views

\autoref for figures uses “section” instead of “figure” as text

My problem looks very similar to the problem in this question, and is exactly the same as the problem described on another forum. But none of those seem to have solved the problem. When I use the ...
3
votes
1answer
52 views

destlabel option of the hyperref package does not work in combination with htlatex

This is related to my previous question. The use-case is still the same: I want to convert a document into HTML, and give the links in the generated HTML a permanent character, even when the structure ...
4
votes
2answers
54 views

Create permalinks in HTML using tex4ht

Use case: an HTML version of a developer guide written in LaTeX and knowledge base articles in HTML which should be able to link to a certain section, figure, code snippet, ... in the HTML version of ...
2
votes
2answers
162 views

htlatex causes hyperref package not to load completely

The following code runs perfectly fine when using the regular latex command. \documentclass[a4paper,11pt]{book} \usepackage{hyperref} \renewcommand{\sectionautorefname}[1]{Section~} \begin{document} ...
1
vote
0answers
70 views

texfot hangs when used with tex4ht but does not hang with pdflatex

There is a very nice new program in TL 2015 called texfot which filters out many of the messages printed on the screen when compiling latex files. Here is the man page for it With TL 2015 installed, ...
3
votes
1answer
71 views

why tspan instead of class? italics not rendered using htlatex

When using htlatex with "html,fn-in", the generated html has <tspan font-family="cmti" font-size="10">should be italics </tspan> but this is not rendered in the html (at least not in ...
5
votes
1answer
75 views

htlatex and subfigures

Is it possible to have htlatex generate side-by-side subfigures? The mwe tex file \documentclass{article} \ifdefined\HCode \usepackage[compatibility=false]{caption} ...
4
votes
1answer
88 views

htlatex and differences between html and xhtml

To date, I have generated html files using htlatex rather than xhtml. This has been for one simple reason. I can right click on the html file and open it in MS word to then save and distribute to ...
1
vote
1answer
137 views

First steps with htlatex, I'm losing all the math format! [closed]

I'm doing my first steps with htlatex, trying to get HTML documents. I have OS: Linux Mint, Tex Live, and I make my *.tex with Texmaker. I know how to use MathJax. I get this: This is how I wish it ...
2
votes
2answers
87 views

Convert to HTML with {arabtext} sections rendered as images

I'm just starting to investigate using latex to generate an ebook with arabic snippets embedded in it, and I'm using the following simple document: \documentclass{article} \usepackage{arabtex} ...
3
votes
1answer
50 views

QRCode package fails to convert to HTML

I'm using the CTAN QRcode package. It works great with PDF, but unfortunately doesn't work at all for HTML. Does anyone know if I'm doing something wrong or how I can force htlatex to use images for ...
1
vote
1answer
43 views

MathML and LaTeX conversion required in htlatex

I have required all the display equations should be convert to MathML options and some inline-equations need to convert in text mode format. This two types of conversion is possible in htlatex?. For ...
0
votes
1answer
56 views

mathfrak in htlatex

In LaTeX mathfrak command is working fine and when using htlatex it's converting and not viewing in the HTML file. This is Bug in htlatex? My MWE is: \documentclass{book} ...
1
vote
1answer
48 views

Htlatex with docbook-mml: minus signs vanish

When I compile the following file: \documentclass{article} \begin{document} $2-1$ \end{document} with the command htlatex test.tex "xhtml,docbook-mml" " -cunihtf" "-cdocbk" then the result is ...
3
votes
1answer
63 views

Defining XML output for operator

I am converting LaTeX to docbook with the following command htlatex filename "xhtml,docbook-mml" " -cunihtf" "-cdocbk" Now, unfortunately, the \cdot operator gets lost during translation. (It ...
0
votes
0answers
34 views

LaTeX to Customized LaTeX file conversion using htlatex

I would like to convert LaTeX to Customized LaTeX code using htlatex. It's possible in tex4ht? Our ultimate goal is natbib cross-link need to convert to without \cite tag, \def command need to ...
2
votes
0answers
48 views

Latex to HTML problem with fractions [duplicate]

im using htlatex to transcript a latex file to html for a web application. It seems to work fine with most of my equations, but as soon as I use \frac or \dfrac the images of the equations become very ...
0
votes
0answers
25 views

TeX4ht aliasing on equations' images

I am compiling a .tex file to html using TeX4ht induced by the htlatex command. When TeX4ht compiles a document and turns equations into images, however, it produces low-quality images with little ...
1
vote
1answer
118 views

htlatex html output droidsans

I am trying to use the font "Droid Sans" (as in http://www.tug.dk/FontCatalogue/droidsans/) in a html file generated from a tex-file. PDF I have succeeded in using the font as standard for a pdf by ...
1
vote
1answer
134 views

tex4ht: configure href to open in new tab

I'm working with tex4ht (htlatex) and I'm trying to put links into the page it generates. I'm trying to find a way to make it so that when I place a link in the page the link is generated to have the ...
0
votes
0answers
21 views

how to use “interaction=nonstopmode” in htlatex command [duplicate]

Am in the process of converting latex to xhtml file. I chose htlatex for conversion. But it stops inbetween if it finds errors in the tex file. In latex we have option -interaction=nonstopmode to run ...
2
votes
1answer
109 views

Suppress TOC in htlatex (compiling with htlatex fails with Undefined control sequence \TocTitle)?

Consider this MWE, test2.tex: \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{times} ...
0
votes
0answers
20 views

Producing SVG graphics with tikz and tex4ht not working [duplicate]

I'm on TeXlive 2014. Here's my M(N)WE: \documentclass{article} \usepackage{tex4ht} \def\pgfsysdriver{pgfsys-tex4ht.def} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) rectangle ...
5
votes
1answer
217 views

How to write custom configuration for TeX4ht

I have some macros in my document, and I want to create my own HTML for there. I follow this blog entry but I can't to make it work. I put this code before my \begin{document}: ...
1
vote
1answer
109 views

Multiple source document with htlatex and tex4ebook

How should I compile a document with chapters on different tex files using tex4ebook? The output of 'tex4ebook main.tex' has valid title page, index, empty chapters and valid bibliography. Structure ...
3
votes
1answer
107 views

configuring minipage in htlatex

I want to use minipage in htlatex, because I want to have a minipage with a figure, close to a minipage with some text, and then I want some other text that must be on a new line and full-width. I ...