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

learn more… | top users | synonyms

5
votes
1answer
30 views

how to use conditional to define different \begin and \end environment at compile time

I just need little help on the syntax for this. I am using tex4ht, and I get an error when I use empheq for the align environment. I want to build this TeX file both in pdflatex and htlatex. I ...
0
votes
0answers
10 views

How can I make \cref{foo,bar} from cleveref work with htlatex?

I have the following test2.tex file: \documentclass{article} \usepackage{tex4ht} \usepackage{etoolbox} \usepackage{hyperref} \AtEndPreamble{\usepackage{cleveref}} \begin{document} ...
1
vote
0answers
19 views

How can I make braket's \Set work with align* and htlatex/tex4ht

I have the following test.tex file: \documentclass{article} \usepackage{tex4ht} \usepackage{amsmath} \usepackage{braket} \begin{document} \begin{align*} \Set{|} \end{align*} \end{document} When I ...
0
votes
1answer
17 views

How do I get bmpsize working with htlatex?

I have the following test.tex: \documentclass{article} \usepackage{tex4ht} \usepackage{bmpsize} \usepackage{graphicx} \begin{document} ...
0
votes
1answer
21 views

How can I get htlatex to work with amsmath's align and cleveref?

I have a document test.tex: \documentclass{article} \usepackage{amsmath} \usepackage{etoolbox} \AtEndPreamble{\usepackage{cleveref}} \begin{document} \begin{align} . \end{align} \end{document} It ...
0
votes
1answer
22 views

How can I make amsthm and cleveref to work with htlatex?

I have the following test.tex document: \documentclass{article} \usepackage{hyperref} \usepackage{amsthm} \usepackage{cleveref} \newtheorem{thm}{Theorem}[section] \newtheorem{rmk}[thm]{Remark} ...
2
votes
0answers
76 views

What happened to the mzlatex command?

I am using MiKTeX 2.9. I would like to convert a LaTeX file to HTML. I have seen here (http://access2science.com/latex/tutorial_txht.xhtml#x1-50001.2) that I can use the mzlatex command to convert ...
5
votes
1answer
54 views

htlatex converting all occurences of 'ff' and 'fi' to null characters in HTML output

I'm running MiKTeX under Windows 7, trying to compile some LaTeX to HTML using htlatex. htlatex appears to be converting every instance of 'ff' and 'fi' with a NUL byte in the HTML. Was wondering if ...
1
vote
1answer
79 views

modify html output of htlatex

When latex figures are converted to html, htlatex generates markup as follows: <a id="x3-3021r4"></a> <p class="noindent" > <img src="sampleImage.png" alt="PIC"/> ...
5
votes
1answer
52 views

htlatex interrupted at '\:temp{rm}'

Using TL2013, I cannot compile documents with htlatex anymore. For example, using: \documentclass{scrbook} \begin{document} test \end{document} I get: $ htlatex test.tex This is pdfTeX, ...
2
votes
2answers
133 views

Using htlatex with tikz-dependency

I am trying to generate an html file from a tex file using htlatex. The htlatex works well with simple tikz pictures, but it has problem with the pictures (trees) drawn with tikz-dependency package. ...
1
vote
0answers
26 views

htlatex and postscript graphics with psfig

I want to compile TeX source files to html (which I will then convert to the mobi format)with htlatex. The TeX source files are, unfortunately, rather old and contain postscript figures via the psfig ...
2
votes
1answer
56 views

tex4ht: how to make only non-inline math bigger?

I'm converting a document to html (or possibly xhtml) using htlatex. I find that the output is ok, but the equations are too small. I have tried making them bigger by adding the following to my ...
2
votes
0answers
69 views

TeX capacity exceeded and parsing errors using decoration on chapter name with tex4ht

My first htlatex issue of 2014 and on the first day also :) I added this line \chapter*{\centering \begin{normalsize}my chapter title\end{normalsize}} which works fine with pdflatex, but htlatex ...
1
vote
1answer
92 views

How to convert pictures to Open Office format (odt) using htlatex?

I am trying to convert a non scientific content (text with pictures) into .odt format, the only one accepted by a site for writers to upload material. The following command works nicely for the ...
3
votes
1answer
51 views

htlatex with greek encoding

I used htlatex to the following code (say foo.tex) \documentclass[10pt]{article} \usepackage{tikz} \usepackage{amsthm} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amscd} ...
5
votes
1answer
135 views

convert (xe)latex with non-english character to html

I have an exact problem as this post. I have checked the answers there, and found a probable reply here. Sad that I am in linux, and cannot use bat file. Pasted is my latex file, which compiles well ...
3
votes
1answer
78 views

`\ifhtlatex` needed for running tex4ht with different code [duplicate]

It is much easier to write my texts in an editor with LaTeX, but often clients ask for a word file. tex4ht does a good job, it produces html from a tex-file, which can be easily used. But there are ...
3
votes
0answers
79 views

HTML Navigation

I have a large document written in LaTeX (memoir class) that I also use to produce HTML, using: htlatex.exe "Test.tex" "html,3" "" "Test" "--interaction=nonstopmode" I've been attempting to find a ...
0
votes
0answers
45 views

images background in htlatex

i'm looking for something that allow me to customize the png output of htlatex, in the sense of making images not only transparet, but with a chosen background color. someone can help me?
1
vote
1answer
325 views

TeX4ht and Calibre

I try to use TeX4ht and Calibre to create an ebook that I can read with an iPad. I use the following command: htlatex file.tex "xhtml, jsmath""-cmozhtf". The result with Calibre is correct except for ...
1
vote
1answer
102 views

How can we enable -shell-escape to tex4ht's htlatex or related program?

Can we enable -shell-escape through any option without editing the default htlatex program? OR Can we achieve this using mk4ht ht?
4
votes
0answers
266 views

htlatex options

I'm using htlatex (Miktek 2.9, on windows command prompt) with the command: htlatex source.tex "3" "" "" "--interaction==nonstopmode" to generate HTML from existing documents written in LaTeX. I've ...
2
votes
1answer
101 views

displaying TeX in web app

First I tried to ask this question on stackoverflow but it looks like that it's TeX specific. I'm having a TeX file on server, and need to display it in web page. The first thing I was thinking about ...
2
votes
1answer
671 views

How to get UTF-8 output with tex4ht under MikTeX 2.9? (`Illegal storage address` error)

Compiling this MWE (mwe.tex) \documentclass{article} \usepackage[greek,italian]{babel} \usepackage[utf8x]{inputenc} \begin{document} \latintext chars with àccéènts greek chars \greektext ασδφγη ...
3
votes
0answers
456 views

running pdflatex after htlatex causes hyperref error Undefined control sequence [closed]

UPDATE Jne 22, 2013 After installing TexLive 2013, this problem went away on its own. So this question is now resolved for me, as I will be using TL 2013 from now on. This question can closed or ...
4
votes
1answer
241 views

using mathml in htlatex makes it lose the table p-width specification in generated html

It took me a while to find the cause of this. when giving p{} for table column width, and also using mathml option, then htlatex losses the width specs in the generated HTML table. It is very simple ...
2
votes
1answer
196 views

How to add separate TOC when breaking LaTeX document using htlatex in each separate HTML page?

Related question tex4ht: limit toc I give up trying things. This is too hard. I have this document \section A \section B \subsection B.1 \subsection B.2 \section C I want one main TOC, but ...
4
votes
1answer
177 views

How to send output of htlatex to different folder without fixing all image links afterwords

The setup is simple. I have a file report.tex which includes an image from a folder. I send the output of htlatex to a separate directory. htlatex copies all images and HTML to that directory. The ...
4
votes
0answers
85 views

Bad mathchar (79119) using htlatex+mathml with \uparrow with align from amsmath package

texlive 2012 debian package: \documentclass[]{article}% \usepackage{amsmath} \begin{document} \begin{align} & \uparrow\sum F \end{align} \end{document} compile with htlatex ...
3
votes
0answers
94 views

Missing $ error using htlatex

Running the code posted in this question, the first code shown there, posted by the accepted answer by Andrew Swann. When running the code through htlatex on texlive 2012 debian, I get the error ...
2
votes
0answers
524 views

Latex to HTML using Pandoc

I have a bunch of tutorials I have written and they are written in Latex. Now I want to convert them to HTML and to Blogger also. I heard about Pandoc and decided to try it. Below are my results : ...
2
votes
1answer
298 views

Vertical alignment of table rows with images. PDF vs. HTML generated by htlatex

I have a table with 2 columns. Left column is text and the right column has an image. I wanted the row to be aligned at the top. So that the text and the image start at the same horizontal level. ...
2
votes
1answer
147 views

dvipng error when using htlatex on eps file. includegraphics Unrecoverable error 36096

I am hoping someone here can give me a hint about this error. I am not really sure this is latex problem, but part of the software that I am using to process the latex document. The setup is very ...
1
vote
0answers
189 views

htlatex does not give good results [closed]

I have a very nicely formatted file that I created using LaTeX. Now, I'm trying to embed the results into a website, and instead of embedding the resulting pdf document (which I found not to be as ...
3
votes
1answer
447 views

Cross references and citations do not show in LibreOffice after htlatex conversion

When trying to convert a simple LaTeX document to LibreOffice/OpenOffice, cross references and citations do not show in the final document. They do when converting to (X)HTML, but this has other ...
6
votes
1answer
281 views

htlatex with article vs memoir

Why does the following document (with article document class): \documentclass{article} \begin{document} \begin{tabular}{c|c} \hline 1 & 2 \\ \hline \hline 5 & 6 \\ \hline \end{tabular} ...
2
votes
1answer
326 views

latex command to genenerate output similar to this website

How can I generate latex with the following format in latex? I know about tex4ht and I know about latex4html but couldn't get similar output. Source Website is here and a snapshot from the page is ...
3
votes
1answer
509 views

htlatex - need help converting latex to html

I am trying to convert a set of tex file to html. The attached code generates perfect pdf. While it gives the following error with htlatex. I have not much knowledge of tex so please help by being ...
7
votes
1answer
494 views

tex4ht gives 'illegal storage address' error when trying to convert to odt

I am trying to convert a LaTeX document to opendocument with TeX4ht (on Windows/MiKTeX 2.9 32-bit). I am using the following command (as suggested on the TeX4ht website): D:\latex>htlatex mwe.tex ...
11
votes
1answer
1k views

Generation of simple, CSS-less HTML with htlatex

When htlatex converts a document, emphasis and bold-face are converted to spans of a certain style which is defined in the accompanying CSS file. Input: \documentclass{scrartcl} \begin{document} ...
6
votes
1answer
173 views

Force all floats to the end of the document without using endfloat, compatible with htlatex

What is the easiest way to have all floats forcibly appear at the end of the document? The solution should work with htlatex, the floats should appear at the end of the HTML document in this case. ...
5
votes
1answer
144 views

How do I preserve hyperreferences in the index when converting text from LaTex to HTML

I have written a book with three indexes in LaTex. I can produce a perfect hyperreferenced pdf file using the dvipdf filename command, but I cannot convert Latex into HTML using htlatex or TEX4ht ...
2
votes
1answer
237 views

Running htlatex in a shell script (bash, mac)

I am trying to simply run a command: htlatex texfilename "xhtml,charset=utf-8" In a terminal command line, it runs well. If I create a shell script file that looks like: #!/bin/bash htlatex ...
8
votes
2answers
447 views

Removing ligatures for small caps in TeX4HT

The Amazon Kindle has a default font which features small caps and ligatures, but not ligatures for small caps. For this reason, when it sees ligatures (even common ones, such as "ff"), it renders them ...
6
votes
1answer
204 views

TeX4HT, first paragraph and indentation

In a book, I set up indentation to be 1em for every paragraph, including the first paragraph in sections: \setlength{\parindent}{1em} However, TeX4HT doesn't honor this setting and sets the first ...
5
votes
0answers
222 views

Removing spaces before command

When using French guillemets with TeX4HT, the resulting symbols are not followed/preceded by non-breaking spaces like they should, resulting in wrong line-breaking in HTML. I tried resetting \og and ...
4
votes
1answer
284 views

Lettrine, accentuated characters and htlatex

I use accentuated letters with the lettrine package like: \lettrine{É}{lisée} avait vu le pouvoir de Dieu sur la vie d'Élie. With luatex (which is my normal rendering engine), it works fine. ...
5
votes
1answer
767 views

When generating html, how do you specify image size?

I am using htlatex (or as many people call it tex4ht) to generate html and I have included some graphics. Htlatex seems to ignore all the size arguments I give the image size. I've tried specifying: ...
2
votes
1answer
145 views

Why are listings placed in <pre>'s by htlatex?

Here is a MWE: \documentclass{book} \usepackage{listings} \begin{document} \begin{lstlisting} var x = 10; // Some code if(x == 10) return null; \end{lstlisting} \end{document} When this is ...