Questions tagged [make4ht]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
29 views

htlatex for multilingual text and output to odt format

I have an elaborate workflow for producing academic articles that produced latex wit references processed using Biblatex-chicago. The text is mainly in English, but occasionally I need to include ...
2
votes
1answer
41 views

make4ht: allowing the build process to continue when parsing fails

I use make4ht to produce html; part of the process is a custom build file that parses the HTML and does some checking/operations: mwe.tex \documentclass{article} \begin{document} test: $2^3$ ...
2
votes
1answer
20 views

Customizing single line classes in ODT output from mk4ht oolatex

I've been trying to follow a tutorial here: github.com/michal-h21/helpers4ht/wiki/tex4ht-tutorial My MWE files below produce a valid output with the text from the command, but I was expecting the ...
1
vote
1answer
41 views

make4ht cannot render newcommand in mathjax mode

I use file here, and then I run a command make4ht -uf html5 maths.tex "mathjax" but the result is not what I want. I find some solution says I have to add something to cfg file, but I do not ...
1
vote
1answer
46 views

A still unexpected result when using make4ht+mathjax-node-page

I have asked a question here old question, and I exactly follow the answer, now accent problem has been solved, but there are still some bugs. Here is my html, I have converted it to pictures. I ...
0
votes
0answers
23 views

How to make all math symbols to pictures by make4ht [duplicate]

If I use make4ht -u filename to generate HTML, some math symbols are pictures, some are not pictures, this sometimes makes formula ugly, so my question is how to set up make4ht so that it turns all ...
1
vote
1answer
85 views

An unexpected result when using make4ht+mathjax-node-page

I exactly follow the instruction from latex mathjax node but getting some unexpected result, first in section 6 accents, the math symbols are not corrected, second, in HTML some information is ...
2
votes
1answer
81 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[...
3
votes
1answer
36 views

make4ht for plain tex

I want to convert a plain tex document to html using make4ht. If I use this command line make4ht document.tex the program calls the compiler "latex" and blocks the compilation. The make4ht --help ...
1
vote
1answer
89 views

How to teach make4ht to understand newcommand properly?

Make4ht without /newcommand within the document works pretty well with up and down indexes, see the case of 1_definition.html in This Git repository But when the document involves, for example, a \...
5
votes
1answer
381 views

Convert LaTeX to HTML with MathJax

I'm student for Computer science. I prefer to write my home work assignments in LaTeX. I'm utilizing tikZ pretty heavily in my specialized science courses. My goal now is to convert my TeX files to ...
1
vote
1answer
38 views

LaTeX make4ht freeze

I use make4ht to generate html file with css from latex document. And when I manually execute this command make4ht main-tex -c tex4ht.cfg it compiles part of LaTeX, then freeze with new line and "?"...
2
votes
1answer
53 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 ...
0
votes
0answers
30 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
49 views

make4ht/ODT: resizing of images outside of root compile directory

While using the solution to this question make4ht/ODT: resizing of images, I observed that the solution and defaults behaviours worked, but this would break down if the images were placed in a sub ...
1
vote
1answer
122 views

tex4ht - make4ht: How to create fixed width table columns for odt and docx files

I'd like to find out whether tex4ht and make4ht can be customized to allow for very precise table construction in odt files, specifically, manually specified column widths (p{x dim}). This question is ...
2
votes
1answer
38 views

Nest tables in tex4ht as in latex

In the following MWE, which I believe works fine with xelatex, I observe a blank space where I'm trying to insert a nested table. I don't see any warnings or errors in the log file. Are there any ...
6
votes
1answer
228 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 ...
2
votes
2answers
250 views

make4ht - provide multiple configuration files

In post How can I override tex4ht's CSS in a single .css file? the proposed solution requires to add a configuration file (namely sample.cfg). So, if I have sample.tex I may add sample.cfg. However, ...
1
vote
1answer
181 views

Proper enumerate with tex4ht/make4ht and no css style sheet

I'm attempting to convert a LaTeX document of mine as no-style sheet html to be copy-pasted as a (Wordpress) blog post (thus the css-less requirement). So, I've started from michal.h21's instructions ...
5
votes
1answer
195 views

A new problem with tex4ht and tikz

When run through pdflatex the code snippet below produces: but when I run it through make4ht the following web page, without the numbers, is generated: (The difference in scale is an artifact of my ...
2
votes
1answer
151 views

Using ODT styles in a reference template to format make4ht

Following my recent question Customizing ODT output from mk4ht oolatex and a improved process alternative described here: Use ODT Template for make4ht (which makes use of direct formatting by using ...
4
votes
1answer
115 views

Use tabu with htlatex

I'm trying to export my Latex document to HTML, but run into problems using the tabu-environment. As a test case I use the following source file \documentclass{article} \usepackage[utf8]{inputenc} \...
4
votes
1answer
79 views

Are recent pstricks changes to PStricks incompatible with tex4ht?

There have been a few updates to pstricks on ctan recently. The code: \documentclass{article} \usepackage{pstricks} \begin{document} \begin{pspicture}(0,5)(2,2) \rput(1,1){Hi!} \end{...
5
votes
1answer
207 views

Use ODT Template for make4ht

When converting a document with pandoc to ODT or DOCX it is possible to specify a reference document with --reference-doc=. The produced file will use the styles from the reference document. This ...
8
votes
1answer
408 views

htlatex, garamond fonts, and nulled “ff” and “fi” strings

I stumbled across a continuation of a problem that seemed to have been fixed at tex.stackexchange.com/questions/162626/, but the problem comes back if I'm using some form of Garamond font. None of ...
1
vote
1answer
52 views

Hyperlinks for blank section titles in html file compiled with make4ht

The hyperlinks work in compiled pdf file for the following tex document. The section names are blank. However when it is compiled to html using make4ht, the hyperlinks won't work. So there is problem ...
2
votes
1answer
64 views

Hyperref package not working with titlesec package when compiled with make4ht

The hyperref package seems to have conflict with titlesec package when compiled with make4ht. The following document is compiled with make4ht. The compiled html file doesn't contain table of contents. ...
2
votes
1answer
174 views

make4ht -ul with “pic-tabular”

I am trying to generate a html file from a tex file containing Devanagari script in tabular by using make4ht -ul book.tex "pic-tabular" MWE for book.tex is: \documentclass[11pt, oneside, onecolumn,...
2
votes
1answer
73 views

Configuring htlatex for section names in html

If one uses htlatex filename "xhtml,svg" The section name in html file begins as <h3 class="sectionHead"> Also the subsection name in html file begins as <h4 class="subsectionHead"> ...
1
vote
1answer
129 views

Non ascii characters for text in math mode for ODT output with tex4ht

This is related but, as far as I grasp, somewhat different from Utf-8 output from make4ht to odt format. I'm using make4ht to convert a LaTeX document to ODT and, within it, I have some equations ...
3
votes
1answer
674 views

Pre-compiled mathjax output using mathjax node in make4ht or htlatex

It is possible to convert latex to html with make4ht or htlatex in which mathematics content gets converted into svg. Is it possible to pre-compile mathematics content of latex file into mathjax (...
4
votes
1answer
258 views

Different SVG Output for mathematics symbols with dvisvgm used with htlatex or make4ht

The tex file with the following code is to be converted into html. \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} \(\implies\) and \(\iff\) \\ \(a \implies b\) \...
2
votes
2answers
396 views

make4ht, tikz and utf-8 encoding question

Consider the following simple latex file: \documentclass{article} \ifdefined\HCode\def\pgfsysdriver{pgfsys-tex4ht-alt.def}\fi \usepackage{tikz} \usepackage{filecontents} \begin{document} % see https:...
1
vote
1answer
66 views

Use different documentclass with TeX4ht

Is it possible to use different documentclass than the one specified in document source code during make4ht / htlatex compilation without changing the source code? Lets say I have a document source: ...
1
vote
1answer
59 views

TeX4ht fails to insert </div> at \end{center} with standalone class

mwe.tex: %%%%%%% Example 1. that works correctly %%%%%%%%%%%%%%%%%%%% %\documentclass{article} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%% Example 2. fails to insert </...
1
vote
1answer
378 views

How to use -interaction=nonstopmode option with make4ht?

The htlatex way $ make4ht document.tex "customcfg.cfg, charset=utf-8" " -cunihtf -utf8" "" "-interaction=nonstopmode" didn't work. Result was: make4ht:unrecognized parameter: i. I would also ...
2
votes
1answer
197 views

More TeX4ht issues with chrome and safari

Take the following simple latex file \documentclass{article} \usepackage{amsfonts,amsmath} \newcommand\R{\mathbb{R}} \begin{document} $\overrightarrow{AB}$ $|\mathbf{v}|$ $e^{x^2+y^2}$ $\...
1
vote
1answer
285 views

htlatex with minted

The minted package helps to include code in a LATEX document. It required that -shell-escape: pdflatex -shell-escape document.tex document.tex \documentclass{article} \usepackage{minted} \begin{...
3
votes
1answer
448 views

Ideal directory structure for make4ht, clean build

It's being suggested make4ht can replace the functionalities provided by htlatex (i.e. question) to generate HTML from LATEX documents. I'm interested on it. Particularly, I would like to put in ...
1
vote
1answer
166 views

tex4ht produces quotation marks instead of German umlauts

A simple file with umlauts compiled using make4ht test "xhtml,charset=utf-8" " -cunihtf -utf8" shows question marks instead of German umlauts. Here the MWE test.tex: \documentclass{article} \...
4
votes
1answer
92 views

tex4ht changes \_ in math mode to X in HTML when not including \usepackage[T1]{fontenc} why?

I had to comment out \usepackage[T1]{fontenc} when running tex4ht to bypass an issue why-tex4ht-do-not-change-font-size-of-verb-when-including-usepackaget1font but now I find a strange side effect for ...
3
votes
1answer
121 views

tex4ht fails to compile footnote when there is blank line with scrartcl class

TL 2016. There seems to be a bug here. This MWE fails to compile with tex4ht because there is blank line in footnote \documentclass[11pt]{scrartcl} %\documentclass[11pt]{article} \IfFileExists{...
1
vote
2answers
3k views

Package graphics Error: Division by 0. with tex4ht when using [dvipdfmx]{graphicx}

I found a case, when this MWE \documentclass[11pt]{scrbook}% \usepackage{graphicx} \begin{document} \includegraphics[width=0.95\textwidth]{image.png} \end{document} Gives the error (/usr/local/...
4
votes
1answer
153 views

why tex4ht do not change font size of \verb? when including \usepackage[T1]{fontenc}?

This MWE \documentclass[11pt]{article} \usepackage{ifluatex} \ifluatex \IfFileExists{luatex85.sty}{\usepackage{luatex85}}{} \ifdefined\HCode \usepackage[utf8]{luainputenc} \usepackage[T1]{...
5
votes
1answer
160 views

tex4ht corrupts “--” inside CDATA in the HTML file

I am using an outside javascript package (syntaxHighlighter) for code formatting when I compile to HTML that requires one to put code inside <![CDATA[ ... code .. ]]> as explained in the above ...
3
votes
1answer
903 views

after changing to \usepackage{fontspec} now make4ht do not compile my Latex file in lualatex mode

I was told by Latex experts to use \usepackage{fontspec} with Lualatex. It works ok with lualatex, but now my files do not compile with make4ht any more after I changed to \usepackage{fontspec}. ...
2
votes
1answer
63 views

tex4ht removes spaces in href description in Lua mode when using mathdesign package

Any idea why this MWE \documentclass{article} \usepackage[T1]{fontenc} \usepackage{amsmath,mathtools} \usepackage[bitstream-charter]{mathdesign} \usepackage[utf8]{inputenc} %DO NOT USE WIT LUALATEX, ...
3
votes
1answer
257 views

tex4ht problem with matlab-prettifier package. lstlisting code shows differently from lstinputlisting

It seems like a lost case using Matlab code in Latex when it comes to tex4ht. I switched to using matlab-prettifier package instead of mcode package to load Matlab code in Latex since I found too ...
1
vote
1answer
87 views

tex4ht scrambles some Matlab code when using mcode package

I noticed that tex4ht do not generate correct code for typesetting Matlab code listing. It does not like .^ in the Matlab code, and it generates funny looking character in its place. MWE \...