specify a directory for tex files
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?
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
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Wolfgang Schuster Gesendet: Montag, 24. Mai 2021 21:04 An: mailing list for ConTeXt users 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 __________________________________________________________ _________________________
denis.maier@ub.unibe.ch schrieb am 25.05.2021 um 11:44:
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Wolfgang Schuster Gesendet: Montag, 24. Mai 2021 21:04 An: mailing list for ConTeXt users 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
Thanks for the explanation!
-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Wolfgang Schuster Gesendet: Dienstag, 25. Mai 2021 12:06 An: mailing list for ConTeXt users 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
Im Auftrag von Wolfgang Schuster Gesendet: Montag, 24. Mai 2021 21:04 An: mailing list for ConTeXt users 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 __________________________________________________________ _________________________
participants (3)
-
denis.maier@ub.unibe.ch
-
Jeroen
-
Wolfgang Schuster