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

learn more… | top users | synonyms

1
vote
1answer
32 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 ...
1
vote
0answers
30 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
60 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
15 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
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 ...
4
votes
1answer
57 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 ...
3
votes
1answer
38 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]$ ...
4
votes
1answer
130 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 ...
5
votes
0answers
71 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
51 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
26 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
28 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
92 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
50 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
67 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
56 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
40 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
84 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
50 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: ...
1
vote
1answer
86 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
67 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 ...
5
votes
1answer
83 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
107 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
96 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
44 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 ...
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 ...
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
120 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
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 ...
3
votes
2answers
177 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
200 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
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 ...
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 ...
3
votes
0answers
72 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
128 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} ...
2
votes
0answers
95 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 ...
7
votes
1answer
336 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
98 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
137 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
126 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 ...
2
votes
1answer
443 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
138 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? ...