On 14. okt. 2011 20:17, Sølvi wrote:
ANYONE??

---------- Forwarded message ----------
From: *Sølvi* <s.n.mi...@gmail.com <mailto:s.n.mi...@gmail.com>>
Date: 2011/10/11
Subject: Move from d:drive to c:drive
To: lyx-users@lists.lyx.org <mailto:lyx-users@lists.lyx.org>


Hi,

I'm currently using Windows XP with LyX v.2.0.0

I have a huge document, it's a master with several child documents
included which then again have documents/figures etc inserted (it's like
a christmas tree). I have been working on the d: drive on a pc but now I
have to work on a pc that only have a c: drive and I probably have to
move it all back to the pc with the d: drive later.

Is there any easy way to do this or do I have to "rebuild" the entire
document? It's a big document with lots of files incorporated.

Easy way:
Put the entire "christmas tree" on an usb stick or external harddisk, which will hopefully become "d:" on the machine that doesn't have a "d:" of its own.

A better way:
"Rebuild"! you document - once. You need to visit every reference to
other files, be it included documents or figures.

Change the filenames from "absolute" to "relative" Example:

Master document at d:\documents\book\master.lyx,
includes:
   d:\documents\book\chapter1\chapter1.lyx
   d:\documents\book\chapter2\chapter2.lyx
   which includes
     d:\documents\chapter2\figures\picture.jpg
     d:\documents\book\logo.png

with this structure, it should be change to relative
paths, removing the common path elements. The result would be:

Master document at d:\documents\book\master.lyx
including:
  chapter1\chapter1.lyx
  chapter2\chapter2.lyx
  which includes:
    figures\picture.jpg
    ..\logo.png

And when you add more files later, make sure they
don't contain "d:\..", just the last and necessary parts of the path.

This gives a combined document tree that doesn't say "D:" anywhwere, so it'll work equally well on C:, on D: or for that matter, somewhere on a big file server. In short, it'll be moveable because it does not refer
to one specific disk drive.

Helge Hafting

Reply via email to