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
1 vote
1 answer
31 views

Tex4ht error when trying to include more complex html

I'm trying to change the MathJax font used by Tex4ht to AMS Euler, which can be done by including the following code on a webpage <script type="text/x-mathjax-config"> var font = "...
user avatar
1 vote
1 answer
38 views

htlatex: tikzpicture with alt tag and custom class

Consider the following example: \documentclass{scrbook} \usepackage{blindtext} \usepackage{pgfornament} \title{Some Book} \subtitle{A novel} \author{Some Author} \begin{document} \chapter{Chapter ...
user avatar
1 vote
1 answer
33 views

Pound sign # in title creates error with htlatex and make4ht

If I try to typeset the following minimal working example with latex, no errors occur: \documentclass{article} \title{\#} \author{} \begin{document} \maketitle \end{document} However if I try to ...
user avatar
1 vote
1 answer
25 views

Empty html with Blogging in LaTeX

As the title suggests, this is a follow up of this question. I'm following Michal's answer, I have created the same structure suggested in the answer, created the .make4ht file and the same hello....
user avatar
  • 2,095
1 vote
1 answer
27 views

Changing generated image directory in make4ht

I have used make4ht build system to convert my .tex file to HTML. During the conversion many svg files are generated .Those files lies in the same directory as that of HTML file. Is there any way to ...
user avatar
  • 11
1 vote
1 answer
67 views

Help to write configuration file for make4ht

I have a latex file as shown below. \documentclass[11pt,twoside]{book} \ifdefined\HCode \def\pgfsysdriver{pgfsys-dvisvgm4ht.def} \fi %Below two lines to completely remove page numbering,header and ...
user avatar
  • 35
2 votes
1 answer
53 views

Problem with task list in htlatex

I have a .tex file as shown \documentclass[a4paper,12pt]{book} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{tasks} \usepackage{xcolor} \usepackage{float} \begin{document} \begin{...
user avatar
  • 35
1 vote
1 answer
53 views

Inherit page layout when converting LaTeX to HTML

I use tex4ht but Im open to other suggestions. So tex4ht documentation tells how you can set the margins by yourself, but nothing about inheriting them from the LaTeX document. By default there are no ...
user avatar
1 vote
0 answers
35 views

Why does mk4ht oolatex wrap up the whole folder of nearly 1 GB into .odt file?

On Ubuntu 20.10 I am trying to use mk4ht oolatex filename.tex and I get (after some messages) 'System call: cd sxw-Test_2.dir; zip -r Test_2.odt * ; cd ..', which zips my whole folder of nearly 1 GB ...
user avatar
1 vote
1 answer
32 views

Math and German characters in make4ht

I have the problem of using make4ht to compile my file which contains both math symbols and special German characters. If I use option -u I get charset="utf-8" in the head section and teh ...
user avatar
1 vote
1 answer
49 views

TeX4ht / tex4ebook: labeling unnumbered equations

I am trying to understand whether it is possible to allow labels in equation*-environments as long as they are not referred. This is allowed in pdflatex, but when compiling with tex4ebook (with ...
user avatar
  • 669
0 votes
0 answers
26 views

how to convert xv6 book to html with pictures saved

the book is here: https://github.com/mit-pdos/xv6-riscv-book/ after make, it will generate book.tex, book.pdf and some other tex files. book.pdf have all pictures. I have tried to pandoc book.tex -o ...
user avatar
  • 101
2 votes
1 answer
80 views

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

The following is a code of TeX file. \documentclass{exam} \begin{document} \begin{questions} \question Sample Question \begin{choices} \choice choice 1 \choice choice 2 \...
user avatar
  • 1,411
1 vote
1 answer
81 views

Can I output arbitrary HTML code while converting LaTeX to HTML using make4ht?

My code: \documentclass{article} \newcommand{\world}{world} \begin{document} hello \world{} \end{document} I compile this with make4ht like this: $ make4ht foo.tex [STATUS] make4ht: ...
user avatar
  • 2,887
1 vote
2 answers
120 views

Converting Latex \label to HTML ID attribute

Our organization has their reference manual published in LaTeX. It is a basic 300 page reference manual with tables, figures and sections. The organization also has publications database to track the ...
user avatar
  • 13
2 votes
1 answer
70 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 ...
user avatar
1 vote
1 answer
74 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 ...
user avatar
  • 753
3 votes
1 answer
57 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 ...
user avatar
  • 753
1 vote
2 answers
125 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 ...
user avatar
  • 753
2 votes
1 answer
72 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....
user avatar
  • 753
3 votes
1 answer
103 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^{\...
user avatar
  • 753
2 votes
1 answer
71 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 ...
user avatar
2 votes
1 answer
59 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 --&...
user avatar
  • 678
3 votes
2 answers
74 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 ...
user avatar
  • 123
1 vote
0 answers
150 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! (...
user avatar
  • 656
1 vote
1 answer
144 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 ...
user avatar
2 votes
1 answer
50 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} ...
user avatar
  • 53
1 vote
1 answer
508 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 ...
user avatar
  • 113
2 votes
1 answer
199 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 ...
user avatar
2 votes
1 answer
117 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 \...
user avatar
5 votes
1 answer
298 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?) ...
user avatar
0 votes
1 answer
38 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{\...
user avatar
1 vote
1 answer
419 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 ...
user avatar
  • 113
2 votes
1 answer
135 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} \...
user avatar
0 votes
0 answers
24 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 ...
user avatar
  • 101
1 vote
1 answer
147 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]{...
user avatar
2 votes
1 answer
119 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 —>...
user avatar
  • 678
0 votes
0 answers
203 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 ...
user avatar
1 vote
1 answer
1k 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. ...
user avatar
2 votes
1 answer
381 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[...
user avatar
  • 123
1 vote
1 answer
390 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 ...
user avatar
1 vote
1 answer
138 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{...
user avatar
2 votes
1 answer
109 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 ...
user avatar
2 votes
2 answers
136 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 ...
user avatar
0 votes
0 answers
107 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 ...
user avatar
  • 701
2 votes
1 answer
61 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} \...
user avatar
2 votes
1 answer
195 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 ...
user avatar
1 vote
1 answer
149 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 ...
user avatar
1 vote
0 answers
81 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 ...
user avatar
4 votes
1 answer
115 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}...
user avatar

1
2 3 4 5 6