ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* typefile
@ 2008-10-30 19:09 Aditya Mahajan
  2008-10-30 19:16 ` typefile luigi scarso
  0 siblings, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2008-10-30 19:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Something is wrong with \typefile in latest context in MKIV.

\starttext
\typefile{somefile}
\stoptext

(the file 'somefile' should exist)

gives

! Undefined control sequence.
<argument> \filepath

\pathplusfile #1#2->#1
                       \f!pathseparator #2
\mktypefileverbatim ...rs.typefile("\readfilename
                                                   ")}
\dosometyping ...rt }{\typingparameter \c!stop }}}
                                                   \stopverbatimcolor 
\stoppa...
\dotypefile ...else \dodotypefile [\v!file ][]{#3}
                                                   \fi \fi
l.3 \typefile{somefile}


Also, in MKII, when the file does not exist, you get a warning message in 
the pdf output. In MKIV, there is no warning. Missing files are silently 
ignored.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: typefile
  2008-10-30 19:09 typefile Aditya Mahajan
@ 2008-10-30 19:16 ` luigi scarso
  2008-10-30 19:23   ` typefile Aditya Mahajan
  0 siblings, 1 reply; 8+ messages in thread
From: luigi scarso @ 2008-10-30 19:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1246 bytes --]

On Thu, Oct 30, 2008 at 8:09 PM, Aditya Mahajan <adityam@umich.edu> wrote:

> Hi,
>
> Something is wrong with \typefile in latest context in MKIV.
>
> \starttext
> \typefile{somefile}
> \stoptext
>
> (the file 'somefile' should exist)
>
> gives
>
> ! Undefined control sequence.
> <argument> \filepath
>
> \pathplusfile #1#2->#1
>                       \f!pathseparator #2
> \mktypefileverbatim ...rs.typefile("\readfilename
>                                                   ")}
> \dosometyping ...rt }{\typingparameter \c!stop }}}
>                                                   \stopverbatimcolor
> \stoppa...
> \dotypefile ...else \dodotypefile [\v!file ][]{#3}
>                                                   \fi \fi
> l.3 \typefile{somefile}
>
>
> Also, in MKII, when the file does not exist, you get a warning message in
> the pdf output. In MKIV, there is no warning. Missing files are silently
> ignored.
>
> Aditya
>
it works here,with  minimals-beta

Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008
i686 GNU/Linux
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
ConTeXt MtxRun | current version: 2008.10.30 08:50

\starttext
\typefile{test-aditya-001.tex}
\stoptext



-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 2094 bytes --]

[-- Attachment #2: test-aditya-001.pdf --]
[-- Type: application/pdf, Size: 5831 bytes --]

[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: typefile
  2008-10-30 19:16 ` typefile luigi scarso
@ 2008-10-30 19:23   ` Aditya Mahajan
  2008-10-30 20:05     ` typefile luigi scarso
  2008-11-10 17:49     ` typefile Hans Hagen
  0 siblings, 2 replies; 8+ messages in thread
From: Aditya Mahajan @ 2008-10-30 19:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 30 Oct 2008, luigi scarso wrote:

> On Thu, Oct 30, 2008 at 8:09 PM, Aditya Mahajan <adityam@umich.edu> wrote:
>
>> Hi,
>>
>> Something is wrong with \typefile in latest context in MKIV.
>>
>> \starttext
>> \typefile{somefile}
>> \stoptext
>>
>> (the file 'somefile' should exist)
>>
>> gives
>>
>> ! Undefined control sequence.
>> <argument> \filepath
>>
>> \pathplusfile #1#2->#1
>>                       \f!pathseparator #2
>> \mktypefileverbatim ...rs.typefile("\readfilename
>>                                                   ")}
>> \dosometyping ...rt }{\typingparameter \c!stop }}}
>>                                                   \stopverbatimcolor
>> \stoppa...
>> \dotypefile ...else \dodotypefile [\v!file ][]{#3}
>>                                                   \fi \fi
>> l.3 \typefile{somefile}
>>
>>
>> Also, in MKII, when the file does not exist, you get a warning message in
>> the pdf output. In MKIV, there is no warning. Missing files are silently
>> ignored.
>>
>> Aditya
>>
> it works here,with  minimals-beta
>
> Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008
> i686 GNU/Linux
> This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
> ConTeXt MtxRun | current version: 2008.10.30 08:50
>
> \starttext
> \typefile{test-aditya-001.tex}
> \stoptext

Ah, this also works here. The error only shows if the file does not have 
an extension.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: typefile
  2008-10-30 19:23   ` typefile Aditya Mahajan
@ 2008-10-30 20:05     ` luigi scarso
  2008-11-10 17:49     ` typefile Hans Hagen
  1 sibling, 0 replies; 8+ messages in thread
From: luigi scarso @ 2008-10-30 20:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1709 bytes --]

On Thu, Oct 30, 2008 at 8:23 PM, Aditya Mahajan <adityam@umich.edu> wrote:

> On Thu, 30 Oct 2008, luigi scarso wrote:
>
> > On Thu, Oct 30, 2008 at 8:09 PM, Aditya Mahajan <adityam@umich.edu>
> wrote:
> >
> >> Hi,
> >>
> >> Something is wrong with \typefile in latest context in MKIV.
> >>
> >> \starttext
> >> \typefile{somefile}
> >> \stoptext
> >>
> >> (the file 'somefile' should exist)
> >>
> >> gives
> >>
> >> ! Undefined control sequence.
> >> <argument> \filepath
> >>
> >> \pathplusfile #1#2->#1
> >>                       \f!pathseparator #2
> >> \mktypefileverbatim ...rs.typefile("\readfilename
> >>                                                   ")}
> >> \dosometyping ...rt }{\typingparameter \c!stop }}}
> >>                                                   \stopverbatimcolor
> >> \stoppa...
> >> \dotypefile ...else \dodotypefile [\v!file ][]{#3}
> >>                                                   \fi \fi
> >> l.3 \typefile{somefile}
> >>
> >>
> >> Also, in MKII, when the file does not exist, you get a warning message
> in
> >> the pdf output. In MKIV, there is no warning. Missing files are silently
> >> ignored.
> >>
> >> Aditya
> >>
> > it works here,with  minimals-beta
> >
> > Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC
> 2008
> > i686 GNU/Linux
> > This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
> > ConTeXt MtxRun | current version: 2008.10.30 08:50
> >
> > \starttext
> > \typefile{test-aditya-001.tex}
> > \stoptext
>
> Ah, this also works here. The error only shows if the file does not have
> an extension.
>

Confirmed

\starttext
\typefile{test-aditya-TEST}
\stoptext

where test-aditya-TEST is
TEST

fails
-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 2948 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: typefile
  2008-10-30 19:23   ` typefile Aditya Mahajan
  2008-10-30 20:05     ` typefile luigi scarso
@ 2008-11-10 17:49     ` Hans Hagen
  2008-11-10 18:09       ` typefile luigi scarso
  1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2008-11-10 17:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Aditya Mahajan wrote:

>> \starttext
>> \typefile{test-aditya-001.tex}
>> \stoptext
> 
> Ah, this also works here. The error only shows if the file does not have 
> an extension.

this is fixed (hack, awaiting a proper split of supp-fil into mkii and 
mkiv)

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
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: typefile
  2008-11-10 17:49     ` typefile Hans Hagen
@ 2008-11-10 18:09       ` luigi scarso
  2008-11-10 20:41         ` typefile Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: luigi scarso @ 2008-11-10 18:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1240 bytes --]

On Mon, Nov 10, 2008 at 6:49 PM, Hans Hagen <pragma@wxs.nl> wrote:

> Aditya Mahajan wrote:
>
> >> \starttext
> >> \typefile{test-aditya-001.tex}
> >> \stoptext
> >
> > Ah, this also works here. The error only shows if the file does not have
> > an extension.
>
> this is fixed (hack, awaiting a proper split of supp-fil into mkii and
> mkiv)
>
> Hans
>
\starttext
\typefile{test-aditya-TEST}
\stoptext
where
test-aditya-TEST has
TEST
fails
with

! Undefined control sequence.
<argument> \filepath

\pathplusfile #1#2->#1
                      \f!pathseparator #2
\mktypefileverbatim ...rs.typefile("\readfilename
                                                  ")}
\dosometyping ...rt }{\typingparameter \c!stop }}}
                                                  \stopverbatimcolor
\stoppa...
\dotypefile ...else \dodotypefile [\v!file ][]{#3}
                                                  \fi \fi
l.3 \typefile{test-aditya-TEST}

?

minimals-beta
Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008
i686 GNU/Linux
This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
ConTeXt MtxRun | current version: 2008.42.10 15:11

PS
context --version gives current version: 2008.42.10 15:11

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 2855 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: typefile
  2008-11-10 18:09       ` typefile luigi scarso
@ 2008-11-10 20:41         ` Hans Hagen
  2008-11-10 21:09           ` typefile Aditya Mahajan
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2008-11-10 20:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

luigi scarso wrote:
> 
> 
> On Mon, Nov 10, 2008 at 6:49 PM, Hans Hagen <pragma@wxs.nl 
> <mailto:pragma@wxs.nl>> wrote:
> 
>     Aditya Mahajan wrote:
> 
>      >> \starttext
>      >> \typefile{test-aditya-001.tex}
>      >> \stoptext
>      >
>      > Ah, this also works here. The error only shows if the file does
>     not have
>      > an extension.
> 
>     this is fixed (hack, awaiting a proper split of supp-fil into mkii and
>     mkiv)
> 
>     Hans
> 
> \starttext
> \typefile{test-aditya-TEST}
> \stoptext
> where
> test-aditya-TEST has
> TEST
> fails
> with
> 
> ! Undefined control sequence.
> <argument> \filepath

bah, i'll fis this asap (when i do the split)


-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: typefile
  2008-11-10 20:41         ` typefile Hans Hagen
@ 2008-11-10 21:09           ` Aditya Mahajan
  0 siblings, 0 replies; 8+ messages in thread
From: Aditya Mahajan @ 2008-11-10 21:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 10 Nov 2008, Hans Hagen wrote:

> bah, i'll fis this asap (when i do the split)

For me this is not urgent as there is a manual workaround.

\def\filepath{the current working directory}

Thanks,
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2008-11-10 21:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-30 19:09 typefile Aditya Mahajan
2008-10-30 19:16 ` typefile luigi scarso
2008-10-30 19:23   ` typefile Aditya Mahajan
2008-10-30 20:05     ` typefile luigi scarso
2008-11-10 17:49     ` typefile Hans Hagen
2008-11-10 18:09       ` typefile luigi scarso
2008-11-10 20:41         ` typefile Hans Hagen
2008-11-10 21:09           ` typefile Aditya Mahajan

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).