I have a book that contains multiple chapters. The variables that I create seem to only be attached to the chapter that I am in when I create the variable. How can I create a variable that spans across all chapters of the same book?
FM doesn't have "global" variables per se. But you can accomplish this by creating a variable template.
First, create a simple FM file that contains only the custom variables you need. Then in the book file select all of the files that you want to have these variables in. Now File > Import > Formats, select the variable template file and select ONLY the "Variable Definitions" item for import.
Tip: create a two-column table in your template file; one to show the variable name and the other to show the actual value of the variable. This makes maintenance easier.
If you ever need to change any of the variable definitions or add more, then just edit the master variable template file and re-import to the book.
Designate one component file, say Cover.fm, to be the container for variable definitions.
Edit your variables in cover.fm.
From the Book menu, select all component files except Cover.fm
File > Import > Formats
Import from Document: [ Cover.fm ]
File > Import > Formats
[ Deselect All ]
elect [*] Variable Definitions
[ Import ]
Frame doesn't have auto-updating intra-book global variables. You could fake it with Cross-References.
I havent used it myself but you might want to take a look at the hypervars plugin: http://ig5authoringtools.com/plugin-directory/single-sourcing/hypervar s/.
North America
Europe, Middle East and Africa
Asia Pacific