To minimize the amount of copy-pasting I have to do between documents/projects, I've decided to create a separate file in which I renew the \maketitle command. This file (title.tex) should then be used as input for any project (in this case main.tex):
File main.tex:
\documentclass{article}
\input{/path/to/title}
\begin{document}
\maketitle
\end{document}
File title.tex:
\usepackage[utf8]{inputenc}
\usepackage{geometry,graphicx}
\geometry{a4paper}
\renewcommand{\maketitle}{
\includegraphics{image}
}
This doesn't work because the path provided for \includegraphics is relative. Making the path absolute would solve the problem, but that wouldn't make the file as portable as I would like.
Is there any way I can keep using a relative path for my image?

title.texfile from within the file and use that in the path toimage, but I have no idea how. There is probably a more elegant way to do something like what I want. How do packages provide images? – Silex Aug 12 '12 at 19:40