ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Bernd Militzer <bernd@militzer.net>
Subject: Re: \setupblock[name][file=name]
Date: 26 Sep 2003 17:42:58 +0200	[thread overview]
Message-ID: <1064590978.1772.9.camel@eagle.militzer.net.local> (raw)
In-Reply-To: <5.2.0.9.1.20030926112128.01dd8f98@server-1>

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

  reply	other threads:[~2003-09-26 15:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Bernd Militzer [this message]
2003-09-26 19:29     ` \setupblock[name][file=name] Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1064590978.1772.9.camel@eagle.militzer.net.local \
    --to=bernd@militzer.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).