cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Underlining xrefs FOSI

AndyEsslinger
1-Newbie

Underlining xrefs FOSI

Brian, I can't find where I answered this. If you didn't figure it out
yet, this is how I would explain how to do it:

To cause your FOSI to underline XREFs, save the underlining at the same
place that you save the text that will be output for the XREF.

I'll give you "figure" an example because it is about the same
throughout your doctype.

Go to the e-i-c for figure:<e-i-c gi="figure">. Notice that you have
attribute tests that save for the XREF depending if the label attribute
is used (#ANY) or not used (#NONE), Your attribute tests will put one
value into the variable "labelstr.tdv" that will become the number part
of the XREF.

<att>
<specval attname="label" attval="#ANY">
<charsubset>
<savetext textid="labelstr.tdv" conrule="#CONTENT(label)">
</charsubset>
</att>
<att>
<specval attname="label" attval="#NONE">
<charsubset><enumerat increm="1" enumid="figct">
<savetext textid="labelstr.tdv" conrule="pgprefix.tdv," figct&quot;=">
</charsubset>
</att>

At the last <attribute> test, you use a fill value to put the reference
together and concatenate the word "Figure" with the value of
"labelstr.tdv".

<att>
<fillval attname="id" fillcat="savetext" fillchar="textid">
<charsubset>
<savetext textid="xrefstr.tdv" conrule="\Figure" \,=" labelstr.tdv&quot;=">
</charsubset>
</att>

If you want the output to be underlined, change the conrule that loads
xrefstr.tdv to include the pseudo-element produced underline.in the
variable xfrefstr.tdv.

Add this ss the pseudo-element:
<e-i-c gi="uline.ps">
<charlist inherit="1">
<highlt scoring="1" scorewt="0.5pt" scorespc="1">
</charlist>
</e-i-c>

This is the modified last <att> from your figure e-i-c to use the same
fillval to save the underliing format.:

<att>
<fillval attname="id" fillcat="savetext" fillchar="textid">
<charsubset>
<savetext textid="xrefstr.tdv" conrule="&lt;uline.ps">, \Figure \,
labelstr.tdv, </uline.ps>">
</charsubset>
</att>

I hope this helps.

-ANdy

\ / Andy Esslinger F-22 Tech Order Data
_____-/\-_____ (817) 777 3047 LM Aero Box 748
\_\/_/ Fort Worth, TX 76101
1 REPLY 1

There is another way to do this without the pseudo element, but only if you
want the entire reference underlined (like Figure 1). In the <usetext> that
calls the referenced text, add a <subchar> with <highlt> 'scoring' set to
"1".



Now if you only want a small portion of the reference underlined, then the
pseudo element route is probably the best route to go.



Something similar to this.



<usetext source="indication5strg,@2em" placemnt="before">
<subchars>
<highlt scoring="1" scorewt=".75pt" scorespc="0"></subchars>
</usetext>







Lynn



_____
Announcements