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

learn more… | top users | synonyms

9
votes
1answer
120 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
463 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
206 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
100 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
722 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
217 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
320 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
227 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
102 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 ...
35
votes
5answers
6k 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
945 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
146 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
364 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
695 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
249 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
590 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
491 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
234 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
250 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
163 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
219 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
506 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
353 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
585 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
497 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
577 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
213 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
174 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
101 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
445 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
109 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
212 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
789 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
576 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
133 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 ...
25
votes
1answer
3k 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
126 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
169 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
182 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
367 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
488 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
221 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
243 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
308 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. ...