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

learn more… | top users | synonyms

1
vote
1answer
30 views

why adding tocloft package causes tex4ht not to generate a table of contents?

texlive 2014 on Linux mint 17. This MWE does not generate a table of contents in the HTML file generated by htlatex \documentclass{article} \usepackage{tocloft} %if this line is commented, then toc ...
4
votes
1answer
653 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 ...
1
vote
0answers
26 views

Equations in captions causing compile error while converting LaTeX to HTML

I can manage to convert LaTeX files into HTML with Tex4ht while keeping equations as they are with the config file provided by @michal.h21 on http://tex.stackexchange.com/a/185802/52068 But it fails ...
3
votes
1answer
54 views

Using \newcommand works fine in LaTeX, but when I use htlatex the line of text that \newcommand was supposed to insert gets moved to the next line?

So, I'm trying to write lines of code explaining to new students where to find different files and directories. Because the classname changes on a yearly basis I set up a \newcommand to make changing ...
0
votes
1answer
14 views

How do I override a \configure statement in html4.4t - tex4ht

This question is a narrowing of one of the questions I asked in this question. html4.4t contains this statement: \Configure{float} {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar ...
4
votes
1answer
52 views

Customizing tex4ht to generate html to convert to epub with Calibre

I'm trying to prepare html for conversion to an epub and have encountered a couple of problems that I would appreciate help with. Hope mixing a couple of related questions in a single post is OK. The ...
4
votes
0answers
30 views

Changing the image path of html-documents created using the htlatex command

So I've created a .tex document using TeXShop for os X, and I've specified an absolute graphicspath for all the images. Now I'm supposed to render a .html file from the .tex and I've done so using the ...
2
votes
1answer
64 views

tex4ht compile error using mathml switch using multline with pmatrix and easybmat

It took me a long time to find this and be able to make a MWE. I hope someone has an idea what is causing it and if there is a work around. This problem shows up in this small example, only when I use ...
4
votes
1answer
103 views

Converting LaTeX to HTML but keeping equations as LaTeX

I'm using tex4ht for conversion of heavily maths loaded LaTeX files into HTML to be able to serve them in a web app. Can successfully convert all equations to MathML and jsMath. But as equations are ...
3
votes
1answer
33 views

why package titlesec causes tex4ht to give error when using $[]$ in section title?

texlive 2014, Linux This MWE fails when using $[B]$ in section title when the package titlesec is loaded \documentclass[]{article}% \usepackage{titlesec} \begin{document} \section{this is my $[B]$ ...
23
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 ...
5
votes
0answers
65 views

error using pgfsysdriver with tex4ht, only shows up with texlive 2014, ok with texlive 2013

Update: Thanks to the comments below. Using the link by Michal below, it appears this is a known bug but the fix was not in 2014. Doing the change as pointed out in the link below, seems to have fixed ...
3
votes
2answers
49 views

How to vertically center an image in table, using p{} and without using m for tex4ht?

Ok, I gave up on this. This is the problem. I'd like to center an image in table columns. There are solutions for this, for example here but this does not work when I use p for column ...
1
vote
0answers
25 views

Running htxelatex in nonstopmode

I am trying to run htxelatex in nonstomode Here are my tries: htxelatex manual.tex config.cfg "-interaction=nonstopmode" htxelatex manual.tex config.cfg "--interaction=nonstopmode" htxelatex ...
2
votes
1answer
58 views

Mark inline equation to render as image with htlatex

Is there any way to mark some inline equation so it was rendered as pictures with htlatex? I know there is a way to make htlatex to render all inline equations as pictures, but i have many simple ...
0
votes
0answers
26 views

Errors using mdframed and also framed packages with tex4ht to put a frame around text

I googled around, and did not see something about this. I just found out that one gets an error using mdframed with tex4ht. \documentclass{article}% \usepackage{mdframed} \begin{document} ...
3
votes
1answer
89 views

Export LaTeX to HTML using .gif for equations?

I try to make help files for my wxWidgets-based software. wxWidgets supports displaying simple html pages and i use htlatex executable tool to convert my .tex to .html, where equations are rendered as ...
5
votes
1answer
49 views

Syntax to setup environment using environ package with multiple arguments

I can't get the syntax right. I am trying to use this answer below to help me. how to use conditional to define different \begin and \end environment at compile time I am trying to setup an ...
2
votes
1answer
44 views

Changing a tex4ht css class

I am using htxelatex to convert a tex file + config file of my own. I want to change the generated css objects but I can't seem to be able to. What I am doing In my config file I use the following ...
2
votes
1answer
43 views

How to put a whole part of generated HTML from htlatex in a special div?

Using TeX files, I generate two pdf deliverables and one website from the same source. I generate my html using htxelatex and a config file like that has the following: \Css { .tableofcontents { ...
3
votes
1answer
49 views

htlatex does not seems to like $\mathit{}$ in subscripts

When I compilethis MWE: \documentclass[a4paper,12pt]{article} \begin{document} Test $x_\mathit{in}$ \end{document} ...it works perfectly with latex and pdflatex. If I try to use htlatex on it, it ...
2
votes
2answers
66 views

Use tex to generate a html page with an embedded video, possible?

I want to use tex to generate a html page with an embedded video. I know that I can use latex2html to convert tex to html. I also know about media9 but I think it can only be used to render videos in ...
3
votes
1answer
111 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 ...
5
votes
1answer
55 views

Why is my acronym in title not expanded in HTML but in PDF?

I am using the acronym package and htlatex to convert to HTML. I discovered that using an acronym in the title does not get expanded in the HTML even if it does in the PDF. The expansion works in ...
1
vote
0answers
39 views

Error compiling empheq with texlive 2013 tex4ht. Missing } inserted

MWE \documentclass{article} \usepackage{empheq} \begin{document} \begin{empheq}[box=\fbox]{align*} \lambda_{dutch} & =-0.40293\pm1.9803i\\ \lambda_{spiral} & =-0.069088\\ ...
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 ...
2
votes
0answers
80 views

Compilation error with tex4ht when using the authblk package

The following example, taken from Adding more than one author with different affiliation and saved as example.tex, compiles well with pdflatex example.tex. \documentclass[11pt,a4paper]{article} ...
1
vote
0answers
24 views

How can I make \cref{foo,bar} from cleveref work with htlatex?

I have the following test2.tex file: \documentclass{article} \usepackage{tex4ht} \usepackage{etoolbox} \usepackage{hyperref} \AtEndPreamble{\usepackage{cleveref}} \begin{document} ...
1
vote
0answers
23 views

How can I make braket's \Set work with align* and htlatex/tex4ht

I have the following test.tex file: \documentclass{article} \usepackage{tex4ht} \usepackage{amsmath} \usepackage{braket} \begin{document} \begin{align*} \Set{|} \end{align*} \end{document} When I ...
0
votes
1answer
45 views

How do I get bmpsize working with htlatex?

I have the following test.tex: \documentclass{article} \usepackage{tex4ht} \usepackage{bmpsize} \usepackage{graphicx} \begin{document} ...
3
votes
1answer
82 views

Convert PGFplot to html?

I'd like to convert a simple piece of LaTeX code which is basically some text with some centered graphs in between. This is a dummy version of the code I'd like to convert to HTML: ...
2
votes
0answers
194 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, ...
7
votes
2answers
766 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 ...
1
vote
1answer
84 views

TeX4HT Equation unchanged with newcommand or def command

I would like to convert all the inline-math and display-math should be LaTeX format only and not for image. I had referred tex4ht leaving equations unchanged and tex4ht leaving equations unchanged - ...
1
vote
1answer
106 views

modify html output of htlatex

When latex figures are converted to html, htlatex generates markup as follows: <a id="x3-3021r4"></a> <p class="noindent" > <img src="sampleImage.png" alt="PIC"/> ...
5
votes
1answer
81 views

Redefine output for a specific TS1 code point (=glyph?)

By now I know how to make \textminus in tex4ht work, but this does not seem to be enough to display a proper minus with the \num macro of siunitx. Joseph Wright provided a workaround, but I'd like to ...
5
votes
1answer
82 views

htlatex converting all occurences of 'ff' and 'fi' to null characters in HTML output

I'm running MiKTeX under Windows 7, trying to compile some LaTeX to HTML using htlatex. htlatex appears to be converting every instance of 'ff' and 'fi' with a NUL byte in the HTML. Was wondering if ...
5
votes
1answer
94 views

Latex to html : how to add rules like `\subsubsubsection` for htlatex / TeX4ht?

I added some rules on my repport in order to add \subsubsubsection. On below the MWE : \documentclass[a4paper,11pt,french]{report} \usepackage[francais]{babel} \usepackage{titlesec} ...
3
votes
1answer
42 views

tex4ht: hyperlink page numbers in the index

This question was already answered by Radhakrishnan in an older post How do I preserve hyperreferences in the index when converting text from LaTex to HTML, but I'm not able to get his solution to ...
2
votes
0answers
82 views

siunitx package use with tex4ht and generation of invalid mathml for units

This file \documentclass{article} \usepackage{siunitx} \begin{document} \SI{10}{\square\meter} $\SI{10}{\square\meter}$ \end{document} Builds fine in padlatex, but fails in the HTML generated by ...
7
votes
1answer
58 views

\textminus in tex4ht

Is there a way to make tex4ht aware of the \textminus command? \documentclass{scrartcl} \usepackage{textcomp} \pagestyle{empty} \begin{document} \textminus 5 \end{document} works as expected ...
2
votes
0answers
117 views

Unexpected blank lines between paragraphs and lists after \section

A \section will cause unexpected blank lines to appear between paragraphs and lists in a odt document created by TeX4ht. If \section is dropped, however, no extra blank lines will appear in thoses ...
4
votes
3answers
464 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 ...
2
votes
0answers
46 views

What exactly do \EndP and \IgnorePar do?

What exactly do \IgnorePar and \EndPar do? Many configurations start like this: \Configure{foo}{% \ifvmode \IgnorePar\fi \EndP ... I'm trying to learn TeX4ht to improve conversion to OpenDocument ...
8
votes
1answer
551 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 ...
2
votes
1answer
74 views

tex4ht: how to make only non-inline math bigger?

I'm converting a document to html (or possibly xhtml) using htlatex. I find that the output is ok, but the equations are too small. I have tried making them bigger by adding the following to my ...
3
votes
2answers
174 views

Using htlatex with tikz-dependency

I am trying to generate an html file from a tex file using htlatex. The htlatex works well with simple tikz pictures, but it has problem with the pictures (trees) drawn with tikz-dependency package. ...
1
vote
2answers
197 views

How to convert LaTeX to HTML, keeping formatting of pdf.dvi?

I would like to convert a LaTeX document (in this case, a resume) to HTML for submission, since .pdf and .dvi are not allowed formats. How can I do this while maintaining the same formatting (e.g. ...
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 ...
0
votes
1answer
60 views

Usage of \caption command in converting LaTeX files to HTML using tex4ht (For tables)

I am looking to convert TeX files into HTML using the htlatex command. I was previously having an issue with the formatting of my HTML file: the captions to my figures were skewed to the left of my ...