I keep my laptop and desktop sync'd with rsync, but have a problem with symbolic links. The directory tree for each home directory is different since the desktop uses a remote directory - they are something like:

laptop: /home/laptop/
dektop: /remote/home/desktop/

The problem is that symbolic links do not get transferred correctly because they use the whole tree. For example:

/data/desktop/pubs/pub1/figs --> /remote/home/desktop/imgs/figs/pub1/

but on the laptop the target should be:

/home/laptop/imgs/figs/pub1

Basically, I need $HOME/imgs/figs/pub1 to be the target on both systems. Is there any way to get rsync to recognize the home directory and pass the information this way, or to get the symbolic link to be stored using the $HOME variable instead of the actual directory tree?