Skip to main content
C_Sarelius
Known Participant
July 27, 2009
Answered

Updating a variable across multiple files in a book

  • July 27, 2009
  • 1 reply
  • 908 views

Hi guys,

I have a book file with multiple files (prelim pages and chapters). In the header of each prelim page and chapter file I'm using a variable. How can I make a simple change to the variable and update it across all files that use it? I've tried looking through the menus and opening all files but I can't see any method of making a global change.

Advice appreciated.

Cheers

Carl

    This topic has been closed for replies.
    Correct answer

    How about File > Import formats …

    1. make a new file (source) where you define just the variable you want to copy to other files (targets)

    2. import that variable from the source file into the target files

    When all the target files are in a .book, you can select them in the book and then use File > Import formats. Otherwise, the same command from inside each target – but you can always make a dummy .book referencing all the target files.

    Setting up a source file first means you can work with only the variables you want to, if you have some that change per chapter and others that stay the same throughout the book.

    N

    [ps] Watch out for the default behaviour of the Import from Document pulldown, which sets itself determinedly to "current file"

    1 reply

    Correct answer
    July 27, 2009

    How about File > Import formats …

    1. make a new file (source) where you define just the variable you want to copy to other files (targets)

    2. import that variable from the source file into the target files

    When all the target files are in a .book, you can select them in the book and then use File > Import formats. Otherwise, the same command from inside each target – but you can always make a dummy .book referencing all the target files.

    Setting up a source file first means you can work with only the variables you want to, if you have some that change per chapter and others that stay the same throughout the book.

    N

    [ps] Watch out for the default behaviour of the Import from Document pulldown, which sets itself determinedly to "current file"

    C_Sarelius
    Known Participant
    July 27, 2009

    Thanks Niels. Appreciated.

    Cheers

    Carl