Questions tagged [tex4ht]

TeX4ht is a highly configurable TeX-based authoring system dedicated mainly to produce hypertext.

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

Latex: create html for opening in word

I have written my master thesis in latex and got beautiful pdf. Now I want to publish it in a journal for which I need to convert it to html to convert it to word. I now that there options out there ...
6
votes
1answer
203 views

Using imakeidx in tex4ebook with Polyglossia for Devanagari

I am trying to create a Marathi ebook using the packages Polyglossia an tex4ebook. Following is the MWE I prepared following the instructions from @michal.h21 (which were given to produce the MWE that ...
1
vote
1answer
3k views

Latex to HTML conversion (basic explanation)

I have been looking around for an easy way to save my .tex into a .html file, but all the questions/answers are very technical, and I have not found one that is accessible to me/beginners. I have seen ...
1
vote
1answer
42 views

Spurious space in tex4ht with math unchanged

I am using the tex4ht config file here to leave math unchanged. However, I am getting a spurious space after commands such as \text{A} which get compiled as \text {A}. How to get rid of such spaces? ...
3
votes
1answer
392 views

Customizing ODT output from mk4ht oolatex

Inspired by the custom environments created from the cfg file referenced during mk4ht oolatex test.tex custom.cfg compilations as demonstrated in the answer Configure tex4ht/oolatex output I'm ...
2
votes
1answer
100 views

make4ht crashes, error code 256, when using arev with bold font

This might be known issue, but did not see it googling. I sort of remember seeing this before, but I could be wrong. So thought to post this just in case. If this is known, will delete this. This MWE ...
1
vote
1answer
40 views

tex4ht giving error messages for multiline equations inside of minipage

I am trying to produce equations as it is while converting from LaTex to html by using tex4ht. If I place the environments inside of minipage then it is giving error. File is \documentclass{...
1
vote
1answer
83 views

htlatex: incorrect minitoc when using custom list of <things>

This question is a follow-up to tex4ht: custom list of … (part 2 of 2) I'm using htlatex to produce html on a one-subsection-per-page basis. I'm also using the technique described in the post linked ...
2
votes
1answer
32 views

Alignment changed using linguex.sty and TeX4ht

My codes are follows: \documentclass{book} \usepackage{linguex}% \begin{document} Davidsonian events, and makes explicit how the latter relate to situations more generally. As she puts it: \ex. \...
4
votes
1answer
198 views

Latex error from etoolbox.sty when compiling under tex4ht only using XCharter

When compiling this example file, obtained from suggest-a-nice-font-family-for-my-basic-latex-template-text-and-math it gives an error (/usr/local/texlive/2017/texmf-dist/tex/latex/mweights/...
1
vote
1answer
302 views

Use utf-8 encoding instead of iso-8859-1

I am using htlatex to generate an html file. I use some special characters like é and å in the document. These characters come out looking fine when I open the resulting html file in Safari. ...
2
votes
1answer
114 views

problem using new added support for package{bera} in tex4ht

Now that tex4ht have added support to package bera, reference how-to-use-usepackagebera-in-tex4ht-it-does-not-like-the-f-letter I've been using it for little while, and just found a problem. If ...
2
votes
1answer
44 views

oolatex formatting difficulties with newcommands containing math mode

Compiling this simple example with mk4ht oolatex (which I then headlessly convert to a docx file), I find myself a little confused by the result I get. Note, everything is as expected with the pdf ...
3
votes
1answer
121 views

Simple Color Environment for htlatex

I have a class I originally used for PDF output, but now want to also have an option for HTML. I have a very basic environment where the block of text is a different color. For example: \...
0
votes
0answers
359 views

problem with htlatex and tex4ht.env

I am compiling a document using htlatex file.tex "html,fn-in" This has always worked in the past. Now I am getting the following "warning" after which the program hangs - although a dvi file is ...
6
votes
1answer
751 views

comparing tex4ht, lwarp and latexml on same document?

tex4ht and lwarp and latexml all take a latex file and generate a HTML. They use different methods. I'd like to compare the HTML output on some sample document with lots of math and graphics to see ...
4
votes
1answer
278 views

Harnessing the TeX compiler to write a TeX to UTF8 converter

Dealing with most of one's text in UTF-8 rather than TeX-strings has many advantages, it is not only easy on the eyes, fingers and editors, but also it becomes real easy to feed your text to spellers, ...
1
vote
1answer
62 views

Wrong tag ordering in mathml produced using htlatex

I am converting large mathematical documents from latex to html + mathml. I have wrongly shaped file as output in some situations. An example is as follows. The main file test.tex is: \documentclass{...
1
vote
1answer
233 views

How to use \usepackage{bera} in tex4ht? It does not like the `f` letter?

I like the font provided by \usepackage{bera}. But when using this in tex4ht, it seems to drop some letters from some words for some reason. In this example, it does not like the f letters and removes ...
5
votes
1answer
102 views

why does tex4ht not rotate images?

This MWE works ok with lualatex \documentclass[]{article} \usepackage{mwe} \begin{document} \includegraphics[angle=90]{example-image} \end{document} The image is rotated by 90 degrees By make4ht ...
1
vote
1answer
194 views

Empty odt files produced using mk4ht on windows with miktex

I'm looking for some advice to configure my windows system in such a way that I can get mk4ht to compile into an open office document using miktex. If I create a simple tex file called i.tex \...
2
votes
1answer
141 views

htlatex, imakeidx, and textit in an index entry

I'm using htlatex to create an ebook. For some customization reasons, I need to use imakeidx instead of makeidx. Additionally, some of my index entries are using \textit{}, e.g. \index{\textit{...
6
votes
2answers
238 views

Is animate package compatible with htlatex

I have recently created some animations of tikzpictures using theanimate package. The result was (as expected) very nice. Now, I would like to save these animations as html(5 I guess) code to ...
3
votes
1answer
109 views

htlatex: customising the build process

I'd like to customise the processes used when calling htlatex; in particular, I'd like to be able to switch off the conversion of included images into .png files. With the following file, say mwe....
3
votes
1answer
193 views

What would it take to write a LaTeX engine for prodcuing text based output

As a potential follow on from Can LaTeX be persuaded to produce text output? there are a number of partial solutions to generating text based output (e.g., plain ascii/utf-8 text, html, xml). From ...
1
vote
1answer
415 views

Styling an HTML paragraph with tex4ht

I've created a simple macro in LaTeX for notes: \documentclass{book} \usepackage{xcolor} \definecolor{notecolor}{rgb}{1,0.2,0.2} \newcommand\note[1]{{\textcolor{notecolor}{\textbf{Note: }}}#1} \...
3
votes
1answer
633 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 (...
1
vote
1answer
180 views

Tex4ht, LaTeX to Docbook: Quote-Environment not transformed to <blockquote>

I've been using Tex4ht to create a Word-File from LaTeX via ODT (oolatex). I've been wondering if the conversion process can be easier if we generate a Docbook XML from LaTeX. This could be the ...
1
vote
1answer
329 views

MathML conversion not matched with LaTeX output using TeX4ht

My code as follows: \documentclass{book} \usepackage{amsmath} \begin{document} Test \begin{equation} \left.\begin{array}{c} \displaystyle\sum\limits_{t=0}^{T}\pi \rho^{t}\overset{\textrm{add and ...
4
votes
1answer
241 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
1answer
433 views

Svg output for Mathematics using htlatex or tex4ht

A LaTeX document is to be converted to html using tex4ht or htlatex. If the .cfg file is included with \Configure{html}{xml} \Preamble{xhtml} or \Configure{html}{xml} \Preamble{xhtml,png} The ...
2
votes
1answer
89 views

scrjura and tex4ht: issue with headings

The scrjura.sty is part of the KOMA-script bundle. I'm using it to draft contracts. Often I have to deliver a word file. So I'm using tex4ht to produce it from my *.tex file. Let's say, the name of ...
1
vote
3answers
461 views

Problems of .pdf format graphic or image when using htlatex to convert .tex to html

Recently I have worked on converting .tex to .html. I have solved a lot of problems with the help of @michal.h21. the last question is about the image problem. I use the MiKTeX system, it is basic-...
1
vote
1answer
695 views

Compiling error when use htlatex to convert html

I now want to convert tex to html file. it only has some errors before but after i seems to update some package or something, it can not produce html file. the source code and the bib code is ...
1
vote
1answer
326 views

Problems using htlatex and bibtex to html and then to word

i am now trying to convert .tex file to HTML and then to word, but there is problem about figure. if you want debug such file, four other file are needed. they are 1 iopams, latex style file 2 ...
1
vote
1answer
87 views

How to convvert Indian language .tex file to epub with a neat output

I am trying to convert a book in Malayalam prepared using XeLaTeX into an epub file. I tried with Calibre, which gave a file that had many problems with the Malayalam text. Then I tried with pandoc, ...
28
votes
1answer
1k views

Feedback on new package for creating on-line quizzes from latex

WebQuiz has now been released as a package on ctan. It will be included in TeXLive 2019. Accordingly, the links below have been updated to point to ctan, or disabled. If you want to install ...
2
votes
1answer
104 views

tex4ht: custom list of … (part 2 of 3)

This is a direct follow-up to tex4ht: custom list of .... (part 1 of 2) I have a custom list of <things>. The code below provides a link from each item in List of cmh to its place on the page. ...
3
votes
1answer
166 views

tex4ht: custom list of … (part 1 of 3)

I have a custom list of <things> detailed in the following example: \documentclass{article} \newcommand{\cmhcommand}[1]{\addcontentsline{cmh}{subsection}{#1}} \makeatletter \newcommand{\...
2
votes
1answer
174 views

tex4ht and theorem style in bold face and small caps

I am attempting to create a custom theorem style where the header is simultaneously in bold face and in small caps. (I know that "double emphasis" is something to be avoided.) This, however, produces ...
3
votes
1answer
217 views

Problem with the arrow of vectors using TIKZ and Tex4ht

I am using tikz and tex4ht in order to create a page in HTML, and when I draw a vector where I indicate its name with $\vec{u}$ for instance, the rendering with tex4ht gives a svg with weird symbols ...
2
votes
2answers
367 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
227 views

\textcolor with tex4ht

This is a question about getting colors with tex4ht. The issue was discussed e.g. here, where a suggestion was made, which however I can't get to work. I asked a comment there and it was suggested ...
1
vote
1answer
62 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: ...
3
votes
1answer
172 views

How to get htlatex to use a custom filename for per section html files?

I have a large latex document which I compile to pdf and html, today via latex2html. I'm investigating switching from latex2html to htlatex, as it is "real" latex, and runs much faster. So far, ...
1
vote
1answer
57 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 </...
2
votes
0answers
287 views

Tex4ht/MathJax - Matrix equation with aligned rows

By using tex4ht I'm processing a tex document with a matrix equation where I would like the rows of all different arrays to be aligned (i.e. all row should have the same thickness). The latex document ...
6
votes
1answer
504 views

Work around for bug in pgf when used with htlatex?

There is a bug in pgf that stops it playing nicely with tikz/pgf. As discovered by michal.h21, the solution is a simple a one line change to pgfsys-tex4ht.def. This bug was reported to the pgf team in ...
1
vote
1answer
663 views

\appendix command affecting footnote in TeX4ht

In my document, I need all footnotes should come at the end of each chapter, for this I write a cfg file and all the codes are given below: **test.cfg:** \Preamble{xhtml,fn-in} \HAssign\ChapId=0% \...
1
vote
1answer
86 views

Add condition in TeX4ht

As per my requirement, I need the tag <span class="inlinemath">...</span> for all inline math, so I've created the .cfg file like: \Preamble{xhtml,fn-in} \RequirePackage{etoolbox}% for ...

1 2 3
4
5
14