marginalia lua module broken?
Arash Esbati
arash at gnu.org
Tue Feb 18 11:17:59 CET 2025
Hi all,
with the latest TL2024 update, run lualatex on this example taken from
marginalia-doc.pdf:
--8<---------------cut here---------------start------------->8---
\documentclass[11pt]{article}
\usepackage{marginalia}
\begin{document}
Here is some body text.\marginalia{Here is a marginal note.} Some more
body text.\marginalia[style=\footnotesize\itshape\raggedright]{Here is
another marginal note, set in smaller text and italics, whose
position has been been adjusted automatically.} Some final body
text.\marginalia[pos=left, valign=b, style=\sffamily\raggedleft,
width=35mm]{This note is placed on the left side of the page, wider,
in sans serif, ragged left, and bottom-aligned.}
\end{document}
--8<---------------cut here---------------end--------------->8---
I get:
--8<---------------cut here---------------start------------->8---
This is LuaHBTeX, Version 1.18.0 (TeX Live 2024) (format=lualatex
2025.2.16) ...
(/usr/local/texlive/2024/texmf-dist/tex/lualatex/marginalia/marginalia.sty
Package: marginalia 2025-02-17 v0.80.1 Non-floating marginal content for LuaLaT
eX
\l__marginalia_type_int=\count268
\l__marginalia_pos_int=\count269
\l__marginalia_column_int=\count270
\l__marginalia_xsep_recto_outer_dim=\dimen141
\l__marginalia_xsep_recto_inner_dim=\dimen142
\l__marginalia_xsep_verso_outer_dim=\dimen143
\l__marginalia_xsep_verso_inner_dim=\dimen144
\l__marginalia_xsep_right_between_dim=\dimen145
\l__marginalia_xsep_left_between_dim=\dimen146
\l__marginalia_valign_int=\count271
\l__marginalia_default_yshift_dim=\dimen147
\l__marginalia_ysep_above_dim=\dimen148
\l__marginalia_ysep_below_dim=\dimen149
\l__marginalia_ysep_page_top_dim=\dimen150
\l__marginalia_ysep_page_bottom_dim=\dimen151
\l__marginalia_width_recto_outer_dim=\dimen152
\l__marginalia_width_recto_inner_dim=\dimen153
\l__marginalia_width_verso_outer_dim=\dimen154
\l__marginalia_width_verso_inner_dim=\dimen155
\l__marginalia_width_right_between_dim=\dimen156
\l__marginalia_width_left_between_dim=\dimen157
...4/texmf-dist/tex/luatex/lualibs/lualibs-basic-merged.lua:391: error loading m
odule marginalia from file /usr/local/texlive/2024/texmf-dist/tex/lualatex/margi
nalia/marginalia.lua:
...e/2024/texmf-dist/tex/lualatex/marginalia/marginalia.lua:24: syntax error ne
ar <eof>
stack traceback:
[C]: in local 'f'
...4/texmf-dist/tex/luatex/lualibs/lualibs-basic-merged.lua:391: in local 'look
up'
...4/texmf-dist/tex/luatex/lualibs/lualibs-basic-merged.lua:429: in function <.
..4/texmf-dist/tex/luatex/lualibs/lualibs-basic-merged.lua:419>
[C]: in function 'require'
[\directlua]:1: in main chunk.
\lua_now:e #1->\__lua_now:n {#1}
l.184 }
?
Here is how much of LuaTeX's memory you used:
356 strings out of 475512
100000,552014 words of node,token memory allocated 377 words of node memory still in use:
2 hlist, 1 rule, 1 dir, 3 kern, 1 glyph, 3 attribute, 48 glue_spec,
3 attribute_list, 1 if_stack, 1 write nodes
avail lists: 2:8,3:2,4:1,5:1,7:2,9:3
23465 multiletter control sequences out of 65536+600000
15 fonts using 723367 bytes
36i,0n,40p,131b,40s stack positions out of 10000i,1000n,20000p,200000b,200000s
warning (pdf backend): no pages of output.
PDF statistics: 0 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 131072)
1 words of extra memory for PDF output out of 10000 (max. 100000000)
--8<---------------cut here---------------end--------------->8---
Looking at marginalia.lua[1], the LUACODE bit doesn't match the Lua
backend part in marginalia-doc.pdf. But I can't tell if this is right
or wrong. Package author is in Cc. This is on MacTeX 2024.
Best, Arash
Footnotes:
[1] https://svn.tug.org:8369/texlive/trunk/Master/texmf-dist/tex/lualatex/marginalia/marginalia.lua?pathrev=74062&view=markup
More information about the tex-live
mailing list.