Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

4 votes
Accepted

How to teach make4ht to understand newcommand properly?

This is a common issue regarding sub- and superscripts in TeX4ht. The _ and ^ characters are not active in the preamble, so commands defined here don't work correctly. It is best to use the \sp and \...
user avatar
  • 44.9k
3 votes
Accepted

What is a reasonable course to convert a novel from latex to epub/azw?

tex4ebook can produce ePub, ePub3 and mobi formats from LaTeX sources. It uses tex4ht (the same system as htlatex uses) for the LaTeX to HTML conversion. The HTML files are then processed and packed ...
user avatar
  • 44.9k
2 votes
Accepted

ConTeXt: Dynamic document metadata variables

From the mailing list, define dynamic variables based on XHTML metadata as follows: \startxmlsetups xml:setdocumentvariable \setupdocument[\xmlatt{#1}{name}={\xmlatt{#1}{content}}] \stopxmlsetups \...
user avatar
  • 10.9k
2 votes
Accepted

ConTeXt: Conditionally apply table footer to XHTML document

Remove the closing body from the xml:tbody setups. Introduce specific tr definitions for not last and last. Close the xml:tbody within the last tr. In code: \startxmlsetups xml:xhtml \xmlsetsetup{\...
user avatar
  • 10.9k
2 votes

TeX4ht shows error "v'^\dagger_i " while using align environment but not in inline equation

TeX4ht needs proper grouping for subscripts and superscripts, especially in the MathML mode. So when you use multiple tokens, like v' as a part of your expression, you need to add braces: \...
user avatar
  • 44.9k
2 votes
Accepted

More TeX4ht issues with chrome and safari

This is caused by bug in configuration for \mathbf command: \Configure{mathbf}% {\bgroup \Tg<\a:mathml mi mathvariant="bold">\PauseMathClass}% {\Tg</\a:mathml mi>\egroup }% tex4ht ...
user avatar
  • 44.9k
2 votes
Accepted

Retain display equation as tex code in tex4ht

The following code is based on MathJax support package from the Helpers4ht bundle: \RequirePackage{verbatim,etoolbox} \Preamble{xhtml} \def\AltMathOne#1${\HCode{\detokenize{\(#1\)}}$} \Configure{$}{}...
user avatar
  • 44.9k

Only top scored, non community-wiki answers of a minimum length are eligible