michal-h21 / tex4ebook

Converter from LaTeX to ebook formats (epub, mobi). Using tex4ht and texlua scripts.
316 stars 33 forks source link

Positioning off for equation arrays #34

Open daroloson opened 7 years ago

daroloson commented 7 years ago

When using TeXShop 3.77, iBooks 1.9, and tex4ebook 0.1d under macOS 10.12.4, equation arrays are significantly unaligned with equations including the reference numbers.

texshop-ibooks

\documentclass[11pt]{article}
\begin{document}
equation
\begin{equation}
a=b
\end{equation}
equation array
\begin{eqnarray}
a=b \\
b=c
\end{eqnarray}
equation
\begin{equation}
a=b
\end{equation}
equation
\begin{equation}
a=b
\end{equation}
equation array
\begin{eqnarray}
a=b \\
b=c
\end{eqnarray}
equation
\begin{equation}
a=b
\end{equation}
equation
\begin{equation}
a=b
\end{equation}
\end{document}

In a more complex example the indentation also got screwed up on a following equation.

evenworse

michal-h21 commented 7 years ago

It seems that default tex4ht configuration for equation creates table with right aligned label, but the whole contents of enarray is converted as picture, including the label. I will investigate that.

daroloson commented 7 years ago

Not sure if this is relevant:

https://tug.org/applications/tex4ht/mn5.html

Avoiding bitmaps within formulas

Q. I found that some equations have smaller fonts than the others. I wonder why the size of the equations changes along the document.

Some equations and symbols are converted to bitmaps–I guess they are the parts you are concerned about.

If you try the command ‘ mzlatex filename’, provided you have the xhlatex-like script of mzlatex configured, you’ll get the bitmaps removed in favor of unicode symbols and mathml formulas. In such a case, one will need a mathml-enabled browser to view the outcome.

If you don’t care using the MS SYMBOL font, which non-pc browsers are likely not to recognize, try the command ‘ htlatex filename "" "symbol/!" ’. It will resolve the bitmap problem for of the characters.