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

learn more… | top users | synonyms

1
vote
0answers
42 views

\rm \bf command not working in htlatex

When i have using \rm and \bf command in LaTeX file, htlatex does not converted. My MWE is: \documentclass{article} \begin{document} test $AA {\rm asdffda}_BB$ and $\it{italic}_a$ and ...
1
vote
0answers
14 views

How to capture the Latex Math coding using htlatex

I am using htlatex to convert latex to html. I will try to capture the Latex Coding CDATA filed. But i don't know how to achieve the task. I will try below mentioned Example. MWE: ...
2
votes
0answers
14 views

How to get the three alternatives using htlatex (image, mathml, texmath)

I am using htlatex to convert a TeX files to XML file. I am using mathml options to convert a inline and display equations. But I need three alternatives in one compilation. Inline-graphics format ...
0
votes
0answers
44 views

LaTeX Macros Expanded in Equation

How do expand the user defined macros in the equation when using htlatex? My LaTeX MWE is : \documentclass{article} \usepackage{amsmath,amsfonts} \newcommand\EquationAlt[1]{#1} ...
0
votes
1answer
21 views

Verbatim Macro not expanded in htlatex

verbatim Text is not expanding when using htlatex. How to turned on? My MWE is: \documentclass{article} \usepackage{amsmath} \def\myverbtext#1{{\bfseries #1}} \begin{document} This is the sample ...
2
votes
1answer
30 views

HtLaTeX Table Footnote and Makesavenoteenv

The following minimum working sample throws an error ! LaTeX Error: \begin{table} on input line 10 ended by \end{document}. While pdflatex compiles without any error. \documentclass{article} ...
1
vote
1answer
85 views

Is there a LaTeX to HTML tool that supports the algorithm2e package?

I'm a LaTeX beginner and I'm writing computer science documents. I carefully choose my algorithmic package considering the features I needed and that led me to pick algorithm2e (vlined and noend ...
3
votes
1answer
78 views

How do I improve the quality of png images when converting to html using htlatex?

I have tried to convert my LaTeX document into xhtml running the following commands (found here): htlatex source.tex tidy -asxhtml -output seconddraft.xhtml firstdraft.html Everything displays ...
0
votes
0answers
27 views

Change background color for html export

When I modify the background colour of the document, it works fine when I export it to PDF or to LyxHTML but not with simple HTML. I would prefer to export in HTML rather than LyxHTML but when doing ...
2
votes
1answer
15 views

Add a css class to graphics in tex4ht

So I have this \includegraphics[width=0.5\linewidth]{./src/images/screenshot--superman.png} And using make4ht (tex4ht) it generates the following markup (I'm pasting it as outputed): <p> ...
4
votes
0answers
118 views

Conversion to *.odt - error in odt's styles.xml

I'm trying to turn my latex document into an odt file to be able to open it with LibreOffice (to then be able and save it as MS Word file so colleagues can open and comment on it). Although the file ...
3
votes
1answer
24 views

htlatex having problems with a document written in Spanish?

I don't seem to be able to get past the following error: [4] [5] [6] [7] [8] ("C:\Program Files (x86)\MikTeX portable\tex\latex\lm\ot1lmr.fd") ("C:\Program Files (x86)\MikTeX ...
1
vote
1answer
112 views

Converting to html keeping equations as latex and using dollar signs

I can convert tex to html keeping equations as latex (to be rendered by MathJax) but using multiple dollar signs in a paragraph poses a problem. If there's only one dollar sign in a paragraph, using ...
2
votes
1answer
35 views

`make4ht`: title date font size is gigantic compared to title font size, and body font size

For this problem, I am using the following MnWE: \documentclass[fontsize=18pt, paper=letter]{scrartcl} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} \title{A ...
1
vote
1answer
25 views

`make4ht`, `htlatex`: calls out error when called on an absolute filepath

For this problem, I am using the following .tex file: \documentclass[fontsize=16pt, paper=letter]{scrartcl} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} ...
2
votes
1answer
41 views

`make4ht`: increasing font size

I have a simple *.tex file for this question: \documentclass[12pt,letterpaper]{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} \title{A test \LaTeX to ...
2
votes
1answer
35 views

`make4ht`, `htlatex`: “cannot read log file” issue with minimal example

I have a simple *.tex file for this question: \documentclass[12pt,letterpaper]{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{amsmath} \begin{document} \title{A test \LaTeX to ...
4
votes
1answer
125 views

Examples of HTML documentation produced with LaTeX

I am considering writing some software documentation in LaTeX to compile to HTML. I know this is possible with at least two tools (htlatex, latex2html) but have not seen any examples of their output. ...
2
votes
2answers
129 views

How to get Unicode characters into HTML output

I am trying to make a book in both print and ebook. To make the print book I generate a PDF with xelatex. I have reconstructed all the source files to be encoded in UTF-8 and the Cyrillic and ...
2
votes
1answer
113 views

Renew itemize environment for customization in tex4ht

In a htlatex compiled document a standard enumerated list environment shows up as a <li class="itemize"> tag. For the pdf version I have loaded the enumitem package to aid with list ...
0
votes
0answers
30 views

htlatex doesn't notice font change after tikz picture

Even a minimal tikz picture in my causes htlatex not translating commands like \emph or \textbf if they come after a tikz picture. Here is a minimal example \documentclass{article} \usepackage{tikz} ...
3
votes
1answer
93 views

mathml with actual latex coding in htlatex

I would like to get HTML + MathML with LaTeX equation in the alt attribute. htlatex filename.tex "xhtml,mathml,charset=utf-8" ' -cunihtf' My LaTeX MWE is: \documentclass{article} ...
2
votes
1answer
27 views

Make a column vanish / package parcolumns

I wrote a report in German and English language. It has two columns, German on the left, English on the right side. Now, I need to produce a word file, but only including the german text. I've got ...
1
vote
0answers
51 views

dvisvgm not working when called by htlatex

I'm trying to make tex4ht produve svg-pictures instead of the normal png ones. I'm working with MiKTeX 2.9 under Windows 10. I tried the following tex-file (mwe.tex): \documentclass{book} ...
0
votes
1answer
266 views

Texmaker doesn't export to html (OS X El Capitan)

After upgrading to El Capitan I fixed the configuration and it is working fine. But it does not export to html with the tex4ht option. It yields the following output: "/Library/TeX/texbin/htlatex" ...
3
votes
1answer
111 views

How to create multilingual (English, Japanese) html document with htlatex

Japanese html using htlatex [TexLive 2014 on Ubuntu 14.04]: Using pdflatex/xelatex I can generated pdf document from the latex source but I have problem generating html document. Note: I have ...
4
votes
1answer
53 views

htlatex converting ligatures to null bytes

I am familiar with questions 162626 and with 204822, and have followed the instructions therein, but have been unable to get a good solution. htlatex is converting all of the ligatures in a document ...
2
votes
1answer
43 views

htlatex crops too much for picture environment

I use htlatex to convert a large latex file to html pages. All works with one exception. Anything drawn in the picture environment gets cropped. I have isolated the problem in the code example below. ...
2
votes
2answers
70 views

htlatex changes \textasciigrave to “Left Single Quotation Mark” (&#8216;)

To display grave accents correctly in DVI and PDF I use \textasciigrave. But htlatex changes this to &#8216; (Left Single Quotation Mark). Is this a bug? (I use texlive 2015.) For example ...
3
votes
1answer
44 views

How to get correct htlatex output with lithuanian letters?

My example \documentclass{article} \usepackage[T1,L7x]{fontenc} \usepackage[utf8x]{inputenc} \begin{document} ąčęėįšųūĄČĘĖĮŠŲŪžŽ \[ \alpha + \beta = \gamma \] \end{document} produces incorect ...
4
votes
1answer
100 views

htlatex filename.tex “xhtml,mathml”

I want to generate XHTML/MathML along with all equations as image. If I run the below command, I get html and equation-images htlatex filename.tex If I run the below command, I get html, and ...
1
vote
0answers
73 views

\autoref for figures uses “section” instead of “figure” as text

My problem looks very similar to the problem in this question, and is exactly the same as the problem described on another forum. But none of those seem to have solved the problem. When I use the ...
3
votes
1answer
59 views

destlabel option of the hyperref package does not work in combination with htlatex

This is related to my previous question. The use-case is still the same: I want to convert a document into HTML, and give the links in the generated HTML a permanent character, even when the structure ...
4
votes
2answers
72 views

Create permalinks in HTML using tex4ht

Use case: an HTML version of a developer guide written in LaTeX and knowledge base articles in HTML which should be able to link to a certain section, figure, code snippet, ... in the HTML version of ...
2
votes
2answers
234 views

htlatex causes hyperref package not to load completely

The following code runs perfectly fine when using the regular latex command. \documentclass[a4paper,11pt]{book} \usepackage{hyperref} \renewcommand{\sectionautorefname}[1]{Section~} \begin{document} ...
1
vote
0answers
81 views

texfot hangs when used with tex4ht but does not hang with pdflatex

There is a very nice new program in TL 2015 called texfot which filters out many of the messages printed on the screen when compiling latex files. Here is the man page for it With TL 2015 installed, ...
3
votes
1answer
75 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
100 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} ...
4
votes
1answer
101 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
181 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
106 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
52 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
48 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
73 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
62 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
75 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
39 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
50 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
31 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
157 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 ...