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

learn more… | top users | synonyms

2
votes
1answer
876 views

How to get UTF-8 output with tex4ht under MikTeX 2.9? (`Illegal storage address` error)

Compiling this MWE (mwe.tex) \documentclass{article} \usepackage[greek,italian]{babel} \usepackage[utf8x]{inputenc} \begin{document} \latintext chars with àccéènts greek chars \greektext ασδφγη ...
2
votes
1answer
91 views

how to prevent part of section name from being part of the hyperlink generated automaticaly in TOC?

sometimes I'd like part of the section name text (and subsection and anything that goes to TOC) to show up but without it being part of the link that is generated automatically by pdflatex and by ...
3
votes
0answers
564 views

running pdflatex after htlatex causes hyperref error Undefined control sequence [closed]

UPDATE Jne 22, 2013 After installing TexLive 2013, this problem went away on its own. So this question is now resolved for me, as I will be using TL 2013 from now on. This question can closed or ...
2
votes
0answers
144 views

tex4ht and texMemo.cls

Running tex4ht on the example files that use the texMemo class http://www.oak-tree.us/2010/08/02/texmemo/ give the following error: ! LaTeX Error: No \gdef \GenericError { }{LaTeX Error: No \gdef ...
4
votes
1answer
326 views

using mathml in htlatex makes it lose the table p-width specification in generated html

It took me a while to find the cause of this. when giving p{} for table column width, and also using mathml option, then htlatex losses the width specs in the generated HTML table. It is very simple ...
2
votes
1answer
268 views

How to add separate TOC when breaking LaTeX document using htlatex in each separate HTML page?

Related question tex4ht: limit toc I give up trying things. This is too hard. I have this document \section A \section B \subsection B.1 \subsection B.2 \section C I want one main TOC, but ...
4
votes
1answer
219 views

How to send output of htlatex to different folder without fixing all image links afterwords

The setup is simple. I have a file report.tex which includes an image from a folder. I send the output of htlatex to a separate directory. htlatex copies all images and HTML to that directory. The ...
5
votes
1answer
113 views

Bad mathchar (79119) using htlatex+mathml with \uparrow with align from amsmath package

texlive 2012 debian package: \documentclass[]{article}% \usepackage{amsmath} \begin{document} \begin{align} & \uparrow\sum F \end{align} \end{document} compile with htlatex ...
3
votes
1answer
120 views

Missing $ error using htlatex

Running the code posted in this question, the first code shown there, posted by the accepted answer by Andrew Swann. When running the code through htlatex on texlive 2012 debian, I get the error ...
9
votes
1answer
121 views

Why does tex4ht search for tfm files?

Can somebody explain me why tex4ht searches tfm files? What does it do with that tfm file? At first I thought that it needs a tfm name, that it could find the .enc file from psfonts.map. From .enc it ...
2
votes
1answer
512 views

Vertical alignment of table rows with images. PDF vs. HTML generated by htlatex

I have a table with 2 columns. Left column is text and the right column has an image. I wanted the row to be aligned at the top. So that the text and the image start at the same horizontal level. ...
1
vote
0answers
211 views

htlatex does not give good results [closed]

I have a very nicely formatted file that I created using LaTeX. Now, I'm trying to embed the results into a website, and instead of embedding the resulting pdf document (which I found not to be as ...
6
votes
0answers
103 views

Can you run mk4ht on iPad or Android?

I need to create html files from tex using mk4ht on an iPad or an Android tablet... Is there any way to run mk4ht on iOS or Android? Preferably without requiring Internet connection, but if that's not ...
8
votes
2answers
783 views

conversion issues using htlatex and MathJax/mathML method

I am using the method shown in this answer below to convert my LaTeX file to HTML so that the resulting LaTeX file is processed by MathJax via MATHML: Convert Latex to MathJax-HTML "... mathml ...
5
votes
2answers
225 views

How to write tex4ht source files

How can I learn how to edit 4ht files? What should I read? I want to fix a number of issues in ooffice.4ht (inconsistent footnote size, style names which mismatch names used by LibreOffice, dangling ...
1
vote
1answer
328 views

HTML and LaTeX code conversion using TeX4HT

All the display equations/centered equations are no need to convert to MathML or PNG and need to retain in LaTeX coding only. If it is possible convert to HTML tag in-between text part only convert ...
9
votes
1answer
230 views

how to redefine \begin{align*} … \end{align*} to \begin{eqnarray*} … \end{eqnarray*}

Scientific word insists in generating displayed math using \begin{align*} ... \end{align*} and htlatex has a bug in that it does not generate bit mapped images in this case. The fix that I found ...
4
votes
0answers
105 views

syntax error when using tex4ht on Latex file that uses the standalone package [closed]

When I try to use htlatex to convert a latex file to html, where the latex file uses the standalone package, a syntax error is thrown from the file keyval.tex. The Latex file works fine with ...
36
votes
5answers
7k views

Recommended workflow? LaTeX -> ePub with math viewable on iPad

This started as a comment in an older thread, but I thought I repost it here as a question to the forum... I'm looking for a workflow that will take me efficiently and reliably from existing LaTeX ...
6
votes
1answer
993 views

How to convert to odt using xparse and mk4ht oolatex

Both tex4ht and htlatex compile documents with package xparse. But mk4ht oolatex doesn't. Running it on a document as simple as: \documentclass{article} \usepackage{xparse} \begin{document} a ...
4
votes
1answer
148 views

autoref in French documents incompatible with TeX4ht

I'm currently using MiKTeX 2.9 on Windows 7 and can't get to compile a French document correctly. Here is a very minimal example: \documentclass[francais]{article} \usepackage[T1]{fontenc} ...
5
votes
1answer
370 views

Chess notation does not show figurine font

I am new to LaTeX/skak. I use htlatex to generate a small ebook html. \documentclass{book} \usepackage[ps,mover]{skak} \title{test1\\Test} \author{Asim} \begin{document} \parindent=0pt ...
4
votes
1answer
718 views

on Tex4ht conversion to HTML, can this conversion be improved?

I have been trying tex4ht and comparing its output to Latex2html (l2h). I still find l2h to produce better math in the HTML than tex4ht. But it could be I am not doing something right and I thought ...
4
votes
1answer
259 views

Renaming LaTeX file to index.tex causes tex4ht to give error when using minitoc

>cat t2.tex \documentclass[titlepage]{report}% \usepackage{minitoc} \begin{document} foo \end{document} now htlatex t2.tex "html,4" No errors. Now I name it to index.tex and try again: ...
4
votes
1answer
613 views

what is the correct way to check for latex, pdflatex and html in the same latex document?

What is the correct way to check for if one is running in pdflatex vs latex vs. an html processor such as tex4ht? Suppose I have some latex code that I only want to show up in html, and not show up ...
3
votes
2answers
516 views

Colon in bibliography keys incompatible with babel, biblatex and tex4ht

Keys are labeled as author:year in my BibTeX file. For example, @article{John:2000, author={John}, year={2000}, ...}. This scheme works well with pdftex, biblatex and mk4ht oolatex. But if in ...
4
votes
1answer
238 views

Inconsistent footnote size in converting LaTeX to OpenOffice.org

When a LaTeX document containing 2 footnotes — footnote #1 is plain ASCII, but footnote #2 has diacritics or other extended characters — is converted to odt (OpenDocument Format), the number in ...
9
votes
1answer
257 views

Producing unformatted html with tex4ht?

When using tex4ht, a formatted html file is obtained. It uses a css file and multiple classes such as <span class="ec-lmbx-10x-x-109">toto</span> However, when using a Content ...
6
votes
1answer
166 views

Hyperlinks in zref

I use the great package zref to create my own referencing system. Can I make hyperlinks for pdftex (and tex4ht)? See the following code. I'd like to make the \showref command clickable, so that I ...
5
votes
0answers
221 views

biblatex-chicago and mk4ht oolatex: formatting errors [closed]

The MWE below using biblatex-chicago yields a few formatting errors when formatted by mk4ht oolatex (the same file formatted by pdflatex produces correct output): Report – with mk4ht oolatex: no ...
3
votes
1answer
521 views

Cross references and citations do not show in LibreOffice after htlatex conversion

When trying to convert a simple LaTeX document to LibreOffice/OpenOffice, cross references and citations do not show in the final document. They do when converting to (X)HTML, but this has other ...
6
votes
1answer
315 views

htlatex with article vs memoir

Why does the following document (with article document class): \documentclass{article} \begin{document} \begin{tabular}{c|c} \hline 1 & 2 \\ \hline \hline 5 & 6 \\ \hline \end{tabular} ...
2
votes
1answer
360 views

latex command to genenerate output similar to this website

How can I generate latex with the following format in latex? I know about tex4ht and I know about latex4html but couldn't get similar output. Source Website is here and a snapshot from the page is ...
3
votes
1answer
600 views

htlatex - need help converting latex to html

I am trying to convert a set of tex file to html. The attached code generates perfect pdf. While it gives the following error with htlatex. I have not much knowledge of tex so please help by being ...
3
votes
0answers
91 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
509 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
594 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
228 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
176 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
157 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
107 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
456 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
110 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
221 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
108 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
806 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
105 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
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
597 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
134 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 ...