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

learn more… | top users | synonyms

2
votes
1answer
451 views

Setting image size in html output of tex4ht

I have a complex document which I'm trying to convert to html with tex4ht and TeXLive under Ubuntu, but I'm not able to coherently control the image size of jpg and eps images. In html output, jpg ...
3
votes
1answer
141 views

Change chapter formatting with TeX4ht and memoir

Using htlatex/tex4ht, it seems that the chapter heading style set by memoir is over-ridden when generating HTML output. How can you customize the style of the chapter headings generated by tex4ht? ...
3
votes
1answer
81 views

How to remove extra letters added to section name using \verb with htlatex?

MWE: \documentclass{article} \usepackage{cprotect} \begin{document} \cprotect\section{\verb|invlaplace(exp((a*s)^(1/2)), s, t)|} test \end{document} pdflatex output: but htlatex foo.tex ...
0
votes
0answers
260 views

tex4ht on MiKTeX fails on the simplest document

Document: \documentclass{article} \begin{document} This is just some sample text. \end{document} Error: mk4ht oolatex nodecolon mk4ht (Version 1.1) htlatex nodecolon "xhtml,ooffice" "ooffice/! ...
4
votes
1answer
85 views

Quoting environment and tex4ht

I'm trying to convert some latex which includes the quoting environment, to html using htlatex. Here's a little example which gets typeset without any problems: \documentclass{scrbook} ...
2
votes
1answer
193 views

How to fix these MathML generated code by Tex4ht, or change Latex code to bypass the problem

updated: Added the MathML code in source form at the bottom of this, as requested. I am now configuring tex4ht to generate MathML instead of .png for the math. Then MathJax is loaded for final ...
3
votes
1answer
247 views

LaTeX Error: \theHchapter undefined when using tex4ht with hyperref and appendix package

Using texlive 2013. The following MWE compiles fine with pdflatex, but gives the error: ./foo.aux) [1] Chapter 1. ! LaTeX Error: \theHchapter undefined. when I run it using the command: htlatex ...
6
votes
1answer
477 views

How export LaTeX to OpenDocument format with Biblatex references

I am trying to export a LaTeX document to OpenDocument (.odt) format. This operation is requested by some publishers which do not know how to handle LaTeX files. I can't find a way of exporting ...
2
votes
0answers
89 views

Producing odt from tikzpicture?

How can I produce an odt file from a tex source which includes tikzpicture ? I tried mk4ht oolatex test.tex but I only be able to produce an empty odt file from the following code : ...
2
votes
1answer
62 views

TeX4ht - prevent line breaking in HTML?

By default, TeX4ht breaks long lines of text in the input into shorter lines in the output HTML file. Is there any way to suppress these extra line breaks? (Note that I am trying to avoid extra line ...
5
votes
1answer
155 views

convert (xe)latex with non-english character to html

I have an exact problem as this post. I have checked the answers there, and found a probable reply here. Sad that I am in linux, and cannot use bat file. Pasted is my latex file, which compiles well ...
3
votes
1answer
81 views

`\ifhtlatex` needed for running tex4ht with different code [duplicate]

It is much easier to write my texts in an editor with LaTeX, but often clients ask for a word file. tex4ht does a good job, it produces html from a tex-file, which can be easily used. But there are ...
1
vote
1answer
114 views

How to prevent a tex4ht or pdftohtml html document from breaking justification?

Text is ragged to the left, hyphenation is off. Furthermore, the lettrine package otherwise perfectly indented types are misaligned as a result. Rules and graphics are in an image of its own. So, ...
2
votes
2answers
345 views

HtLaTeX - problem when using relative paths

I'm currently working on a little thing I called offline blog engine. The idea is to write my articles in simple (La)TeX files and create some static HTML files which contains the blog posts. The ...
2
votes
1answer
99 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
368 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 ...
1
vote
1answer
124 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
137 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
196 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
310 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
299 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
374 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
371 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
117 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
169 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
213 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
158 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
277 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
231 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
805 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
87 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
522 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
128 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
301 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
249 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
204 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 ...
4
votes
0answers
93 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
112 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
118 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
421 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
201 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
96 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
675 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
212 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
313 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
221 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 ...
3
votes
0answers
100 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
905 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
144 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} ...