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
26 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
22 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
23 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
30 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
28 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
37 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
101 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
82 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
22 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
18 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
50 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
47 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
35 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
52 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
38 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
101 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
vote
0answers
37 views

tex4ht: incompatibility of cleveref and amsthm?

I found that tex4ht doesn't work with cleveref and amsthm. I just modified the HWE from an old post: \documentclass{article} \usepackage{hyperref} \usepackage{amsthm} \usepackage{cleveref} \...
2
votes
1answer
29 views

tex4ht: Wrapping several paragraphs inside a div tag

I want to wrap several paragraphs inside a div with a custom class, but the div is closed automatically in the resulting HTML when a new paragraph begins. This shows the issue: \documentclass{...
4
votes
1answer
64 views

problem with Vertical alignment of text and images in long table when using tex4ht

With the help of experts in Yet another images in tables question alignment. Want text to start at top of cell. Not cetered I can now get text to show in correct place with images in a long table, ...
1
vote
1answer
22 views

frame option from adjustbox does not work in tex4ht

This MWE works in pdf. It puts frame around an image. But in HTML I see no frame produces \documentclass[12pt]{article}% \usepackage{graphicx} \usepackage[export]{adjustbox}%for frame option \begin{...
2
votes
1answer
70 views

error from pgflibraryfadings when adding tcolorbox with new tex4ht tikz driver. TL 2019

Just installed fresh TL 2019. I was trying the new tikz driver for tex4ht. I found this error. Here is a MWE. This error only shows up in tex4ht and not in lualatex and it shows up only when adding ...
2
votes
1answer
88 views

What is current status of using tikz with tex4ht?

I am completely confused now about how to use tikz with tex4ht, since there seems to be some latest changes and not able to figure what is the way to make it work. Here is a MWE, which I'd like to ...
2
votes
1answer
48 views

tex4ebook or tex4ht: optional arguments for \title not supported

Sample code: \documentclass{amsart} \begin{document} \title[Short]{Long} \maketitle Hello \end{document} compiled with tex4ebook, the optional argument of \title is mistakenly proceeded (the ...
1
vote
1answer
44 views

tex4ebook: nodes vanishes for TikZ?

The test code: \documentclass{amsart} \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{fadings} \DeclareMathOperator\Spec{Spec} \newcommand\Z{\mathbb Z} \newcommand\OO{\mathcal O} \begin{...
2
votes
1answer
39 views

tex4ebook or tex4ht: confliction of amsart, hyperref and `\part`?

The test code: \documentclass{amsart} \usepackage{hyperref} \begin{document} \part{Part1} \section{Sec1} \section{Sec2} \part{Part2} \end{document} Compiled with tex4ebook, it returns with ! ...
1
vote
0answers
33 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: \...
3
votes
1answer
100 views

Error when rendering svg

I'm trying to generate a svg image of a reaction mechanism. However I keep receiving the error: ! Undefined control sequence. \pgfsys@svg@newline ->\Hnewline when running the command make4ht -u "...
2
votes
1answer
74 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 ...
1
vote
1answer
32 views

tex4ebook: How to use dvisvgm_hashes properly?

I tried to compile a tex file with a lot of math formulae. I tried tex4ebook -c test.cfg -f epub+dvisvgm_hashes test with the test.tex \documentclass{amsart} \begin{document} Two formulae ...
2
votes
1answer
54 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 ...
4
votes
1answer
71 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
1answer
25 views

tex4ebook (or tex4ht) doesn't treat newcommand and sub/supscript well in math mode

I found that tex4ebook (or tex4ht) doesn't treat well with subscripts or superscripts in \newcommand. For example, \documentclass{amsart} \newcommand\dotimes{{\otimes}^{\mathbb L}} \newcommand\...
3
votes
1answer
30 views

Multiple boxes with many rows on a line with wrapping when overflowing

I would like to have multiple boxes with many rows on a line with wrapping when the boxes are overflowing. The idea would be to build a custom contributors/reviewers environment that I can also use ...
0
votes
0answers
52 views

Tex4ht not generating html tags

I'm trying to generate an html document from my .tex file (I just need paragraph and link formatting, nothing fancy). I'm using Texmaker 5.0.3, Miktex 2.9 on Windows 10, with the tex4ht package ...
1
vote
1answer
72 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 ...
1
vote
1answer
86 views

Making hyperlinks working with cleveref and htlatex/TeX4HT

Following Are htlatex (TeX4HT) and cleveref compatible? I am able to create cross-references with cleveref package with htlatex. Still, these cross-references are not hyperlinked, while those created ...
1
vote
1answer
28 views

TeX4ht generates double footnotes when footnote is defined inside of a csquotes blockquote

TeX4ht generates a double footnotes when a footnote is defined inside of a csquotes \blockquote. Here is a LaTeX reproducible example: \documentclass[a4paper]{report} \usepackage{csquotes} \...
4
votes
1answer
60 views

tex4ht \Css code works using standard book class but has no effect using koma-script scrbook class

I am using a \Css configuration which centers a caption under a figure thanks to how-to-make-caption-be-centered-under-table-when-using-tex4ht Now I find this does not work if I change document ...
1
vote
0answers
43 views

On centering image on a web page using tex4ht. Is this the correct way?

Images using tex4ht do not show centered on the web page. I'll show a MWE and what I tried. \documentclass[11pt]{article}% \usepackage{graphicx} \usepackage{float} \begin{document} This is some ...
1
vote
1answer
52 views

Superscript not working in footnotes in tex4ht output

When I use \textsuperscript in footnotes (in memoir class, compiled with xetex), tex4ht fails to make the text in question superscript, even though it does so successfully in the main body text. I ...
2
votes
1answer
37 views

spuriously italicized footnote hooks in tex4ht output

tex4ht spuriously italicizes footnote hooks (e.g., "1" for the first footnote) at the bottom of the page when the first word of the footnote is italicized. MWE: %!TEX TS-program = xelatex %!TEX ...
1
vote
1answer
30 views

section numbering in tex4ht using memoir class with article option

tex4ht seems to ignore the article option in the memoir class. I say this because section numbers (and the corresponding cross-references) appear as 0.1, 0.2, etc. instead of 1, 2, etc. when ...
1
vote
0answers
25 views

spurious section breaks in tex4ht's output before lists, block quotes, etc

When I use tex4ht to convert a xelatex document using the memoir class to .odt (and then convert that to .docx), spurious Section Breaks appear throughout the resulting .docx file. They appear ...
1
vote
1answer
82 views

adjusting formatting of footnotes in tex4ht's .docx output

A default Word document formats footnotes as follows: at the bottom of the page, the footnote hook (e.g., the number '1') appears in superscript, then there is a space, then the footnote text begins. ...
1
vote
1answer
31 views

shortcut macros not working in TeX4ht

\documentclass{book} \begin{document} \newcommand{\testscsar}{E_c} This is for test $Ec\testscsar$ \end{document} Above code works everything fine to generate HTML conversion, but if I place the \...
0
votes
0answers
59 views

Writing config.cfg for htlatex

I wish to write my own config.cfg file (used by htlatex to convert .tex to html) that uses my custom defined header/footer, frames and background.
2
votes
1answer
70 views

hyperreferencing include files

I have a latex file that i wish to convert into an html document. It is made up of many sub-files with a master document. I want to hyperlink different parts/sections of these files(included/master-...
1
vote
0answers
49 views

Using minitoc and hyperref with tex4ebook

the question results from this thread minilot and minilof with tex4ht . when compiling with tex4ebook, there seems to be a problem with the hyperref package when generating the minilot and minilof: ...
1
vote
1answer
35 views

mathdisplay in tex4ebook

i've read this question Choppy equations with tex4ht and currently im displaying math as png pictures with the mybuild.mk4 file Make:image("png$","dvipng -bg Transparent -T tight -D151 -o ${...
1
vote
1answer
30 views

tex4ht produces a corrupted file when a \label and a \ref to that label use a double-hyphen

When my document has a figure with a \label{aa--bb} or any other label that uses two hyphens (-) in a row (--), tex4ht produces a corrupt .odt file. Is there a way to fix this bug? MWE Using the ...