Re: [NTG-context] export

2010-09-23 Thread Henning Hraban Ramm
Am 2010-09-23 um 01:26 schrieb Vyatcheslav Yatskovsky: Please tell an (really) unlucky person who didn't visited the conference (like me), what \setupbackeds[export=yes] should do at all? You get the contents of your (well-structured) ConTeXt document as XML ouput, extension .export,

[NTG-context] Context to MP

2010-09-23 Thread Procházka Lukáš
Hello, I'd like to ask - - where could I find a list of variables which (Con)TeX(t) defines to MetaPost scope? When I browsed the Hans' presentations, I encountered PaperWidth, PaperHeight, Page etc. (see e.g. s-pre-22.tex). I didn't find them mentioned/explained in any manual (especially:

Re: [NTG-context] Context to MP

2010-09-23 Thread Wolfgang Schuster
Am 23.09.2010 um 09:40 schrieb Procházka Lukáš: Hello, I'd like to ask - - where could I find a list of variables which (Con)TeX(t) defines to MetaPost scope? When I browsed the Hans' presentations, I encountered PaperWidth, PaperHeight, Page etc. (see e.g. s-pre-22.tex). I didn't

[NTG-context] Lua:mplib

2010-09-23 Thread Procházka Lukáš
Hello, I'm looking for some stuff about calling MP from ConTeXt Lua. The only thing I found is a short reference at http://www.luatex.org/svn/trunk/manual/luatexref-t.pdf, but even when I read some basics (pages 79-83), I don't even know how to draw a line between two points. So I'd like to

Re: [NTG-context] Problem with --autopdf in current beta

2010-09-23 Thread Hans Hagen
On 23-9-2010 6:40, Lutz Haseloff wrote: Hi Hans, Hi all, with the last beta i get following error message: mtxrun --autogenerate --script context --autopdf --pdf callunatest.tex al/texmf-context/scripts/context/lua/mtx-context.lua:649: attempt to call field 'setmethod' (a nil

Re: [NTG-context] Context to MP

2010-09-23 Thread Jaroslav Hajtmar
Hello, I do not know whether I have correctly understood the question, but what you write nothing to do with MP. Values paperwidth, paperheight etc ... ConTeXt determining the value of paper size (as well as the pagewidth, paperheight, etc stored values of height and všířce pages) and can be

Re: [NTG-context] Problem with --autopdf in current beta

2010-09-23 Thread Lutz Haseloff
sorry for the noise, I had an extra l-pdfview.lua in my working directory :-( 2010/9/23 Hans Hagen pra...@wxs.nl: On 23-9-2010 6:40, Lutz Haseloff wrote: Hi Hans, Hi all, with the last beta i get following error message: mtxrun --autogenerate --script context --autopdf --pdf

Re: [NTG-context] Lua:mplib

2010-09-23 Thread Wolfgang Schuster
Am 23.09.2010 um 09:53 schrieb Procházka Lukáš: Hello, I'm looking for some stuff about calling MP from ConTeXt Lua. The only thing I found is a short reference at http://www.luatex.org/svn/trunk/manual/luatexref-t.pdf, but even when I read some basics (pages 79-83), I don't even know

Re: [NTG-context] Context to MP

2010-09-23 Thread Alan BRASLAU
On Thursday 23 September 2010 09:40:36 Procházka Lukáš wrote: Hello, I'd like to ask - - where could I find a list of variables which (Con)TeX(t) defines to MetaPost scope? When I browsed the Hans' presentations, I encountered PaperWidth, PaperHeight, Page etc. (see e.g. s-pre-22.tex).

[NTG-context] \startnarrower and TABLEs

2010-09-23 Thread Patrick Gundlach
Hi, my goal is to make a table that is as wide as the current \startnarrower ... \stopnarrower part (thanks to the answer to this question on tex.stackexchange.com: http://tex.stackexchange.com/q/3381/243 )

Re: [NTG-context] Lua:mplib

2010-09-23 Thread Philipp Gesang
On 2010-09-23 09:53:38, Procházka Lukáš wrote: So I'd like to find a tutorial or examples or a deeper reference about how to call MP via Lua from ConTeXt. - Any idea? Hi Lukáš, this doesn't seem to be implemented yet, cf. this post:

Re: [NTG-context] Lua:mplib

2010-09-23 Thread luigi scarso
2010/9/23 Procházka Lukáš l...@pontex.cz: So I'd like to find a tutorial or examples or a deeper reference about how to call MP via Lua from ConTeXt. - Any idea? As usual browse the sources search for mplib -- they are not so complicated to read -- luigi

Re: [NTG-context] \startnarrower and TABLEs

2010-09-23 Thread Wolfgang Schuster
Am 23.09.2010 um 10:14 schrieb Patrick Gundlach: Hi, my goal is to make a table that is as wide as the current \startnarrower ... \stopnarrower part (thanks to the answer to this question on tex.stackexchange.com: http://tex.stackexchange.com/q/3381/243 )

Re: [NTG-context] Lua:mplib

2010-09-23 Thread Procházka Lukáš
Thanks for the answers to all... It seems that I'm trying to do similar things as someone else was trying before - - use of context.MPdrawing() looks best at the moment. Maybe it will become deprecated as soon as Lua involves MP. Best, Lukas On Thu, 23 Sep 2010 10:20:23 +0200, Philipp

Re: [NTG-context] Context to MP

2010-09-23 Thread Procházka Lukáš
Thanks Wolfgang, I got it. Cheers, Lukas On Thu, 23 Sep 2010 09:50:20 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 23.09.2010 um 09:40 schrieb Procházka Lukáš: Hello, I'd like to ask - - where could I find a list of variables which (Con)TeX(t) defines to MetaPost

Re: [NTG-context] \startnarrower and TABLEs

2010-09-23 Thread Patrick Gundlach
Hello Wolfgang, Use the “textwidth” key but keep in mind with the linecorrection you can use split tables, for tables which use indent from \startnarrower and split across pages you can use tabulate. I am afraid I don't get the full meaning of your answer. When I use tabulate, I have

Re: [NTG-context] \startnarrower and TABLEs

2010-09-23 Thread Wolfgang Schuster
Am 23.09.2010 um 10:48 schrieb Patrick Gundlach: Hello Wolfgang, Use the “textwidth” key but keep in mind with the linecorrection you can use split tables, for tables which use indent from \startnarrower and split across pages you can use tabulate. I am afraid I don't get the full

Re: [NTG-context] \startnarrower and TABLEs

2010-09-23 Thread Patrick Gundlach
Hello Wolfgang, Sorry but i don’t know what you mean, in my example the tabulate has the same width as the text in the narrower environment. Insert an \HL and you'll see that this a bit strange. \starttext \input knuth \startnarrower \input knuth \starttabulate[|p|p|] \HL

Re: [NTG-context] \startnarrower and TABLEs

2010-09-23 Thread Wolfgang Schuster
Am 23.09.2010 um 11:00 schrieb Patrick Gundlach: Hello Wolfgang, Sorry but i don’t know what you mean, in my example the tabulate has the same width as the text in the narrower environment. Insert an \HL and you'll see that this a bit strange. You can use \HR, it has more spacing before

Re: [NTG-context] Lua:mplib

2010-09-23 Thread Hans Hagen
On 23-9-2010 10:35, Procházka Lukáš wrote: Thanks for the answers to all... It seems that I'm trying to do similar things as someone else was trying before - - use of context.MPdrawing() looks best at the moment. Maybe it will become deprecated as soon as Lua involves MP. it is unlikely to

Re: [NTG-context] \startnarrower and TABLEs

2010-09-23 Thread Patrick Gundlach
You can use \HR, it has more spacing before and after the line but it works correct in narrower text and itemize. Sorry for the stupid question, but how do I use \HR? \starttabulate[|p|p|] \HR \NC \input ward \NC \input zapf \NC\NR \HR \stoptabulate gives me a misplaced noalign. Patrick

Re: [NTG-context] \startnarrower and TABLEs

2010-09-23 Thread Wolfgang Schuster
Am 23.09.2010 um 11:27 schrieb Patrick Gundlach: You can use \HR, it has more spacing before and after the line but it works correct in narrower text and itemize. Sorry for the stupid question, but how do I use \HR? \starttabulate[|p|p|] \HR \NC \input ward \NC \input zapf \NC\NR

Re: [NTG-context] A rose by any other name ....

2010-09-23 Thread Wolfgang Schuster
Am 16.09.2010 um 00:34 schrieb Aditya Mahajan: Hi, Is it possible to change the name of the font as it appears in the pdf file? More specifically, I am using Termes font, but I want that the document properties to show the name of the font as Times. Is that possible? Is doing so a

[NTG-context] [OT] ghostscript 9.00

2010-09-23 Thread luigi scarso
http://ghostscript.com/releases/ Not so OT, btw: it's interesting for its support of Color Management. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Philipp Gesang
On 2010-09-21 21:47:35, Hans Hagen wrote: On 21-9-2010 8:39, Philipp Gesang wrote: * Can be circumvented via “\dontleavehmode”. Alan ran into this at the ctx conference and it is under investigation. Hi, in case this helps with debugging: you can’t work around the issue by means of

Re: [NTG-context] [OT] ghostscript 9.00

2010-09-23 Thread luigi scarso
On Thu, Sep 23, 2010 at 1:57 PM, luigi scarso luigi.sca...@gmail.com wrote: http://ghostscript.com/releases/ Not so OT, btw: it's interesting for its support of Color Management. It fails on mk.pdf -- luigi ___

Re: [NTG-context] export

2010-09-23 Thread Vyatcheslav Yatskovsky
Please tell an (really) unlucky person who didn't visited the conference (like me), what \setupbackeds[export=yes] should do at all? You get the contents of your (well-structured) ConTeXt document as XML ouput, extension .export, intended for tagged PDF use (e.g. PDF/A), but of course usable

Re: [NTG-context] export

2010-09-23 Thread Cedric Mauclair
Hi, There is a typo in the link: it should be setupbackends and not setupbackeds. The command is fine though. Regards. -- Cédric On Thu, Sep 23, 2010 at 15:00, Vyatcheslav Yatskovsky yatskov...@gmail.com wrote: Please tell an (really) unlucky person who didn't visited the conference (like

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Hans Hagen
On 23-9-2010 2:32, Philipp Gesang wrote: On 2010-09-2121:47:35, Hans Hagen wrote: On 21-9-2010 8:39, Philipp Gesang wrote: * Can be circumvented via “\dontleavehmode”. Alan ran into this at the ctx conference and it is under investigation. Hi, in case this helps with debugging: you

Re: [NTG-context] export

2010-09-23 Thread Jelle Huisman
On 22/09/10 06:45, Hans Hagen wrote: \setupbackeds[export=yes] You will also get a file called jobname.export which represents the document in xml format. You can postprocess such an export to for instance html. It's still somewhat experimental but also fun. Hi Hans, Thanks! this is a

Re: [NTG-context] export

2010-09-23 Thread Hans Hagen
On 23-9-2010 3:55, Jelle Huisman wrote: On 22/09/10 06:45, Hans Hagen wrote: \setupbackeds[export=yes] You will also get a file called jobname.export which represents the document in xml format. You can postprocess such an export to for instance html. It's still somewhat experimental but also

Re: [NTG-context] A rose by any other name ....

2010-09-23 Thread Aditya Mahajan
On Thu, 23 Sep 2010, Wolfgang Schuster wrote: Am 16.09.2010 um 00:34 schrieb Aditya Mahajan: Hi, Is it possible to change the name of the font as it appears in the pdf file? More specifically, I am using Termes font, but I want that the document properties to show the name of the font as

Re: [NTG-context] export

2010-09-23 Thread Aditya Mahajan
On Thu, 23 Sep 2010, Hans Hagen wrote: On 23-9-2010 3:55, Jelle Huisman wrote: On 22/09/10 06:45, Hans Hagen wrote: \setupbackeds[export=yes] You will also get a file called jobname.export which represents the document in xml format. You can postprocess such an export to for instance html.

Re: [NTG-context] export

2010-09-23 Thread Hans Hagen
On 23-9-2010 5:01, Aditya Mahajan wrote: On Thu, 23 Sep 2010, Hans Hagen wrote: On 23-9-2010 3:55, Jelle Huisman wrote: On 22/09/10 06:45, Hans Hagen wrote: \setupbackeds[export=yes] You will also get a file called jobname.export which represents the document in xml format. You can

Re: [NTG-context] export

2010-09-23 Thread Jelle Huisman
On 23/09/10 11:12, Hans Hagen wrote: As xhtml is just xml converted to other tags, I suppose that at some day there will be additional converters. I would only come up with one in the perspective of a project as I have no need for it. There cannot be a universal one-to-one mapping between

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Alan BRASLAU
On Thursday 23 September 2010 15:49:07 Hans Hagen wrote: we know and we will take a look at it next week (as it takes some time to nail down node allocation bugs) As Hans indicated, he is aware of the problem with the lettrine module and will fix it. In the meantime, you can get by using

Re: [NTG-context] A rose by any other name ....

2010-09-23 Thread Khaled Hosny
On Thu, Sep 23, 2010 at 10:51:58AM -0400, Aditya Mahajan wrote: On Thu, 23 Sep 2010, Wolfgang Schuster wrote: Am 16.09.2010 um 00:34 schrieb Aditya Mahajan: Hi, Is it possible to change the name of the font as it appears in the pdf file? More specifically, I am using Termes font,

Re: [NTG-context] A rose by any other name ....

2010-09-23 Thread William Adams
On Sep 23, 2010, at 10:51 AM, Aditya Mahajan wrote: (but ... TNR is not real Times but no one cares for that) Actually, it is the original. See Walter Tracy's wonderful book _Letters of Credit_ for one view of the details, and a follow-up article published in the APHA journal for the balance

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Aditya Mahajan
On Thu, 23 Sep 2010, Alan BRASLAU wrote: On Thursday 23 September 2010 15:49:07 Hans Hagen wrote: we know and we will take a look at it next week (as it takes some time to nail down node allocation bugs) As Hans indicated, he is aware of the problem with the lettrine module and will fix

Re: [NTG-context] A rose by any other name ....

2010-09-23 Thread Aditya Mahajan
On Thu, 23 Sep 2010, William Adams wrote: On Sep 23, 2010, at 10:51 AM, Aditya Mahajan wrote: (but ... TNR is not real Times but no one cares for that) Actually, it is the original. See Walter Tracy's wonderful book _Letters of Credit_ for one view of the details, and a follow-up article

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Alan BRASLAU
On Thursday 23 September 2010 18:24:05 Aditya Mahajan wrote: On Thu, 23 Sep 2010, Alan BRASLAU wrote: On Thursday 23 September 2010 15:49:07 Hans Hagen wrote: we know and we will take a look at it next week (as it takes some time to nail down node allocation bugs) As Hans indicated, he

[NTG-context] Wikifying: footnotes in margin - two questions

2010-09-23 Thread Elias Oltmanns
Hi all, when Hans introduced the criterium option to \setupnote in recent betas of MkIV, he asked me to wikify the problem of typesetting footnotes in the margin in order to demonstrate the usage of that option. There are, however, two questions I'd like to settle first. For one thing, the new

[NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Jaroslav Hajtmar
Hello, masters ... I would like create my first context mkiv module. Can someone please steer me what the first study and where to find some good advice for beginners? Appropriate would be also a simple module, which was easy to read and find out how to do everything correctly. Thanx Jaroslav

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Aditya Mahajan
On Thu, 23 Sep 2010, Alan BRASLAU wrote: On Thursday 23 September 2010 18:24:05 Aditya Mahajan wrote: On Thu, 23 Sep 2010, Alan BRASLAU wrote: On Thursday 23 September 2010 15:49:07 Hans Hagen wrote: we know and we will take a look at it next week (as it takes some time to nail down node

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Alan BRASLAU
On Thursday 23 September 2010 18:46:00 you wrote: Sorry... \placeinitial gobbles \input but here is a standalone example: \setupinitial [ state=start, n=3, distance=-.1pc, ] \starttext \placeinitial This is what Knuth said: \input knuth \stoptext I

Re: [NTG-context] export

2010-09-23 Thread Peter Münster
On Thu, Sep 23 2010, Cedric Mauclair wrote: There is a typo in the link: it should be setupbackends and not setupbackeds. The command is fine though. All right, yet another redirect: http://wiki.contextgarden.net/Reference/en/setupbackends ;)) Cheers, Peter -- Contact information:

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Aditya Mahajan
On Thu, 23 Sep 2010, Alan BRASLAU wrote: On Thursday 23 September 2010 18:46:00 you wrote: Sorry... \placeinitial gobbles \input but here is a standalone example: \setupinitial [ state=start, n=3, distance=-.1pc, ] \starttext \placeinitial This is what Knuth

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Philipp Gesang
On 2010-09-23 12:24:05, Aditya Mahajan wrote: On Thu, 23 Sep 2010, Alan BRASLAU wrote: On Thursday 23 September 2010 15:49:07 Hans Hagen wrote: we know and we will take a look at it next week (as it takes some time to nail down node allocation bugs) As Hans indicated, he is aware of

Re: [NTG-context] Lettrines in MkIV

2010-09-23 Thread Alan BRASLAU
On Thursday 23 September 2010 19:38:46 Aditya Mahajan wrote: %D \macros %D {setupinitial,placeinitial,checkinitial} %D %D {\em To be documented.} Indeed! So you do not consider the source itself as the documentation :) Copied verbatum! I (still) read documentation better

Re: [NTG-context] export

2010-09-23 Thread Steffen Wolfrum
Am 23.09.2010 um 17:12 schrieb Hans Hagen: On 23-9-2010 5:01, Aditya Mahajan wrote: On Thu, 23 Sep 2010, Hans Hagen wrote: On 23-9-2010 3:55, Jelle Huisman wrote: On 22/09/10 06:45, Hans Hagen wrote: \setupbackeds[export=yes] You will also get a file called jobname.export which

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Hans Hagen
On 23-9-2010 6:35, Jaroslav Hajtmar wrote: Hello, masters ... I would like create my first context mkiv module. Can someone please steer me what the first study and where to find some good advice for beginners? Appropriate would be also a simple module, which was easy to read and find out how to

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Steffen Wolfrum
Am 23.09.2010 um 22:32 schrieb Hans Hagen: On 23-9-2010 6:35, Jaroslav Hajtmar wrote: Hello, masters ... I would like create my first context mkiv module. Can someone please steer me what the first study and where to find some good advice for beginners? Appropriate would be also a simple

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Wolfgang Schuster
Am 23.09.2010 um 22:32 schrieb Hans Hagen: On 23-9-2010 6:35, Jaroslav Hajtmar wrote: Hello, masters ... I would like create my first context mkiv module. Can someone please steer me what the first study and where to find some good advice for beginners? Appropriate would be also a simple

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Wolfgang Schuster
Am 23.09.2010 um 22:42 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

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Steffen Wolfrum
Am 23.09.2010 um 22:47 schrieb Wolfgang Schuster: Am 23.09.2010 um 22:42 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

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Hans Hagen
On 23-9-2010 11:08, Steffen Wolfrum wrote: Am 23.09.2010 um 22:47 schrieb Wolfgang Schuster: Am 23.09.2010 um 22:42 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

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread 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?

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Aditya Mahajan
On Thu, 23 Sep 2010, Steffen Wolfrum wrote: Am 23.09.2010 um 22:47 schrieb Wolfgang Schuster: Am 23.09.2010 um 22:42 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

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Aditya Mahajan
On Thu, 23 Sep 2010, Wolfgang Schuster wrote: Can you give more information or a example, you don’t mention which file you process and what’s loaded in them. Consider a simple setup: root-dir/ p-module.tex env-file.tex project-file.tex subdir/

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Steffen Wolfrum
Am 23.09.2010 um 23:17 schrieb Aditya Mahajan: On Thu, 23 Sep 2010, Steffen Wolfrum wrote: Am 23.09.2010 um 22:47 schrieb Wolfgang Schuster: Am 23.09.2010 um 22:42 schrieb Steffen Wolfrum: btw: modules are used to be stored eg. in ~/context/tex/texmf-local/tex/context/third/

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Steffen Wolfrum
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

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Jaroslav Hajtmar
Hello, Thanks very much everyone for your advice, I am certainly now a better starting position ... I will try to learn something ... Maybe it sounds silly but at the very beginning I was surprised by the type of construction: \def\ld{ld} \def\ls{ls} Where do I read about

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Wolfgang Schuster
Am 23.09.2010 um 23:21 schrieb Aditya Mahajan: Basically, module search does not look in parent directories. But you can use a construct like \doifmodeelse{component} {\usemodule[module]} {\usemodule[../module]} Wolfgang

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Aditya Mahajan
On Thu, 23 Sep 2010, Wolfgang Schuster wrote: Am 23.09.2010 um 23:21 schrieb Aditya Mahajan: Basically, module search does not look in parent directories. But you can use a construct like \doifmodeelse{component} {\usemodule[module]} {\usemodule[../module]} And if you are two

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Wolfgang Schuster
Am 23.09.2010 um 23:36 schrieb Jaroslav Hajtmar: Hello, Thanks very much everyone for your advice, I am certainly now a better starting position ... I will try to learn something ... Maybe it sounds silly but at the very beginning I was surprised by the type of construction:

Re: [NTG-context] Info about creating modules for beginners.

2010-09-23 Thread Wolfgang Schuster
Am 23.09.2010 um 23:42 schrieb Aditya Mahajan: On Thu, 23 Sep 2010, Wolfgang Schuster wrote: Am 23.09.2010 um 23:21 schrieb Aditya Mahajan: Basically, module search does not look in parent directories. But you can use a construct like \doifmodeelse{component} {\usemodule[module]}