ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \input file with parameter ?
@ 2009-03-20 13:11 luigi scarso
  2009-03-20 13:15 ` Hans Hagen
  2009-03-20 13:17 ` Wolfgang Schuster
  0 siblings, 2 replies; 8+ messages in thread
From: luigi scarso @ 2009-03-20 13:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi
today , while writing some code I have made a mistake like this
\input combine[file=depliant-block.pdf]
instead of
\input combine

(I have combine.tex in my path of course)

After a while I have thought :
"Is it possibile to implement this (as a macro) in mkiv ?"

I think yes, but I'm not sure

(Of course, on can write things like
\Input[style=combine, file=fo] and so on)

-- 
luigi
___________________________________________________________________________________
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: \input file with parameter ?
  2009-03-20 13:11 \input file with parameter ? luigi scarso
@ 2009-03-20 13:15 ` Hans Hagen
  2009-03-20 13:28   ` luigi scarso
  2009-03-20 13:17 ` Wolfgang Schuster
  1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2009-03-20 13:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

luigi scarso wrote:
> Hi
> today , while writing some code I have made a mistake like this
> \input combine[file=depliant-block.pdf]
> instead of
> \input combine
> 
> (I have combine.tex in my path of course)
> 
> After a while I have thought :
> "Is it possibile to implement this (as a macro) in mkiv ?"

parsing of \input is somewhat special as the name has to be delimited by 
a space or unexpandable token

> I think yes, but I'm not sure

i dunny, but is some weird syntax you're proposing

> (Of course, on can write things like
> \Input[style=combine, file=fo] and so on)

indeed, or \loadfile[...] depending on your needs

-----------------------------------------------------------------
                                           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: \input file with parameter ?
  2009-03-20 13:11 \input file with parameter ? luigi scarso
  2009-03-20 13:15 ` Hans Hagen
@ 2009-03-20 13:17 ` Wolfgang Schuster
  2009-03-20 13:19   ` luigi scarso
  1 sibling, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2009-03-20 13:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 20.03.2009 um 14:11 schrieb luigi scarso:

> Hi
> today , while writing some code I have made a mistake like this
> \input combine[file=depliant-block.pdf]
> instead of
> \input combine
>
> (I have combine.tex in my path of course)
>
> After a while I have thought :
> "Is it possibile to implement this (as a macro) in mkiv ?"
>
> I think yes, but I'm not sure
>
> (Of course, on can write things like
> \Input[style=combine, file=fo] and so on)

And what is this supposed to do?

Wolfgang

___________________________________________________________________________________
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: \input file with parameter ?
  2009-03-20 13:17 ` Wolfgang Schuster
@ 2009-03-20 13:19   ` luigi scarso
  2009-03-20 13:25     ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: luigi scarso @ 2009-03-20 13:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Mar 20, 2009 at 2:17 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>
> Am 20.03.2009 um 14:11 schrieb luigi scarso:
>
>> Hi
>> today , while writing some code I have made a mistake like this
>> \input combine[file=depliant-block.pdf]
>> instead of
>> \input combine
>>
>> (I have combine.tex in my path of course)
>>
>> After a while I have thought :
>> "Is it possibile to implement this (as a macro) in mkiv ?"
>>
>> I think yes, but I'm not sure
>>
>> (Of course, on can write things like
>> \Input[style=combine, file=fo] and so on)
>
> And what is this supposed to do?
save the world ?

-- 
luigi
___________________________________________________________________________________
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: \input file with parameter ?
  2009-03-20 13:19   ` luigi scarso
@ 2009-03-20 13:25     ` Wolfgang Schuster
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2009-03-20 13:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 20.03.2009 um 14:19 schrieb luigi scarso:

>> And what is this supposed to do?
> save the world ?


:-X

Wolfgang

___________________________________________________________________________________
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: \input file with parameter ?
  2009-03-20 13:15 ` Hans Hagen
@ 2009-03-20 13:28   ` luigi scarso
  2009-03-20 13:43     ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: luigi scarso @ 2009-03-20 13:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Mar 20, 2009 at 2:15 PM, Hans Hagen <pragma@wxs.nl> wrote:
> luigi scarso wrote:
>>
>> Hi
>> today , while writing some code I have made a mistake like this
>> \input combine[file=depliant-block.pdf]
>> instead of
>> \input combine
>>
>> (I have combine.tex in my path of course)
>>
>> After a while I have thought :
>> "Is it possibile to implement this (as a macro) in mkiv ?"
>
> parsing of \input is somewhat special as the name has to be delimited by a
> space or unexpandable token
ok
>
> i dunny, but is some weird syntax you're proposing
just  curiosity ,
(btw curiosity killed the cat)
>
>> (Of course, on can write things like
>> \Input[style=combine, file=fo] and so on)
>
> indeed, or \loadfile[...] depending on your needs

hmm, grepping for \loadfile gives nothing
(but I'm using a rather old context , contextversion :  2008.10.31 13:58 )

-- 
luigi
___________________________________________________________________________________
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: \input file with parameter ?
  2009-03-20 13:28   ` luigi scarso
@ 2009-03-20 13:43     ` Hans Hagen
  2009-03-20 13:54       ` luigi scarso
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2009-03-20 13:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

luigi scarso wrote:

>> indeed, or \loadfile[...] depending on your needs


there is no \loadfile but there are many other variants -)

-----------------------------------------------------------------
                                           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: \input file with parameter ?
  2009-03-20 13:43     ` Hans Hagen
@ 2009-03-20 13:54       ` luigi scarso
  0 siblings, 0 replies; 8+ messages in thread
From: luigi scarso @ 2009-03-20 13:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2009/3/20 Hans Hagen <pragma@wxs.nl>:
> luigi scarso wrote:
>
>>> indeed, or \loadfile[...] depending on your needs
>
>
> there is no \loadfile but there are many other variants -)
good , so I wll think to def
\def\Loadfile[#1][...]{..}

-- 
luigi
___________________________________________________________________________________
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:[~2009-03-20 13:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-20 13:11 \input file with parameter ? luigi scarso
2009-03-20 13:15 ` Hans Hagen
2009-03-20 13:28   ` luigi scarso
2009-03-20 13:43     ` Hans Hagen
2009-03-20 13:54       ` luigi scarso
2009-03-20 13:17 ` Wolfgang Schuster
2009-03-20 13:19   ` luigi scarso
2009-03-20 13:25     ` Wolfgang Schuster

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