Ticket #45339

luatexja 20220807 interferes with vertical alignment of text

Open Date: 2022-08-10 05:23 Last Update: 2022-08-18 16:54

Reporter:
(Anonymous)
Owner:
(None)
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

\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
Comment

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
  • Resolution Update from None to Fixed
Comment

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

2022-08-18 16:54 Updated by: h7k
  • Status Update from Open to Closed

Attachment File List

No attachments

Edit

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