#230 Support \includefrom{path}{file} in structure parser

Later
open
nobody
3
2013-02-02
2006-10-17
Tino Weinkauf
No
0 up votes | 0 down votes | 0%
0 comments

\includefrom{path}{file} allows to include files
similar to \input and \include. However, here is the
difference:

---
Suppose I have a file main.tex, in which I use
\input{some/long/path/chapter1.tex}. All the graphics
for chapter 1
are also in the directory some/long/path/ (this one is
relative to
the location of main.tex).

Now, when using a graphics file in chapter1.tex, I'd
have to type
\includegraphics{some/long/path/image.jpg}, relative to
the location
of the main tex document.

The \includefrom command takes two parameters:
\includefrom{some/long/
path/}{chapter1.tex}. Now, in chapter1.tex,
\includegraphics{image.jpg} will be enough.
---

We first need to investigate this command: What about
nesting several \includefrom{}{}?

Discussion

  • Jochen Krempel
    Jochen Krempel
    2008-11-13

    This command is provided by "import.sty"
    among \import, \subimport, \subincludefrom, and * variants. (all with the same parameter form).
    While the "sub"-variants can be nested, the non-"sub"-variants will always refer to the path of Main.tex

     


Anonymous


Cancel   Add attachments