I have a legacy book written in LaTeX for which I have all sources, eps figures, and the final dvi file.
I have to produce a pdf for the book that matches the original book published in paper.
Since the book was last compiled ten years ago, I've discarded recompiling it, to avoid changing the layout due to differences in packages etc.
The obvious conversion from dvi to pdf with dvipdf did not work because the dvi has hard-coded paths for the eps figures. These paths are absolute paths like /local/books/i3d/figures/eps/intro/areas.eps
.
If the paths were relative paths, it'd be simple to make a suitable tree with symbolic links.
I ended up editing the dvi and replacing /local/books/i3d/
by .local-books-i3d/
, carefully keeping the lengths the same to avoid messing up the offsets in the dvi file.
This hack worked perfectly. But I wish dvips had an option to change absolute paths to relative ones, like tar does by default.
Is there a simpler solution?
changeroot
way easier? (apparently, you use Unix/Linux or MacOS)changeroot
would affect wheredvips
finds its own stuff, wouldn't it?