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.

Possible Duplicate:
Automatically Locate Included Figures and Graphics

This question is related to the workflow with LaTeX, more then it actually related to LateX... However, I would be happy to know what is the best practice, and I guess this can be of interest to the community.

Goal: Different project (in the general sense) have different .tex files and will most likely live in different locations on the system. Nevertheless, the projects may share one or more components, e.g. figures. It is very likely that fig.png will be used in both ~/project1/project1.tex and in ~/project2/project2.tex. I want to have a central location where I will store all my images and the different TeX files will use the same location.

Possible Solution: Use symbolic links. Create a directory ~/figures_repository and add symbolic link in ~/project1 and ~/project2 to the figures directory. This works nicely. But it introduces problems.

The problem: I can think of two problems with this approach:

  1. When trying to share project1 with someone using something like zip, then all the files in the repository will be added to the zip file. This is most likely bad.
  2. Version controlling systems (SVN, GIT etc.): How do they handle this? Will they also control all the figures in the repository?

Possible Alternatives:

  1. Somehow do it the other way around. That is, in each project's directory have a figures folder ~/project1/figures, and link all the figures from this directory to the repository.
  2. Mac users may be able to use the smart folders. Somehow create a smart folder which finds all the figures in all projects.

The Question: What is the best way to accomplish this?

share|improve this question

marked as duplicate by Loop Space, Seamus, Matthew Leingang, lockstep, Caramdir Apr 5 '11 at 15:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Do either of these questions help? –  Seamus Apr 5 '11 at 10:20
add comment

1 Answer 1

I think that this answer will help you as it describes all available options

share|improve this answer
add comment

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