Macro Language Reference > Macros > Text (Frame Level) > trefanc
  
trefanc
Description
Inserts an anchor reference point at the text cursor position. When the document is reformatted with tformat all frames with anchor names are temporarily removed from the document. Whenever an anchor reference is encountered in a text stream frames with corresponding anchor names are replaced on the page in the position specified by pos_code.
 
Example 288. Example of a conditional placement of a frame
trefanc "anch1","condition_main"
Syntax
trefanc anc_name:t? ( cond_name:n? pos_code:n? )
trefanc
[no parameter]
Invoke the Anchor Reference dialog box.
anc_name
The anchor name of a frame.
 
This should be the same name as that given to the frame via tfanchor.
cond_name
Condition name from the anchor condition control stream used during reformatting of the document with tformat.
pos_code
The position at which anchored frames should be placed on a page.
 
A frame's horizontal position is never changed.
0
On the same page as the reference
1
Top of frame is just above the reference
2
Top of frame is just below the reference
3
Frame is placed conditionally according to condition name
4
Forward conditional
Related Links