maranget / hevea

Hevea is a fast latex to html translator
http://hevea.inria.fr
Other
97 stars 12 forks source link

Dot-less `i' and `j' #29

Open cspiel opened 4 years ago

cspiel commented 4 years ago

This is "just for the record". We have to be careful when using the dot-less 'i' and the dot-less 'j'.

This example exhibits most of the quirks.

\documentclass{article}

\begin{document}
Dot-less (mathematical) ``$i$'' and ``$j$'':
\[
  \imath, \jmath; \vec{\imath}, \vec{\jmath}; \hat{\imath}, \hat{\jmath}; \bar{\imath}, \bar{\jmath};
\]

\begin{itemize}
\item ``i''
  \begin{itemize}
  \item Accented ``i'': \^i, \'i, \`i;
    same in italics -- \textit{``i'': \^i, \'i, \`i};
  \item Accented dot-less ``\i'': \^{\i}, \'{\i}, \`{\i};
    same in italics -- \textit{``\i'': \^{\i}, \'{\i}, \`{\i}};
  \item Accented dot-less, math mode ``$\imath$'': $\vec{\imath}$,
    $\hat{\imath}$, and $\bar{\imath}$;
  \end{itemize}

\item ``j''
  \begin{itemize}
  \item Accented ``j'': \^j, \'j, \`j;
    same in italics -- \textit{``j'': \^j, \'j, \`j};
  \item Accented dot-less ``\j'': \^{\j}, \'{\j}, \`{\j};
    same in italics -- \textit{``\j'': \^{\j}, \'{\j}, \`{\j}};
  \item Accented dot-less, math mode ``$\jmath$'': $\vec{\jmath}$,
    $\hat{\jmath}$, and $\bar{\jmath}$;
  \end{itemize}
\end{itemize}
\end{document}

Please compare with the LaTeX rendering for the reference translation.

maranget commented 4 years ago

Hi, your example is now handled correctly. Thanks for the report.

cspiel commented 4 years ago

THX for fixing the problem so fast. Your patch is OMG-large!

After pulling the change, $\imath$, $\jmath$ and their decorated variants are typeset in roman style, not italics as TeX uses for any math. On the other hand the "same in italics" sections of the example are correctly rendered as italics.