Re: [NTG-context] Linux: ConTeXt in local texmf-tree and Ruby scripts - HOWTO?

2006-05-14 Thread Taco Hoekwater
Peter Münster wrote:
 
 I've just seen, that there are a lot of symbolic links in the teTeX
 installation to /opt/teTeX/bin/texexec, so please forget my advice above.

Yes, you have to delele all those symlinks that teTeX provides.

If you go to the unix stubs directory in the ConTeXt distribution,
you can do :

   # for a in *; do rm -i /usr/local/teTeX/bin/i686-pc-linux-gnu/$a; done


Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Linux: ConTeXt in local texmf-tree and Ruby scripts - HOWTO?

2006-05-13 Thread Peter Münster
On Thu, 11 May 2006, Hans Hagen wrote:

 ? wrote:
 
  One remark for the texexec developer: it seems, when searching for
  executables, the order in $PATH is not respected. For example: I had
  /opt/teTeX/bin/dvips and /usr/bin/dvips and PATH=/opt/teTeX/bin:...
  but it was /usr/bin/dvips that was called to create the PS-file.

 hm, i just call dvips -) 

I think, I must have made a mistake somewhere, since I cannot reproduce
this behaviour.

But there is another problem with the following test file:

%%% This needed to get upright \textmu:
\setupencoding[default=texnansi]
\usetypescript[modern-base][\defaultencoding]
\setupbodyfont[modern]
%%%
\starttext
bla and \textmu
\stoptext

When running texexec --dvi test, the output of dvips is
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2006.05.13:1508' - test.ps
tex.protexnansi-lm.enctexps.pro. lmr10.pfb[1] 
and the PostScript page is completely empty (blanc).

When running dvips -u +original-base -u +ec-public-lm -u +ec-base -u
+8r-base -u +t5-base -u +original-ams-base -u +original-ams-euler -u
+original-public-lm -u +texnansi-base -u +texnansi-public-lm test (same
command is used by texexec), the output of dvips is
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2006.05.13:1510' - test.ps
tex.protexps.pro. [1] 
and the PostScript file has an ugly font and nothing for \textmu.

When running dvips test, the output of dvips is
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2006.05.13:1510' - test.ps
tex.prolm-texnansi.enctexps.pro. lmr10.pfb[1] 
and the PostScript file is ok.

So here my questions:
- Why does texexec use these options for dvips?
- Where can I tell texexec to use just dvips without options?
- Why is there a difference between running dvips by texexec or by command
  line, does texexec modify perhaps the environment?
- Why do I have this behaviour only with texnansi but not with ec encoding?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Linux: ConTeXt in local texmf-tree and Ruby scripts - HOWTO?

2006-05-13 Thread Peter Münster
On Thu, 11 May 2006, Peter Münster wrote:

 Using teTeX-3.0, here is what I've done to switch from perl texexec to the
 ruby one:
 chmod +x /opt/teTeX/texmf-context/scripts/context/ruby/texmfstart.rb
 cd /usr/local/bin
 ln -s /opt/teTeX/texmf-context/scripts/context/ruby/texmfstart.rb texmfstart
 
 copy these 3 lines into /opt/teTeX/bin/texexec:
 #!/bin/sh
 export RUBYLIB=/opt/teTeX/texmf-context/scripts/context/ruby
 exec texmfstart texexec.rb $@

I've just seen, that there are a lot of symbolic links in the teTeX
installation to /opt/teTeX/bin/texexec, so please forget my advice above.
Now I'm doing it like this:
- keep the link for texmfstart
- copy these 3 lines into /usr/local/bin/texexec:
#!/bin/sh
export RUBYLIB=/opt/teTeX/texmf-context/scripts/context/ruby
exec texmfstart `basename $0` $@
- /usr/local/bin must come before the /opt/teTeX/bin in your PATH
- in /usr/local/bin you can create other symbolic links to texexec, for
  example texutil and texsync

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Linux: ConTeXt in local texmf-tree and Ruby scripts - HOWTO?

2006-05-11 Thread nico
On Thu, 11 May 2006 10:12:58 -0700, Johannes Graumann  
[EMAIL PROTECTED] wrote:

 I'm at the end of my knowledge and intuition. Can anybody help  
 circumventing
 the need for the monster 'ruby ~/texmf/scripts/context/ruby/texexec.rb
 document.tex'?

Since I'm lazy, I didn't add any new path nor link, but just created the  
following wrapper texexec script in a classical bin directory  
(/usr/local/bin):

#!/bin/sh
ruby /your/path/texmf/scripts/context/ruby/texmfstart.rb texexec.rb $@

Don't know if it can help in your case.

Regards,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Linux: ConTeXt in local texmf-tree and Ruby scripts - HOWTO?

2006-05-11 Thread Peter Münster
On Thu, 11 May 2006, Johannes Graumann wrote:

 However, just calling 'texexec document.tex' does not work - NOTHING
 happens, new prompt, no errors.
 Same thing with 'texmfstart texexec.rb document.tex' - which is the command
 the 'texexec'-stub actually calls.

You should try perhaps
export RUBYLIB=~/texmf/scripts/context/ruby

Using teTeX-3.0, here is what I've done to switch from perl texexec to the
ruby one:
chmod +x /opt/teTeX/texmf-context/scripts/context/ruby/texmfstart.rb
cd /usr/local/bin
ln -s /opt/teTeX/texmf-context/scripts/context/ruby/texmfstart.rb texmfstart

copy these 3 lines into /opt/teTeX/bin/texexec:
#!/bin/sh
export RUBYLIB=/opt/teTeX/texmf-context/scripts/context/ruby
exec texmfstart texexec.rb $@


One remark for the texexec developer: it seems, when searching for
executables, the order in $PATH is not respected. For example: I had
/opt/teTeX/bin/dvips and /usr/bin/dvips and PATH=/opt/teTeX/bin:...
but it was /usr/bin/dvips that was called to create the PS-file.

(Not a big problem, I've just removed /usr/bin/dvips...)


Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Linux: ConTeXt in local texmf-tree and Ruby scripts - HOWTO?

2006-05-11 Thread Hans Hagen
� wrote:

 One remark for the texexec developer: it seems, when searching for
 executables, the order in $PATH is not respected. For example: I had
 /opt/teTeX/bin/dvips and /usr/bin/dvips and PATH=/opt/teTeX/bin:...
 but it was /usr/bin/dvips that was called to create the PS-file.
   
hm, i just call dvips -) 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Linux: ConTeXt in local texmf-tree and Ruby scripts - HOWTO?

2006-05-11 Thread Taco Hoekwater
Johannes Graumann wrote:
 Hello,
 
 I'm on Debian unstable and have the latest context sitting in my home
 directory's 'texmf'. The new ruby scripts confuse me to no end - I just
 don't understand how to make it works. Here is what works and what doesn't:

Have you run mktexlsr? I had to do that (manually) to make ruby 'see'
some of the required libraries.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context