* specify a directory for tex files
@ 2021-05-24 18:44 Jeroen
2021-05-24 19:03 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Jeroen @ 2021-05-24 18:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 239 bytes --]
similar to this for figures
\setupexternalfigures
[directory={./myfigures}]
is there a way to specify a directory for tex files so with
\input{myfile.tex}
the file myfile.tex can be placed in a subdirectory for example
./mytexfiles?
[-- Attachment #1.2: Type: text/html, Size: 366 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: specify a directory for tex files
2021-05-24 18:44 specify a directory for tex files Jeroen
@ 2021-05-24 19:03 ` Wolfgang Schuster
2021-05-25 9:44 ` denis.maier
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2021-05-24 19:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
Jeroen schrieb am 24.05.2021 um 20:44:
> similar to this for figures
>
> \setupexternalfigures
> [directory={./myfigures}]
>
> is there a way to specify a directory for tex files so with
>
> \input{myfile.tex}
>
> the file myfile.tex can be placed in a subdirectory for example
> ./mytexfiles?
\usepath[...]
and
\usesubpath[...]
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: specify a directory for tex files
2021-05-24 19:03 ` Wolfgang Schuster
@ 2021-05-25 9:44 ` denis.maier
2021-05-25 10:05 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: denis.maier @ 2021-05-25 9:44 UTC (permalink / raw)
To: ntg-context
> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Wolfgang
> Schuster
> Gesendet: Montag, 24. Mai 2021 21:04
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Betreff: Re: [NTG-context] specify a directory for tex files
>
> Jeroen schrieb am 24.05.2021 um 20:44:
> > similar to this for figures
> >
> > \setupexternalfigures
> > [directory={./myfigures}]
> >
> > is there a way to specify a directory for tex files so with
> >
> > \input{myfile.tex}
> >
> > the file myfile.tex can be placed in a subdirectory for example
> > ./mytexfiles?
>
> \usepath[...]
>
> and
>
> \usesubpath[...]
>
What's the difference between the two versions?
Denis
>
> __________________________________________________________
> _________________________
> 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://context.aanhet.net archive :
> https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> __________________________________________________________
> _________________________
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: specify a directory for tex files
2021-05-25 9:44 ` denis.maier
@ 2021-05-25 10:05 ` Wolfgang Schuster
2021-05-25 10:17 ` denis.maier
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2021-05-25 10:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
denis.maier@ub.unibe.ch schrieb am 25.05.2021 um 11:44:
>> -----Ursprüngliche Nachricht-----
>> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Wolfgang
>> Schuster
>> Gesendet: Montag, 24. Mai 2021 21:04
>> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
>> Betreff: Re: [NTG-context] specify a directory for tex files
>>
>> Jeroen schrieb am 24.05.2021 um 20:44:
>>> similar to this for figures
>>>
>>> \setupexternalfigures
>>> [directory={./myfigures}]
>>>
>>> is there a way to specify a directory for tex files so with
>>>
>>> \input{myfile.tex}
>>>
>>> the file myfile.tex can be placed in a subdirectory for example
>>> ./mytexfiles?
>>
>> \usepath[...]
>>
>> and
>>
>> \usesubpath[...]
>>
>
> What's the difference between the two versions?
When you have a document where all files are in folder two level deep
like here you can use both commands to tell ConTeXt where to look for
the files.
/document
|
| main.tex
|
|---chapter
| |
| |---file_system
| | ntfs.tex
| | fat32.tex
| |
| |---installation
| windows.tex
| linux.tex
|
|---images
windows.jpg
linux.jpg
macos.jpg
The setup for the example above would be:
\usepath[chapter]
\usesubpath[file_system,installation]
When you use this lookup limit the number of paths and subpaths because
it slows compilation down, there reason for this is that ConTeXt tries
path + subpath combinations until the requested file is found.
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: specify a directory for tex files
2021-05-25 10:05 ` Wolfgang Schuster
@ 2021-05-25 10:17 ` denis.maier
0 siblings, 0 replies; 5+ messages in thread
From: denis.maier @ 2021-05-25 10:17 UTC (permalink / raw)
To: ntg-context
Thanks for the explanation!
> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Wolfgang
> Schuster
> Gesendet: Dienstag, 25. Mai 2021 12:06
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Betreff: Re: [NTG-context] specify a directory for tex files
>
> denis.maier@ub.unibe.ch schrieb am 25.05.2021 um 11:44:
> >> -----Ursprüngliche Nachricht-----
> >> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von
> Wolfgang
> >> Schuster
> >> Gesendet: Montag, 24. Mai 2021 21:04
> >> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> >> Betreff: Re: [NTG-context] specify a directory for tex files
> >>
> >> Jeroen schrieb am 24.05.2021 um 20:44:
> >>> similar to this for figures
> >>>
> >>> \setupexternalfigures
> >>> [directory={./myfigures}]
> >>>
> >>> is there a way to specify a directory for tex files so with
> >>>
> >>> \input{myfile.tex}
> >>>
> >>> the file myfile.tex can be placed in a subdirectory for example
> >>> ./mytexfiles?
> >>
> >> \usepath[...]
> >>
> >> and
> >>
> >> \usesubpath[...]
> >>
> >
> > What's the difference between the two versions?
>
>
> When you have a document where all files are in folder two level deep like
> here you can use both commands to tell ConTeXt where to look for the files.
>
>
> /document
> |
> | main.tex
> |
> |---chapter
> | |
> | |---file_system
> | | ntfs.tex
> | | fat32.tex
> | |
> | |---installation
> | windows.tex
> | linux.tex
> |
> |---images
> windows.jpg
> linux.jpg
> macos.jpg
>
>
> The setup for the example above would be:
>
> \usepath[chapter]
>
> \usesubpath[file_system,installation]
>
>
> When you use this lookup limit the number of paths and subpaths because it
> slows compilation down, there reason for this is that ConTeXt tries path +
> subpath combinations until the requested file is found.
>
> 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://context.aanhet.net archive :
> https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> __________________________________________________________
> _________________________
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-05-25 10:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24 18:44 specify a directory for tex files Jeroen
2021-05-24 19:03 ` Wolfgang Schuster
2021-05-25 9:44 ` denis.maier
2021-05-25 10:05 ` Wolfgang Schuster
2021-05-25 10:17 ` denis.maier
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).