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

learn more… | top users | synonyms

2
votes
1answer
105 views

Formatting a LaTeX list as an HTML table

Is it possible to add some configuration somewhere in order to have LaTeX list, such as: \begin{customlist} \item[keyword1] Description. \item[keyword2] Another description. \item[keyword3] Yet ...
1
vote
1answer
414 views

TeX4ht and Calibre

I try to use TeX4ht and Calibre to create an ebook that I can read with an iPad. I use the following command: htlatex file.tex "xhtml, jsmath""-cmozhtf". The result with Calibre is correct except for ...
2
votes
1answer
152 views

How can we enable -shell-escape to tex4ht's htlatex or related program?

Can we enable -shell-escape through any option without editing the default htlatex program? OR Can we achieve this using mk4ht ht?
1
vote
0answers
157 views

TeX4ht and PSTricks

I tried to compile the code below with mk4ht htlatex file.tex 'xhtml, charset = utf-8 pmathml' '-cunihtf-utf8-cvalidate' Formulas and text are transcribed, but not graphics. How to solve this ...
2
votes
0answers
233 views

Tex4ht options to convert beamer slides

I tried to used tex4ht utility to convert beamer-latex presentation to OpenOffice ODT, and I'm really not happy with the results. Please find below the snapshots of PDF and ODT files. Please note, ...
4
votes
1answer
365 views

Error using htlatex with tikz forest package, invalid SVG generated

htlatex is supposed to support tikz with \def\pgfsysdriver{pgfsys-tex4ht.def} and it does on some tikz examples, but for some other examples, it gives bad svg images. UPDATE I was able to reduce the ...
4
votes
0answers
341 views

htlatex options

I'm using htlatex (Miktek 2.9, on windows command prompt) with the command: htlatex source.tex "3" "" "" "--interaction==nonstopmode" to generate HTML from existing documents written in LaTeX. I've ...
0
votes
1answer
446 views

Bibliography and Tex4ht

I am converting TeX containing references to HTML using TeX4ht installed under MikTeX. The program produces HTML but the bibliography is missing, any ideas? The following test.tex produces a clean ...
2
votes
1answer
448 views

unicode-math and tex4ht with utf-8 input

I have a document which I'm compiling to PDF using LuaTeX, and I want to create an HTML version from the same sources. The text is german with umlauts, and for convenience I'm using some unicode-math ...
1
vote
1answer
143 views

Macros, htlatex with/without “xhtml, mathml”

Following mwe.tex works with htlatex mwe.tex. With htlatex mwe.tex "xhtml, mathml" it gives correct C_5 but \S is like S5, not S_5. \documentclass{article} \usepackage{xspace} ...
3
votes
1answer
206 views

Htlatex and subcaption - can htlatex be extended?

To start with MWE: \documentclass{article} \def\pgfsysdriver{pgfsys-tex4ht.def} \usepackage{tikz} \usepackage{subcaption} \begin{document} \begin{figure} \subcaptionbox{Small} { \tikz \draw ...
3
votes
1answer
240 views

Tikz to html, characters in picture, svg error

This fails to produce working file with htlatex: \documentclass{article} \def\pgfsysdriver{pgfsys-tex4ht.def} \usepackage{tikz} \begin{document} \begin{figure} \tikz \node (foobar) {$\cong$}; ...
3
votes
1answer
188 views

using \label causes error with htlatex when hyperref is used in TL 2013

in TL 2013, new installation. When adding \label below causes an error in htlatex \documentclass[12pt]{article}% \usepackage{hyperref} \begin{document} \begin{equation} \label{eq1} x=y ...
10
votes
1answer
343 views

extra “]” displayed when using htlatex in TL 2013 with \usepackage{hyperref}

I noticed I am getting a new char displayed on the HTML page which did not exist when I was using TL 2012 with htlatex. I narrowed it down to including \usepackage{hyperref} This extra "]" shows only ...
7
votes
1answer
257 views

why “ff” displays strange using unicode encoding vs. iso-8859-1 in HTML output from tex4ht?

I understand that one should (?) be using UNICODE for html. But using this with tex4ht, always makes "ff" look strange. Why does this happen for "ff"? and based on this test below, should one instead ...
2
votes
1answer
963 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
601 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 ...
3
votes
0answers
163 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
361 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
289 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
236 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
128 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
126 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 ...
10
votes
1answer
128 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
604 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
214 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
104 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
891 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
235 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
340 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
240 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 ...
5
votes
0answers
123 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 ...
38
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
1k 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
152 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
391 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
766 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
274 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
693 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
556 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
242 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
270 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
176 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
227 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
549 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
327 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
366 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
629 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
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 ...