I am pretty sure the wrapping behaviour is hardwired in TeX itself. Why can't you simply write to a separate file instead?
\newwrite\mylog
\immediate\openout\mylog=\jobname.mylog
So, what other commands could I supply at this point?
At the prompt you can enter a question mark to see the possible commands:
/tmp $ tex
This is TeX, Version 3.1415926 (TeX Live 2010)
**\show\x
> \x=undefined.
<*> \show\x
? ?
Type <return> to proceed, S to scroll future error messages,
R to run without stopping, Q to run quietly,
I to insert something,
1 or ... or 9 to ignore the next 1 to 9 tokens of input,
H for help, X to quit.
?
Is there a command I can supply that would sort of ignore the \show\section
command in my .tex file and produce a .pdf?
Press return, then the compilation proceeds. However, \show
is always treated as an error:
/tmp $ tex
This is TeX, Version 3.1415926 (TeX Live 2010)
**\show\x
> \x=undefined.
<*> \show\x
?
*\null
*\bye
[1]
Output written on texput.dvi (1 page, 196 bytes).
Transcript written on texput.log.
/tmp $ echo $?
1
So you should use \show
only for debugging purposes, not for normal compilation runs. If you want to print the meaning of a control sequence without giving an error, use \immediate\write16{\meaning\foo}
(in LaTeX, \typeout
is equivalent to \immediate\write16
).
Best Answer
\show
lets you see (in the log) what the definition of a control sequence is. If it is a macro, you get the definition, for others it tells how it is defined (e.g. whether it is a counter, token list, or length, etc.) For a non-macro,\the
typesets its value. And\showthe
shows that value in the log file.In the log file you get three shows:
and
\the\somelength
prints10.0pt
in the output document.