TeX4ht is a highly configurable TeX-based authoring system dedicated mainly to produce hypertext.

learn more… | top users | synonyms

1
vote
0answers
97 views

Move section anchors generated by tex4ht

When compiling a file with tex4ht, the sections are transformed with header HTML tags with anchor. So, if I compile \documentclass{article} \usepackage[xhtml,mathml]{tex4ht} \begin{document} ...
3
votes
1answer
194 views

Prevent TeX4ht from inserting img in equation with \mathcal

When I use TeX4ht to produce MathML, it produces an image when I use \mathcal in the equation. The result is that MathJax complains that the code is not valid. Is there a way to fix this problem? ...
2
votes
1answer
102 views

Prevent paragraph ending before display equation in TeX4ht

I'm using TeX4ht and I noticed that the displayed equations always forces the current paragraph to end. For example, if I write: We define \[ x = 3 \] and continue the discussion. I would expect ...
4
votes
2answers
705 views

Avoid eps to png conversion using mk4ht oolatex

I have a big set of eps images and I need to place them into an OpenOffice (odt) document. I wrote a simple script that creates a tex file containing these eps images and now I'm trying to convert it ...
4
votes
1answer
101 views

tex4ht and colortbl

The package colortbl steals my beloved horizontal rules in the longtable. When I run tex4ht. % run: htlatex main.tex \documentclass{article} \usepackage{longtable} %\usepackage{colortbl} ...
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} ...
9
votes
2answers
499 views

TeX4ht: \includegraphics[page=10]{foo.pdf}

I have a long LaTeX document with lots of figures that were included using commands of the form \includegraphics[page=10]{foo.pdf} Everything compiles fine with pdfLaTeX. I planned to convert the ...
5
votes
1answer
121 views

Missing <sub> tags in tex4ht output

When processing a LaTeX source with tex4ht, I can't seem to reliably convert subscripts in text mode to <sub> tags in the HTML output. My only solution so far is to switch to math mode. But for ...
2
votes
1answer
123 views

No minitoc in chapter pages with TeX4HT

TeX4HT allows to create one HTML page per chapter with 2,next in the options: htlatex project.tex 'xhtml,2,next,charset=utf-8' ' -cunihtf -utf8 -cvalidate' This, however, creates a minitoc in the ...
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 ...
1
vote
0answers
169 views

tex4ht + tabu-package does not work [closed]

I am trying to compile an existing tex-document with tex4ht. However, it seems that the tabu-package does not work together with tex4ht: \documentclass{book} \usepackage{tabularx} \usepackage{tabu} ...
4
votes
1answer
308 views

Control the <p> tags added by Tex4HT

TeX4HT allows to reset LaTeX macros to insert HTML code in order to produce clean HTML documents. This is great, but it often gets in a mess of <p> tags, such as: <p class="noindent" ...
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 ...
1
vote
0answers
175 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
659 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 ...
6
votes
2answers
710 views

biblatex & TeX4HT: citations in footnotes = missing \begin{document}

the following code, which I'm trying to run through TeX4HT and biber in order to create an .odt file, results in a »missing \begin{document}« error, pointing to the aux file. Something about the ...
3
votes
1answer
874 views

Specify output directory for htlatex

I would like to know how I can specifiy the output directory for the html/css generated by htlatex. My call is as follows: htlatex main.tex The files are generated in the same directory where ...
2
votes
0answers
187 views

using the multirow package with tex4ht to generate tables in html document

I am trying to generate a html document using latex and I am experiencing some minor bug with tex4ht and the multirow package (I am working with MikTex 2.9 and WinEdt 7). It appears that the ...
1
vote
1answer
389 views

How to remove horizontal lines around figures for htlatex output

htlatex adds horizontal lines around figures floats. For instance, the HTML output for the following tex: \begin{figure} \begin{centering} \includegraphics{photo.png} \end{centering} \end{figure} ...
6
votes
1answer
405 views

Apparent conflict between hyperref and tex4ht packages

I am trying to use both the hyperref and tex4ht packages to format a textbook into a web textbook. Everything works except if I comment out chapter one, but if I include chapter one in the document, ...
3
votes
0answers
103 views

References are positioned under the chapter/section number in HTML using tex4ht

I am converting documents to (X)HTML using tex4ht. The program works well, but the only thing that doesn't is the references. I included a table of contents and made links using the hyperref package. ...
1
vote
2answers
512 views

MiKTeX 2.9's tex4ht not working

According to this document and my own experience. MiKTeX 2.9's version of tex4ht is not working. Using MiKTeX 2.8's tex4ht does work, but is obviously not prefered. Does anybody know how to fix MiKTeX ...
2
votes
1answer
1k views

MiKTeX's tex4ht gives:

I am trying to compile a LaTeX document to HTML using tex4ht, using the MiKTeX's tex4ht and Texmaker. I am trying to do this using a user command: C:\MiKTeX\miktex\bin\x64\tex4ht.exe htlatex %.tex ...
5
votes
1answer
191 views

Configure tex4ht for colortbl and tabulary

I'm trying to use colortbl together with tex4ht: \documentclass{article} \usepackage{tabulary,colortbl} \begin{document} \begin{tabulary}{\textwidth}{C} test\\ \end{tabulary} \end{document} When ...
2
votes
0answers
107 views

compiling with tex4ht, how much time is needed? [closed]

I'm tryng to compile my academic thesis in html. I've compiled it with success in pdf, it is about 130 pages full of images and formulas. I want compile it in html to put on my website, i get xhlatex ...
3
votes
1answer
211 views

Problem with custom auxiliary file and tex4ht

I have a LaTeX file that's working very well with pdflatex. I want to turn it into HTML, so I'm using tex4ht (under MiKTeX 2.9 on Windows 7). I've already gotten around some problems (the old graphics ...
3
votes
1answer
465 views

tex4ht conversion of tables (memoir class problem)

I am trying convert my document to HTML using htlatex. Everything my document (70+ pages) works fine until I look at the tables. The tables generated do not actually follow any kind of table format. ...
5
votes
4answers
2k views

Verbatim environment with background color (PDFLaTeX and tex4ht)

I need to make a verbatim environment with gray background color, such as: That needs to work with PDFTeX and tex4ht on an older TeX installation (from 2009 I believe). My approach so far is ...
4
votes
1answer
398 views

Can tex4ht output a 'flat XML' (fodt) OpenDocument file?

I'm guessing the answer to this question is no, but no harm asking - tex4ht, when outputting oolatex, outputs an .odt OpenDocument, which is actually a .zip file (which then contains content.xml, ...
3
votes
1answer
665 views

Problems building article with oolatex and hyperref [duplicate]

I'm getting into a bit of trouble, trying to convert a Latex article to OpenOffice. First of all, I'm using Ubuntu 11.04, with a texlive 2011 installation (installed via tlmgr). EDIT1: There is now ...
8
votes
1answer
277 views

tex4ht problems with footnotes

I have a problem with footnotes and tex4ht. The following document has a wrong next pointer in subsection 1 and a bad previous pointer in subsection 3: \documentclass{book} \begin{document} ...
4
votes
3answers
443 views

htlatex/tex4ht without hyperlinks in HTML file?

How do I disable the creation of hyperlink with tex4ht? They are unnecessary when preparing a paper for publication in one of those ... (insert any attribute you find appropriate) journals that ...
8
votes
3answers
2k views

LaTeX to HTML: PolyTeXnic and PlasTeX

I was stunned by the elegant appearance of the Tau manifesto page, for which the source is in LaTeX. The author used a home-made tool that he calls PolyTeXnic, but which he is not willing to release. ...
3
votes
2answers
352 views

.htf for Chinese utf8 fonts other than unisong*

In continue with this question: Producing html for Chinese documents with Tex4Ht Tex4Ht requires .htf fonts for converting Chinese documents. I've managed to make all the unisong*.htf fonts work ...
2
votes
1answer
278 views

Producing html for Chinese documents with Tex4Ht

I'm using TexLive 2011 on Ubuntu 11.10. Take this for example: \documentclass[UTF8]{ctexart} \begin{document} 文章内容。 \end{document} Then I run htlatex test.tex to convert it to html, but after ...
6
votes
1answer
438 views

Converting all math to graphics with TeX4ht

TeX4ht converts all \(...\), \[...\], $$...$$ and other math environments to png format. However, it does not convert $...$ to png. It first tries to use html codes for $...$ math, and if it is not ...
11
votes
2answers
2k views

PDF image files and `htlatex`

When eps files are provided, htlatex from tex4ht automatically converts to png files so that graphic files can be shown in the final html output. However, I use most of the time the pdf graphic file ...
3
votes
2answers
359 views

tex4ht: limit toc

When I run the following file through htlatex main html,4, the first (main) page has a table of contents that is too deeply nested. I only need part,chapter and section in my toc. The section page ...
8
votes
1answer
455 views

tex4ht: alt text for images of equations

I'm using tex4ht to translate LaTeX to (X)HTML. Tex4ht automatically generates images of equations it could not translate directly into text. Problem: the filename of the image generated, as well as ...
41
votes
5answers
2k views

Why haven't any TeX->HTML converters been updated to use current web standards/style?

I think that updating these converters would help TeX stay relevant as a document processing language. In these last few years, web development has really skyrocketed. CSS3 has brought along a lot of ...
7
votes
1answer
1k views

LaTeX --> (X)HTML with tex4ht: bad quality images of equations

I'm using tex4ht to produce XHTML files from a LaTeX file. The XHTML file I obtain uses images for some equations which tex4ht could not convert directly to XHTML. Problem: images of equations have ...
0
votes
2answers
230 views

tex4ht: create (dummy) eps images on the fly

I am using tex4ht to create a document in HTML and my images are PNG files. For tex4ht I need eps images although in the final HTML page I use original PNG files (see my other question here on ...
5
votes
1answer
343 views

Custom heading with tex4ht

tex4ht generates a page head and foot with navigation elements, such as [next] [tail] [up] with hyperlinks. Now I would like to change that appearance to have the page heading left and right of the ...
5
votes
2answers
641 views

tex4ht: reuse png images instead of creating new ones

I have a lot of PNG images in my document, which (the document) I'd like to convert to HTML using tex4ht (htlatex). Now the images need to be in EPS format, as htlatex uses DVI mode. So I run convert ...
1
vote
0answers
348 views

Content page, page numbers and few images missing after converting from LaTeX to HTML using htlatex [closed]

I am trying to make a User Manual in both PDF and HTML format. I have generated the HTML file using htlatex but my content page, page numbers and few of my images are missing from it. My images are ...