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

learn more… | top users | synonyms

2
votes
1answer
119 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 ...
3
votes
1answer
83 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
173 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
64 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 ...
3
votes
1answer
87 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
74 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
71 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
103 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 ...
5
votes
1answer
75 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 ...
2
votes
0answers
77 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\\ ...
2
votes
0answers
118 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
62 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
41 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
90 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
119 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: ...
1
vote
1answer
168 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 - ...
2
votes
1answer
114 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 ...
6
votes
1answer
154 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 ...
1
vote
1answer
142 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
156 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
63 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
107 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 ...
5
votes
1answer
94 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 ...
7
votes
1answer
88 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
184 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 ...
2
votes
0answers
63 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 ...
3
votes
2answers
304 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
372 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. ...
2
votes
1answer
101 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 ...
0
votes
1answer
79 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 ...
3
votes
0answers
108 views

“Display math should end with $$” when using MathML with amsmath and \fbox with tex4ht

I just like to get an understanding on why I get this error, only when I use MathML and not in other configurations. pdflatex work fine with this MWE. Only when there is an \fox{}, will tex4ht gives ...
2
votes
2answers
162 views

How to compile TeX ---> HTML use TeX4ht?

I have problem compile TeX ---> HTML use TeX4ht and my MWE like this \documentclass{article} \usepackage[html]{tex4ht} \title{Simulation of Energy Loss Straggling} \author{Maria Physicist} ...
4
votes
1answer
155 views

TeX capacity exceeded and parsing errors using decoration on chapter name with tex4ht

My first htlatex issue of 2014 and on the first day also :) I added this line \chapter*{\centering \begin{normalsize}my chapter title\end{normalsize}} which works fine with pdflatex, but htlatex ...
8
votes
1answer
506 views

tex4ht, html output: increase eps image resolution without affecting math images size

I have the following MWE: \documentclass{book} \usepackage{graphicx} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} Lorem ipsum dolor sit amet, \(k_\delta=\frac{3 ...
1
vote
1answer
109 views

Usage of \caption command in converting LaTeX files to HTML using tex4ht

Hi I'm new to LateX and Tex4ht. So please bear with my inexperience. I am required to convert LaTeX source files into HTML (I further require to compile them into .chm files; I have decided to first ...
2
votes
1answer
181 views

Global scaling of images in html output (only) of htlatex

I have the following MWE with some images: \documentclass{book} \usepackage{graphicx} \begin{document} Lorem ipsum dolor sit amet, consectetur adipisici elit: \begin{centering} ...
6
votes
0answers
280 views

Undefined control sequence \Hy@MakeCurrentHrefAuto when using tex4ht

I'm producing a small encyclopedia with the memoir class which relies fairly heavily on \nameref. If it's relevant, I have my project directory set up so that I have a folder called articles/ which ...
3
votes
1answer
647 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
173 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
89 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 ...
4
votes
1answer
102 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
254 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
356 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
653 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
94 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
68 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
172 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
85 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
135 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
388 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 ...