[NTG-context] texexec

Aditya Mahajan adityam at umich.edu
Sun May 7 21:29:23 CEST 2006


On Sun, 7 May 2006, Hans Hagen wrote:

> Aditya Mahajan wrote:
>> I get.
>>
>> F:\tmp\cont-test\test>ruby --version
>> ruby 1.8.4 (2005-12-24) [i386-mswin32]
>>
>> F:\tmp\cont-test\test>ruby test.rb
>> mpto mp-test-01.mp
>> \gdef\mpxshipout{\shipout\hbox\bgroup
>>    \setbox0=\hbox\bgroup}
>> \gdef\stopmpxshipout{\egroup  \dimen0=\ht0 \advance\dimen0\dp0
>>    \dimen1=\ht0 \dimen2=\dp0
>>    \setbox0=\hbox\bgroup
>>      \box0
>>      \ifnum\dimen0>0 \vrule width1sp height\dimen1 depth\dimen2
>>      \else \vrule width1sp height1sp depth0sp\relax
>>      \fi\egroup
>>    \ht0=0pt \dp0=0pt \box0 \egroup}
>> \mpxshipout% line 2 mp-test-01.mp
>> This is a test\stopmpxshipout
>> \end{document}
>> true
>> 0
>> ---------------------------
>> mpto mp-test-01.mp > mp-test-01-test.tex
>> false
>> 0
>> ---------------------------
>>
>>
>> Notice that the second test is failing. So, in tex.rb, the system
>> command fails and I do not get mp-test-01-test.tex file! Can anyone
>> else using one-click installer for ruby on windows confirm this?
>>
> i get (standard ruby install):
>
>> ruby --version
> ruby 1.8.4 (2005-12-24) [i386-mswin32]


Now, using ruby cygwin port

>ruby --version
ruby 1.8.4 (2005-12-24) [i386-cygwin]

And the test works fine. I get true for both cases. I do not know what 
went wrong with the one-click installer. I asked on the ruby mailing 
list, and others with one-click installer did not have this problem. 
Must be due some wierd setting on my system. :(

>> ruby test.rb
> mpto mp-test-01.mp
> \gdef\mpxshipout{\shipout\hbox\bgroup
>  \setbox0=\hbox\bgroup}
> \gdef\stopmpxshipout{\egroup  \dimen0=\ht0 \advance\dime
>  \dimen1=\ht0 \dimen2=\dp0
>  \setbox0=\hbox\bgroup
>    \box0
>    \ifnum\dimen0>0 \vrule width1sp height\dimen1 depth\
>    \else \vrule width1sp height1sp depth0sp\relax
>    \fi\egroup
>  \ht0=0pt \dp0=0pt \box0 \egroup}
> \mpxshipout% line 2 mp-test-01.mp
> This is a test\stopmpxshipout
> \end{document}
> true
> 0
> ---------------------------
> mpto mp-test-01.mp > mp-test-01-test.tex
> true
> 0
>

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008


More information about the ntg-context mailing list