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

learn more… | top users | synonyms

3
votes
1answer
44 views

Increase equation resolution in TeX4ht using accessible images or typeset text

When TeX4ht compiles my latex code it generates a png of my equation and includes this in the html file. Until a better alternative for this comes along I am quite happy with this way of ...
1
vote
0answers
10 views

htlatex adding _ after - in URLs

I'm using htlatex on Fedora 21, texlive-tex4ht-svn33024.0-1.1 I noticed that whenever a URL has a hyphen within it, in the HTML output it's formatted with an underscore symbol following -. For ...
3
votes
1answer
24 views

TeX4HT \textregistered and an unwanted semicolon

Using \textregistered{} and/or \textregistered result in ®; ®; Is there a way I can redefine this symbol so that it doesn't include a semicolon or is there a package conflict that is causing this ...
3
votes
1answer
43 views

TeX4HT compile sequence

I just noticed that when I compile a tex file into an html document, I actually don't have to run the equivalant sequence I am used to xelatex For all bibunits generated bu*.aux bibtex For all ...
4
votes
1answer
35 views

Can \pbox{max width}{text} be used in tex4ht

Can \pbox{max width}{text} be used in tex4ht? If it can't, is there an alternative that will let me wrap text (manually or automatically) in htlatex. In my reading there was an option ...
2
votes
0answers
64 views

Border control for LaTeX tables generated using TeX4ht

I am hoping that there is away to outline certain portions of the table because when I open this HTML file using MS Word, I get a very logical invisible table that I can clean up. The current method ...
1
vote
1answer
25 views

Tex4ht changes a grave accent letter ` (hex 60) to left single quotation mark (hex 0xE2 0x80 0x98)

I need help with this problem, as I am not able to find a fix. This is a big problem for me, since the input file contain many grave accent characters ` which I enter by hitting the But when ...
2
votes
1answer
27 views

Can tex4ht support square justified text with different line spacings?

Can tex4ht support square justified text and can I specify different line spacings (1, 1.15, 1.5, 2 etc.)? Sloppypar allows me to square justify my paragraphs in a pdf but the html file in a web ...
0
votes
1answer
32 views

How to export LaTeX to OpenDocument using htlatex? (Windows XP + MikTeX 2.9 + TexMaker 4.4.1)

I am trying to output a LaTeX document to the OpenDocument format (.odt) using TexMaker's "Export using TeX4ht" tool. However, I am unable to produce any output document, although the command line ...
6
votes
1answer
39 views

Typeset a degree sign in tex4ht

I am trying to produce a degree sign in tex4ht (ideally with the same code that produces the pdf) The PDF works fine in all of the different ways of displaying the degree sign, but the html document ...
1
vote
1answer
26 views

tex4ht cannot handle image in subfolders?

tlmgr revision 35841 (2014-12-16 20:11:15 +0100) tex4ht revision: 34624 I was using this package for test the tex4ht functions. However, I found out if the image is under subforder, oolatex ...
0
votes
0answers
10 views

Can't find/open 'tex4ht.lg' file

I am trying to run htlatex with the options "html,3,next" and it fails with the error: Can't find/open 'tex4ht.lg' file
1
vote
1answer
32 views

tabu and tabularx compatibility - for htlatex, tex4ht and migration between tabu and tabularx

Is it possible to renew the tabularx environment so that it will take the tabularx style parameters? Or the other way around? \begin{tabularx}{\textwidth}{ ... } % ... \end{tabularx} \begin{tabu} to ...
1
vote
0answers
52 views

tabu + htlatex Problem [closed]

Edit: Can someone put my question off-hold so I can answer it myself? Cool, I received a reply from the tex4ht maintainers, they accepted it as a bug. So there is hope it will be available in ...
6
votes
1answer
65 views

TeX4ht and LaTeX3 - Do they go togther?

I'd like to add TeX4ht support for my package, which is written in LaTeX3. Is it safe to switch \ExplSyntaxOn inside a .4ht file? Should I switch it off at the end? If it was NOT safe, how should I ...
3
votes
1answer
43 views

why quotes " in Verbatime become tilde when adding \usepackage[T1]{fontenc} with tex4ht?

There seems to be another strange interaction with packages here with tex4ht. I do not know if this is a feature of these packages that one is not supposed to mix them, or a bug. But it only shows up ...
2
votes
0answers
48 views

Why using {newtxtext,newtxmath} packages breaks MathML generation in tex4ht?

I found when adding the line \usepackage{newtxtext,newtxmath} breaks mathml generated by tex4ht and hence the math looks bad when viewed in the browser. It seems to be a font issue. I am using ...
3
votes
1answer
53 views

Are htlatex (TeX4HT) and cleveref compatible?

Simple question: When I use cleveref and \Cref{} or \cref{} I am able to compile the code and produce a PDF. When I use htlatex I get ?? in place of what I expect would be the object name and ...
2
votes
1answer
45 views

problem with titlesec package with tex4ht when using starred version of \section

I just updated my texlive 2014 using tlmgr to fix an older related problem with using titlesec with tex4ht. But it seems a new problem now shows up. This show up only when using the starred version ...
3
votes
0answers
71 views

Missing chemical sub- and super-scripts in html file compiled with htlatex

Current problem is typesetting with the chemical packages. As would be expected, the PDF is produced without any problems but distinct issues arise with the html production using tex4ht. The HTML ...
1
vote
0answers
24 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
71 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
50 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
33 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
77 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
71 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
71 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
27 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
50 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
54 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
25 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
87 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
46 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
64 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
39 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
58 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
44 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
49 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
60 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
58 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
157 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
436 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
54 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
85 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
97 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 ...