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

learn more… | top users | synonyms

5
votes
2answers
883 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
156 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
206 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
764 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
797 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
204 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
446 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
478 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
108 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
634 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
212 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
109 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
230 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
513 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
476 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
751 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
315 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
472 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
375 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
292 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
489 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
386 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
539 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
3k 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
2k 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
250 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
370 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 ...
6
votes
2answers
706 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
360 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 ...
1
vote
1answer
469 views

In which order execute htlatex and bibtex?

I would like to learn the correct order of calling htlatex and bibtex. So far I tried the following order: htlatex main bibtex main htlatex main htlatex main and (I use pdflatex to generate pdfs ...
1
vote
0answers
403 views

htlatex puts images for math formula in the wrong place if imgdir option used [closed]

I'm creating html from LaTex using the command htlatex ebook "html,info,imgdir:img/" All images are in the subdirectory img/ and this works perfectly. However I have a footnote containing a formula: ...
6
votes
3answers
1k views

Htlatex and Tikz creates sometimes incorrect svgs

I have a document with a large number of Tikz pictures and I need to generate a html page from it. I have declared a driver to have TikZ pictures as SVGs (after this question) and run htlatex ...
4
votes
1answer
391 views

\autoref from hyperref with tex4ht

The following document when compiled with htlatex test-nameref.tex "html,4" generates wrong targets (but correct displayed text) for the subsection and subsubsection references with the updated ...
5
votes
1answer
201 views

TeX4ht and Plain TeX

According to tug.org TeX4ht can be used with Plain TeX. I've tried the commands listed in the site above, but nothing works! All I can have is a simple text file, with .html extension, but without any ...
0
votes
1answer
1k views

Using the command window to convert LaTeX to HTML [closed]

I am trying to convert a LaTeX file to HTML. I have tried to do this by typing cmd into the search bar of the START menu. When the black background box comes up, I type in htlatex filename.tex where ...
5
votes
2answers
9k views

Using htlatex to convert LaTeX to HTML

I appear to have htlatex and htxelatex already installed on my computer. However when I try to run them, it comes up with the message, 'I can't write on file 'texput.log'' I am trying to convert a ...
10
votes
2answers
341 views

PDF page references in TeX4ht generated html?

I'm using TeX4ht to make html and epub versions of documents that are also processed to pdf. I'm unclear on how to include some kind of visual page references in the html and epub that correlate to ...
9
votes
2answers
768 views

Incompatibility of biblatex and tex4ht when using defernumbers

There seems to be a known incompatibility between biblatex and tex4ht when using defernumbers=true. I have one large .bib file. In the document I want to group the references into different ...
2
votes
0answers
3k views

Convert Latex to odt using tex4ht [closed]

Based on advice from this question I'm trying to use tex4ht to convert a latex document into something readable by MS Word. I was planning to use tex4ht to convert .tex to odt format. I'm running ...
1
vote
2answers
205 views

tex4ht incompatible with expdlist

I try to convert the below document with htlatex and no options and it spits this error on me: ! LaTeX Error: Something's wrong--perhaps a missing \item. There's no error if I remove the square ...
19
votes
1answer
1k views

Maintaining layout of Tikz diagrams with TeX4ht (converting as single pictures)

A Tikz diagram such as \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \path (0,0) node[draw] (A) {A}; \path (2,0) node[draw] (B) {B}; \draw (A) -- (B) ...
6
votes
1answer
657 views

tex4ht leaving equations unchanged - including \[…\] and \(…\)

I want to let tex4ht leave the equations unchanged. Using the tip given at tex4ht leaving equations unchanged, it works for $ and $$ equations. In the case of \[...\] and \(...\) equations it does not ...
2
votes
1answer
2k views

Tex4ht under MiKTeX: How to convert multiple tex files

I'm using MiKTeX 2.9 and installed the miktex-tex4ht-base2.9 in order to convert my LaTeX files into HTML. I just updated everything before starting so I should have the latest packages for ...
34
votes
3answers
1k views

LaTeX to Braille

Accessibility for the visually impaired is becoming a big issue. The posts that I have linked to below ask questions about alt-tags or tooltips, both of which would be great options. I would like to ...
9
votes
1answer
918 views

text4ht and LuaTeX

There is a specific command to run tex4ht with XeTeX: htxelatex (which doesn't really work actually as far as I'm concerned). What is the command to run text4ht with LuaTeX instead?