Skip navigation
Currently Being Moderated

MIF and cross references

Mar 21, 2012 10:01 AM

Tags: #mif #crossreference #hyperlex #inset



I created a simple MIF file:




        <PgfTag `Body'>

        <Pgf <PgfFont <FSize  9.0 pt> >>


            <String `Please see the '>


                <XRefName `FunctionReference'>

                <XRefSrcText `Table: foo'>

                <XRefSrcFile `'>



            <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?




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



    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 ?



    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 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