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

learn more… | top users | synonyms

3
votes
0answers
92 views

TeX4ht with Natbib, missing citations [duplicate]

I have read about LaTeX2rtf, but installing it on a Mac looks a bit intimidating, so in the meantime I am trying to use the workaround of using TeX4ht to convert my TeX into an ODT file and then ...
5
votes
3answers
555 views

LaTeX to HTML - Square roots

I used SimpleTeX4ht to convert a LaTeX file to HTML. The file is fine except that square roots are rendering badly in juxtaposition with the rest of the text, e.g. like: Any suggestions on how to ...
8
votes
1answer
639 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 ...
5
votes
1answer
249 views

Configure tex4ht for linked images

I have a document that is to be compiled in PDF (using pdflatex) and XHTML (using tex4ht). For the XHTML version, I wish to have the images linking to their source in a new window (target="_blank"). ...
5
votes
1answer
181 views

Centering text flanked by 2 images using tex4ht

I am trying to create an HTML page using tex4ht using the following code: \rput[r](-2pt,6pt){\psvectorian[color=black,width=2cm]{41}} \hfill{} {\Large \url{Title Text}} \hfill{} ...
3
votes
1answer
168 views

Cannot change tex4ht.env

I have installed the latest version of WinEdt v7 and MiKTeX (october 2012). When I run latex2html and tex4ht is called the tex4ht.env file is everytime overwritten with the default settings. Even if I ...
1
vote
1answer
123 views

Making \marginpar work with tex4ht

I tried using \marginpar using tex4ht and pdflatex. Here is the PDF output: Here is the HTML output: Is it possible to configure tex4ht to produce HTML output with good looking marginal notes? ...
8
votes
1answer
507 views

Using tikz with both tex4ht and pdflatex

I found that in order to use tikz with tex4ht to produce HTML, I need to do the following: \def\pgfsysdriver{pgfsys-tex4ht.def} \usepackage{tikz} I also need to produce PDF from the same tex file ...
1
vote
0answers
121 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
236 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
110 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
878 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
107 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} ...
12
votes
1answer
2k 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
628 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
136 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 ...
26
votes
1answer
4k views

Convert Latex to MathJax-HTML

Is there any tool that can convert Latex documents to HTML documents, so that all math is presented with MathJax? (Obviously, it is fairly easy to hack together a quick Perl script that is able to do ...
2
votes
1answer
129 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
180 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
192 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} ...
5
votes
1answer
411 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
522 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
233 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
253 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 ...
5
votes
1answer
323 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
2answers
948 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
168 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
233 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
841 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 ...
7
votes
2answers
873 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
1k 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
218 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
470 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
535 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
114 views

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

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
3answers
718 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
2k 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
218 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
110 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
238 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
538 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. ...
6
votes
4answers
3k 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
519 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
822 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
369 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
512 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
404 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
310 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
538 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 ...