* Include path
@ 2011-03-27 17:41 Cecil Westerhof
2011-03-27 17:47 ` Wolfgang Schuster
2011-03-27 20:42 ` Cecil Westerhof
0 siblings, 2 replies; 7+ messages in thread
From: Cecil Westerhof @ 2011-03-27 17:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 587 bytes --]
I defined some things I will use often. At the moment I do something like:
\input /home/cecil/Documenten/context/include/standard-init.inc
But I would prefer to do something like:
\input standard-init.inc
Is shorter and when the path changes there is nothing to update.
How should I implement this?
Also is it possible to \input a file relative to the current document?
For example in my standard-init.inc I have:
\ctxloadluafile{/home/cecil/Documenten/context/include/lua/getdate}
but I would prefer something like:
\ctxloadluafile{lua/getdate}
--
Cecil Westerhof
[-- Attachment #1.2: Type: text/html, Size: 661 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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] 7+ messages in thread
* Re: Include path
2011-03-27 17:41 Include path Cecil Westerhof
@ 2011-03-27 17:47 ` Wolfgang Schuster
2011-03-27 17:58 ` Aditya Mahajan
2011-03-27 20:42 ` Cecil Westerhof
1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2011-03-27 17:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 27.03.2011 um 19:41 schrieb Cecil Westerhof:
> I defined some things I will use often. At the moment I do something like:
> \input /home/cecil/Documenten/context/include/standard-init.inc
>
> But I would prefer to do something like:
> \input standard-init.inc
>
> Is shorter and when the path changes there is nothing to update.
> How should I implement this?
Make a module out of the code and put it in texmf-local.
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] 7+ messages in thread
* Re: Include path
2011-03-27 17:47 ` Wolfgang Schuster
@ 2011-03-27 17:58 ` Aditya Mahajan
2011-03-27 18:39 ` Cecil Westerhof
2011-03-27 18:42 ` Peter Münster
0 siblings, 2 replies; 7+ messages in thread
From: Aditya Mahajan @ 2011-03-27 17:58 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sun, 27 Mar 2011, Wolfgang Schuster wrote:
>
> Am 27.03.2011 um 19:41 schrieb Cecil Westerhof:
>
>> I defined some things I will use often. At the moment I do something like:
>> \input /home/cecil/Documenten/context/include/standard-init.inc
>>
>> But I would prefer to do something like:
>> \input standard-init.inc
>>
>> Is shorter and when the path changes there is nothing to update.
>> How should I implement this?
>
> Make a module out of the code and put it in texmf-local.
Or modify TEXINPUTS and LUAINPUTS variables.
Aditya
___________________________________________________________________________________
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] 7+ messages in thread
* Re: Include path
2011-03-27 17:58 ` Aditya Mahajan
@ 2011-03-27 18:39 ` Cecil Westerhof
2011-03-27 18:42 ` Peter Münster
1 sibling, 0 replies; 7+ messages in thread
From: Cecil Westerhof @ 2011-03-27 18:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1337 bytes --]
2011/3/27 Aditya Mahajan <adityam@umich.edu>
> I defined some things I will use often. At the moment I do something like:
>>> \input /home/cecil/Documenten/context/include/standard-init.inc
>>>
>>> But I would prefer to do something like:
>>> \input standard-init.inc
>>>
>>> Is shorter and when the path changes there is nothing to update.
>>> How should I implement this?
>>>
>>
>> Make a module out of the code and put it in texmf-local.
>>
>
>
> Or modify TEXINPUTS and LUAINPUTS variables.
>
Both where not defined in my environment. I now have defined:
export TEXINPUTS=.:${TEXROOT}:${HOME}/ConTeXt-inc
This takes care of my defined stuff.
There is only one problem. I do:
\usemodule[fancybreak]
\definefancybreak[myblank][indentnext=no]
This worked before, but now I get:
resolvers > modules > not found: 'fancybreak'
! Undefined control sequence.
system > tex > error on line 27 in file
/home/cecil/ConTeXt-inc/layout-init.inc: Undefined control sequence ...
17 \setuphead[subsection][before={\myblank[big,small]
\testpage[10]},style={\bf}]
18
19 \setuppagenumbering[state=stop]
20
21 \definelayout[pagenumbers][
22 footer=10mm,
23 ]
24
25 \usemodule[fancybreak]
26
27 >> \definefancybreak[myblank][indentnext=no]
What else do I have to do?
--
Cecil Westerhof
[-- Attachment #1.2: Type: text/html, Size: 1993 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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] 7+ messages in thread
* Re: Include path
2011-03-27 17:58 ` Aditya Mahajan
2011-03-27 18:39 ` Cecil Westerhof
@ 2011-03-27 18:42 ` Peter Münster
2011-03-27 18:53 ` Cecil Westerhof
1 sibling, 1 reply; 7+ messages in thread
From: Peter Münster @ 2011-03-27 18:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
Aditya Mahajan <adityam@umich.edu> writes:
> Or modify TEXINPUTS and LUAINPUTS variables.
I remember, that setting TEXINPUTS is not recommended. See also:
http://wiki.contextgarden.net/Mark_IV#Troubleshooting
Did that change?
--
Peter
___________________________________________________________________________________
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] 7+ messages in thread
* Re: Include path
2011-03-27 18:42 ` Peter Münster
@ 2011-03-27 18:53 ` Cecil Westerhof
0 siblings, 0 replies; 7+ messages in thread
From: Cecil Westerhof @ 2011-03-27 18:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 539 bytes --]
2011/3/27 Peter Münster <pmlists@free.fr>
> Aditya Mahajan <adityam@umich.edu> writes:
>
> > Or modify TEXINPUTS and LUAINPUTS variables.
>
> I remember, that setting TEXINPUTS is not recommended. See also:
> http://wiki.contextgarden.net/Mark_IV#Troubleshooting
>
The mentioned problem is circumvented by using:
export TEXINPUTS=.:${TEXROOT}:${HOME}/ConTeXt-inc
The dot makes that first is looked in the current directory. But the module
fancybreak is not found. So there is still a problem.
--
Cecil Westerhof
[-- Attachment #1.2: Type: text/html, Size: 959 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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] 7+ messages in thread
* Re: Include path
2011-03-27 17:41 Include path Cecil Westerhof
2011-03-27 17:47 ` Wolfgang Schuster
@ 2011-03-27 20:42 ` Cecil Westerhof
1 sibling, 0 replies; 7+ messages in thread
From: Cecil Westerhof @ 2011-03-27 20:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 920 bytes --]
2011/3/27 Cecil Westerhof <cldwesterhof@gmail.com>
> I defined some things I will use often. At the moment I do something like:
> \input /home/cecil/Documenten/context/include/standard-init.inc
>
> But I would prefer to do something like:
> \input standard-init.inc
>
> Is shorter and when the path changes there is nothing to update.
> How should I implement this?
>
> Also is it possible to \input a file relative to the current document?
>
> For example in my standard-init.inc I have:
> \ctxloadluafile{/home/cecil/Documenten/context/include/lua/getdate}
> but I would prefer something like:
> \ctxloadluafile{lua/getdate}
>
For the moment I defined a shell variable. I just have to call context like
this:
context --path=${TEX_INC} ebookTimeManagement
Does not work for lua files, but they will only be loaded from included
files -I think-, so that is less of a problem.
--
Cecil Westerhof
[-- Attachment #1.2: Type: text/html, Size: 1223 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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] 7+ messages in thread
end of thread, other threads:[~2011-03-27 20:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-27 17:41 Include path Cecil Westerhof
2011-03-27 17:47 ` Wolfgang Schuster
2011-03-27 17:58 ` Aditya Mahajan
2011-03-27 18:39 ` Cecil Westerhof
2011-03-27 18:42 ` Peter Münster
2011-03-27 18:53 ` Cecil Westerhof
2011-03-27 20:42 ` Cecil Westerhof
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).