htlatex is the command that loads a script to invoke the different steps of the from LaTeX to HTML process.

learn more… | top users | synonyms

3
votes
1answer
41 views

why tspan instead of class? italics not rendered using htlatex

When using htlatex with "html,fn-in", the generated html has <tspan font-family="cmti" font-size="10">should be italics </tspan> but this is not rendered in the html (at least not in ...
5
votes
1answer
28 views

htlatex and subfigures

Is it possible to have htlatex generate side-by-side subfigures? The mwe tex file \documentclass{article} \ifdefined\HCode \usepackage[compatibility=false]{caption} ...
2
votes
1answer
33 views

htlatex and differences between html and xhtml

To date, I have generated html files using htlatex rather than xhtml. This has been for one simple reason. I can right click on the html file and open it in MS word to then save and distribute to ...
1
vote
1answer
67 views

First steps with htlatex, I'm losing all the math format! [closed]

I'm doing my first steps with htlatex, trying to get HTML documents. I have OS: Linux Mint, Tex Live, and I make my *.tex with Texmaker. I know how to use MathJax. I get this: This is how I wish it ...
2
votes
2answers
47 views

Convert to HTML with {arabtext} sections rendered as images

I'm just starting to investigate using latex to generate an ebook with arabic snippets embedded in it, and I'm using the following simple document: \documentclass{article} \usepackage{arabtex} ...
3
votes
1answer
41 views

QRCode package fails to convert to HTML

I'm using the CTAN QRcode package. It works great with PDF, but unfortunately doesn't work at all for HTML. Does anyone know if I'm doing something wrong or how I can force htlatex to use images for ...
1
vote
1answer
23 views

MathML and LaTeX conversion required in htlatex

I have required all the display equations should be convert to MathML options and some inline-equations need to convert in text mode format. This two types of conversion is possible in htlatex?. For ...
0
votes
1answer
24 views

mathfrak in htlatex

In LaTeX mathfrak command is working fine and when using htlatex it's converting and not viewing in the HTML file. This is Bug in htlatex? My MWE is: \documentclass{book} ...
1
vote
1answer
16 views

Htlatex with docbook-mml: minus signs vanish

When I compile the following file: \documentclass{article} \begin{document} $2-1$ \end{document} with the command htlatex test.tex "xhtml,docbook-mml" " -cunihtf" "-cdocbk" then the result is ...
3
votes
1answer
35 views

Defining XML output for operator

I am converting LaTeX to docbook with the following command htlatex filename "xhtml,docbook-mml" " -cunihtf" "-cdocbk" Now, unfortunately, the \cdot operator gets lost during translation. (It ...
0
votes
0answers
24 views

LaTeX to Customized LaTeX file conversion using htlatex

I would like to convert LaTeX to Customized LaTeX code using htlatex. It's possible in tex4ht? Our ultimate goal is natbib cross-link need to convert to without \cite tag, \def command need to ...
2
votes
0answers
43 views

Latex to HTML problem with fractions [duplicate]

im using htlatex to transcript a latex file to html for a web application. It seems to work fine with most of my equations, but as soon as I use \frac or \dfrac the images of the equations become very ...
0
votes
0answers
19 views

TeX4ht aliasing on equations' images

I am compiling a .tex file to html using TeX4ht induced by the htlatex command. When TeX4ht compiles a document and turns equations into images, however, it produces low-quality images with little ...
1
vote
1answer
45 views

htlatex html output droidsans

I am trying to use the font "Droid Sans" (as in http://www.tug.dk/FontCatalogue/droidsans/) in a html file generated from a tex-file. PDF I have succeeded in using the font as standard for a pdf by ...
1
vote
1answer
34 views

tex4ht: configure href to open in new tab

I'm working with tex4ht (htlatex) and I'm trying to put links into the page it generates. I'm trying to find a way to make it so that when I place a link in the page the link is generated to have the ...
0
votes
0answers
19 views

how to use “interaction=nonstopmode” in htlatex command [duplicate]

Am in the process of converting latex to xhtml file. I chose htlatex for conversion. But it stops inbetween if it finds errors in the tex file. In latex we have option -interaction=nonstopmode to run ...
2
votes
1answer
44 views

Suppress TOC in htlatex (compiling with htlatex fails with Undefined control sequence \TocTitle)?

Consider this MWE, test2.tex: \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{times} ...
0
votes
0answers
18 views

Producing SVG graphics with tikz and tex4ht not working [duplicate]

I'm on TeXlive 2014. Here's my M(N)WE: \documentclass{article} \usepackage{tex4ht} \def\pgfsysdriver{pgfsys-tex4ht.def} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) rectangle ...
5
votes
1answer
105 views

How to write custom configuration for TeX4ht

I have some macros in my document, and I want to create my own HTML for there. I follow this blog entry but I can't to make it work. I put this code before my \begin{document}: ...
1
vote
1answer
73 views

Multiple source document with htlatex and tex4ebook

How should I compile a document with chapters on different tex files using tex4ebook? The output of 'tex4ebook main.tex' has valid title page, index, empty chapters and valid bibliography. Structure ...
3
votes
1answer
72 views

configuring minipage in htlatex

I want to use minipage in htlatex, because I want to have a minipage with a figure, close to a minipage with some text, and then I want some other text that must be on a new line and full-width. I ...
2
votes
1answer
515 views

Install make4ht with MiKTeX

I am trying to install make4ht on a system running MiKTex. The recommended instructions ...
4
votes
1answer
125 views

LaTeX to HTML using htlatex - Background problem

I've been trying to highlight Python code and convert it to HTML. For highlighting I used the minted package since it provided a few styles that I was looking for and I used htlatex for HTML ...
1
vote
1answer
182 views

Syntax highlighting in an HTML presentation

This example shows how to produce PDF slides with syntax highlighting of source code. The example uses beamer and (presumably) pdflatex. Another example shows syntax coloring for HTML output using ...
2
votes
0answers
39 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 ...
4
votes
0answers
111 views

Border control for LaTeX tables generated using TeX4ht

In producing simultaneous pdfs and html/word files using xelatex and TeX4ht I have noticed that the table produced by TeX4ht is kind of illogical and is clumsy to clean up and manipulate. I would ...
1
vote
1answer
459 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 ...
0
votes
0answers
34 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
3
votes
2answers
88 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
75 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 ...
3
votes
1answer
87 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 ...
5
votes
1answer
78 views

htlatex requires graphic file extensions “jpg” while other latex variants don't. What to do?

I am trying to make a book that is published in both print and ebook format, and I would like one source for the book that works in both media. When I compile the following with xelatex it works. ...
4
votes
1answer
78 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
105 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> ...
3
votes
1answer
128 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 = ...
1
vote
0answers
52 views

htlatex define proper bounding box dvi

Is there a way to define the proper bounding box size inside latex files so that htlatex and then dvips make the right size graphics? Right now it is cutting off the graphics too short. I am using ...
4
votes
1answer
37 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
93 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 ...
1
vote
2answers
52 views

Vertical spaces in htlatex \ScriptEnv

I am using htlatex to generate the HTML version of book and I am having problems with vertical spacing. I have configured an environment like this: \ScriptEnv{tawny} ...
2
votes
1answer
120 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
29 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
74 views

htlatex inserting environment in verbatim

I want to get htlatex to put some text into my HTML file verbatim. The problem is that it keeps redo-ing my spacing. So, for example, I use a cf.cfg like this. \Preamble{html} \ConfigureEnv{tawny} ...
1
vote
1answer
26 views

Configure htlatex with listings to use Javascript renderer

I have a document using a custom environment in the listings package. So I have code embedded like so \begin{tawny} (println "hello") \end{tawny} My plan is to use some Javascript syntax ...
2
votes
1answer
90 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
88 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} ...
1
vote
1answer
1k 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
1answer
47 views

blank lines in user-defined lists in htlatex

Consider the following latex code: \documentclass{article} \begin{document} \begin{list}{*}{} \item one \item two \end{list} \end{document} It should produce: one two But the htlatex output has ...
3
votes
1answer
100 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
81 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} ...
2
votes
1answer
140 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 ...