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

learn more… | top users | synonyms

1
vote
0answers
16 views

htlatex outputs extra word not in document when using \columnbreak with multicols

texlive 2014, Linux. MWE \documentclass{article}% \usepackage{lipsum,multicol} \begin{document} \begin{multicols}{2} \section*{Introduction} This is introduction \columnbreak \section*{my ...
3
votes
1answer
59 views

Kindle DX formatting problem with tex4ebook

MWEs don't get much more minimal than this: \documentclass[]{book} \begin{document} This is \emph{very} strange \end{document} You can compile it using tex4ebook, but htlatex example.tex xhtml has ...
2
votes
1answer
27 views

tex4ht: indexentries/structure of the .ind-file

Running htlatex 2 times with a makeindex command in-between delivers a working .ind file but with page numbers as linktags in the corresponding .html output which make no sense for users visting the ...
4
votes
1answer
46 views

Setting up a counter in Tex4HT Configuration to use in html

I want to add a collapsible panel header to some text, to do this I need to define some IDs, I can't use \thesubsubsection because it comes with dots (2.0.1 for example). So I want to use a simple ...
4
votes
1answer
30 views

Which is the .4ht file that controls figure generation in tex4ht?

Does anyone know which .4ht file is used for generating figure HTML output? The candidates I think are html4.4ht:\NewConfigure{figure}{2} tugboat.4ht:\NewConfigure{figure}{2} fig4tex.4ht
1
vote
0answers
42 views

How to get pictures from every \halign line?

I'm trying to get separate images from eqnarray lines. Problem is that I can't properly insert starting/closing image \specials for tex4ht. Lets consider a minimal example (plain tex): ...
2
votes
1answer
17 views

Invoke \CssFile via \AfterEndPreamble

When running htlatex <filename> one can include CSS code via \CssFile and \EndCssFile. This works fine as long as the code is included directly in the main document body. I suspect this is the ...
3
votes
1answer
623 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 ...
4
votes
1answer
64 views

Changing a tex4ht span class using Confiig file

I have my Table of contents as follows: <div class="col-sm-2" id="leftCol"> <div class="nav nav-stacked" id="sidebar"> <h3 class="likesectionHead">Contents</h3> ...
7
votes
1answer
64 views

Can I get TeX4ebook to include the html table of contents in an epub

For the Kindle book I'm producing, I would like to have the .ncx ebook table of contents and an html table of contents as part of the book. However, TeX4ebook doesn't include the html TOC (in this ...
3
votes
1answer
30 views

Configuration of sectioning commands gives improperly nested xhtml in tex4ht

Here is my MWE: \documentclass[]{book} \input{tex4ht.sty} \Preamble{xhtml} \Configure{subsection}{\HCode{<i>}} {\HCode{</i>}} {\HCode{<b>}} {\HCode{</b>}} ...
36
votes
3answers
1k views

LaTeX to Braille

I would like to make my LaTeX documents as accessible as possible to those that are blind or visually impaired. The posts that I have linked to below ask questions about alt-tags or tooltips, both ...
2
votes
1answer
43 views

htlatex/tex4ht with ScriptEnv and HTML entities

I am using htlatex to translate from LaTeX to HTML. I've created a \ScriptEnv environment for code as suggested by this answer: htlatex inserting environment in verbatim It's working well, but it is ...
4
votes
1answer
152 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 ...
3
votes
1answer
60 views

Multipage chapter heading seems to be incompatible with htlatex

I want each chapter to start with an image and I want the text on the subsequent page. So, I defined my replacement for \chapter as follows: \newcommand{\MyChapter}[3]{% % #1 = image % #2 = ...
4
votes
1answer
23 views

\AtBeginDocument content seems to be ignored by htlatex

It appears that the content inserted via \AtBeginDocument is being ignored by htlatex. Is there a workaround to this other than not using \AtBeginDocument? To reproduce save the MWEs below and run ...
6
votes
1answer
148 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 ...
2
votes
1answer
44 views

htlatex with pdfpages package inserts random images

I am attempting to generate an HTML output via htlatex <filename> but when the pgfpages package is included I am getting some random images before and after the content. The resulting HTML ...
1
vote
1answer
162 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
0answers
24 views

Leave math content alone with tex4ht for MathJax [duplicate]

This question and answer explain how one could use tex4ht to convert tex to html with MathJax reading the math. One (of several) problem(s) I am having is that my document uses \cancel from the cancel ...
6
votes
1answer
245 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 ...
2
votes
1answer
85 views

tex4ht mathml output: how to get <mi>abc</mi> instead of <mi>a</mi><mi>b</mi><mi>c</mi>

tex4ht with mathml option generates <mi>a</mi><mi>b</mi><mi>c</mi> from $abc$. Is there a way to get <mi>abc</mi> output? MWE (foo.tex): ...
1
vote
2answers
55 views

How can I add an xmlns to the <html> tag in tex4ht

According to Amazon's Kindle Publishing Guidelines, I need to add xmlns:mbp="http://www.kreutzfeldt.de/mmc/mbp" to the <html> tag in my html file. I have tried many variants of the following: ...
3
votes
1answer
36 views

How can I override tex4ht's CSS in a single .css file?

I am trying to style tex4ht output using CSS in order to make a Kindle book. For example, I want to change the verse environment using .verse { margin-left:2.5em; white-space:normal; } The Kindle ...
1
vote
1answer
45 views

tex4ht table of contents problems related to titlesec

I am having a problem that titlesec is making the sections disappear from the tex4ht table of contents. Here is the M(N)WE: \documentclass[10pt]{book} \usepackage{titlesec} \usepackage{titletoc} ...
0
votes
0answers
42 views

How to customize section heading in tex4ht

TeX code: \documentclass{book} \usepackage{amsmath,amsfonts,amssymb} \def\thesection{\arabic{section}} \begin{document} \section{Section title 1}\label{chp:ChapterTitle} This is a paragraph inside ...
4
votes
1answer
51 views

tex4ht styling breaks after figure containing tikz drawing

\textbf works in tex4ht before the figure environment, but not after: \documentclass{book} \usepackage{tikz} \begin{document} \textbf{this is bold} \begin{figure}[h] \begin{tikzpicture} ...
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 ...
2
votes
1answer
38 views

htlatex in silent mode

It's possible to run htlatex in silencemode like pdflatex. pdflatex --draftmode --interaction=nonstopmode foo.tex > tmp.txt I have found only nonstopmode/batchmode in htlatex. htlatex source.tex ...
3
votes
1answer
51 views

Avoid already converted Figures in htlatex

I have found how do avoid already converted equation in this link: Avoid already converted equation in htlatex. How to do the same method in Figures Conversion? My MWE is: \documentclass{book} ...
3
votes
2answers
269 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. ...
0
votes
1answer
31 views

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

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 ...
3
votes
2answers
47 views

Small caps inside hyperlinks make tex4ht render open-double-quote as backslash

Turning a book I just finished into an ebook, I ran into two (I thought unrelated) problems. The more vexing one was that the open-double-quote was being turned into a backslash after a point very ...
5
votes
1answer
137 views

problem with macro using \ifx

[Edit 1] originally titled "can't understand why this simple macro causes complex error" [original post] I've written a book, and now I'm trying to produce the e-book using tex4ht. Adapting this ...
1
vote
1answer
348 views

TeX4ht (htlatex) on MiKTeX 2.9 to convert LaTeX into MathML, and then into Office MathML with Word 2010

I managed to use TeX4ht via the htlatex command on MiKTeX 2.9 to successfully convert a LaTeX document into an HTML document. The TeX file is a fairly simple test document with an integral in display ...
1
vote
3answers
702 views

MiKTeX 2.9's tex4ht not working

According to this document and my own experience. MiKTeX 2.9's version of tex4ht is not working. Using MiKTeX 2.8's tex4ht does work, but is obviously not prefered. Does anybody know how to fix MiKTeX ...
6
votes
0answers
51 views

tex4ht removes spaces in array column when including a package even if the package is not used

In the following cases, Tex4ht generates an HTML file with no spaces between the columns of the matrix if some package is included, even if the package is not used. Removing the package, the space ...
2
votes
0answers
68 views

framed color environment is not converted in htlatex

I have using pdflatex and htlatex for converting framed color box in html. Successfully converted in pdflatex and not converting in htlatex. Please find the MWE below: \documentclass{article} ...
3
votes
1answer
80 views

Avoid already converted equation in htlatex

I have converted big LaTeX file to html format successfully (include all the equations are converted to png format). After that I have changed some LaTeX text part. How do avoid again no need equation ...
1
vote
1answer
122 views

Making \marginpar work with tex4ht

I tried using \marginpar using tex4ht and pdflatex. Here is the PDF output: Here is the HTML output: Is it possible to configure tex4ht to produce HTML output with good looking marginal notes? ...
5
votes
1answer
210 views

TeX4ht and Plain TeX

According to tug.org TeX4ht can be used with Plain TeX. I've tried the commands listed in the site above, but nothing works! All I can have is a simple text file, with .html extension, but without any ...
4
votes
1answer
84 views

tex4ht problem with \includegraphics using beamer class

I have managed to get tex4ht working (on debian jessie) for a moderately complex document (containing muliple \includegraphics, bibliography) with article class. However, for beamer class even the ...
4
votes
1answer
114 views

Setting image size using em units instead of pt

I have found this question very helpful in my configuration of images. Inspired by tex4ht's capabilities (it's so much more powerful than I thought!) I'm wondering if I could have image width ...
4
votes
1answer
99 views

Why tex4ht does not accept \setcounter{tocdepth} in report class, but it does in article?

Update: As I mentioned in the comment below, the Table of contents should be the same regardless of the splitting done. So the solution should produce the same toc in HTML from the following commands ...
5
votes
1answer
85 views

color environment text is not converted in htlatex

I have using pdflatex to get the color environment text. But when using htlatex the color and the environment content (Note) is not converting. Please find the MWE below: \documentclass{book} ...
2
votes
1answer
58 views

How to add footnotes in htlatex via fn-in?

In the html code that is generated by htlatex I want to have footnotes appear on the same page instead of a new one (just like in the .pdf that is generated by pdflatex). So I read about the fn-in ...
2
votes
0answers
40 views

Conversion of latex to html for Word does not work

In order to get html code that is appropriate for Word I used the following command that I found on a TUG page: htlatex filename "html,word" "symbol/!" "-cvalidate" If I do this in Cygwin I get the ...
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
63 views

Configuring minipage environment to incorporate width

I'd like to configure tex4ht to set the width of a minipage div class based on the width specified in the LaTeX source. Here's what I have so far: The tex file is: \documentclass{article} ...
2
votes
1answer
41 views

Image creation align* environment in htlatex

I have using htlatex for converting LaTeX to HTML. Everything is working fine except \begin{align*} environment is not converting to Image. Please find the MWE below: \documentclass{book} ...