From: Javier M Mora <jmmora@us.es>
To: ntg-context@ntg.nl
Subject: Re: searching in subdirectories with project structure
Date: Thu, 31 Mar 2016 09:42:12 +0200 [thread overview]
Message-ID: <56FCD4D4.5030105@us.es> (raw)
In-Reply-To: <56FC0C0C.7080102@us.es>
On 30/03/16 19:25, Javier M Mora wrote:
> Hi, (this is my first email to the list)
>
> I've created a project for my Thesis. The file tree is:
>
> /prod_thesis/
> /prod_thesis.tex
> /envi_thesis.tex
> /comp_chap1/
> /comp_chap1.tex
> /envi_chap1.tex
> /images/
> /image1.jpg
> /image2.jpg
> (...)
> /tables/
> /table1.tex
> /table2.tex
> (...)
> /comp_chap2/
> /comp_chap2.tex
> /envi_chap2.tex
> /images/
> /image1b.jpg
> /image2b.jpg
> (...)
> /tables/
> /table1b.tex
> /table2b.tex
> (...)
>
> (...)
>
[...]
> comp_chap1.tex has:
> \startcomponent comp_chap1.tex
> \product prod_thesis
> \environment envi_chap1
>
> blah blah blah
>
> \placefigure[here][fig:img1]{img1}{
> \externalfigure[image1.jpg]
> }
>
> blah blah blah
>
> \input tables/table1
>
> blah blah blah
> \stopcomponent
First and second answer:
\input command is a tex command and inserts file as is. It is possible
to use \component inside another component. \component command obey
\usepath directive.
I can, at this moment, insert tex files into another tex files and keep
directory dependences. But Images doesn't work yet. :-(
>
> Questions:
>
> What is the canonical way to keep subdirectories of dependencies in a
> component? (to be reused later in product compilation)
>
The question is the same (but now for images only).
> I thought \usepath was to indicate where look for input files. I have to
> use "\input tables/table1" to find table 1. \usepath didn't work in
> envi_chap1.tex.
I answered that. \usepath only works with \component, \product, \project
and it doesn't work with \input.
> Cheers.
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2016-03-31 7:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-30 17:25 Javier M Mora
2016-03-31 7:42 ` Javier M Mora [this message]
2016-04-01 9:47 ` [SOLVED] " Javier M Mora
2016-05-05 10:24 ` luigi scarso
2016-05-06 10:02 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56FCD4D4.5030105@us.es \
--to=jmmora@us.es \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).