I am trying to use \message to debug my code; in particular, to print information to the console. For some reason it is not adding line returns after each invocation (see example below). How can I force the line returns in the log (console)? Thanks, Jorge.
Example code:
\message{I:-------------------------------------------------------------------------------}
\message{I: textfloatsep = \the\floatsep}
\message{I: floatsep = \the\floatsep}
\message{I:-------------------------------------------------------------------------------}
\show\show
Output in console:
I:------------------------------------------------------------------------------- I: textfloatsep = 12.0pt plus 2.0pt minus 2.0pt
I: floatsep = 12.0pt plus 2.0pt minus 2.0pt I:-------------------------------------------------------------------------------
> \show=\show.
l.73 \show\show
?
UPDATE: solution using \typeout:
\typeout{I:-------------------------------------------------------------------------------}
\typeout{I: \string\textfloatsep \space\space\space\space\space = \the\textfloatsep}
\typeout{I: \string\floatsep \space\space\space\space \space\space\space\space\space = \the\floatsep}
\typeout{I:-------------------------------------------------------------------------------}
\show\show
OUTPUT:
I:-------------------------------------------------------------------------------
I: \textfloatsep = 12.0pt plus 2.39996pt minus 2.39996pt
I: \floatsep = 12.0pt plus 2.0pt minus 2.0pt
I:-------------------------------------------------------------------------------
> \show=\show.
l.73 \show\show
?
^^Jor better\MessageBreak– David Carlisle Apr 26 '18 at 20:51\typeoutrather than message to make each messag ecome on its own line – David Carlisle Apr 26 '18 at 20:55\message{\textfloatsep}prints\textfloatsep??? – David Carlisle Apr 26 '18 at 20:58\never makes a space token it is an unexpanable primitive which is why it prints as\you can use\spaceto make a space. – David Carlisle Apr 26 '18 at 21:11