Questions tagged [htlatex]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

htlatex with “early_” option shows error while using biblatex used tex file

while running biblatex used tex file in htlatex htlatex "file.tex" "xhtml,mathml,early_" "early_" this option shows below errors ! Undefined control sequence. \blx@tempa ....
2
votes
1answer
31 views

Is htlatex with the beamer class broken [duplicate]

If I try to compile this example document \documentclass{beamer} \begin{document} \begin{frame}{Test} Test \end{frame} \end{document} with htlatex temp.tex I get the output: l.34951 --- TeX4ht ...
1
vote
1answer
36 views

How to configure tex4ht to accept macros in TeX path?

I am using the configuration suggested in this answer to import a file Macros.tex containing a bunch of \newcommand macros to be processed using MathJax. It works as long as the main LaTeX file and ...
3
votes
1answer
37 views

Why does make4ht mathjax convert AMS gather environment to html code?

With the mathjax option, make4ht fails to render the following: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather} E=mc^2\\ e^{i\pi}+1=0 \end{gather} These ...
1
vote
2answers
46 views

htlatex: method to set fraction of textwidth as minipage width not compatible with TikZ

I am using the make4ht configuration from this answer to extract width as a fraction of textwidth from LaTeX code and add it to the CSS file. The configuration works as expected until I add a TikZ ...
2
votes
1answer
50 views

Configuring htlatex for nested minipages or minipages outside floating environments

I am trying to do something similar to this post on configuring minipages with htlatex. However, my minipages are not inside a figure environment, so the strategy to apply a float: right css to div....
3
votes
1answer
39 views

make4ht - broken cross references

I am using make4ht on the file Test.tex containing: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} Testing cross references for equations. \begin{equation} e^{\...
2
votes
1answer
43 views

Problem with inserting graphics with HtLaTeX on Debian buster

I've been tasked with porting some software to Debian buster. The software has pretty extensive documentation using latex. I'm mainly a sysadmin/software guy and only know a little TeX. When building ...
2
votes
1answer
48 views

Wrong doi link with htlatex --> biber --> htlatex

When compiling the following MWE with pdflatex --> biber --> pdflatex, a correct doi link is generated: https://doi.org/10.1016/j.automatica.2013.06.002 However, when compiling with htlatex --&...
3
votes
2answers
43 views

if caption package is loaded autoref doesn't work correctly when using htlatex

If I use autoref while the caption package is loaded, the target type does not appear in the reference if I generate html with htlatex. If I use pdflatex, autoref works as expected. Here's an example ...
1
vote
0answers
24 views

Problem when compiling using htlatex and using biblatex-abnt

I'm trying to create HTML from TeX file. It compiles smoothly with pdflatex but when I use htlatex the following error shows: Package biblatex Warning: File 'brazilian-abnt-abnt.lbx' not found! (...
1
vote
1answer
45 views

Producing ODT from LaTeX using htlatex

The command htlatex filename "xhtml,ooffice" "ooffice/! -cmozhtf" "-coo" produces an ODT file with 2 major problems: All cross references are lost; and Figures not ...
2
votes
1answer
25 views

htlatex ignores value in brackets in item statement when using itemize

In Latex I have the following statements: \begin{itemize} \item[P)] Lorem ipsum dolor sit amet \item[E)] Pellentesque interdum eros in erat \item[Q)] Vestibulum ante ipsum primis \end{itemize} ...
1
vote
1answer
221 views

Missing images with LaTeX to HTML

I would like to create an HTML file from a LaTeX document. The probably most convenient approach using TeXStudio's Tools | Convert to Html... | Launch results in an error: Error : a process has failed ...
0
votes
0answers
73 views

Tex to word via html using htlatex

I need to convert Latex file (prepared using Elsevier elsarticle class in TexWorks) in to a Ms Word document. I searched for possible routes and came out with htlatex. I used htlatex to convert the ...
2
votes
1answer
88 views

How should I work with multiple make4ht filters?

As I use tex4ht/make4ht more, I find I'm building up a collection of my own customisations. To help organise this, is there a recommended way to manage including (multiple) custom filters/domfilters ...
1
vote
1answer
40 views

Heading hierarchy in tex4ht

It looks like tex4ht headings start at <h2> for the title. The following tex: \documentclass{article} \title{Testing headings} \author{Alex Watson} \date{\today} \begin{document} \maketitle \...
3
votes
1answer
133 views

Graphics scaling in tex4ht

When I introduce graphics with \includegraphics[width=0.5\textwidth]{fig}, tex4ht processes this into some number of pixels (I'm not sure how - presumably there's a ppi setting I've not encountered?) ...
1
vote
0answers
75 views

Generating jpg images of Questions and Options in Exam Class through any method

The following is a code of TeX file. \begin{document} \begin{questions} \question Sample Question \begin{choices} \choice choice 1 \choice choice 2 \choice choice 3 \choice choice 4 \end{choices} \...
0
votes
1answer
32 views

How to put contents of file in a \path

Take the following file called "version" 5.1 I'd like to take the contents of version and insert in a \path. I've tried \documentclass{article} \usepackage{url} \begin{document} \path{\...
1
vote
1answer
164 views

Textcolor from awesomebox with htlatex

I'm trying to convert a TeX document that uses the package awesomebox to HTML using htlatex. Although I did not expect this to work out of the box and probably requires me to configure some ...
2
votes
1answer
64 views

Bad SVG output when using htlatex

I am trying to compile some minimal test.tex using htlatex test.tex "xhtml,svg", but the SVG generated from tikz pictures does not seem to work. \documentclass[11pt]{article} \usepackage{tikz} \...
0
votes
0answers
22 views

Size of displayed equations in html file produced by htlatex

I am using htlatex to produce a html file from a latex file, with no particular config file. It works relatively well except for the following problems. Loading the html file in Chrome android on my ...
1
vote
1answer
78 views

Including pstex_t figures when using htlatex

I am trying to create html file from my test.tex document including a .pstex_t file that include a .ps figure. Here is my test.tex file \documentclass[12pt,a4paper]{article} \usepackage[francais]{...
2
votes
1answer
88 views

htlatex-Biber-htlatex compilation error (not present in Latex-Biber-Latex)

The MWE below is issued from here It compiles with no errors when using: Latex —> Biber —> Latex. Moreover, it produces exactly the desired result. However, when compiling using: htlatex —> Biber —>...
0
votes
0answers
154 views

Cannot find latex.fmt or pdflatex.fmt

Honestly I am about to snap. I don't know - I installed TeX Live yesterday, 2019 version for Windows and I spent over 8 hours trying to figure out why it's not working. I keep getting these errors ...
1
vote
1answer
761 views

install htlatex

I need to convert a series of latex documents to a single html file. I would like to know how to install the htlatex program on fedora 31. I tried to install the tex4ht package without being able to. ...
2
votes
1answer
219 views

Convert xelatex to html

I take this minimal example for document. I need 'polyglossia'. \documentclass{article} \usepackage{polyglossia} %\usepackage[utf8]{inputenc} \setdefaultlanguage{arabic} \newfontfamily\arabicfont[...
1
vote
1answer
314 views

tex4ebook: error in compiling with configuration file

My myconfig.cfg code block is: \Preamble{xhtml} \Configure{AddCss}{blitz-lite.css} \begin{document} \EndPreamble My command line is tex4ebook -c myconfig test2.tex -f epub3 mathml I get the ...
1
vote
1answer
104 views

Longtable displays extra cells in html output

In HTML, my table has extra cells below the header row and below the left hand cell on the bottom row. \begin{longtable}{ | p{2.0cm} | *{5}{>{\raggedright\arraybackslash}p{3.5cm} |} } \hline \b{...
2
votes
1answer
84 views

Filenames of images in tex4ht

I have two systems where I need to run tex4ht/make4ht. They are different versions of Ubuntu, I believe 18.04 LTS vs 19.04. I use the most recent version of make4ht from github, but the version of ...
2
votes
2answers
109 views

split environment with tex4ht

The following MWE: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{split} a &= b \\ c &= d \end{split} \] \end{document} compiles fine with pdflatex, but when I ...
0
votes
0answers
68 views

How do change the output directory of `htlatex`

Every time I execute the htlatex command in TeXsudio (htlatex %.tex) I get a lot of files in my main folder. I would prefer that the target files (html, css, png, etc.) to a folder called html and all ...
2
votes
1answer
48 views

tex4ht ignores \input@path when looking for .4ht files?

My situation is like this. I have a LaTeX file that I want to compile with pdflatex and tex4ht, which includes a package in another directory. The file bug.tex contains: \documentclass{article} \...
2
votes
1answer
143 views

Converting pdf to png with htlatex and format controlling problem -resolved

I am using miktex on windows system. I try to convert .tex file to html and then copy it to word. The challenge comes from .pdf figure Converting process can be achieved by the previous post ...
1
vote
1answer
112 views

Problems with graphicx and htlatex

I try to convert the file 3AHET.tex to HTML but get the Error: ! LaTeX Error: File `test' not found. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate ...
1
vote
0answers
70 views

tex4ht and beamer, re-patching \section

I'm using tex4ht to generate accessible versions of presentations created using the beamer package. Beamer redefines \section and friends, and so the tex4ht configuration hooks are lost. I know how ...
4
votes
1answer
79 views

Htlatex and beamer, strange output with \emph

I'm seeing some strange output for \emph text using htlatex with the beamer class. Using the following source: \documentclass{beamer} \begin{document} \begin{frame}{Test} \emph{bold text}...
0
votes
1answer
64 views

tex4ht: italicized matrices inline and display mode when using \mathbf{X}

I have had good experience with tex4ht (htlatex), but in a new article I am compiling, there are random cases where inline and display mode matrices are in italics when using $\mathbf{L}$ for inline ...
2
votes
1answer
73 views

Enforcing ImageMagick parameters into tex4ht during magick convert (Windows)

Use of the newer versions of ImageMagick in Windows with MikTeX and tex4ht requires a trick in the preamble to enforce tex4ht to invoke magick convert instead of the previously used convert.exe, which ...
1
vote
1answer
113 views

tex4ht not converting .eps images in converted_graphics folder to .png or .svg

Inside the latex file (.tex) the typical picture command is used: \includegraphics[bb=0 0 2100 1528,width=3.83in,height=2.79in,keepaspectratio]{summbetadiethist.eps} However, when running htlatex ...
0
votes
1answer
53 views

Tex4ht (htlatex) html output in sans serif typeface and narrow textwidth

Using the htlatex myfile.tex command which invokes tex4ht, I learned that a rather nice text for web pages can be obtained by simply using the \sf command for an entire web article. Using the helvet ...
2
votes
1answer
136 views

\displaystyle and \limit commands don't seem to work when rendering to mathml

I am trying to render a latex file to mathml for viewing in firefox. However, when trying to render the following example: \documentclass{article} \begin{document} \(\displaystyle\sum\limits_i\) \end{...
1
vote
2answers
121 views

Why does \renewcommand{\Pr} trigger “Limit controls must follow a math operator” with MathJax+htlatex?

I have ht5mjlatex.cfg as defined here, and a foo.tex containing: \documentclass{article} \renewcommand{\Pr}[1]{P(#1)} \begin{document} $\Pr{h}$ \end{document} As described in that post, I try to ...
1
vote
0answers
57 views

tex4ebook generates incorrect hyperlink references

I am sorry that I am unable to extract a minimal working example. I downloaded the source code from arxiv, commented out \usepackage{times,fullpage} and \usepackage{xr-hyper} in the preamble: \...
2
votes
1answer
154 views

tex4ebook (or htlatex) doesn't treat (mathematical) accents properly?

I tried some codes like \documentclass{amsart} \begin{document} Let's see $\widehat{\mathcal F}=\hat F=\bar F=\tilde F=\overline F$. \end{document} with default compilation. Only \overline is ...
2
votes
1answer
223 views

htlatex: img with alt tag and custom class

This question is something of a follow-up to tex4ht: customize \includegraphics conversion to HTML and also to When generating html, how do you specify image size? background In my .tex file I ...
6
votes
1answer
437 views

Beamer to HTML using make4ht

\documentclass{beamer} \usetheme{Madrid} \begin{document} \begin{frame} aaa \end{frame} \begin{frame} bbb \end{frame} \end{document} The above tex file is to be converted into html. I am using the ...
0
votes
0answers
25 views

Htlatex and chapters/sections malfunction

When using htlatex on the file with \chapter{...} etc., the resulting html file loses paragraph formatting and is all one big paragraph. When I comment out \chapter etc., all works fine. I use ...
1
vote
1answer
145 views

htlatex failing with custom documentclass: Error LaTeX Error: File `email' not found

I have created a custom class for a personal curriculum. It can be found at https://github.com/igormorgado/elegantcv It compiles nicely with pdlatex, XeTeX and LuaLaTeX, but trying to build with ...

1
2 3 4 5 6