ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Steffen Wolfrum <context@st.estfiles.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Info about creating modules for beginners.
Date: Thu, 23 Sep 2010 23:30:02 +0200	[thread overview]
Message-ID: <8F2347FB-8CE7-446E-B304-3D7F2FE11106@st.estfiles.de> (raw)
In-Reply-To: <78A01E48-A117-4758-A125-BB608B184B84@gmail.com>


Am 23.09.2010 um 23:15 schrieb Wolfgang Schuster:

> 
> Am 23.09.2010 um 23:08 schrieb Steffen Wolfrum:
> 
>>>> btw: modules are used to be stored eg. in ~/context/tex/texmf-local/tex/context/third/ folder.
>>>> 
>>>> is is also possible to keep/find them not in texfm tree but in a projects folder? 
>>>> or do I have to use for this purpose environment files?
>>> 
>>> You can put modules in your project folder and these are always loaded before the files in the tex tree.
>> 
>> 
>> Sounds good, but ...
>> 
>> For example I have in a project's folder a project_test file with these line:
>> 
>> \environment Style_Test
>> \usemodule[p-my-test]
>> 
>> Both files (Style_Test.tex and p-my-test.tex are stored next to project_test.tex in the project's folder).
>> The environment file is found without problems ... even when I change the file's name between two runs.
>> 
>> The module is never found.
>> 
>> What is missing?
> 
> Can you give more information or a example, you don’t mention which file you process and what’s loaded in them.



It's like this (mapping context's recommended project structure):

project-dir/
        p-module.tex
        env-file.tex
        project-file.tex
        product-file.tex
        subdir/
               component-file1.tex
               component-file2.tex

The project-file file says
  \environment Style_Test
  \usemodule[p][module]

Now I run from the subdir eg. component-file1.tex:
  the environment was loaded
  the module was not.


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


  parent reply	other threads:[~2010-09-23 21:30 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23 16:35 Jaroslav Hajtmar
2010-09-23 20:32 ` Hans Hagen
2010-09-23 20:42   ` Steffen Wolfrum
2010-09-23 20:47     ` Wolfgang Schuster
2010-09-23 21:08       ` Steffen Wolfrum
2010-09-23 21:15         ` Hans Hagen
2010-09-23 21:15         ` Wolfgang Schuster
2010-09-23 21:21           ` Aditya Mahajan
2010-09-23 21:38             ` Wolfgang Schuster
2010-09-23 21:42               ` Aditya Mahajan
2010-09-23 21:46                 ` Wolfgang Schuster
2010-09-24  4:26                   ` Aditya Mahajan
2010-09-24  7:04                 ` Peter Münster
2010-09-23 21:30           ` Steffen Wolfrum [this message]
2010-09-23 21:36             ` Jaroslav Hajtmar
2010-09-23 21:43               ` Wolfgang Schuster
2010-09-25 15:07                 ` \definenamespace and module setup (was: Info about creating modules for beginners.) Philipp Gesang
2010-09-25 17:35                   ` Wolfgang Schuster
2010-09-27  8:30                     ` Philipp Gesang
2010-09-23 22:08           ` Info about creating modules for beginners Steffen Wolfrum
2010-09-23 21:17         ` Aditya Mahajan
2010-09-23 21:21           ` Steffen Wolfrum
2010-09-23 20:46   ` Wolfgang Schuster
2010-09-26  0:02     ` Aditya Mahajan
2010-09-26 11:24       ` Hans Hagen
2010-09-26 15:48         ` Aditya Mahajan
2010-09-26 14:06       ` Wolfgang Schuster
2010-09-26 15:41         ` Aditya Mahajan
2010-09-26 17:51           ` Peter Münster

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=8F2347FB-8CE7-446E-B304-3D7F2FE11106@st.estfiles.de \
    --to=context@st.estfiles.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).