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
14 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 ...
2
votes
1answer
58 views

How does tex4ebook work with images (png, jpg)?

After finish writing a book in LaTeX, I learned the many online books are published in the ePub format. Then I decided to learn a little bit of how to convert .tex (or .pdf) into .epub. The book has ...
3
votes
1answer
39 views

tex4ht: including section/subsection number in toc link

I'm producing a document using tex4ht, and I would like to have the section and subsection numbers within the links in the TOCs, both main and mini. For the main TOC, the following strategy works: \...
1
vote
1answer
22 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 ...
0
votes
1answer
33 views

how to make `arraystretch` work in tex4ht? It has no effect now

I need a bit more extra vertical space between rows of a longtable. But \renewcommand\arraystretch{3} has no effect on the HTML output compare to PDF. MWE \documentclass[11pt]{article}% \usepackage{...
1
vote
1answer
69 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
0answers
24 views

tex4ht: conflict between `\[`..`\]` and `split` environment [duplicate]

MWE: \documentclass{amsart} \begin{document} split, also from amsmath, similar alignment to align, but the whole construct fits within equation (or other display math) and is numbered as a unit. \[ ...
0
votes
0answers
29 views

tex4ht: possible conflict between \emph and \xymatrix

MWE: \documentclass{amsart} \usepackage[all]{xy} \begin{document} \emph{ Test \[ \xymatrix@C-20pt{ {\mathbf R} f_*\big[{\mathbf L} f^*A\otimes^{\mathbf L} f^\times{\mathcal O}_Y^{}\...
1
vote
1answer
40 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 ...
1
vote
1answer
23 views

Pipe symbol not converted through TeX4ht

My codes are follow: \documentclass{book} \begin{document} This is for test | Test \end{document} If I convert this through TeX4ht then the pipe symbol | converted as emdash, how can I fix this? ...
2
votes
1answer
24 views

tex4ht: `backref` option of `hyperref` not working well

MWE: \documentclass{article} \usepackage[backref=page]{hyperref} \renewcommand*{\backref}[1]{} \renewcommand*{\backrefalt}[4]{[{\tiny% \ifcase #1 Not cited% \or Cited in page~#2.% \...
1
vote
1answer
25 views

tex4ht: conflict between `symbol` option in `footmisc` and `hyperref`

MWE: \documentclass{book} \usepackage[symbol]{footmisc} \usepackage{hyperref} \begin{document} Maintext\footnote{Footnote \phantomsection \label{gtag:xxx} } Hyperref \hyperref[gtag:xxx]{abcd}...
2
votes
1answer
36 views

tex4ht: conflict between `wrapfig` and `caption` packages

MWE: \documentclass[12pt]{book} \usepackage{caption} \usepackage{wrapfig} \begin{document} \begin{wrapfigure}{o}{1.25in} \end{wrapfigure} \end{document} If I compile it with tex4ebook, or htlatex, ...
1
vote
1answer
25 views

tex4ht: customized commands does not work in equation environment

The following code does not compile under tex4ebook: \documentclass{amsart} \newcommand\Tag[1]{} \begin{document} \begin{equation} x=y\label{t1}\Tag{(*)} \end{equation} Look at equation \ref{t1}. \...
2
votes
2answers
48 views

tex4ht: conflict between `\[` `\]` environment and label, ref?

I try to compile the following very simple code by tex4eboot: \documentclass{amsart} \begin{document} \[ x=y\label{t1}\tag{Test} \] Look at equation \ref{t1}. \end{document} It gives me errors: [...
2
votes
1answer
60 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
0answers
20 views

Is there a way to add TOC to sig-alternate? [closed]

Is there any possible way to add toc to sig-alternate? Otherwise i would need to rework my whole documentary. Sig-alternate is a type of acm document, like article
1
vote
0answers
20 views

Reference to a subcaptionbox causes an error in htlatex

Here is the MWE: \documentclass[12pt]{article} \usepackage[compatibility=false]{caption} \usepackage{subcaption} \begin{document} Lorem ipsum dolor sit amet, consectetur ...
1
vote
1answer
38 views

Avoiding expansion of referenced captions when cross-referencing external documents with TeX4ht

This is a follow-up question to another question. The selected answer proposes the use of zref-xr, which works fine for PDF output, but has its limitations when using TeX4ht: the configuration via \...
3
votes
1answer
76 views

Fixed layout in LaTeX (TeX4ht)

Is this possible to do FixedLayout from LaTeX to HTML/EPUB conversion? If the answer is yes, please advise how to do... Thanks to all....
1
vote
1answer
50 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
39 views

tex4ht does not handle multline well in mathjax mode

This MWE \documentclass[12pt]{article}% \usepackage{amsmath} \begin{document} \begin{multline*} (6 A t+2 B) e^{it}+i (3At^{2}+2Bt+C) e^{it}+i(3At^{2}+2Bt+C) e^{it}\\ -( At^{3}+Bt^{2}+Ct) e^{it}+( ...
2
votes
1answer
47 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
59 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 ...
2
votes
1answer
44 views

why adding \pagestyle{fancy} gives compile error with tex4ht?

This MWE \documentclass[12pt]{article}% \usepackage{fancyhdr} \pagestyle{fancy} \begin{document} \section{$\cos \left(x\right)$} test \end{document} Gives this error make4ht foo1.tex ........ (/...
2
votes
1answer
33 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} \...
1
vote
0answers
39 views

why tex4ht fails to compile this file. Error from ot1lmtt.fd

This MWE compiles OK with lualatex but gives an error with tex4ht. Any one knows why? \documentclass[12pt,parskip=full]{scrbook} \usepackage{amsmath} \usepackage{graphicx} \usepackage{array} \begin{...
1
vote
1answer
61 views

Way from *.tex file with \usepackage{fontspec} to html?

Once in a while I need to convert a *.tex file into html (to import it into a Word document). Usually I use tex4ht, recently I learned about make4ht. I have much respect for the current maintainer and ...
1
vote
0answers
34 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 ...
2
votes
1answer
44 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 ...
4
votes
1answer
37 views

cross-referencing configuration in TeX4HT

I tried to reconfigure \Link, \ref, \cite to get the below output Link --> <target targetid="x1-10001"></target> ref --> <xref ref-type="Sec" rid="x1-10001">1</xref> cite -->...
4
votes
1answer
34 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}...
2
votes
1answer
34 views

suppress footnote-mark configuration in Tex4HT

I tried to get the below output for footnote in through TeX4HT <p class="indent">Some Text<fn id="sample_fn_001" symbol="1"><p class="noindent">language has evolved gradually: as ...
3
votes
1answer
42 views

\pageref gives wrong page number in TeX4HT

When i used \pageref in the document, i am getting wrong page number in the TeX4HT output (ie., Html file) MWE \documentclass{article} \title{Sample TeX4HT} \begin{document} \maketitle \section{A ...
2
votes
1answer
30 views

TeX4ht: Strange behavior when I include `\xymatrix` in a macro

See the following code: \documentclass{amsart} \usepackage[matrix,arrow,curve,cmtip]{xy} \begin{document} \newcommand\test{ \xymatrix{{a} \ar^-{b}[r] & {c} \ar@<0.7ex>^-{d}[r]\ar@<-0....
1
vote
1answer
96 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
34 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 ...
2
votes
1answer
47 views

Does the oolatex part of tex4ht support the titling package?

I've been using the oolatex part of tex4ht in order to convert a LaTeX documet to an Open Office document (with the goal of eventually converting this to Microsoft Word), running it through the mk4ht ...
0
votes
0answers
32 views

tex4ht: epstopdf not firing at all

I am using the following calls for epstopdf in the Preamble, and was able to successfully convert .eps files to .svg in the /converted_graphics folder for another tex4ht project that had no problems. ...
0
votes
1answer
46 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 ...
3
votes
1answer
126 views

producing ODT Arabic edition with apparatus in parnotes via tex4ht: customizing parnote formatting

I would like to convert my edition of Arabic text into ODT format. The edition uses notes that are supposed appear in a smaller font in a paragraph below the text (not at the bottom of each page). I ...
0
votes
2answers
114 views

How can I get a book(article) online via LaTeX to HTML in Windows 10?

If you could spend a week full-time with Windows looking into various methods for converting LaTeX to HTML, and then actually implement an approach based on what seems to be the most successful/...
2
votes
1answer
26 views

tex4ht: entire document is in Helvetica, but tables remain in \rm in the xhmtl output

I am using the following code to change the typeface to Helvetica in the entire document: \usepackage[scaled]{helvet} \renewcommand\familydefault{\sfdefault} \usepackage[T1]{fontenc} This works ...
0
votes
0answers
25 views

tex4ht image sizing issues

I have a lot of EPS images used in a large .tex file. Most of the pixel dimensions are 2100 x 1800. The EPS were derived from two different graphics programs however: original GIFs with 72x72 dpi ...
2
votes
1answer
61 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
77 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
0answers
51 views

Why does \hat{} create whitespace following its appearance with tex4ht?

I noticed that in the html output from a tex4ht run, there are spaces after the \hat{}. However, in the dvips output, there are no spaces. Is there a workaround for this? My guess is there needs ...
2
votes
1answer
67 views

Make tex4ebook support memoir's \book

Running tex4ebook on the following example \documentclass{memoir} \begin{document} Some dedication text \book{Hello} \part{World} \chapter{How are you} \end{document} produces an .epub where ...
2
votes
0answers
58 views

how to fix inline math alignment in svg mode when using tex4ht?

fyi, reported also to tex4ht bug tracking https://puszcza.gnu.org.ua/bugs/index.php?424 This is a problem I knew about for years now, and never got the chance to ask about it except now. When using ...
5
votes
1answer
160 views

how to improve SVG for math resolution in tex4ht?

make4ht now supports both mathjax and svg for math. I noticed that the math displayed in the browser when using mathjax mode looks sharper/crisper than when using svg for math. So this question ...

1 2 3 4 5 14