diff options
author | Karl Berry <karl@freefriends.org> | 2011-05-04 23:39:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-05-04 23:39:21 +0000 |
commit | 16bfcc69400c93c3d779a104107606ae122a7dbe (patch) | |
tree | e2456232be21108418db974f47ea118eec770469 /Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-docotherdir.html | |
parent | 9a8f00b89c2c1cd283f5fd0fb54959ef0690646f (diff) |
FAQ-en 3.22 (4may11)
git-svn-id: svn://tug.org/texlive/trunk@22304 c570f23f-e606-0410-a88d-b1316a301751
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 | 65 |
1 files changed, 0 insertions, 65 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 deleted file mode 100644 index 09bbc91daa5..00000000000 --- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-docotherdir.html +++ /dev/null @@ -1,65 +0,0 @@ -<head> -<title>UK TeX FAQ -- question label docotherdir</title> -</head><body> -<h3>Bits of document from other directories</h3> -<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”, -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 - -<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 -<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), -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”. -So, for example, if <i>/home/friend/results.tex</i> contains -<blockquote> -<pre> -Graph: \includegraphics{picture} -\input{explanation} -</pre> -</blockquote><p> -then <code>\</code><code>import{/home/friend/}{results}</code> will include both -graph and explanation as one might hope. A <code>\</code><code>subimport</code> command -does the same sort of thing for a subdirectory (a relative path rather -than an absolute one), and there are corresponding <code>\</code><code>includefrom</code> -and <code>\</code><code>subincludefrom</code> commands. -<p/>The <i>chapterfolder</i> package provides commands to deal with its -(fixed) model of file inclusion in a document. It provides commands -<code>\</code><code>cfpart</code>, <code>\</code><code>cfchapter</code>, <code>\</code><code>cfsection</code> and <code>\</code><code>cfsubsection</code>, -each of which takes directory and file arguments, e.g.: -<blockquote> -<pre> -\cfpart[pt 1]{Part One}{part1}{part} -</pre> -</blockquote><p> -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 -<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 -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.) -<p/>Documentation of <i>chapterfolder</i> is in French, but the -<i>README</i> in the directory is in English. -<dl> -<dt><tt><i>chapterfolder.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/chapterfolder.zip">macros/latex/contrib/chapterfolder</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/chapterfolder/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/chapterfolder.html">catalogue entry</a> -<dt><tt><i>import.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/import.zip">macros/latex/contrib/import</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/import/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/import.html">catalogue entry</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> |