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

learn more… | top users | synonyms

1
vote
0answers
21 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
66 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 ...
4
votes
1answer
49 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
32 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
2
votes
1answer
20 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 ...
4
votes
1answer
69 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
69 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
32 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>}} ...
3
votes
1answer
66 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 = ...
2
votes
1answer
36 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
26 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 ...
2
votes
1answer
48 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 ...
2
votes
1answer
50 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
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 ...
2
votes
1answer
86 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
0answers
43 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): ...
1
vote
2answers
60 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
38 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
50 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
43 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 ...
2
votes
1answer
46 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
54 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} ...
4
votes
1answer
57 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} ...
3
votes
2answers
56 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
139 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
385 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 ...
6
votes
0answers
53 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 ...
3
votes
1answer
82 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 ...
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} ...
4
votes
1answer
87 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
105 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 ...
2
votes
1answer
73 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 ...
5
votes
1answer
87 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} ...
4
votes
1answer
121 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
73 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
45 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} ...
0
votes
1answer
134 views

Why does htlatex not work as expected?

I am trying to use htlatex to get an HTML version of my thesis. pdflatex just works when I compile the .tex files with TexStudio. So I ran the following command from the command line: htlatex ...
1
vote
0answers
68 views

htlatex on file including files from subdirectories, and output directory

Parts of my issue has already been answered in different questions on this site and elsewhere, however none of them solves my problem as a whole. A question about just specifying the output directory ...
1
vote
1answer
44 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
47 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 ...
4
votes
1answer
100 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
32 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 ...
4
votes
0answers
45 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
123 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
81 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]$ ...
6
votes
1answer
269 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 ...
7
votes
0answers
303 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
73 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
78 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 ...