On Thu, 22 Feb 2024 at 14:08, Linas Stonys <lsto...@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@pt ->\expandafter \rem@pt \the |
> {\expandafter} |    these lines looks like one block and its easy to
> follow up
> {\the} |
>
> \rem@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

Reply via email to