Documentation
Publicon
Reference
Preferences
Formatting Options
...Specific Box Options
TagBoxOptions
{...}
TagBox objects are used to store information that will not be displayed, but can nevertheless be used by the rules that interpret boxes. Publicon provides the following options for controlling the selection and editing of TagBox objects.
interpretation
• interpretation is an option for cells that determines how the contents of a tag box are to be interpreted.
• Tag boxes provide a way to store hidden information in Publicon output. TagBox[boxes, interpretation] displays as boxes but is interpreted on input as interpretation.
• interpretation appears grayed-out in the Option Inspector, except when a tag box is selected.
TagStyle
• TagStyle is an option for cells that determines the style used to display the contents of a tag box.
• TagStyle can be set to any cell style defined in the style sheet of the notebook, e.g. "Title", "Section", "Input", or "Text". The contents of the tag box are then displayed in that cell style. With the default setting TagStyle
None, the expression inside the tag box inherits the style of the cell in which it occurs.
• Publicon adds a tag box around any expression that is displayed in a form different from the form in which it is interpreted.
Editable
• Editable is an option for cells that determines if an expression inside a tag box can be interactively edited in the front end.
• The expression inside a tag box can be edited if Editable
True, but not if Editable
False.
• With the setting Editable
Automatic, a tag box inherits the Editable setting of the cell in which it occurs, that is a tag box will be editable only if it occurs in an editable cell.
Selectable
• Selectable is an option for cells that determines if an expression inside a tag box can be selected.
• The default setting is Selectable
True.
AutoDelete
• AutoDelete is an option for cells that determines if a tag box is automatically deleted when the expression inside it is edited.
• The default setting is AutoDelete
False.
StripWrapperBoxes
• StripWrapperBoxes is an option for cells that determines if a tag box wrapped around an expression is removed when the expression is sent to the kernel for evaluation.
• This option determines if non-semantic changes, such as style changes and white space are removed when sending an expression to the kernel. These changes are normally stripped so that patterns which interpret the meaning of a box expression are much simpler to write.
• The default setting is StripWrapperBoxes
False.
DeletionWarning
• DeletionWarning is an option for cells that determines if a warning is given when an expression inside a tag box is edited.
• With the setting DeletionWarning
True, the first time you edit an expression inside a tag box, a dialog box appears to warn you that the meaning of the expression being edited may be altered.
• The default setting is DeletionWarning
False.
SyntaxForm
• SyntaxForm is an option for cells that specifies the precedence level of the expression inside a tag box.
• SyntaxForm is specified as a string containing an operator whose precedence level is the same as that of the expression inside the tag box. For example, SyntaxForm
"*". You can also distinguish the infix and prefix form of an operator, for example, by setting SyntaxForm to "a + b" and "+ a", respectively.
• With the default setting SyntaxForm
Automatic, Publicon automatically assigns a precedence determined by the contents of the tag box.
• See also: TagBox.