diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-docotherdir.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-docotherdir.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-docotherdir.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-docotherdir.html index f8849de0a66..3f093955382 100644 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-docotherdir.html +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-docotherdir.html @@ -5,24 +5,24 @@ <p/>A common way of constructing a large document is to break it into a set of files (for example, one per chapter) and to keep everything related to each of these subsidiary files in a subdirectory. -<p/>Unfortunately, TeX doesn’t have a changeable “current directory”, +<p/>Unfortunately, TeX doesn’t have a changeable “current directory”, so that all files you refer to have to be specified relative to the same directory as the main file. Most people find this counter-intuitive. -<p/>It may be appropriate to use the “path extension” technique +<p/>It may be appropriate to use the “path extension” technique <a href="FAQ-tempinst.html">used in temporary installations</a> to deal with this problem. However, if there several files with the same name in your document, such as <i>chapter1/fig1.eps</i> and -<i>chapter2/fig1.eps</i>, you’re not giving TeX any hint as to -which you’re referring to when in the main chapter file you say +<i>chapter2/fig1.eps</i>, you’re not giving TeX any hint as to +which you’re referring to when in the main chapter file you say <code>\</code><code>input{sect1}</code>; while this is readily soluble in the case of -human-prepared files (just don’t name them all the same), +human-prepared files (just don’t name them all the same), automatically produced files have a way of having repetitious names, and changing <em>them</em> is a procedure prone to error. <p/>The <i>import</i> package comes to your help here: it defines an <code>\</code><code>import</code> command that accepts a full path name and the name of a -file in that directory, and arranges things to “work properly”. +file in that directory, and arranges things to “work properly”. So, for example, if <i>/home/friend/results.tex</i> contains <blockquote> <pre> @@ -44,14 +44,14 @@ each of which takes directory and file arguments, e.g.: \cfpart[pt 1]{Part One}{part1}{part} </pre> </blockquote><p> -which command will issue a ‘normal’ command +which command will issue a ‘normal’ command <code>\</code><code>part[pt 1]{Part One}</code> and then input the file <i>part1/part.tex</i>, remembering that <i>part1/</i> is now the -“current folder”. There are also commands of the form +“current folder”. There are also commands of the form <code>\</code><code>cfpartstar</code> (which corresponds to a <code>\</code><code>part*</code> command). -<p/>Once you’re “in” a <i>chapterfolder</i>-included document, you -may use <code>\</code><code>cfinput</code> to input something relative to the “current -folder”, or you may use <code>\</code><code>input</code>, using <code>\</code><code>cfcurrentfolder</code> to +<p/>Once you’re “in” a <i>chapterfolder</i>-included document, you +may use <code>\</code><code>cfinput</code> to input something relative to the “current +folder”, or you may use <code>\</code><code>input</code>, using <code>\</code><code>cfcurrentfolder</code> to provide a path to the file. (There are also <code>\</code><code>cfcurrentfolderfigure</code> for a <i>figure/</i> subdirectory and <code>\</code><code>cfcurrentfolderlistings</code> for a <i>listings/</i> subdirectory.) @@ -59,7 +59,7 @@ provide a path to the file. (There are also <i>README</i> in the directory is in English. <dl> <dt><tt><i>chapterfolder.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/chapterfolder.zip">macros/latex/contrib/chapterfolder</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/chapterfolder/">browse the directory</a>) -<dt><tt><i>import.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/misc/import.sty">macros/latex/contrib/misc/import.sty</a> +<dt><tt><i>import.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/import.zip">macros/latex/contrib/import</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/import/">browse the directory</a>) </dl> <p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=docotherdir">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=docotherdir</a> </body> |