Questions tagged [tex4ht]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
37 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
23 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 ...
1
vote
0answers
16 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
21 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
23 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
22 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
36 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
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
28 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
24 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
35 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
29 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
41 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
106 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
88 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
20 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
51 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
51 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
55 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
41 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
108 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
38 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
71 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
80 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
90 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
53 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
40 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
35 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
102 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
77 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
33 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
61 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
77 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
53 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
78 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
92 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
29 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
61 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
45 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
56 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
39 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
32 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 ...