ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Project structure and path evaluation
@ 2013-04-25 12:10 contact
  0 siblings, 0 replies; only message in thread
From: contact @ 2013-04-25 12:10 UTC (permalink / raw)
  To: ntg-context

Hello,

I am experimenting with the project structure
feature of ConTeXt and so far it seems that paths
used with \project, \product and \component are relative
to the current working directory of the context program.

What I am doing right now, I use paths relative to my
project file "project.tex".

project.tex:
\startproject proj
    \product product1/product.tex
    \product product2/product.tex
\stopproject

product1/product.tex:
\startproduct prod1
    \component product1/components/component1.tex
    % I would like to use "components/component1.tex"
    % that is a path relative to the current file
\stopproduct

This is really annoying as it makes it difficult to organize
files into directories. I would like the path to be relative
to the file containing the command. I tried \usepath[{.}]
without success. So, is this possible in ConTeXt?

Also, at the end of the PDF on project structure there is
an example with \startdocument ... \stopdocument. But I don't
understand where I should use these commands. From the source,
it looks like \starttex ... \stoptext with the ability to register
a before and after command. I am under the impression that I have
to choose between using :
- the project structure (project, product and component)
- the \startdocument and \stopdocument commands
- the \starttex and \stoptext commands

But that I should not mix them together. Is this right?

Regards,

Thomas Corbière
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-25 12:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-25 12:10 Project structure and path evaluation contact

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).