Ticket #41556

Conflict with \accent and xcolor in tabular environment

Open Date: 2021-02-11 17:11 Last Update: 2021-02-14 10:12

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

Details

LuaTEX-ja version 20210103.0

Consider the following MWE:

  1. \documentclass{scrartcl}
  2. \usepackage{luatexja}
  3. \usepackage{luatexja-fontspec}
  4. \usepackage[haranoaji]{luatexja-preset}
  5. \usepackage[table]{xcolor}
  6. \begin{document}
  7. \begin{tabular}{p{0.5\linewidth} l}
  8. &a\accent"0304 a\\
  9. \end{tabular}
  10. \end{document}

It fails to compile with the following message:

luatexja/ltj-jfmglue.lua:647: attempt to perform arithmetic on a nil value (local 'c')
Removing [table] from \usepackage[table]{xcolor} makes it work.

Ticket History (3/5 Histories)

2021-02-11 17:11 Updated by: intractabilis
  • New Ticket "Conflict with \accent and xcolor in tabular environment" created
2021-02-11 18:10 Updated by: h7k
Comment

Thank you for the report. The commit 33b01b7 should fix this issue (I attach the changed file, ltj-jfmglue.lua).

2021-02-11 18:48 Updated by: intractabilis
Comment

Wow, that was fast. The update works like magic. Thanks!

2021-02-14 10:12 Updated by: h7k
  • Status Update from Open to Closed
  • Resolution Update from None to Fixed
Comment

I close this ticket, because the new version (20210214.0) is uploaded to CTAN.

Attachment File List

Edit

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