[Dev-luatex] Interwoven alignment preambles

Bruno Le Floch blflatex at gmail.com
Wed Mar 16 16:02:22 CET 2016


On 3/16/16, luigi scarso <luigi.scarso at gmail.com> wrote:
> On Sat, Mar 12, 2016 at 11:52 PM, Martin Mares <mj at ucw.cz> wrote:
>
>> Hello!
>>
>> I started rewriting my personal macros for luaTeX and so far it was
>> a delightful experience.
>>
>> However, one of my papers fails to compile with a fatal error
>> "interwoven alignment preambles are not allowed", while it compiles
>> perfectly in plain pdfTeX.
>>
>> A minimalistic test case is this:
>>
>> \def\\{\hskip 1.5pt plus 1fil\hbox to 0pt{\hss\vrule\strut\hss}\hskip
>> -1.5pt plus -1fil}
>> \halign{\hfil#~~&&\hbox to 2em{\hfil#\hfil}\hskip3pt\cr
>>         $S[i]$    &1&3&9\\&2&3\\&4\\&3\\&0&3&7\\&6\\&6\cr
>> }
>>
>> I am compiling this with luaTeX beta-0.79.1 from TeX Live 2015
>> in Debian Jessie (using the plain luaTeX format).
>>
>> Do you have any hint on what I am doing wrong?
>>
>>                                 Have a nice fortnight
>> --
>> Martin `MJ' Mares                          <mj at ucw.cz>
>> http://mj.ucw.cz/
>> Faculty of Math and Physics, Charles University, Prague, Czech Rep.,
>> Earth
>> Q: How many alchemists does it take to change a light bulb?  A: Into
>> what?
>> _______________________________________________
>> dev-luatex mailing list
>> dev-luatex at ntg.nl
>> https://mailman.ntg.nl/mailman/listinfo/dev-luatex
>>
>
> Also with latest luatex
>
> $ mtxrun --script plain test.tex
>
> mtx-plain       | running command 'luatex --fmt=luatex-plain  "test.tex"'
> This is LuaTeX, Version beta-0.89.5 (TeX Live 2016/dev)
>  system commands enabled.
> (./test.tex
> (/opt/luatex/standalone-mkiv-experimental/tex/texmf-context/tex/generic/context
> /luatex/luatex-basics.tex)
> (/opt/luatex/standalone-mkiv-experimental/tex/texmf-context/tex/generic/context
> /luatex/luatex-fonts.tex <push namespace>
> </opt/luatex/standalone-mkiv-experime
> ntal/tex/texmf-context/tex/generic/context/luatex/luatex-fonts-merged.lua>(usin
> g cache:
> /opt/luatex/standalone-mkiv-experimental/tex/texmf-cache/luatex-cache/
> generic) <luatex-fonts.lua loaded in 0.087 seconds> <pop namespace>)
> (/opt/luatex/standalone-mkiv-experimental/tex/texmf-context/tex/generic/context
> /luatex/luatex-math.tex(load luc:
> /opt/luatex/standalone-mkiv-experimental/tex/
> texmf-cache/luatex-cache/generic/fonts/otf/lmroman10-regular.luc)(load luc:
> /op
> t/luatex/standalone-mkiv-experimental/tex/texmf-cache/luatex-cache/generic/font
> s/otf/lmroman7-regular.luc)(load luc:
> /opt/luatex/standalone-mkiv-experimental/
> tex/texmf-cache/luatex-cache/generic/fonts/otf/lmroman5-regular.luc)(load
> luc:
> /opt/luatex/standalone-mkiv-experimental/tex/texmf-cache/luatex-cache/generic/f
> onts/otf/lmmono10-regular.luc)(load luc:
> /opt/luatex/standalone-mkiv-experiment
> al/tex/texmf-cache/luatex-cache/generic/fonts/otf/lmromanslant10-regular.luc)(l
> oad luc:
> /opt/luatex/standalone-mkiv-experimental/tex/texmf-cache/luatex-cache/
> generic/fonts/otf/lmroman10-italic.luc)(load luc:
> /opt/luatex/standalone-mkiv-e
> xperimental/tex/texmf-cache/luatex-cache/generic/fonts/otf/lmroman10-bold.luc)(
> load luc:
> /opt/luatex/standalone-mkiv-experimental/tex/texmf-cache/luatex-cache
> /generic/fonts/otf/lmroman10-bolditalic.luc)(load luc:
> /opt/luatex/standalone-m
> kiv-experimental/tex/texmf-cache/luatex-cache/generic/fonts/otf/latinmodern-mat
> h.luc))
> (/opt/luatex/standalone-mkiv-experimental/tex/texmf-context/tex/generic/context
> /luatex/luatex-languages.tex)
> (/opt/luatex/standalone-mkiv-experimental/tex/texmf-context/tex/generic/context
> /luatex/luatex-mplib.tex)
> (/opt/luatex/standalone-mkiv-experimental/tex/texmf-context/tex/generic/context
> /luatex/luatex-gadgets.tex)
> ! Emergency stop.
> <recently read> \endtemplate
>
> <template> \hfil }\hskip 3pt\endtemplate
>
> l.4         $S[i]$    &1&3&9\\&
>                              2&3\\&4\\&3\\&0&3&7\\&6\\&6\cr
> !  ==> Fatal error occurred, no output PDF file produced!
> Transcript written on test.log.
>
> --
> luigi

Hello,

Here is a more minimal test (works with pdfTeX, fails with a fatal
"\endtemplate" error on the third line with "LuaTeX, Version
beta-0.80.0 (TeX Live 2015) (rev 5238)").

\halign{#\hskip0pt\cr \hskip 0pt\cr}
\halign{#\hskip0pt\cr \hskip 0pt plus 0filll\cr}
\halign{#\hskip0pt\cr \hskip 0pt plus 0fil\cr}
\bye

Bruno


More information about the dev-luatex mailing list