[tex-live] Issue with \textgreater and lualatex

David Carlisle d.p.carlisle at gmail.com
Mon Jul 16 08:34:14 CEST 2018


luatex list would be better but...

This is unrelated to \textgreater, it is a documented feature that
braces have do not affect ligaturing in luatex.

Using {} is not reliable in classic tex either (a change between the
earliest and later editions of the texbook was to change the
suggestion to use {} to \/ for breaking ff ligatures) It does or does
not break the ligature depending on whether the word was considered
for hyphenation.

You could use \mbox{\textgreater}  or \textgreater\/\textgreater or ....



On 16 July 2018 at 00:45, jfbu <jfbu at free.fr> wrote:
> Hi,
>
> apologies if wrong list, but I am online for a short wile and
> wasn't sure where to post.
>
> This MWE
>
> \documentclass{article}
>
> \ifdefined\directlua
> \usepackage{fontspec}
> \else
> \ifdefined\XeTeXinterchartoks
> \usepackage{fontspec}
> \else
> \usepackage[T1]{fontenc}
> \fi\fi
>
> \begin{document}
> % uniquement avec lualatex donne »
> \textgreater{}\textgreater{}
>
> % ici aussi donne »
> {\textgreater}{\textgreater}
>
> \end{document}
>
>
> produces similar result with pdflatex and xelatex
> but not with lualatex which applies a ligature.
>
> Surely this has been raised somewhere, but is there
> a fix in mark-up which would be engine independent.
>
> This is a real life issue arising in indexing of
> Python's >>> prompt with the > being escaped into
> TeX macro \textgreater{} by some documentation
> production tool, and then LuaLaTeX gives bad result.
>
> Best,
>
> Jean-François
>
>



More information about the tex-live mailing list