ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Elliot Clifton" <cliftoo@gmail.com>
To: ntg-context <ntg-context@ntg.nl>
Subject: Error when calling \placecontent from product
Date: Thu, 31 Jul 2008 11:32:36 +0100	[thread overview]
Message-ID: <e65d34bf0807310332j7a1c54fex848f4e76d6fedbc3@mail.gmail.com> (raw)

Hi,

I'd appreciated some help with the following problem. How can I stop
the following code generating an error on calling \placecontent from a
product?

In the test case I have files: env-test, prd-test, cmp-test.

\startenvironment [env-test]
	\def\dostartArticle[#1]% generate article header with
	{\getgparameters[my][#1]
		\chapter{\mytitle}
	}
	
	\def\dostopArticle{%
	\page}
	
	\def\startArticle{\dosingleempty\dostartArticle}
	\def\stopArticle{\dosingleempty\dostopArticle}
\stopenvironment


\startproduct prd-test
	\environment ../env-test
	\placecontent %fails with Undefined control sequence \mytitle
	\component cmp-test
\stopproduct


\startcomponent[cmp-test]
	\product prd-test
	\environment env-test
	%\placecontent %works here
	\startArticle[title={Into the unknown}, author={A. U. Thor}] %author
parameter unused in test, just example of what I expect \startArticle
to look like
	\input knuth
	\stopArticle
\stopcomponent


Any ideas how to make this work?

TIA,

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


             reply	other threads:[~2008-07-31 10:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-31 10:32 Elliot Clifton [this message]
2008-07-31 10:38 ` Wolfgang Schuster
2008-07-31 16:19 Elliot Clifton
2008-08-01  9:45 ` Hans Hagen
2008-08-01 14:12 ` Wolfgang Schuster
2008-08-01 20:01 Elliot Clifton

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=e65d34bf0807310332j7a1c54fex848f4e76d6fedbc3@mail.gmail.com \
    --to=cliftoo@gmail.com \
    --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).