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

1
vote
1answer
15 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
17 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
16 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
28 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
17 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
78 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
60 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
57 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
473 views

Install make4ht with MiKTeX

I am trying to install make4ht on a system running MiKTex. The recommended instructions ...
4
votes
1answer
99 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
162 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
28 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
103 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
300 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
27 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
80 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
69 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
81 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
63 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
69 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
95 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
109 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
45 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
35 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
78 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
48 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
98 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
28 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
63 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
22 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
78 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
79 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
959 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
41 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
94 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
127 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
53 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
136 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
73 views

Htlatex accents in token yields missing \endcsname

I am trying to associate sequence of characters that can contain special symbols (accents, dollars, and in particular inputs in utf8) to some content. This is to be used with htlatex. Accents yield ...
2
votes
1answer
59 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
225 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
95 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 ...
4
votes
1answer
116 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 ...
6
votes
1answer
654 views

How can I make bash-code look good both in LaTeX and HTML?

As I am new to Latex and this kind of typing in general, I find myself in need of some basic guidelines when it comes to how to make things look good in text. I have a document that looks good when ...
4
votes
0answers
68 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
187 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 ...
2
votes
1answer
135 views

Choose \documentclass dependent on compiler

I am not able to compile this tex document \documentclass{scrartcl} % \documentclass{article} \begin{document} hello \end{document} with htlatex. I am able to do this using pdflatex. If I ...
1
vote
0answers
92 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
149 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 ...