[luatex] \tracingmacros additional newlines in the log

luigi scarso luigi.scarso at gmail.com
Thu Feb 22 14:56:53 CET 2024


On Thu, 22 Feb 2024 at 14:08, Linas Stonys <lstonys at vtex.lt> wrote:

> In older luatex  (for example TL2019 Version 1.10.0) \tracingmacros
> output was  without newlines in between
> the macro parameters:
> \foo #1#2->
> #1<-a
> #2<-b
>
> Now luatex (TL2023 Version 1.17.0) outputs extra newlines:
> \foo #1#2->
>
> #1<-a
>
> #2<-b
>
> TL2023 pdftex outputs standard (old)  format without extra newlines.
> With these extra spaces seems harder to follow up the code output.
>
> Real output example (enabled \tracingmacros and \tracingcommands):
>
> \strip at pt ->\expandafter \rem at pt \the |
> {\expandafter} |    these lines looks like one block and its easy to
> follow up
> {\the} |
>
> \rem at pt #1.#2pt->#1\ifnum #2>\z@ .#2\fi
>                                                                  |
> |
> #1<-10 |
> |     this block is harder to follow up
> #2<-0 |
> {\ifnum} |
> {false} |
>
>
> Is this done on purpose? Could it be available original style (like
> pdftex does) with some \tracingmacros value (like \tracingmacros=3)
>
>
iirc it's configurable by mean of the input_level_string callback, e.g. see
what happens in lualatex

 \documentclass{article}
\def\foo#1#2{#2#1}
\begin{document}
\tracingmacros1
\tracingstacklevels1
\foo{h}{e}llo
\tracingmacros0
\tracingstacklevels0
\end{document}

--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20240222/5f94c9e7/attachment.htm>


More information about the luatex mailing list.