From: "Idris Samawi Hamid ادريس سماوي حامد" <ishamid@colostate.edu>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Project Structure in MkIV
Date: Sun, 30 Oct 2011 07:58:32 -0600 [thread overview]
Message-ID: <op.v353ru1xpw6hmh@ishamid-pc> (raw)
[-- Attachment #1: Type: text/plain, Size: 2120 bytes --]
Dear gang,
I am porting a huge project from mkii to mkiv and am running into
structure problems. I now realize that
\start-stopproject
no longer compiles the entire project, just stick to products and
components. I am also dividing what was one long book into two books, and
I'd like to compile both books at once to keep cross-references between
the two books operative: I've turned the project into a product, the
products into components, and components into inputs. Obviously I'm
running into problems ;-) :
First:One thing that is unclear now is how the \environment is inherited.
Attached is a basic test set.
If I compile the product file islamwalayah.tex, I get the expected output
it appears.
If I compile the component file islamcosmology.tex, the alias \Islam gives
an undefined control sequence. That is, it does not inherit
env-aliases.tex.
If I comment % \Islam the component file compiles, but the layout is not
inherited from env-islamwalayah.tex.
How do I fix this? Any related general advice?
Files listed inline below, attached as well for testing, and
Best wishes
Idris
==========islamwalayah.tex============
\environment env-islamwalayah
\environment env-aliases
\startproduct islamwalayah
\component islamcosmology % Book One
% \component islamspirituality % Book Two
\stopproduct
==================================
=======env-islamwalayah.tex=======
\startenvironment env-islamwalayah
\setuplayout[width=7in]
\stopenvironment
==================================
=========env-aliases.tex==========
\startenvironment env-aliases
\def \Islam{Islām}
\stopenvironment
==================================
=======islamcosmology.tex=========
\startcomponent islamcosmology
\product islamwalayah
% below is actually \input title-cw
\starttext
\Islam
\input tufte
\stoptext
\stopcomponent
==================================
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shīʿī Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
[-- Attachment #2: env-aliases.tex --]
[-- Type: application/x-tex, Size: 69 bytes --]
[-- Attachment #3: env-islamwalayah.tex --]
[-- Type: application/x-tex, Size: 78 bytes --]
[-- Attachment #4: islamcosmology.tex --]
[-- Type: application/x-tex, Size: 157 bytes --]
[-- Attachment #5: islamwalayah.tex --]
[-- Type: application/x-tex, Size: 182 bytes --]
[-- Attachment #6: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2011-10-30 13:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-30 13:58 Idris Samawi Hamid ادريس سماوي حامد [this message]
2011-10-30 16:55 ` Hans Hagen
2011-10-30 17:17 ` Idris Samawi Hamid ادريس سماوي حامد
2011-10-30 17:24 ` Wolfgang Schuster
2011-10-30 17:31 ` Idris Samawi Hamid ادريس سماوي حامد
2011-10-30 17:57 ` Idris Samawi Hamid ادريس سماوي حامد
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=op.v353ru1xpw6hmh@ishamid-pc \
--to=ishamid@colostate.edu \
--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).