Hi, the example \setupblock[homework][file=student] that Hans describes in his docu does not work for me! Help needed! Thanks in advance Bernd
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 -------------------------------------------------------------------------
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
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 -------------------------------------------------------------------------
participants (2)
-
Bernd Militzer
-
Hans Hagen