ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Malte Stien <malte@stien.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Building a Component
Date: Tue, 13 Sep 2016 09:28:35 +1000	[thread overview]
Message-ID: <5BF6D837-DB69-4748-B2E6-D5680E8E57C3@stien.de> (raw)
In-Reply-To: <57D69FB4.8000501@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2533 bytes --]

Hi Wolfgang,

Thank you, that works indeed. It seems to be incorrect on http://wiki.contextgarden.net/Project_structure <http://wiki.contextgarden.net/Project_structure>; see Example Files/Component.

What is the significance of those two lines, though? The documentation states I can use the Component in any Product even if not specified on the \product line. I assume it just makes sure that the environment file for the Product is pulled in, would that be right? Does it do anything else?

Analogous, the \project line just pulls in environment file for the project?

Thank you,
Malte.

--
“The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe. ― Douglas Adams <http://www.goodreads.com/author/show/4.Douglas_Adams>, Dirk Gently's Holistic Detective Agency <http://www.goodreads.com/work/quotes/1042123>
> On 12 Sep 2016, at 22:29 , Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
> 
>> Malte Stien <mailto:malte@stien.de> 12. September 2016 um 13:03
>> Hi all,
>> 
>> I am just familiarising myself with projects/products/components. I have a number of documents that all belong to a large set of Reference Manuals and so far I have built them all separately and have relied a lot on the simple \input... statement. I assume with projects/products/components I might be able to do something much smarter. Let’s see.
>> 
>> I get stuck quite early on, though. I have created a minimal component file ‘component-1.tex’ and when I build it, context runs into what seems to be an infinite recursion. Here is the file:
>> 
>> 
>> \project test-project
>> \product reference-manual-1
> Move the two lines after \startcomponent.
>> \startcomponent component-1
>> \starttext
> You don’t need \starttext/\stoptext when you use product and component files.
> 
> Wolfgang
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 5847 bytes --]

[-- Attachment #2: 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
___________________________________________________________________________________

      reply	other threads:[~2016-09-12 23:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-12 11:03 Malte Stien
2016-09-12 12:29 ` Wolfgang Schuster
2016-09-12 23:28   ` Malte Stien [this message]

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=5BF6D837-DB69-4748-B2E6-D5680E8E57C3@stien.de \
    --to=malte@stien.de \
    --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).