ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer <hansm@science.uva.nl>
Subject: Re: document structure
Date: Sat, 22 Jul 2006 13:38:16 +0200	[thread overview]
Message-ID: <28439B97-4AB7-4F5D-A1C3-019A18D09DE7@science.uva.nl> (raw)
In-Reply-To: <44C1DF93.4060609@elvenkind.com>


On Jul 22, 2006, at 10:19, Taco Hoekwater wrote:

> Hans van der Meer wrote:
>>>
>> Sorry, but I think I do not yet understand and I do not get it right.
>> Next is in a nutshell my setup of the environments, the relevant
>> projects are syllabus-s and syllabus-p
>
> My unsterstanding is that you do it like  this:
>
>    % syllabys-s.tex
>    \project syllabus
>    \localenvironment syllabus-local-setup
>    \starttext
>    \stoptext
>
>    % syllabys-p.tex
>    \project syllabus
>    \localenvironment syllabus-local-setup
>    \starttext
>    \stoptext
>
>    % syllabus.tex:
>    \environment syllabus-setup
>
>    % syllabus-setup.tex
>     \writestring{global env settings}
>
>    % syllabus-local-setup.tex
>    \startlocalenvironment[syllabus-s]
>      \writestring{this is only for the screen version}
>    \stoplocalenvironment
>    \startlocalenvironment[syllabus-p]
>      \writestring{this is only for the print version}
>    \stoplocalenvironment
>
> (Untested)
>

No, I must be my fault, but even with the above help I cannot get it  
working.
As far as I can figure out the value of \currentproduct seems NOT to  
guard entry to the body of \startlocalenvironment[syllabus-s].  
Although the manual here explicitely mentions "component or product",  
I cannot see that happen. Also \localenvironment seems to accept any  
file for reading instead of rejecting everything except the current  
product/component.

In the code of core-job.tex I read:

% more or less replaced by modes
\setvalue{\e!start\v!localenvironment}[#1]%
....

Must I conclude from this that localenvironments are more or less  
passe? So that I can better avoid them and use modes (after  
\enablemode) as discriminating criterium?

Hans van der Meer

  reply	other threads:[~2006-07-22 11:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-21 10:20 Hans van der Meer
2006-07-21 12:58 ` Taco Hoekwater
2006-07-21 18:02   ` Hans van der Meer
2006-07-22  8:19     ` Taco Hoekwater
2006-07-22 11:38       ` Hans van der Meer [this message]
2006-07-22 12:19         ` document structure (small bug) Taco Hoekwater
2006-07-22 12:40           ` Hans van der Meer

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=28439B97-4AB7-4F5D-A1C3-019A18D09DE7@science.uva.nl \
    --to=hansm@science.uva.nl \
    --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).