Ticket #45339

luatexja 20220807 interferes with vertical alignment of text

Date d'ouverture: 2022-08-10 05:23 Dernière mise à jour: 2022-08-18 16:54

Rapporteur:
(Anonyme)
Propriétaire:
(Aucun)
Type:
État:
Atteints
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
Aucun

Détails

\documentclass{article}
\usepackage{luatexja}

\begin{document}
\leavevmode
\llap{\thepage}
\begin{minipage}[t]{.833\textwidth}
  Test
\end{minipage}

\hfill
\begin{minipage}[t]{.833\textwidth}
  \hfill Test
\end{minipage}
\rlap{\thepage}

\end{document}

The number "1" and the text "Test" should be vertically aligned, but with the version 20220807 of luatexja they are mis-aligned.

See also https://tex.stackexchange.com/questions/653486/newest-version-of-luatexja-interferes-with-vertical-alignment-of-text.

Ticket History (3/4 Histories)

2022-08-10 05:23 Updated by: None
  • New Ticket "luatexja 20220807 interferes with vertical alignment of text" created
2022-08-10 06:48 Updated by: h7k
Commentaire

Sorry, the line 337 of ltj-direction.lua

  1. if #wh==1 then wh[1]=nil else wh[#wh], wh[1]=nil, wh[#wh] end
is the cause.

There are some solutions:

  1. Simply commenting out (or removing) this line:
    1. -- if #wh==1 then wh[1]=nil else wh[#wh], wh[1]=nil, wh[#wh] end
  2. Surrounding this line by if gc~='vtop' then ... end:
    1. if gc~='vtop' then
    2. if #wh==1 then wh[1]=nil else wh[#wh], wh[1]=nil, wh[#wh] end
    3. end
2022-08-10 11:35 Updated by: h7k
  • Résolution Update from Aucun to Fixed
Commentaire

I just uploaded the fixed version (20220801.0) to CTAN.

2022-08-18 16:54 Updated by: h7k
  • État Update from Ouvert to Atteints

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion