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

2
votes
1answer
29 views

Multipage chapter heading seems to be incompatible with htlatex

I want each chapter to start with an image and I want the text on the subsequent page. So, I defined my replacement for \chapter as follows: \newcommand{\MyChapter}[3]{% % #1 = image % #2 = ...
1
vote
0answers
23 views

htlatex define proper bounding box dvi

Is there a way to define the proper bounding box size inside latex files so that htlatex and then dvips make the right size graphics? Right now it is cutting off the graphics too short. I am using ...
4
votes
1answer
18 views

\AtBeginDocument content seems to be ignored by htlatex

It appears that the content inserted via \AtBeginDocument is being ignored by htlatex. Is there a workaround to this other than not using \AtBeginDocument? To reproduce save the MWEs below and run ...
2
votes
1answer
35 views

htlatex/tex4ht with ScriptEnv and HTML entities

I am using htlatex to translate from LaTeX to HTML. I've created a \ScriptEnv environment for code as suggested by this answer: htlatex inserting environment in verbatim It's working well, but it is ...
1
vote
2answers
29 views

Vertical spaces in htlatex \ScriptEnv

I am using htlatex to generate the HTML version of book and I am having problems with vertical spacing. I have configured an environment like this: \ScriptEnv{tawny} ...
2
votes
1answer
33 views

htlatex with pdfpages package inserts random images

I am attempting to generate an HTML output via htlatex <filename> but when the pgfpages package is included I am getting some random images before and after the content. The resulting HTML ...
1
vote
0answers
23 views

Leave math content alone with tex4ht for MathJax [duplicate]

This question and answer explain how one could use tex4ht to convert tex to html with MathJax reading the math. One (of several) problem(s) I am having is that my document uses \cancel from the cancel ...
2
votes
1answer
25 views

htlatex inserting environment in verbatim

I want to get htlatex to put some text into my HTML file verbatim. The problem is that it keeps redo-ing my spacing. So, for example, I use a cf.cfg like this. \Preamble{html} \ConfigureEnv{tawny} ...
1
vote
1answer
16 views

Configure htlatex with listings to use Javascript renderer

I have a document using a custom environment in the listings package. So I have code embedded like so \begin{tawny} (println "hello") \end{tawny} My plan is to use some Javascript syntax ...
2
votes
1answer
30 views

htlatex in silent mode

It's possible to run htlatex in silencemode like pdflatex. pdflatex --draftmode --interaction=nonstopmode foo.tex > tmp.txt I have found only nonstopmode/batchmode in htlatex. htlatex source.tex ...
3
votes
1answer
48 views

Avoid already converted Figures in htlatex

I have found how do avoid already converted equation in this link: Avoid already converted equation in htlatex. How to do the same method in Figures Conversion? My MWE is: \documentclass{book} ...
1
vote
1answer
293 views

TeX4ht (htlatex) on MiKTeX 2.9 to convert LaTeX into MathML, and then into Office MathML with Word 2010

I managed to use TeX4ht via the htlatex command on MiKTeX 2.9 to successfully convert a LaTeX document into an HTML document. The TeX file is a fairly simple test document with an integral in display ...
1
vote
1answer
33 views

blank lines in user-defined lists in htlatex

Consider the following latex code: \documentclass{article} \begin{document} \begin{list}{*}{} \item one \item two \end{list} \end{document} It should produce: one two But the htlatex output has ...
3
votes
1answer
77 views

Avoid already converted equation in htlatex

I have converted big LaTeX file to html format successfully (include all the equations are converted to png format). After that I have changed some LaTeX text part. How do avoid again no need equation ...
2
votes
0answers
66 views

framed color environment is not converted in htlatex

I have using pdflatex and htlatex for converting framed color box in html. Successfully converted in pdflatex and not converting in htlatex. Please find the MWE below: \documentclass{article} ...
2
votes
1answer
43 views

How to add footnotes in htlatex via fn-in?

In the html code that is generated by htlatex I want to have footnotes appear on the same page instead of a new one (just like in the .pdf that is generated by pdflatex). So I read about the fn-in ...
2
votes
0answers
40 views

Conversion of latex to html for Word does not work

In order to get html code that is appropriate for Word I used the following command that I found on a TUG page: htlatex filename "html,word" "symbol/!" "-cvalidate" If I do this in Cygwin I get the ...
5
votes
1answer
76 views

color environment text is not converted in htlatex

I have using pdflatex to get the color environment text. But when using htlatex the color and the environment content (Note) is not converting. Please find the MWE below: \documentclass{book} ...
3
votes
1answer
36 views

Htlatex accents in token yields missing \endcsname

I am trying to associate sequence of characters that can contain special symbols (accents, dollars, and in particular inputs in utf8) to some content. This is to be used with htlatex. Accents yield ...
2
votes
1answer
40 views

Image creation align* environment in htlatex

I have using htlatex for converting LaTeX to HTML. Everything is working fine except \begin{align*} environment is not converting to Image. Please find the MWE below: \documentclass{book} ...
0
votes
1answer
38 views

htlatex will not include files properly

My Latex project has one main.tex file which includes several other .tex files which again may do the same. When I run htlatex main.tex the generated main.html does not contain anything from the ...
0
votes
1answer
101 views

Why does htlatex not work as expected?

I am trying to use htlatex to get an HTML version of my thesis. pdflatex just works when I compile the .tex files with TexStudio. So I ran the following command from the command line: htlatex ...
1
vote
0answers
49 views

htlatex on file including files from subdirectories, and output directory

Parts of my issue has already been answered in different questions on this site and elsewhere, however none of them solves my problem as a whole. A question about just specifying the output directory ...
4
votes
1answer
87 views

Using \newcommand works fine in LaTeX, but when I use htlatex the line of text that \newcommand was supposed to insert gets moved to the next line?

So, I'm trying to write lines of code explaining to new students where to find different files and directories. Because the classname changes on a yearly basis I set up a \newcommand to make changing ...
6
votes
1answer
450 views

How can I make bash-code look good both in LaTeX and HTML?

As I am new to Latex and this kind of typing in general, I find myself in need of some basic guidelines when it comes to how to make things look good in text. I have a document that looks good when ...
4
votes
0answers
41 views

Changing the image path of html-documents created using the htlatex command

So I've created a .tex document using TeXShop for os X, and I've specified an absolute graphicspath for all the images. Now I'm supposed to render a .html file from the .tex and I've done so using the ...
4
votes
1answer
103 views

Customizing tex4ht to generate html to convert to epub with Calibre

I'm trying to prepare html for conversion to an epub and have encountered a couple of problems that I would appreciate help with. Hope mixing a couple of related questions in a single post is OK. The ...
2
votes
1answer
120 views

Choose \documentclass dependent on compiler

I am not able to compile this tex document \documentclass{scrartcl} % \documentclass{article} \begin{document} hello \end{document} with htlatex. I am able to do this using pdflatex. If I ...
1
vote
0answers
60 views

Running htxelatex in nonstopmode

I am trying to run htxelatex in nonstomode Here are my tries: htxelatex manual.tex config.cfg "-interaction=nonstopmode" htxelatex manual.tex config.cfg "--interaction=nonstopmode" htxelatex ...
2
votes
1answer
101 views

Mark inline equation to render as image with htlatex

Is there any way to mark some inline equation so it was rendered as pictures with htlatex? I know there is a way to make htlatex to render all inline equations as pictures, but i have many simple ...
3
votes
1answer
145 views

Export LaTeX to HTML using .gif for equations?

I try to make help files for my wxWidgets-based software. wxWidgets supports displaying simple html pages and i use htlatex executable tool to convert my .tex to .html, where equations are rendered as ...
3
votes
1answer
63 views

htlatex does not seems to like $\mathit{}$ in subscripts

When I compilethis MWE: \documentclass[a4paper,12pt]{article} \begin{document} Test $x_\mathit{in}$ \end{document} ...it works perfectly with latex and pdflatex. If I try to use htlatex on it, it ...
5
votes
1answer
61 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 ...
1
vote
0answers
48 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
32 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
78 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} ...
1
vote
1answer
55 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
63 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
1answer
154 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 ...
6
votes
1answer
138 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
135 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"/> ...
8
votes
1answer
280 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, ...
3
votes
2answers
246 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
35 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
88 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 ...
4
votes
1answer
138 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
153 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
79 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
164 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
82 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 ...