Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am writing a paper simultaneously with my thesis; the paper will be included verbatim in the thesis (or at least, parts of it will).

I am looking for a solution that allows me to update my paper without maintaining a separate version for inclusion in the thesis.

I currently use the standalone package with the import package to allow inclusion of independently-compilable documents. This works for almost everything, but not for figures: I include figures with \includegraphics, and it cannot find figures included in a subdirectory of the paper unless they're also in the same subdirectory of the thesis.

Is there a way around this, besides the obvious but, imo, ugly use of symbolic links?


Following the suggested links, I noted that this question: How to make the main file recognize relative paths used in the imported files? recommends using subimport, in which case my question may become "when should I use subimport vs import vs input." But I'm not sure, so I'm still asking the original question, this is just "showing my work".

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Latex actually supports to use relative paths. Both of the following two ways can achieve your goal (assume all your figures in figures folder):

  1. Add \graphicspath {{figures/}} before \begin{document}

  2. Use \includegraphics[width=\textwidth]{figures/your-figure.eps}

share|improve this answer
    
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. –  texenthusiast Aug 9 '13 at 5:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.