Cross reference + GREP + excluding text

I would like to know if anyone has a solution to the following problem.
I have a paragraph style which I use to label tables within my document. In the paragraph style I have set up numbering (under Bullets and Numbering) so that each heading appears as "Table 1.1 School Children in HK" or "Table 1.2 School Children in China" the code I have entered in the 'number' field of the paragraph style appears below:
Table ^H.^#^/
I have inserted the word 'Table' prior to the rest of the code so that the label is correct.
When I create cross references I select 'Cross Reference Format' to be 'paragraph number' the problem is, however,  that the word 'Table' is picked up as part of the 'paragraph number' because of the settings in the Paragraph Style. The end result looking like this:
The result is fine if you are cross referencing a single table per sentence, however, if you are dealing with multiple tables in plural this is a problem. What I would like to achieve is this:
Does anyone know if there is a way to achieve this by editing the 'Cross Reference Format' so that the word 'Table' disappears when the cross reference is generated? Perhaps with GREP?
I would really appreciate your help.

Hi Tom,
Im following standard English conventions (UK, if you will)  and the format at the moment is a wee bit clunky when you have to write something like 'Table 7.1, Table 7.2, Table 7.3, Table 7.4 and Table 7.5.....' as will be the case later in the document. The other arrangment of 'Tables 7.1, 7.2, 7.3, 7.4 and 7.5.....' is much shorter and easier to read - brevity is essential in this document because of limited word count.

Similar Messages

  • Cross Reference Source text options

    Creating a Cross Reference linking to a Paragraph. In the paragraph where the cross-reference source is inserted, may the cross-reference link be applied to existing text in that paragraph so that the cross-reference destination text does not appear? Text anchors can be created to accomplish this, but that is an extra step (I can create a cross reference linking to a paragraph all in one dialog box). Thanks in advance for any suggestions.

    Hi, Seir:
    I agree that it's confusing. Here's how I do it:
    To create a text anchor at the insertion point location:
    * Open the Hyperlinks/Cross-References panel's menu (also called "flyout menu." It's the small icon at the upper-right of the panel, below the double-arrow (>>) icon that collapses the panel.
    * Choose New Hyperlink Destination. THIS SHOULD BE NAMED NEW TEXT ANCHOR!!!
    * Choose Type: Text Anchor
    * Name the anchor as you like Click OK.
    To create a cross-reference to a text anchor:
    * Place the insertion point where you want it.
    * Click the Create new Cross-Reference button on the bottom of the Hyperlinks/Cross-Reference panel.
    * Choose Link To: Text Anchor
    * Choose the target document
    * Choose the text anchor
    * Choose the Cross-Reference format
    * Choose Appearance properties
    * Click OK
    I'm not sure what could cause the straight/curly quotes problem other than perhaps the font doesn't have curly quotes. Have you tried other fonts?
    HTH
    Regards,
    Peter Gold
    KnowHow ProServices

  • How do I preserve cross reference text when exporting to XML?

    I am exporting my Framemaker documents to XML. However, when I open the raw XML, the reference formatting is obviously gone. So instead of seeing, say,  see Figure 6. I now see, see . 
    Is there some way to preserve this on export?
    Help would be much appreceated!

    Josh,
    The normal behavior is to have an empty element with the ID/IDRef markup that allows the xref element to be resolved again afterwards, by whatever post-processing step you put the XML through. The text of a cross-reference is a FrameMaker formatting artifact (not unlike a paragraph format, etc.) and is intentionally discarded during export. If you reimport the XML with the empty element, FM will re-resolve the xref, and then will restore the text using whatever format it originally had (the format name is also stored as markup).
    If you want to preserve the element tag of the xref, I don't think there is any way to preserve the text, unless you write an import/export API client. You could possibly use an XSLT stylesheet to repopulate the text in some cases, but this seems like a process fraught with many complications.
    If you do not care about the element tag, the manual says that you can just unwrap it, then you'll get the xref text. Here is a (rough) snip from the Structure Developers Guide:
    Translating FrameMaker cross-reference elements to text in markup
    You may not want your FrameMaker cross-reference elements to remain elements in the
    markup representation—you can choose to translate them to text instead. To do so, use
    this rule:
    fm element "fmtag" unwrap;
    where fmtag is the FrameMaker element tag for a cross-reference element.
    All of this does beg the following question, though... why do you want to do this, especially if the text is referencing figure numbers, page numbers, etc. that have no relevance in the markup? Normally, it is expected that preservation of the markup is the essential thing, allowing the text to be regenerated later by whatever process uses the XML (perhaps including FM). If you drop the element tag, the actual link will be permanently lost.
    Russ

  • Cross-Reference using Text Anchor problems

    I am having problems with creating "New Cross-Reference" using a "Text Anchor" in CS4 Indesign.
    I can mimic what I want using a "Link to Paragraph", selecting the paragraph style and link, and then using the "Partial paragraph and Page Number" options.
    I would prefer doing this using a Text Anchor.
    I've tried creating a text hyperlink, but in whatever I am doing, I never get any "Text Anchor" OPTIONS in the New Cross-Reference menu.
    Adobe should also change the Text Anchor menu item, since there are "Text Anchor" options in InDesign that appear to have nothing to do with Cross-Referencing.
    The other problem I am having is that in defining the open-quote and closed-quotes around the Paragraph Text variable, I wish to have typesetter's quotes instead of the default vertical quotes. If I use the Splat button to choose ^{^} options, then I get funky "G"'s in my reference instead of typesetters quotes -- even if I choose a "Character Sytle for Cross Reference" and force it to my current font choice. What's going on here?
    SC

    Hi, Seir:
    I agree that it's confusing. Here's how I do it:
    To create a text anchor at the insertion point location:
    * Open the Hyperlinks/Cross-References panel's menu (also called "flyout menu." It's the small icon at the upper-right of the panel, below the double-arrow (>>) icon that collapses the panel.
    * Choose New Hyperlink Destination. THIS SHOULD BE NAMED NEW TEXT ANCHOR!!!
    * Choose Type: Text Anchor
    * Name the anchor as you like Click OK.
    To create a cross-reference to a text anchor:
    * Place the insertion point where you want it.
    * Click the Create new Cross-Reference button on the bottom of the Hyperlinks/Cross-Reference panel.
    * Choose Link To: Text Anchor
    * Choose the target document
    * Choose the text anchor
    * Choose the Cross-Reference format
    * Choose Appearance properties
    * Click OK
    I'm not sure what could cause the straight/curly quotes problem other than perhaps the font doesn't have curly quotes. Have you tried other fonts?
    HTH
    Regards,
    Peter Gold
    KnowHow ProServices

  • Cross Reference paragraphs from Word to imbedded Visio document

    I have a word document with about 200 steps included which are cross referenced throughout Word.  I have a Visio flowchart that serves as a visual picture of these steps, but requires manual input and adjustment when we adjust the steps in Word. 
    I don't want to use the hyperlink, I'd rather have a cross reference that will auto update the step number only to match the Word paragraph number.  If I could incorporate cross references from the text in the Visio file objects to the paragraph numbers
    in Word, this would save many hours at my organization.  Additionally, this is Visio Professional 2007 as I couldn't find a forum for 2007, only 2010.  I've searched many forums, but haven't come across any successful answer.  PLEASE HELP MICROSOFT!

    When I've used hyperlinks, I've always tied them to bookmarks in the word document. I haven't heard of a cross-reference between the two products.
    al
    Al Edlund Visio MVP

  • Getting Error In the Routine - While writing Code for the Cross Reference.

    Hi,
    Getting Error In the Start Routine - While writing Code for the Cross Reference from the Text table ( /BIC/TZMDES with Fields /BIC/ZMDES(Key),TXTSH ) Getting Error as [ E:Field "ZMDES" unknown ].
    Transformation : IOBJ ZPRJ3(Source) -> IOBJ ZPRJC ( Target ).
    The Source  Fields are: 0logsys(Key),zprj3(Key),ZDOM3.
    The Target Fields are : 0logsys(Key),zprjc(Key),ZDOM3, UID.
    Here i am trying to Update the target Field UID by Comparing the Source Field [ zprj3(Key)] with the Text table ( /BIC/TZMDES ) and update the UID.
    The Code is as below:
    Global Declarations in the Start Routine:
    Types: begin of itabtype,
            ZMDES type /BIC/TZMDES-/BIC/ZMDES,
            TXT type /BIC/TZMDES-TXTSH,
             end of itabtype.
    data : itab type standard table of itabtype
    with key ZMDES,
    wa_itab like line of itab.
    Routine Code :
    select * from /BIC/TZMDES into corresponding fields of table itab for
    all entries in SOURCE_PACKAGE
    where ZMDES = SOURCE_PACKAGE-/BIC/ZPRJ3.
    READ TABLE itab INTO wa_itab
    WITH KEY ZMDES = SOURCE_PACKAGE-/BIC/ZPRJ3
    BINARY SEARCH.
    IF SY-SUBRC = 0.
    RESULT = wa_itab.
    CLEAR wa_itab.
    The tys_SC_1 structure is :
    BEGIN OF tys_SC_1,
         InfoObject: 0LOGSYS.
            LOGSYS           TYPE RSDLOGSYS,
         InfoObject: ZPRJ3.
            /BIC/ZPRJ3           TYPE /BIC/OIZPRJ3,
         InfoObject: ZDOM3.
            /BIC/ZDOM3           TYPE /BIC/OIZDOM3,
         Field: RECORD.
            RECORD           TYPE RSARECORD,
          END   OF tys_SC_1.
        TYPES:
          tyt_SC_1        TYPE STANDARD TABLE OF tys_SC_1
                            WITH NON-UNIQUE DEFAULT KEY.
    Please suggest with your valuable inputs.
    Thanks in Advance

    I have split the code in two.. one for start routine.. other for field routine.. hope this helps
    Types: begin of itabtype,
    ZMDES type /BIC/TZMDES-/BIC/ZMDES,
    TXT type /BIC/TZMDES-TXTSH,
    end of itabtype.
    data : itab type standard table of itabtype
    with key ZMDES,
    wa_itab like line of itab.
    Start routine
    select * from /BIC/TZMDES into corresponding fields of table itab for
    all entries in SOURCE_PACKAGE
    where ZMDES = SOURCE_PACKAGE-/BIC/ZPRJ3.
    Sort itab.
    field routine
    CLEAR wa_itab.
    READ TABLE itab INTO wa_itab
    WITH KEY ZMDES = SOURCE_FIELD-/BIC/ZPRJ3
    BINARY SEARCH.
    IF SY-SUBRC = 0.
    RESULT = wa_itab-<field name>

  • Relinking Cross-References after Renaming Documents

    I have a problem where I have created a book containing 14 chapters. Each chapter has a reference to the language of the book i.e. GB in the document title, we now want to translate the documents, so have copied the book, and chapters, renamed the document with an FR in the document titles, ready to send of to the translators.
    The trouble is all the cross references are still linking to the GB book. Is there a way of re-linking all the cross references to the FR documents? Or is it a case of going to each cross-reference and re-linking to the same piece of text but in the FR book.
    Can anyone help?

    tRawc wrote:
    I have a problem where I have created a book containing 14 chapters. Each chapter has a reference to the language of the book i.e. GB in the document title, we now want to translate the documents, so have copied the book, and chapters, renamed the document with an FR in the document titles, ready to send of to the translators.
    The trouble is all the cross references are still linking to the GB book. Is there a way of re-linking all the cross references to the FR documents? Or is it a case of going to each cross-reference and re-linking to the same piece of text but in the FR book.
    Can anyone help?
    No help here, at least no help in providing some magic. Cross-file cross-references seem to depend on the name of the file that contains the cross-reference "destination" - the text that's captured and displayed at the "source" - the location where the cross-reference is inserted. I'm using quotation marks here because some folks think of the stuff you capture as the cross-reference source, and what's displayed at the cross-reference insertion point is the destination in their view. IOW, they're opposite uses of the term. InDesign's nomenclature is based on the hyperlink model, where you create a destination somewhere and you act on it by pointing to that destination from where you insert the link to it, AKA the source of the action. At least that's my guess.
    So, changing file names loses the connection.
    Internal cross-references - within a single document file - are maintained when the file's name is changed.
    You can relink cross-file cross-references for files that are moved to a new folder. In the Cross-References panel, select a "missing" cross-reference that displays a question mark in a red circle, then from the panel's fly-out menu, choose Relink Cross-Reference, and browse the directory. If all the cross-file cross-references in the file whose cross-references point to files in one directory, relinking should restore all the links. If some cross-references point to files moved to other directories, you'll need to browse to each of those directories.
    With a book, if all the missing cross-file cross-references for all the book's component files were all moved to the same folder, relinking one missing reference should relink all. If some missing cross-references point to files moved elsewhere, you'll need to browse for each of those directories.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Can this be done with Cross References?

    My document has 10 figures (photos, e.g.) with corresponding cross references in the text. Due to a series of changes, I now need to delete Figure 5. The old Figure 6 now needs to be Figure 5, the old Figure 7 needs to be Figure 6, etc. And the corresponding text sources need to update as well.
    Is this possible with InDesign's built-in Cross References feature? If not, is there a plug-in out there that could solve my problem?
    Thanks.

    Are you asking how you could set it up in the past so that in the future you could automate the process? If so, yes. I'm doing a book with a slightly similar feature. But it only handles the actual text in the ID document. It doesn't handle changing the names of the photos that have been placed. So if you need to rename the placed PSD files, I can't help you.
    But, if it's text only, here's what I'm doing.
    My figure captions are numbered lists. The format is "Figure #" and then the text. They have been set to run across stories.
    When I x-ref the figure, I have the x-ref set to pick up the number of the paragraph but not the actual text of the paragraph.
    If, in your example, I were to take out figure 5, I would take out the figure photo and caption. This would leave a missing x-ref in the body text. That's fine. I would delete it. Then all the rest of the x-refs would need to be updated.
    Similarly, I could insert an x-ref. I believe the auto number would come from its position on the pages of the text.
    HOWEVER, you would need to have set this up initially. It won't help afterward.
    PS: I hope you're asking this for the future and for many more than just 10 figures.

  • InDesign Tagged Text for Cross-reference Entries

    I'm transforming XML to InDesign Tagged Text. The XML has index codes. For regular page entry type entries I'm having no problem outputting to the appropriate InDesign Tagged Text markup. However, I cannot figure out how to code cross-reference type entries. The document "Using Adobe InDesign Tagged Text CS5 Tagged Text" is extremely limited in its usefulness as it does not list all possible values for tag type tags, etc. I've tried dozens of tag combos and guesses at values. None have worked. Also, for some reason, even though I can create a "See x" type reference in the InDesign document, when I export to InDesign Tagged Text to look at the code, those tags are not included in the export.
    Does anyone have a more definitive list of possible IDTT index tag values?

    I have been exporting various things to IDTT to see what the result would be, with nothing really helpful as a result. I'll try hyperlinks, but reading of the Adobe guide to InDesign Tagged Text and also just looking at the InDesign scripting object model leads me to believe that there must be specific tags to create index-specific cross-reference tags.

  • Why is a single Cross Reference text turning red after doing an Update?

    After updating a large book in FrameMaker10,  the same cross-reference made in  a couple of chapters is turning to red text.   It is  set as  Heading 2.  I tried to deleted the heading and re-typing it.  I tried to change the style to Body and back to Heading 2 but all references to it are turning to red text after I update the book.  Any idea what is wrong and how do I fix it? I am using unstructured version.  See image.

    Apply a Character Format of Default ¶ Font. Then re-apply the desired Paragraph Format. If the red goes away, it was either a Character Format that had been applied or a local color override. If the red is still there ...
    Look at the Special > Cross-Reference > Format > Definition itself. Look for any <character-format-name> and see if any of those have a red Color defined in their Format > Character > Designer. If so, remove that building block from the definition [Change] [Done] [Replace].

  • Cross references not picking up character styles in source text

    I'm getting some annoying odd behaviour with cross references in Frame 12.
    I have some tables, where the paragraph style in the cell is called "Cell Body" (nothing odd there).
    Quite a few of the cells only have one word in them, and that word is set to courier font with a character style (called "Code").
    Then, elsewhere in the document, I am referring to this text using cross references. I am referencing the paragraph style Cell Body, and the cross reference format applied is like this "<hyperlink><$paratext><Default ¶ Font>"
    "hyperlink" is another character style that makes the text go green.
    So, the cross reference out to take the text from the cell (in Courier) and reproduce it, coloured green.
    However for about half of these cross references, it isn't picking up the Code character style in the source text, so the cross ref is just green, no green courier.
    Things are further bamboozled when I output to HTML Help.
    In the CHM file, the cross refs which appear to work OK (green courier) are now just courier.
    The ones which failed to pick up the courier look the same as they do in Frame (just green).
    Any ideas as to what's going on?
    I've tried troubleshooting by clearing the cells, reapplying the para style and default character style, then reapplying the code character style, then replacing the cross reference - which sometimes seemed to fix it but didn't always.

    Arnis Gubins wrote:
    Using two character tags in-line together (a la <hyperlink><Code>) is asking for trouble. IIRC, FM doesn't re-apply these in order on an update and depending upon how they are defined (and what is set to AsIs), the outer one usually wins. .
    So why does the blimmin' dialog invite me to do precisely that, by providing me with a list of all the character styles I have, and allowing me to select as many of them as I like??? /sulks/   Indeed, if Frame still shipped with a printed user guide instead of  stupid "optimised for viewing on iPhones" online webhelp nonsense, I suspect I might very well be able to find an example in the manual of using multiple character styles in that dialog!  If it doesn't want you to use more than one, why doesn't it grey out after you add the first one? /sighs/  The concept is called "cascading styles", it's a fundamental web paradigm! And it works in the main body text - why not in Xrefs!
    Also, I have been very scrupulous to keep my character styles orthogonal so none of their AsIs's mash each other up.
    But, rant over, I shall follow your splendid suggestion for a "Code Hyperlink" style.
    Arnis Gubins wrote:
    Also, x-ref formatting may behave differently in the new Publishing modules depending upon ....
    ...Depending on how badly designed and buggy this new Frame12 feature is, I should say!   The Publish module should not randomly stop behaving in a WYSIWIG manner in completely undocumented fashion just because Adobe couldn't be bothered to code it properly.  /sighs/
    Frankly, for my current project, I've given up trying to jump through hoops for Publish - I'm concentrating on getting the Frame source right and assuming these quirks will be fixed in Frame 13 (or 14, depending on how superstitious they are). Because if I put in ad hoc workarounds for them in Frame 12, I (or a colleague) will only have to undo them later when they're fixed, and by then we'll all have forgotten what the original problem was.

  • Text Insets and Cross Reference Links

    When I use text insets to produce a host file from my source file, I have cross reference links that update OK. However, once I produce a PDF of the host file (text inset), my links do not work. I do not even get the little hand icon to indicate they are links. I am producing my PDFs using File/Save As PDF and the first checkbox on the Links tab is checked. Is this a problem using text insets?

    Unfortunately, that's the way insets work in FM. Cross-refs within an inset do not automatically become active. If you convert the inset to text, then the links are made. I believe that Rick Quatro wrote a Framescript to handle this in an automated way.
    The manual way to do this, is to make a copy of the book - using Bruce Foster's Archive utility is the way to go: see http://home.comcast.net/~bruce.foster/Archive.htm
    Then use the Edit > Text Inset Properties > Convert... > All insets to embed the insets into the documents (you have to do this on a file by file basis); regenerate/update the book file and only then create your output.

  • Cross reference markers are deleted for content in text insets

    Cross reference markers are deleted for content text insets. I currently have a chapter that is built from several Import by Reference files. I added an introductory paragraph with cross reference links to heading 2 titles in these text insets. Everything works and saves normally, although the cross reference markers disappear from the chapter when files are checked out a few days later. An extra Heading 2 is also added to the end of the document.
    Steps to reproduce:
    1. Create a chapter composed of several text insets.
    2. Create a list of cross references to headings in these text insets at the beginning of the chapter.
    3. Check in/check out the files from a source control product.
    What went wrong?:
    The cross reference markers are gone, resulting in broken cross references. An empty Heading 2 is also added to the end of the document following the final text inset
    What should have happened?:
    The markers should remain and the heading 2 tag should not be applied to the document.
    Product version:
    Product: FrameMaker
    Version: 7.2
    Platform information:Windows XP
    Hardware: Dell Latitude D620
    OS Version: Windows XP Professional Version 2002, Service Pack 3.
    RAM: 1GB

    Thanks for the information, Van. We did try several techniques including adding the insertion point immediately after the text inset before the normal paragraph tag, but none seemed to consistently work. I will investigate this scenario futher, though, in light of your comments.
    We have managed to determine a workaround for this issue by avoiding a string of text insets. For some reason, using multiple text insets without separating them with normal text causes most of the problems after we add the files to our source control system. The situaton is not ideal, but it does work for the time being anyway.
    Steve

  • Text-inset cross-reference PDF bug ever fixed?

    We're using FrameMaker 8.0 and Acrobat 8.1.
    Has Adobe ever fixed the bug where cross-references in text insets aren't converted to valid links in PDFs? In other words, do we still need to work around that bug by using newlink / gotolink hypertext markers in text insets?

    Robert:
    As far as I can tell, FM8 still exhibits the undesirable behavior...
    Cheers & hope this helps,
    Riley

  • Cross reference text anchor source in Word doc

    I'm trying to figure out a way to automatically generate page numbers for a list of courses at the back of a course catalog. The listing is not arranged alphabetically or in the order the courses appear in the catalog, and (right now) the listing is a table. Because of this, I don't think a TOC or Index would work.
    Cross references seem to work, but they're just as much work as turning pages, finding each entry, and typing it into the list. What I'd really like is to be able to use cross-references to text anchors, but have the anchors inserted in Word, before it goes into Indesign. Many of the courses repeat from one catalog to the next. The editor who creates the Word file does so by pasting each course with its description into one big Word file. If the text anchor were in each course to begin with, it would end up in Indesign and I would only have to reference it to generate a page number.
    It seems that Word's Bookmarks come into Indesign as text anchors, but not with their original names. The first bookmark, regardless of its name in Word, comes in named "Anchor". The next one comes in named "Anchor 5" or something like that. I want them to come in with course numbers or some other unique identifier. "Anchor 5" doesn't really tell me anything.
    Any ideas?
    Ken Benson

    Kenneth Benson wrote:
    I'm trying to figure out a way to automatically generate page numbers for a list of courses at the back of a course catalog. The listing is not arranged alphabetically or in the order the courses appear in the catalog, and (right now) the listing is a table. Because of this, I don't think a TOC or Index would work.
    Cross references seem to work, but they're just as much work as turning pages, finding each entry, and typing it into the list. What I'd really like is to be able to use cross-references to text anchors, but have the anchors inserted in Word, before it goes into Indesign. Many of the courses repeat from one catalog to the next. The editor who creates the Word file does so by pasting each course with its description into one big Word file. If the text anchor were in each course to begin with, it would end up in Indesign and I would only have to reference it to generate a page number.
    It seems that Word's Bookmarks come into Indesign as text anchors, but not with their original names. The first bookmark, regardless of its name in Word, comes in named "Anchor". The next one comes in named "Anchor 5" or something like that. I want them to come in with course numbers or some other unique identifier. "Anchor 5" doesn't really tell me anything.
    Any ideas?
    Ken Benson
    Hi, Ken:
    IIRC, Word's cross-references are preserved in InDesign. Have you tried it?
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

Maybe you are looking for