[texhax] TeX/UNIX

Reinhard Kotucha reinhard.kotucha at web.de
Wed Oct 25 23:51:20 CEST 2006


>>>>> "Ravi" == Pillai, Ravi <Pillai_Ravi at GSB.Stanford.EDU> writes:

  >   $ tex '\relax\input ~/junk/bookdef \end'

  >  ----- 
  >  This is TeX, Version 3.141592 (Web2C 7.5.4)
  >  (/usr/pubsw/lib/texmf/tex/latex/tools/.tex File ignored) [1]
  >  Output written on .dvi (1 page, 224 bytes). 
  >  Transcript written on .log.
  >  -----

  > In this case, it produced a file called ".dvi" (no name, only the
  > extension). This dvi file contained exactly one line of text:

  >  /junk/bookdef

Actually it typesets ~/junk/bookdef.

You can see this if you try:

    tex '\relax\parindent0pt X\par\input  ~/junk/bookdef\par X\end'


~ is a macro which expands to a box and \input obviously doesn't like
it.  However, I get:

   $ touch ~/foo
   $ tex '\relax\catcode`\~=12 \input ~/foo \end'
   This is TeX, Version 3.141592 (Web2C 7.5.5)
   (/home/reinhard/foo)
   No pages of output.
   Transcript written on foo.log.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-4592165
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------




More information about the texhax mailing list