I'm working on a document with several figures and tables, and I want to be able to compile it with different sets of these figures and tables. I have different folders with different versions of the files, and I want to simply change a variable in the beginning of the document, to make it look for the files in a particular folder.
So I define a macro as
Code: Select all
\newcommand{\versionInputs}{../versionX}
For the tables, I'm importing .tex files and it works just fine with
Code: Select all
\input{\versionInputs/table.tex}
If I try to manually include it using \includegraphics, I just can't make it work. And it's not a problem with the macro, I just can't get any image to work using \includegraphics manually, I always get
The files are in .eps format, which I think is the format that should cause less trouble. I've also tried emf and png. I have tried with and without \usepackage{graphicx} in the preamble (and with different options), and with lots of different parameter setups to try to determine the size. I've tried using pdflatex and ps2pdf, dvi and others. Nothing seems to work. I'm trying a blank lyx document with nothing but the \includegraphics in different forms. Any suggestions please? thank you!!! LaTeX Error: Cannot determine size of graphic in .... (no size specifed).
It might have to do with estopdf, but I still can't figure it out. And I think that that wouldn't explain that it doesn't work with png's.
Edit: I edited the subject because I realised afterwards that my main problem is not the path thing, that should be sorted out after I fix the problem with \includegraphics