1

As indicated in https://tex.stackexchange.com/a/316779/5471 , files with content included via the \input command are displayed as (file) on the terminal output. Assume there are specific files, the inclusion of which I don't want to see broadcasted in the output. How can I define a new \myinput that will be doing the same thing as \input without calls to \message?

\documentclass{article}
\newcommand{\myinput}[1]{\input{#1}}
\begin{document}
a
\message{I input a file:} \input{b.tex}
c
\message{Nothing to see here} \myinput{b.tex}
\end{document}

My motivation is that I use the package comment and whenever I include some comment, I get a (./comment.cut) displayed in the output.

2
  • \batchmode ? the (....) does not come from any user-configurable message it comes from the heart of tex-the-program so all you can do is turn off all output (unless you are using luatex) Jun 1, 2020 at 15:29
  • I didn't really know \batchmode. It seems that it also removes useful warnings. Oh well. I might have to live with (...) then. Feel free to turn your comment in an answer.
    – Abdallah
    Jun 1, 2020 at 15:42

1 Answer 1

4

The (....) does not come from any user-configurable message it comes from the heart of tex-the-program so all you can do is turn off all output (unless you are using luatex)

You can use \batchmode to turn off all terminal output, either for the whole document or by setting it locally just around your input (then returning to errorstopmode or scrollmode afterwards)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.