title: Platform-independent path (in LaTex and Elisp)?
body: <p>I run Emacs on Win7 and Ubuntu and try to share most of my configuration via dropbox.com. I still could not figure out how to write the path to load-files or images (for example) in a platform independent way. </p>
  
  <p>I mirrored my directory structure on both machines so that inside the home directory the relative path should work out. Is there a way to achieve this with a single path without if-clauses (if system ... else ...) everywhere? </p>
  
  <p>I tried ~/  and it worked sometimes, sometimes not. </p>
  
  <p>'home' is set on Win7, but it must be addressed as %home% on Win7 and as $HOME on ubuntu (right?).</p>
  
  <p>I need a solution for:</p>
  
  <ul>
  <li>elisp code</li>
  <li>latex files  (adress images, listings)</li>
  </ul>