<div>Thanks. Also, your graphic display of my layout is much better than my description.<br></div><div><br></div><div>Another question: In c/c++ and html, if you have a path in an include statement</div><div>the path is relative to the current file. In LaTeX the path is relative to the master file.</div>
<div>Are these correct observations?</div><br><div class="gmail_quote">On Tue, Dec 15, 2009 at 9:05 PM, Vladimir Lomov <span dir="ltr">&lt;<a href="mailto:lomov.vl@gmail.com">lomov.vl@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div class="h5">On Tue, Dec 15, 2009 at 15:45:19 -0500, david allen wrote:<br>
&gt; I just switched from windows to linux (ubuntu) and have installed texlive<br>
&gt; 2009.<br>
<br>
&gt; I have a ~/texmf directory where I have put some bib and sty files.<br>
<br>
&gt; I have a directory ~/book that contains master.tex. master.tex has things<br>
&gt; like<br>
&gt; \include{chapter1} \include{chaper2} etc. Now, chapter1.tex resides in<br>
&gt; the directory ~/book/chapter1 along with perhaps included graphics files<br>
&gt; and related R programs.<br>
<br>
&gt; I would like to cd to book and have latex find the files in its subsidiary<br>
&gt; directories.<br>
&gt; I am not keen on moving book to be subsidiary to texmf because there is a<br>
&gt; lot of non-tex stuff there.<br>
<br>
&gt; I am overwhelmed with the Kpathsea documentation and the FAQs weren&#39;t<br>
&gt; enough help either. Can someone give explicit direction on how to do this?<br>
&gt; I would greatly appreciate it.<br>
<br>
&gt; Sincerely,<br>
&gt; David<br>
<br>
</div></div>Layout:<br>
~/book/<br>
        master.tex<br>
~/book/chapter1/<br>
        chapter1.tex<br>
        fig1-1.eps<br>
        fig1-1.pdf<br>
        ...<br>
~book/chapter2/<br>
        chapter2.tex<br>
        fig2-1.eps<br>
        fig2-1.pdf<br>
        ...<br>
...<br>
<br>
Your master.tex file contains:<br>
<br>
\include{chapter1/chapter1.tex}<br>
\include{chapter2/chapter2.tex}<br>
<br>
Go into directory and run<br>
bash:[~/book]$ pdflatex master.tex<br>
...<br>
<br>
If you use bibtex/makeindex/... then run instead of pdflatex<br>
bash:[~/book]$ latexmk -pdf master.tex<br>
<br>
This should work.<br>
<br>
Note: if you insert images into your document you should use relative<br>
paths, e.g. in chapter1.tex:<br>
<br>
\includegraphics{fig1-1} %%% without extension provided that there are<br>
%%% fig1-1.eps _and_ fig1-1.pdf files<br>
<font color="#888888"><br>
<br>
--<br>
Uncle Ed&#39;s Rule of Thumb:<br>
        Never use your thumb for a rule.<br>
        You&#39;ll either hit it with a hammer or get a splinter in it.<br>
</font></blockquote></div><br>