* My own module.
@ 2012-09-29 20:11 Andre Caldas
2012-10-01 17:31 ` Andre Caldas
2012-10-01 17:37 ` Wolfgang Schuster
0 siblings, 2 replies; 6+ messages in thread
From: Andre Caldas @ 2012-09-29 20:11 UTC (permalink / raw)
To: ConTeXt users
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?
Thank you,
André Caldas.
___________________________________________________________________________________
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] 6+ messages in thread
* Re: My own module.
2012-09-29 20:11 My own module Andre Caldas
@ 2012-10-01 17:31 ` Andre Caldas
2012-10-01 17:37 ` Wolfgang Schuster
1 sibling, 0 replies; 6+ messages in thread
From: Andre Caldas @ 2012-10-01 17:31 UTC (permalink / raw)
To: ConTeXt users
> Where should I put a module if I have the following project strucutre?
Can't I have a module inside a project?
___________________________________________________________________________________
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] 6+ messages in thread
* Re: My own module.
2012-09-29 20:11 My own module Andre Caldas
2012-10-01 17:31 ` Andre Caldas
@ 2012-10-01 17:37 ` Wolfgang Schuster
2012-10-01 17:59 ` Andre Caldas
1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2012-10-01 17:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: My own module.
2012-10-01 17:37 ` Wolfgang Schuster
@ 2012-10-01 17:59 ` Andre Caldas
2012-10-01 18:22 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Andre Caldas @ 2012-10-01 17:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hello!
>> Where should I put a module if I have the following project strucutre?
>>
> You can load your module with \usemodule[…]
> from your environment file.
So, inside "environments/load_mymodule.tex" I call
\usemodule[mymodule]
But how will it be found?
My module is composed of a mkiv and a lua file. When I load it, the
mkiv seems to get loaded, but the lua file is not being loaded. How do
I get the "lua" file to get loaded as well?
Cheers,
André Caldas.
___________________________________________________________________________________
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] 6+ messages in thread
* Re: My own module.
2012-10-01 17:59 ` Andre Caldas
@ 2012-10-01 18:22 ` Wolfgang Schuster
2012-10-01 19:09 ` Andre Caldas
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2012-10-01 18:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 01.10.2012 um 19:59 schrieb Andre Caldas <andre.em.caldas@gmail.com>:
> Hello!
>
>>> Where should I put a module if I have the following project strucutre?
>>>
>> You can load your module with \usemodule[…]
>> from your environment file.
>
> So, inside "environments/load_mymodule.tex" I call
> \usemodule[mymodule]
>
> But how will it be found?
> My module is composed of a mkiv and a lua file. When I load it, the
> mkiv seems to get loaded, but the lua file is not being loaded. How do
> I get the "lua" file to get loaded as well?
You have to load the lua file in your module, e.g. \ctxloadluafile{my_module}.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: My own module.
2012-10-01 18:22 ` Wolfgang Schuster
@ 2012-10-01 19:09 ` Andre Caldas
0 siblings, 0 replies; 6+ messages in thread
From: Andre Caldas @ 2012-10-01 19:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
> You have to load the lua file in your module, e.g.
> \ctxloadluafile{my_module}.
Thank you!
André Caldas.
___________________________________________________________________________________
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] 6+ messages in thread
end of thread, other threads:[~2012-10-01 19:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-29 20:11 My own module Andre Caldas
2012-10-01 17:31 ` Andre Caldas
2012-10-01 17:37 ` Wolfgang Schuster
2012-10-01 17:59 ` Andre Caldas
2012-10-01 18:22 ` Wolfgang Schuster
2012-10-01 19:09 ` Andre Caldas
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).