Variables are pre-set terms that you can use in your project over and over. They are stored in "variable sets," which can hold multiple variables.
Variables are somewhat similar to snippets. The difference between variables and snippets is:
Variables are used for brief, non-formatted pieces of content (such as the name of your company's product or your company's phone number). There are different kinds of variables: (1) those you create, (2) system variables (e.g., date and time; Chapter, Section, and Volume numbers), (3) Heading variables, and (4) Running Head variables. Some of these are especially useful for page headers and footers
Snippets are used for longer pieces of content that you can format just as you would any other content in a topic. In snippets you can also insert tables, pictures, and whatever else can be included in a normal topic.
A variable has two main components—the variable name and the variable definition.
example
An example of a variable name is "CompanyName." The definition for that variable name might be "ACME Incorporated." Using that example, if you were to insert the CompanyName variable into a paragraph of a topic, the phrase "ACME Incorporated" would be added at that spot and shown in the output.
Following are the main categories of variables that you can use.
System variables Flare lets you insert the system date and time as variables. The global format in windows controls the format dates and times in variables. To insert a system variable, you simply select Insert>Variable. Then select System and choose the specific variable.
In addition, for Adobe PDF, Microsoft XPS, and XHTML output, you can insert system variables in page layout frames that display your chapter, section, or volume numbers (if you are using auto-numbers to identify the various parts of a manual).
Running Head variables In addition to system variables and those you can create (from the "MyVariables" template), you can also add Running Head variables (using the "Running HF" template). A Running Head (or Running HF) variable is a special variable that you can insert into a header or footer in a page layout
Note: Running Head variables are supported only in Adobe FrameMaker and Microsoft Word output.
ExampleHere is some more information about variables:
Initial variables By default, Flare initially provides you with two custom variables (CompanyName and PhoneNumber) when you start a new project or add a new variable set (using the "MyVariables" template). You can use these variables, modifying their names and/or definitions to meet your needs. You can also create additional variables. A variable set file has an .flvar extension and is stored in the Project Organizer under the Variables folder.
Overriding variable definitions You can create new variables in the Variable Set Editor. The variables that you create and define in the Variable Set Editor are available to your entire project. However, if you want the definition for a variable to be different in a particular target, you can override the project-level definition for that target in the Target Editor. If you preview a topic, the variable definition associated with the primary target is displayed.
Condition tags You can apply a condition tag to a variable so that it is included in some targets but not in other targets.
Auto Suggestion In addition to inserting variables the "old-fashioned" way, you can also insert variables when using Auto Suggestion (a popup window that predicts content as you type). See About Auto Suggestion.
Manual variable links You can also add variables to content (e.g.,
For example, you can rename
.
example
For example, if your variable set is called "MyVariables" and you want to use a variable called "CompanyName," you would enter this as the name of the
. Follow these same steps for browse sequence entries.
Please note that if you insert variable syntax, the variable text may not always show up in search results. Of course, if you also insert the variable into the header in the actual topic, search results will find it. Another way to ensure that search finds the variable text is to enter the following syntax as the topic title in the Properties dialog:
(e.g.,
).
Similarly, you can use variables in hyperlinks by using this syntax: <a href="mcvariable:VariableSet.VariableName">My hyperlink text</a>.
Following are the main tasks involved with using variables.