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

12
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
186 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
161 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
250 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
474 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
217 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
233 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
298 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
840 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
154 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 ...
1
vote
0answers
196 views

htlatex gives me a lot of “random” errors [closed]

I'm using htlatex to convert LaTeX into HTML and I'm getting errors on things that I haven't specified, such as my own environments. An example is \def\inline{\lstinline[style=inlineStyle]} which ...
6
votes
1answer
734 views

LaTeX to HTML preserving code coloring from listings

I'm trying to convert some LaTeX into HTML but my code listings don't preserve their code coloring. Why is that and how do I fix it? This is what it looks like: Side note: I'm also wondering why ...