diff options
author | Norbert Preining <norbert@preining.info> | 2021-04-26 03:00:32 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-04-26 03:00:32 +0000 |
commit | 03117c94362b2fed2fd4aabe50f3106fbf1e0a70 (patch) | |
tree | e9c379ff69ea790a0059725aebd5048e8d773e45 /macros/luatex/latex | |
parent | 31672400f6cb00d38c0e707da2640589b6d5c523 (diff) |
CTAN sync 202104260300
Diffstat (limited to 'macros/luatex/latex')
-rw-r--r-- | macros/luatex/latex/lua-ul/docstrip-luacode.sty | 2 | ||||
-rw-r--r-- | macros/luatex/latex/lua-ul/lua-ul.dtx | 17 | ||||
-rw-r--r-- | macros/luatex/latex/lua-ul/lua-ul.pdf | bin | 100003 -> 101260 bytes |
3 files changed, 17 insertions, 2 deletions
diff --git a/macros/luatex/latex/lua-ul/docstrip-luacode.sty b/macros/luatex/latex/lua-ul/docstrip-luacode.sty index f406b6a0d1..fe5c1b4f75 100644 --- a/macros/luatex/latex/lua-ul/docstrip-luacode.sty +++ b/macros/luatex/latex/lua-ul/docstrip-luacode.sty @@ -13,7 +13,7 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage {docstrip-luacode} - [2021/02/15 v0.1.2 Directly execute Lua code from DocStrip files] + [2021/04/25 v0.1.3 Directly execute Lua code from DocStrip files] \expanded{% \def\noexpand\docstrip@luacode@argscanner#1\directlua{ tex.sprint(\the\catcodetable@string, "\string\\end{docstrip-luacode}") diff --git a/macros/luatex/latex/lua-ul/lua-ul.dtx b/macros/luatex/latex/lua-ul/lua-ul.dtx index c530c492b4..dde61f9636 100644 --- a/macros/luatex/latex/lua-ul/lua-ul.dtx +++ b/macros/luatex/latex/lua-ul/lua-ul.dtx @@ -294,6 +294,11 @@ local glue_t = node.id'glue' local properties = node.direct.get_properties_table() +% \end{macrocode} +% \verb+current_attr+ is not \texttt{.direct} since it's used in +% place of a node callback argument. +% \begin{macrocode} +local current_attr = node.current_attr local has_attribute = node.direct.has_attribute local set_attribute = node.direct.set_attribute local dimensions = node.direct.dimensions @@ -773,6 +778,16 @@ luatexbase.add_to_callback('pre_append_to_vlist_filter', end, 'add underlines to list') luatexbase.add_to_callback('hpack_filter', function(head, group, size, pack, dir, attr) +% \end{macrocode} +% \changes{0.1.3}{2021-04-25}{Correctly detect attributes in alignments} +% When \verb+hpack_filter+ is called as part of an alignment, no attributes +% are passed. It seems like a bug, but we will just substitute with the +% current attributes. Since the callbacks are called after the group for the +% cell ended, these should always be right. +% \begin{macrocode} + if group == 'align_set' or group == 'fin_row' then + attr = current_attr() + end head = todirect(head) for i = 1, #underlineattrs do local ulattr = underlineattrs[i] @@ -816,7 +831,7 @@ luatexbase.add_to_callback('vpack_filter', \NeedsTeXFormat{LaTeX2e} \ProvidesPackage {lua-ul} - [2021/02/15 v0.1.2 Underlining and related functionality for LuaTeX] + [2021/04/25 v0.1.3 Underlining and related functionality for LuaTeX] % \fi % Only \LuaLaTeX{} is supported. diff --git a/macros/luatex/latex/lua-ul/lua-ul.pdf b/macros/luatex/latex/lua-ul/lua-ul.pdf Binary files differindex f87859a29d..537315bdf4 100644 --- a/macros/luatex/latex/lua-ul/lua-ul.pdf +++ b/macros/luatex/latex/lua-ul/lua-ul.pdf |