ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: My own module.
Date: Mon, 1 Oct 2012 19:37:32 +0200	[thread overview]
Message-ID: <522AFDA8-01E1-44F2-8652-68D5376690A9@gmail.com> (raw)
In-Reply-To: <CADVh14Vrw6=KCr6RZY0LAAHeN2PRTvvDQvDE6nKY9-3EEEk4Lg@mail.gmail.com>


Am 29.09.2012 um 22:11 schrieb Andre Caldas <andre.em.caldas@gmail.com>:

> Where should I put a module if I have the following project strucutre?
> 
> math-books/
>       math-books.tex
>       environments/
>            layout.tex
>       products/
>            book1.tex
>            book1/
>                chapter1.tex
>                chapter2.tex
>            book2.tex
>            book2/
>                chapter1.tex
>                chapter2.tex
> 
> I have a "my_module.lua" and a "my_module.tex".
> Where should I put those files?
> How do I configure my project to use my module?
> How do I call my own module from "book1/chapter1.tex", for example?

You can load your module with \usemodule[…] from your environment file.

It should also help when you put the environment file in the root directory
of your project because when you have “\environment …” in your product
or component files context ail search for it also two directories upwards.

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
___________________________________________________________________________________


  parent reply	other threads:[~2012-10-01 17:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-29 20:11 Andre Caldas
2012-10-01 17:31 ` Andre Caldas
2012-10-01 17:37 ` Wolfgang Schuster [this message]
2012-10-01 17:59   ` Andre Caldas
2012-10-01 18:22     ` Wolfgang Schuster
2012-10-01 19:09       ` Andre Caldas

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=522AFDA8-01E1-44F2-8652-68D5376690A9@gmail.com \
    --to=wolfgang.schuster@gmail.com \
    --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).