What the document said reaches the caller - #361
Merged
Merged
Conversation
\message and \typeout are the one channel TeX gives a SOURCE for reporting what it decided — which branch an \ifx took, which driver a package picked, what \the of a length holds. A real TeX prints it to the terminal and the log. The engine collected it all along: Run returns it as its first result. But the rendering entry points (CompileToPDFDiag and the rest) did not, so every tool built on them was deaf to it — including our own gotex. Diagnosing pgf today, a probe written the way TeX documents it printed nothing at all, and the answers had to be typeset onto a page and read back with pdftotext instead. Diagnostics gains Messages, and gotex a -messages flag that prints it to stderr. Off by default, and it prints no heading when the document said nothing, so a quiet render stays quiet. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
\messageand\typeoutare the one channel TeX gives a source for reporting what it decided — which branch an\ifxtook, which driver a package picked, what\theof a length holds. A real TeX prints it to the terminal and the log.The engine collected it all along:
Runreturns it as its first result. But the rendering entry points (CompileToPDFDiagand the rest) did not, so every tool built on them was deaf to it —gotexincluded. Diagnosing pgf today, a probe written the way TeX documents it printed nothing, and the answers had to be typeset onto a page and read back withpdftotextinstead.DiagnosticsgainsMessages;gotexgains-messages. Off by default, and no heading is printed when the document said nothing, so a quiet render stays quiet. All three states are tested.🤖 Generated with Claude Code