How can I refer to a file (e.g. in \includegraphics{}) that lives in my home directory (I am on linux)?
\documentclass{article}
\usepackage{graphicx}
\begin{document}
not working: $\sim$/foo.png
%%\includegraphics{~/foo.png}
not working either: \$HOME/foo.png
%%\includegraphics{$HOME/foo.png}
\end{document}
\includegraphics{foo}would work if your home directory is in your TEXINPUTS path, or\includegraphics{\string~/foo}should work on most systems. – David Carlisle Feb 11 '13 at 21:57\string~. That does work indeed. – Andreas Feb 11 '13 at 22:08