Documentation
Publicon
User Guide
Advanced Features
Editing and Formatting Notebooks
Using Variables
Publicon contains a number of variables that store system information, such as the current file name, date and time, or names of the home directory and the preferences directory.You can display the value of any variable in your notebook. Each time the value of a variable is changed, its display is automatically updated.
For example, the text in the following cell contains display objects that refer to the current date and time, respectively. Each time the notebook is opened, the cell shows the current date and time.
Today's date is Date.
The current time is Time.
Variables are also used in printing headers and footers, where they refer to the file name and page number for the document being printed.
To insert the value of a variable:
1. Choose Window
Templates and Variables
Variables to open the Variables subpalette of the Typesetting palette.
2. Click one of the buttons under the Variables tab. The value of the corresponding variable is pasted into the notebook at the position of the cursor.