Skip navigation
Smartcard8101
Currently Being Moderated

MIF and cross references

Mar 21, 2012 10:01 AM

Tags: #mif #crossreference #hyperlex #inset

Hi,

 

I created a simple MIF file:

 

<TextFlow

    <Para

        <PgfTag `Body'>

        <Pgf <PgfFont <FSize  9.0 pt> >>

        <ParaLine

            <String `Please see the '>

            <XRef

                <XRefName `FunctionReference'>

                <XRefSrcText `Table: foo'>

                <XRefSrcFile `'>

            >

            <XRefEnd>

            <String `for details.'>

        >

    >

>

 

When I insert this into an existing document, there is a newline exactly where the reference should be. I could not manage to remove it. How can I get avoid of the ugly newline? Even after updating the references I get

 

Please see the

Function foo

for details.

 

instead of

 

Please see the Function foo for details.

 

 

Furthermore I defined the cross reference format as "<X-ref><$elemtext>" but the link does not work in Acrobat (although it is blue and underlined). What could be the problem?

 

And finally, when I use the MIF file as an inset, the XRefFormats do not update :-( They seem once to be imported and never updated. This means when I change the format of the reference in the MIF file, the changes are not reflected in the document which includes the MIF file - not even after removing and re-inserting. The one thing that helps is to manually delete the format. Is there a way to avoid this?

 

Regards

Niki

 
Replies
  • Currently Being Moderated
    Mar 29, 2012 4:41 AM   in reply to Smartcard8101

    Niki,

     

    I've spent days and days trying to figure out the way FrameMaker handles cross-references. I am not surprised at all that you cannot simply edit the MIF file and make it work. Are there good reasons why you need to handle this in the MIF files instead of using ExtendScript to do it on the FM files from within FrameMaker ?

     

    Jang

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 29, 2012 4:58 AM   in reply to 4everJang

    Hi Jang,

     

    Check my FrameScript tutorial on cross-references at http://www.frameexpert.com/tutorials/cross-references.htm. The code is in FrameScript, but the concepts will be the same with ExtendScript. You can insert and manipulate cross-references directly with FrameScript or ExtendScript without having to use MIF snippets.

     

    Rick Quatro

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points