ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \AtBeginDocument
@ 2004-06-11 15:51 Peter Münster
  2004-06-11 16:16 ` \AtBeginDocument Hans Hagen
  2004-06-11 16:24 ` \AtBeginDocument Patrick Gundlach
  0 siblings, 2 replies; 8+ messages in thread
From: Peter Münster @ 2004-06-11 15:51 UTC (permalink / raw)


Hello,

is there something in ConTeXt like the \AtBeginDocument in LaTeX ?

Peter

-- 
http://pmrb.free.fr/contact/
_____________________________________
FilmSearch engine: http://f-s.sf.net/

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

* Re: \AtBeginDocument
  2004-06-11 15:51 \AtBeginDocument Peter Münster
@ 2004-06-11 16:16 ` Hans Hagen
  2004-06-11 17:22   ` \AtBeginDocument Peter Münster
  2004-06-11 16:24 ` \AtBeginDocument Patrick Gundlach
  1 sibling, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2004-06-11 16:16 UTC (permalink / raw)


Peter Münster wrote:

>Hello,
>
>is there something in ConTeXt like the \AtBeginDocument in LaTeX ?
>  
>
\appendtoks
    something
\to  \everystarttext

could work

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

* Re: \AtBeginDocument
  2004-06-11 15:51 \AtBeginDocument Peter Münster
  2004-06-11 16:16 ` \AtBeginDocument Hans Hagen
@ 2004-06-11 16:24 ` Patrick Gundlach
  2004-06-11 16:39   ` \AtBeginDocument Hans Hagen
  1 sibling, 1 reply; 8+ messages in thread
From: Patrick Gundlach @ 2004-06-11 16:24 UTC (permalink / raw)


Hello Peter,

> is there something in ConTeXt like the \AtBeginDocument in LaTeX ?

does 
\appendtoks{Hello} \to \everystarttext

do what you need?

Patrick
-- 
Es wird kein Wunder geschehen

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

* Re: Re: \AtBeginDocument
  2004-06-11 16:24 ` \AtBeginDocument Patrick Gundlach
@ 2004-06-11 16:39   ` Hans Hagen
  2004-06-11 16:49     ` \AtBeginDocument Patrick Gundlach
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2004-06-11 16:39 UTC (permalink / raw)


Patrick Gundlach wrote:

>Hello Peter,
>
>  
>
>>is there something in ConTeXt like the \AtBeginDocument in LaTeX ?
>>    
>>
>
>does 
>\appendtoks{Hello} \to \everystarttext
>
>do what you need?
>  
>
beware: in your example grouple is applied as well as a space added after the } 

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

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

* Re: \AtBeginDocument
  2004-06-11 16:39   ` \AtBeginDocument Hans Hagen
@ 2004-06-11 16:49     ` Patrick Gundlach
  0 siblings, 0 replies; 8+ messages in thread
From: Patrick Gundlach @ 2004-06-11 16:49 UTC (permalink / raw)


Hello Hans,

> beware: in your example grouple is applied as well as a space added
> after the } 

Oh, thanks. I should be more careful with my examples.

Patrick

-- 
Es wird kein Wunder geschehen

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

* Re: \AtBeginDocument
  2004-06-11 16:16 ` \AtBeginDocument Hans Hagen
@ 2004-06-11 17:22   ` Peter Münster
  2004-06-13 21:18     ` \AtBeginDocument Hans Hagen Outside
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Münster @ 2004-06-11 17:22 UTC (permalink / raw)


On Fri, 11 Jun 2004, Hans Hagen wrote:

> Peter Münster wrote:
> 
> >Hello,
> >
> >is there something in ConTeXt like the \AtBeginDocument in LaTeX ?
> >  
> >
> \appendtoks
>     something
> \to  \everystarttext
> 
> could work

In fact, I'm looking for something, that also works for startproduct.
Seems to work only for starttext.
Perhaps, I could do something like this:
\let\startproductO=\startproduct
\def\startproduct{something\startproductO} ?

Peter

P.S.: Unfortunately, it is quite hard to browse the core-*.tex files,
because of the mix of 2 languages...  Are the non-english user-interfaces
really used?

-- 
http://pmrb.free.fr/contact/
_____________________________________
FilmSearch engine: http://f-s.sf.net/

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

* Re: \AtBeginDocument
  2004-06-11 17:22   ` \AtBeginDocument Peter Münster
@ 2004-06-13 21:18     ` Hans Hagen Outside
  2004-06-14 15:20       ` \AtBeginDocument Peter Münster
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen Outside @ 2004-06-13 21:18 UTC (permalink / raw)


Peter Münster wrote:

>\let\startproductO=\startproduct
>\def\startproduct{something\startproductO} ?
>  
>
hm, starttext is called anyway so it should work with product as well

you code is wrong, think about something (untested):

\let\petermunstersstartproduct\startproduct
\def\startproduct{something\let\startproduct\petermunstersstartproduct\startproduct}

>Peter
>
>P.S.: Unfortunately, it is quite hard to browse the core-*.tex files,
>because of the mix of 2 languages...  Are the non-english user-interfaces
>really used?
>  
>
sure, i use it, esp for dutch books (styles)

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

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

* Re: \AtBeginDocument
  2004-06-13 21:18     ` \AtBeginDocument Hans Hagen Outside
@ 2004-06-14 15:20       ` Peter Münster
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Münster @ 2004-06-14 15:20 UTC (permalink / raw)


On Sun, 13 Jun 2004, Hans Hagen Outside wrote:

> hm, starttext is called anyway so it should work with product as well

Indeed, I saw this in the definition of \startproduct. Now I know, why it
does not work here: in my example (see below), \startproduct is called
before the environment is read in.

file env.tex:
\startenvironment env
\appendtoks\def\TestIt{test}\to\everystarttext
\stopenvironment

file proj.tex:
\startproject proj
\environment env
\product prod
\stopproject

file prod.tex:
\startproduct prod
\project proj
Test it: \TestIt
\stopproduct

Doesn't matter, I'll find other solutions for my purposes.

> >P.S.: Unfortunately, it is quite hard to browse the core-*.tex files,
> >because of the mix of 2 languages...  Are the non-english user-interfaces
> >really used?
> >  
> sure, i use it, esp for dutch books (styles)

Excuse me, in fact it was a silly question.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
_____________________________________
FilmSearch engine: http://f-s.sf.net/

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

end of thread, other threads:[~2004-06-14 15:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-11 15:51 \AtBeginDocument Peter Münster
2004-06-11 16:16 ` \AtBeginDocument Hans Hagen
2004-06-11 17:22   ` \AtBeginDocument Peter Münster
2004-06-13 21:18     ` \AtBeginDocument Hans Hagen Outside
2004-06-14 15:20       ` \AtBeginDocument Peter Münster
2004-06-11 16:24 ` \AtBeginDocument Patrick Gundlach
2004-06-11 16:39   ` \AtBeginDocument Hans Hagen
2004-06-11 16:49     ` \AtBeginDocument Patrick Gundlach

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