ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [***SPAM***] File access for sourc, graphic, and pictures
@ 2013-03-08  5:14 hwitloc
  2013-03-08  8:02 ` Marco Patzer
  0 siblings, 1 reply; 4+ messages in thread
From: hwitloc @ 2013-03-08  5:14 UTC (permalink / raw)
  To: ntg-context


I am just learning ConTeXt, so please bare with me.  In all of the documentation that I've read so far, it shows the names of imported photographs, graphs, blocks, etc as a simple filename without any filename extensions or pathnames. 

Having a bunch of photographs anc charts files in the same directory as te tex files reallys clutters things up.   I'd like to store photographs, etc., to use used in a subdirectory of the project.  Also might be nice to have subdirectories for the sourc
e of each part of a book.  

How do experienced people handle organizing files for large-ish scale projects such as a book?  It would be educational to learn how this is handled.

Thanks
___________________________________________________________________________________
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] 4+ messages in thread

* Re: [***SPAM***] File access for sourc, graphic, and  pictures
  2013-03-08  8:02 ` Marco Patzer
@ 2013-03-08  7:22   ` d.henman
  2013-03-11  7:30   ` Keith J. Schultz
  1 sibling, 0 replies; 4+ messages in thread
From: d.henman @ 2013-03-08  7:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Marko, thanks for the clear and very useful information.


Marco Patzer <homerow@lavabit.com> wrote:
> Avoid hard coded path names in your files, it makes them less
> portable. ConTeXt adds the file name extension automatically,
> there's usually no need to specify it manually.
>
>>.....
> 
> Have a look at the project structure.
> 
>   http://pragma-ade.com/general/magazines/mag-1101.pdf
> 
> To set the directory for included images, use:
> 
>   \setupexternalfigures
>     [directory=images]
> 
> To set the directory for included text files, use:
> 
>   \usepath [<directory>] e.g.
>   \usepath [chapters]
___________________________________________________________________________________
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] 4+ messages in thread

* Re: [***SPAM***] File access for sourc, graphic, and pictures
  2013-03-08  5:14 [***SPAM***] File access for sourc, graphic, and pictures hwitloc
@ 2013-03-08  8:02 ` Marco Patzer
  2013-03-08  7:22   ` d.henman
  2013-03-11  7:30   ` Keith J. Schultz
  0 siblings, 2 replies; 4+ messages in thread
From: Marco Patzer @ 2013-03-08  8:02 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1254 bytes --]

On 2013–03–08 hwitloc@gmail.com wrote:

> I am just learning ConTeXt, so please bare with me.  In all of the
> documentation that I've read so far, it shows the names of
> imported photographs, graphs, blocks, etc as a simple filename
> without any filename extensions or pathnames.

Avoid hard coded path names in your files, it makes them less
portable. ConTeXt adds the file name extension automatically,
there's usually no need to specify it manually.

> Having a bunch of photographs anc charts files in the same
> directory as te tex files reallys clutters things up.   I'd like
> to store photographs, etc., to use used in a subdirectory of the
> project.  Also might be nice to have subdirectories for the sourc
> e of each part of a book.  
> 
> How do experienced people handle organizing files for large-ish
> scale projects such as a book?  It would be educational to learn
> how this is handled.

Have a look at the project structure.

  http://pragma-ade.com/general/magazines/mag-1101.pdf

To set the directory for included images, use:

  \setupexternalfigures
    [directory=images]

To set the directory for included text files, use:

  \usepath [<directory>] e.g.
  \usepath [chapters]


Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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] 4+ messages in thread

* Re: [***SPAM***] File access for sourc, graphic, and pictures
  2013-03-08  8:02 ` Marco Patzer
  2013-03-08  7:22   ` d.henman
@ 2013-03-11  7:30   ` Keith J. Schultz
  1 sibling, 0 replies; 4+ messages in thread
From: Keith J. Schultz @ 2013-03-11  7:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi All,


Am 08.03.2013 um 09:02 schrieb Marco Patzer <homerow@lavabit.com>:

> On 2013–03–08 hwitloc@gmail.com wrote:
> 
>> I am just learning ConTeXt, so please bare with me.  In all of the
>> documentation that I've read so far, it shows the names of
>> imported photographs, graphs, blocks, etc as a simple filename
>> without any filename extensions or pathnames.
> 
> Avoid hard coded path names in your files, it makes them less
> portable. ConTeXt adds the file name extension automatically,
> there's usually no need to specify it manually.

IMHO, I would disagree. That is, using hardcoded full paths breaks portability.
The trick is using relative paths! In other words using paths "./dir/file" or "../dir/file"
is very portable. 

Furthermore, using relative paths helps finding the files, especially for larger
projects or with collaborative work. Thats is for editing.

Please, do not get me wrong, using the theproject environments does have 
its caveats.

regards
	Keith.


___________________________________________________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2013-03-11  7:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-08  5:14 [***SPAM***] File access for sourc, graphic, and pictures hwitloc
2013-03-08  8:02 ` Marco Patzer
2013-03-08  7:22   ` d.henman
2013-03-11  7:30   ` Keith J. Schultz

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).