Re: [NTG-context] typefile with absolute path to file

2012-11-21 Thread Hans Hagen

On 11/20/2012 11:17 PM, Aditya Mahajan wrote:


On my machine, I can read files **with an extension** from anywhere in
the system, but  \typefile{...} for a file without an extension results in:

verbatimsfile abc does not exist


ah .. but it makes sense to be explicit in what you want to be typed 
(it's not an input file in the sense of a document)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile with absolute path to file

2012-11-21 Thread Sietse Brouwer
I think he means files of which the name does not have an extension.
I.e. he is trying to type a file called 'xxx', not 'xxx.something'.
Example of such a file: the shell script /usr/bin/ps2pdf.
Cheers,
--Sietse
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile with absolute path to file

2012-11-21 Thread Hans Hagen

On 11/21/2012 11:18 AM, Sietse Brouwer wrote:

I think he means files of which the name does not have an extension.
I.e. he is trying to type a file called 'xxx', not 'xxx.something'.
Example of such a file: the shell script /usr/bin/ps2pdf.


hopefully fixed in next upload .. btw, testing can best be done with

\enabletrackers[resolvers.locating,resolvers.detail]


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Aditya Mahajan



Dear List,

a question about \typefile{}.
I tried to use \typefile{ /with/an/absolute/path/to/some_file }  and failed
Message in the log: Verbatim some_file not found. Also tried with
no path at all, assuming it will take the file from the current directory.
Same result.

Do I miss something? Should this work? Or, if not, how can I achieve
this effect (typefile
with absolute path to a file. btw. on a Linux system)


\starttext
\typefile{\jobname.tex}
\typefile{/tmp/test.tex}
\stoptext

work with ConTeXt MkIV  2012.11.16.

However, I can confirm that

\typefile{/usr/bin/pdf2ps} does not work with context minimals on 
archlinux, although the texmfcnf.lua file says:


[system.outputmode]= restricted,
[system.inputmode] = any,

Aditya
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Erik Margraf
Hi,

Thanks Aditya!

I tried this again with

\starttext
   \typefile{/tmp/xxx.tex}
\stoptext

and could trace what's going on ... (not even /tmp/xxx.tex worked)

The lines below is the trace output belonging to /tmp/xxx

stat(tmp/xxx.tex, 0x7fff5dc73d90) = -1 ENOENT (No such file or directory)
stat(../tmp/xxx.tex, 0x7fff5dc73d90)  = -1 ENOENT (No such file or directory)
stat(../../tmp/xxx.tex, 0x7fff5dc73d90) = -1 ENOENT (No such file or
directory)
stat(tmp/xxx.tex.tex, 0x7fff5dc73d90) = -1 ENOENT (No such file or directory)
stat(../tmp/xxx.tex.tex, 0x7fff5dc73d90) = -1 ENOENT (No such file
or directory)
stat(../../tmp/xxx.tex.tex, 0x7fff5dc73d90) = -1 ENOENT (No such
file or directory)

I could verify that tmp/xxx.tex is actually found!
current version: 2012.11.16 23:51
Anything I can do about that?  (I guess I can work with relative paths
below - tested this ...)

Context Version: current version: 2012.11.16 23:51
System: Debian 3.2.32-1 x86_64 GNU/Linux

regards
Erik

On Tue, Nov 20, 2012 at 4:25 PM, Aditya Mahajan adit...@umich.edu wrote:

 Dear List,

 a question about \typefile{}.
 I tried to use \typefile{ /with/an/absolute/path/to/some_file }  and
 failed
 Message in the log: Verbatim some_file not found. Also tried with
 no path at all, assuming it will take the file from the current directory.
 Same result.

 Do I miss something? Should this work? Or, if not, how can I achieve
 this effect (typefile
 with absolute path to a file. btw. on a Linux system)


 \starttext
 \typefile{\jobname.tex}
 \typefile{/tmp/test.tex}
 \stoptext

 work with ConTeXt MkIV  2012.11.16.

 However, I can confirm that

 \typefile{/usr/bin/pdf2ps} does not work with context minimals on archlinux,
 although the texmfcnf.lua file says:

 [system.outputmode]= restricted,
 [system.inputmode] = any,

 Aditya
 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Hans Hagen

On 11/20/2012 9:06 PM, Erik Margraf wrote:

Hi,

Thanks Aditya!

I tried this again with

\starttext
\typefile{/tmp/xxx.tex}
\stoptext

and could trace what's going on ... (not even /tmp/xxx.tex worked)


I just tried a standalone on a xubuntu virtual machine. I had no 
problems with


/data/temp/test/test.tex: (also copied one level lower)

\starttext

\typefile{/data/temp/test.tex}
\typefile{/data/test.tex}

\stoptext

So, I'm a bit puzzled.

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Aditya Mahajan

On Tue, 20 Nov 2012, Hans Hagen wrote:


On 11/20/2012 9:06 PM, Erik Margraf wrote:

Hi,

Thanks Aditya!

I tried this again with

\starttext
\typefile{/tmp/xxx.tex}
\stoptext

and could trace what's going on ... (not even /tmp/xxx.tex worked)


I just tried a standalone on a xubuntu virtual machine. I had no problems 
with


/data/temp/test/test.tex: (also copied one level lower)

\starttext

\typefile{/data/temp/test.tex}
\typefile{/data/test.tex}

\stoptext

So, I'm a bit puzzled.


On my machine, I can read files **with an extension** from anywhere in the 
system, but  \typefile{...} for a file without an extension results in:


verbatimsfile abc does not exist

Aditya


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Sietse Brouwer
Compiling the evidence... all I can say is hmm

== Erik ==
Version: 2012.11.16 on Linux
Absolute path (parent dir): ???
Absolute path (non-parent dir): did not work

== Aditya ==
Version: 2012.11.16 on Linux
[system.outputmode]= restricted,
[system.inputmode] = any,
Absolute path (parent dir): works
Absolute path (non-parent dir): works
Absolute path (filename has no extension): fails

== Hans ==
Version: ??? on Linux
Absolute path (parent dir): works
Absolute path (non-parent dir): /??

== Sietse ==
Version: 2012.11.08 on Linux
[system.outputmode]= restricted,
[system.inputmode] = any,
Absolute path (parent dir): does not work
Absolute path (non-parent dir): does not work
Relative path: works
Absolute or relative path, filename has no extension: does not work.

Hmm.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] typefile with absolute path to file

2012-11-20 Thread Erik Margraf
That's interesting. As I could trace, the leading / is removed on my system.

ldd output on my luatex gives (seems not really spectacular):

linux-vdso.so.1 =  (0x7fffad7ff000)
libdl.so.2 = /lib/x86_64-linux-gnu/libdl.so.2 (0x7f221f099000)
libm.so.6 = /lib/x86_64-linux-gnu/libm.so.6 (0x7f221ee17000)
libc.so.6 = /lib/x86_64-linux-gnu/libc.so.6 (0x7f221ea8f000)
/lib64/ld-linux-x86-64.so.2 (0x7f221f2c1000)

lua -v gives:  Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio

Though, I have lua5.2 installed in parallel

Any other infos, which might help?

On Tue, Nov 20, 2012 at 11:17 PM, Aditya Mahajan adit...@umich.edu wrote:
 On Tue, 20 Nov 2012, Hans Hagen wrote:

 On 11/20/2012 9:06 PM, Erik Margraf wrote:

 Hi,

 Thanks Aditya!

 I tried this again with

 \starttext
 \typefile{/tmp/xxx.tex}
 \stoptext

 and could trace what's going on ... (not even /tmp/xxx.tex worked)


 I just tried a standalone on a xubuntu virtual machine. I had no problems
 with

 /data/temp/test/test.tex: (also copied one level lower)

 \starttext

 \typefile{/data/temp/test.tex}
 \typefile{/data/test.tex}

 \stoptext

 So, I'm a bit puzzled.


 On my machine, I can read files **with an extension** from anywhere in the
 system, but  \typefile{...} for a file without an extension results in:

 verbatimsfile abc does not exist


 Aditya


 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl /
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___