ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* typefile with absolute path to file
@ 2012-11-20 15:12 Erik Margraf
  2012-11-20 15:25 ` Aditya Mahajan
  0 siblings, 1 reply; 10+ messages in thread
From: Erik Margraf @ 2012-11-20 15:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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)

I'm aware of a similar message thread to this list from May 25th, this year.
But I didn't feel that it speaks against my comprehension of \typefile ...

Thanks!

Erik
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: typefile with absolute path to file
  2012-11-20 15:12 typefile with absolute path to file Erik Margraf
@ 2012-11-20 15:25 ` Aditya Mahajan
  2012-11-20 20:06   ` Erik Margraf
  0 siblings, 1 reply; 10+ messages in thread
From: Aditya Mahajan @ 2012-11-20 15:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: typefile with absolute path to file
  2012-11-20 15:25 ` Aditya Mahajan
@ 2012-11-20 20:06   ` Erik Margraf
  2012-11-20 21:41     ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Erik Margraf @ 2012-11-20 20:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <adityam@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: typefile with absolute path to file
  2012-11-20 20:06   ` Erik Margraf
@ 2012-11-20 21:41     ` Hans Hagen
  2012-11-20 22:17       ` Aditya Mahajan
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2012-11-20 21:41 UTC (permalink / raw)
  To: erik.margraf, mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: typefile with absolute path to file
  2012-11-20 21:41     ` Hans Hagen
@ 2012-11-20 22:17       ` Aditya Mahajan
  2012-11-20 22:39         ` Sietse Brouwer
                           ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Aditya Mahajan @ 2012-11-20 22:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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:

verbatims       > file 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: typefile with absolute path to file
  2012-11-20 22:17       ` Aditya Mahajan
@ 2012-11-20 22:39         ` Sietse Brouwer
  2012-11-20 22:40         ` Erik Margraf
  2012-11-21 10:09         ` Hans Hagen
  2 siblings, 0 replies; 10+ messages in thread
From: Sietse Brouwer @ 2012-11-20 22:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: typefile with absolute path to file
  2012-11-20 22:17       ` Aditya Mahajan
  2012-11-20 22:39         ` Sietse Brouwer
@ 2012-11-20 22:40         ` Erik Margraf
  2012-11-21 10:09         ` Hans Hagen
  2 siblings, 0 replies; 10+ messages in thread
From: Erik Margraf @ 2012-11-20 22:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 =>  (0x00007fffad7ff000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f221f099000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f221ee17000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f221ea8f000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f221f2c1000)

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 <adityam@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:
>
> verbatims       > file 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: typefile with absolute path to file
  2012-11-20 22:17       ` Aditya Mahajan
  2012-11-20 22:39         ` Sietse Brouwer
  2012-11-20 22:40         ` Erik Margraf
@ 2012-11-21 10:09         ` Hans Hagen
  2012-11-21 10:18           ` Sietse Brouwer
  2 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2012-11-21 10:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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:
>
> verbatims       > file 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: typefile with absolute path to file
  2012-11-21 10:09         ` Hans Hagen
@ 2012-11-21 10:18           ` Sietse Brouwer
  2012-11-21 16:35             ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Sietse Brouwer @ 2012-11-21 10:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: typefile with absolute path to file
  2012-11-21 10:18           ` Sietse Brouwer
@ 2012-11-21 16:35             ` Hans Hagen
  0 siblings, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2012-11-21 16:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-11-21 16:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-20 15:12 typefile with absolute path to file Erik Margraf
2012-11-20 15:25 ` Aditya Mahajan
2012-11-20 20:06   ` Erik Margraf
2012-11-20 21:41     ` Hans Hagen
2012-11-20 22:17       ` Aditya Mahajan
2012-11-20 22:39         ` Sietse Brouwer
2012-11-20 22:40         ` Erik Margraf
2012-11-21 10:09         ` Hans Hagen
2012-11-21 10:18           ` Sietse Brouwer
2012-11-21 16:35             ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).