ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: \setupblock[name][file=name]
  2003-09-26 10:01 \setupblock[name][file=name] Bernd Militzer
@ 2003-09-26  9:22 ` Hans Hagen
  2003-09-26 15:42   ` \setupblock[name][file=name] Bernd Militzer
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2003-09-26  9:22 UTC (permalink / raw)


At 12:01 26/09/2003 +0200, you wrote:
>Hi,
>
>the example
>
>\setupblock[homework][file=student]
>
>that Hans  describes in his docu does not work for me!
>
>Help needed!

did you define the block?

\defineblock[homework]

========== test.tex ===============

\defineblock[homework]
\setupblock[homework][file=student]

\starttext

test

\useblocks[homework]

test

\stoptext

========== student.tex =============

\defineblock[homework]

\starttext

\beginhomework
homework
\endhomework

\stoptext

===================================

normally, you will put the definitions in a shared environment

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* \setupblock[name][file=name]
@ 2003-09-26 10:01 Bernd Militzer
  2003-09-26  9:22 ` \setupblock[name][file=name] Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Bernd Militzer @ 2003-09-26 10:01 UTC (permalink / raw)


Hi,

the example 

\setupblock[homework][file=student]

that Hans  describes in his docu does not work for me!

Help needed!

Thanks in advance

Bernd

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

* Re: \setupblock[name][file=name]
  2003-09-26  9:22 ` \setupblock[name][file=name] Hans Hagen
@ 2003-09-26 15:42   ` Bernd Militzer
  2003-09-26 19:29     ` \setupblock[name][file=name] Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Bernd Militzer @ 2003-09-26 15:42 UTC (permalink / raw)


Hi Hans,

thanks first, 
blocks are defined.

If I use your example in the following way:

1. texexec test.tex

--> test
    test
no homework!

2. texexec student.tex
   and than
   texexec test.tex

--> test
    homework
    test

Is this the right way to use external blocks??

Bernd

> \defineblock[homework]
> 
> ========== test.tex ===============
> 
> \defineblock[homework]
> \setupblock[homework][file=student]
> 
> \starttext
> 
> test
> 
> \useblocks[homework]
> 
> test
> 
> \stoptext
> 
> ========== student.tex =============
> 
> \defineblock[homework]
> 
> \starttext
> 
> \beginhomework
> homework
> \endhomework
> 
> \stoptext
> 
> ===================================
> 
> normally, you will put the definitions in a shared environment
> 
> Hans

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

* Re: \setupblock[name][file=name]
  2003-09-26 15:42   ` \setupblock[name][file=name] Bernd Militzer
@ 2003-09-26 19:29     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2003-09-26 19:29 UTC (permalink / raw)


At 17:42 26/09/2003 +0200, you wrote:
>Hi Hans,
>
>thanks first,
>blocks are defined.
>
>If I use your example in the following way:
>
>1. texexec test.tex
>
>--> test
>     test
>no homework!
>
>2. texexec student.tex
>    and than
>    texexec test.tex
>
>--> test
>     homework
>     test
>
>Is this the right way to use external blocks??

indeed, the student blocks are saved in student.tub along with some 
sectioning info, so you indeed need the student run first

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

end of thread, other threads:[~2003-09-26 19:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-26 10:01 \setupblock[name][file=name] Bernd Militzer
2003-09-26  9:22 ` \setupblock[name][file=name] Hans Hagen
2003-09-26 15:42   ` \setupblock[name][file=name] Bernd Militzer
2003-09-26 19:29     ` \setupblock[name][file=name] 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).