Convert Cross-Reference to Text

Does anybody have a script that will convert cross-references to text? In other words, I want to be able to remove the linkage of the cross-reference but keep the static text in place.
Editorial comment: I set up on my local computer several books in CS6 and used cross-references, and everything worked fine. Then I moved the files to a network location and started suffering that painful slowdown that I had experienced in previous versions of InDesign. (I foolishly believed Adobe would have fixed this by now. My mistake.)

I'm guessing that the op want to convert the cross-references that you set in the Hyperlinks panel. Try this:
var xrefs = app.documents[0].crossReferenceSources.everyItem().getElements();
for (var i = xrefs.length-1; i > -1; i--){
    xrefs[i].sourceText.insertionPoints[-1].contents = xrefs[i].sourceText.contents;
    xrefs[i].remove();
Peter

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 cross reference to text (as in a reference citation)

    I am using Frame 7.0. I want to create a cross reference to text (not a heading). For example, I have a citation such as (Smith, 1980) and I want to link that to the following:
    H. Smith, 1980 "Have a good day" Martin Press, pgs. 46
    I only want Smith, 1980 to appear as the link, not the entire description.
    Thanks.

    Another option is storing the custom text version in a paragraph autonumber that is entirely hidden, and use a cross-reference format that retrieves that autonumber only. The custom "autonumber" will be paragraph override (or otherwise you will have to define a unique paragraph tag for each source citation).
    Shlomo Perets
    MicroType, http://www.microtype.com
    FrameMaker/TCS training & consulting * FM-to-Acrobat TimeSavers/Assistants
    "Improve your FrameMaker Skills" web-based training sessions

  • Unresolved cross reference - unresolved text inset

    Is ti possible having at a book all crosses unresolved just because of file renamig??
    it's hard to understand the philosophy of resolving crosses, any knowledge would be welcome

    Cross-references and text insets are links between two different places. An important part of defining the location of each place is the file name. If you change one of those filenames, FrameMaker can no longer resolve the link.
    Using the methodolody that Van outlines, you can safely rename files. This is because FrameMaker watches what you do and automatically makes the necessary updates within the book. If you make changes outside of FrameMaker, though, it has no knowledge of the changes and simply cannot resolve the original links in the future.
    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

  • Converting cross references from Frame

    I am importing my Frame files by reference in RoboHelp (using
    Technical Communication Suite). I have mapped my "Heading &
    Page" cross reference style to the <$paratext> building block
    to drop the page numbers from the cross references. I cannot for
    the life of me get these to import correctly. When I import the
    chapters, the cross references still contain the page numbers. In
    addition, they are not hyperlinks, as they are in Frame.
    Double-clicking on the imported cross reference links does nothing.
    I am desperate to get these to convert properly - I have 34
    chapters to import from my user guide!!

    Yes, I applied all of the patches and same problem.
    What I did yesterday afternoon was to save the source FM file
    as MIF and take a look at the markers. The cross reference markers
    that were failing to move over had an \xod at the end. I posted in
    the Framemaker forum and discovered that this was the hexadecimal
    for a carriage return. As for why there would be a carriage return
    at the end of some of my cross reference markers I have no idea and
    I assure you it was not because I hit ENTER.
    However, I have been having some success this morning in
    deleting the cross reference markers and reinserting them. Of
    course, this messes up all of the other cross reference pointers
    throughout the book. It may be that if more than one cross
    reference is made to a single source (e.g., the marker is used more
    than once) the \xod appears. I am not yet sure. In between the
    time-consuming and focus-grabbing Force Updates and the frequent
    RoboHelp crashes during the Force Update process it takes some time
    to discover. Framemaker never had a problem keeping track of my
    cross references \xod or no.
    I still have the problem of two cross references right next
    to each other causing a Fatal Error when I try to compile. So I
    have to add some spurious word like "and" and it won't even let me
    make this word white. So I basically have to rewrite my source
    document.
    Any patches planned? Also, please consider an upgrade to the
    server hosting this board: it is extremely unresponsive.
    Thank you,
    Z.

  • Can you lock cross-reference or text anchor characters.

    Hi,
    I am trying to set up a document which multiple people can edit and the cross-referencing has been a great tool for some things. However, I am scared that many of the references will get broken as these other people edit the text.
    My Question: Is there any way to lock hidden characters like these so that they don't get accidently deleted? I would like to know if this can be done for text anchors too!
    If this can't be done, please let me know!!!!

    As far as I know, the answer would be no. If text is editable, any anchors or markers contained in the text are able to be deleted.

  • 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

  • Cross references corrupted after placing Word document into an InDesign document

    I am placing a word document which contains cross references to headers and captions/figures within the document. They seem to be fine and function correctly in the Word document, however, after I place this word doc into my InDesign doc, I take a look at the cross references panel and notice that the cross references have been corrupted. It is wrapping the wrong portions of text from the cross reference destinations. See screenshot for a visual of how the cross references are malformed. For example the 7th cross reference in the list should say Framework Details, not "Framework Detai
    InDesign Cross References Panel - showing malformed bits of text
    Another visual of this issue can be seen if I view the text frame in Story Editor view, see below. You can see that the cross reference source tags (blue arrow like symbols) are wrapped around the wrong portions of text. The blue tags shoud be wrapped around Framework Details and 52
    InDesign Story Editor
    You can see below as to why I think the cross references are fine in the Word doc, you can see the same cross reference I used in the example above in the word doc and it is wrapping the correct portion of text:
    Word - showing cross reference is formed corerctly
    Why is this not being maintained after placing this file into InDesign?
    Also I am not performing any cross reference updates after I import, this problem occurs immediately after the place of the doc.
    Why would InDesign be having difficulty in importing these cross references? I have set up a simple test Word document with cross references to headers and figures in and they have imported fine. What could be wrong with this other particular word doc that would be causing this "corruption" of cross references? This is not only causing my cross references to break visually and lack the update capability but also I cannot export the InDesign doc to an ePub as it keeps crashing. I believe from my reading on the web that if there is only one broken cross reference source i.e. the cross reference destination that it is trying to link to is missing, then the export to epub will fail. So this is causing a massive headache for me at the minute.
    Is there anything I could be looking at in the Word doc to try and figure out why the porblem is occuring in the first place?
    If anyone has any tips or a possible solution to this I would really appreciate it. Even better if someone knows the reason why this is happening I can tackle it from the source and prevent it happening time and time again.
    Thanks, Dave

    Only bad experiences, Peter ...
    I've seen this character shifting before on numerous occasions, both with cross references and with hyperlinks. (It's especially funny with hyperlinks, 'cause you can see that the outline box shifts one character at a time per each next link...)
    The thing is it's not just limited to hyperlinks and cross refs. Dave's screenshot doesn't show bold, italics, or other local formatting, but it's a fair bet these are off by a couple of characters as well.
    Dave's experiment of making a "minimal" Word document to confirm it's a persistent bug didn't work. I found the same thing: either a document comes in fine, or everything is foo-bar right from the start. There must be some internal Word code that InDesign forgets to count as 'a character position'. Without delving into the Word file with some very advanced tools, it's anyone's guess what code that would be.
    I can only offer the one solution that works for me: in Word, remove all hyperlinks (which is what Word uses for internal links as well as for external ones) and convert all cross-references to text. Then, if the file finally imports fine, re-build them in InDesign. It's a cumbersome workaround, but slightly better (only just) than checking each reference, delete, rebuild, check next -- etc. (And with that the chance that your other text attributes are also off.)

  • Cross-References to other documents

    As Cross-refences within a document act as clickable links to their destinations when exported to PDF, can cross references to content of another Indesign documents act as clickable links to the destination after being exported. I think no, but I want to double check.

    I actually tried this already, it still crashes and the error is reproducible on four different computers here: 1 Mac and 3 Windows machines. I didn't even restore my old preferences, I just did the reset and it still has the issue. Note it's not crashing when I use data merge, simply when I try to view the panel.
    The only thing that differentiates this document from the other ones I've had issues with that I got my work-around to fix is that the cross-references point to other documents (where the other ones I've managed to fix have cross-references within the same document).
    For the sake of my sanity I may just convert the (2) cross-references to text if they are in fact the issue.

  • Cross reference to an image on textless pages

    My InDesign project has pages with only graphics on some pages, or even a single image across two pages. I'd like to reference them for two purposes-
    to build a list of plates - could be file name and page number as a starting point.
    to reference in explanitory text, eg "See earlier work X on page 22 and Z on pages 10-11"
    I can't figure out how to associate a marker with an image. I seem to have to create an empty text box as a child of the graphic and insert a text anchor if I want to insert a cross reference to that graphic elsewhere. It's a bit cludgy and I don't really know what to do with the graphics that span pages, or how to generate a list of plates when I'm done- I imagine I should be using the index tool, but then, will I have to create both an index and a text anchor? Or can a cross-reference link to a page reference created in the index tool, instead of a to text anchor/hyperlink destination? Or is there a way to index and cross reference non-text objects?
    I'm using CS5 version of InDesign.

    See http://forums.adobe.com/message/2614941 where this is discussed.
    Hope that helps

  • Acrobat 9 Pro: Links to Word TOC and cross references are lost

    I'm testing Acrobat 9 Pro and while it successfully creates a PDF from Word 2003 with bookmarks, all my TOC and internal page reference links are lost.
    I have triple checked the conversion settings from the Adobe PDF menu option in Word, and the "Convert cross-references and table of contents to links" check box is definitely selected.
    I used the same Word document on another machine with Acrobat 6 Pro installed - and the TOC and cross ref links were created successfully. As far as I can see the Adobe PDF settings in Word 2003 on both machines are the same - the only difference is that one uses Acrobat 6 Pro and the other uses Acrobat 9 Pro.
    The only setting in 9 Pro I turned off was the 'enable accessibility tagging' one; it's also turned off in 6 Pro. The remaining settings are the default.
    A clickable TOC and internal links is essential for my clients who often have 400+ page documents.
    Anybody have any suggestions? Or can anybody confirm that they do/don't get the same behavior in Acrobat 9 Pro?

    Thanks Abhigyan - your test PDF worked fine for me.
    This is what I've done today:
    1. Checked for all instances of pdfm*.dot files and removed any that were lurking in old Application Data and Microsoft Office folders.
    2. Deleted all Acrobat 5 and 6 folders and subfolders still lurking in Program Files.
    3. Used Add/Remove to delete Adobe Reader 8 and its updates. I figure I can always install Reader 9 if I need it as a separate app.
    4. Checked that everything was gone using the Windows Installer CleanUp utility (it was).
    5. Restarted my machine.
    6. Turned off my anti-virus software.
    7. Did a search for any pdfm*.dot files - found one only in the current Microsoft Office folder and left it there.
    8. Reinstalled Acrobat 9 Professional.
    9. Opened my test Word 2003 document.
    10. Checked all the Acrobat conversion settings and left them as the defaults.
    11. Converted the doc to PDF and checked for internal links. Yes! The TOC links worked! But my joy was short-lived as the page link didn't work...
    12. Tried various other conversion settings based on some suggestions from Lance in first level Adobe Support yesterday - still no page link. And I also lost the TOC links when I cleared the Enable Accessibility check box on the Settings tab of the conversion settings.
    13. Checked the Edit > Preferences > Convert To PDF settings for Word in Acrobat 9 - add bookmarks and add links are both selected (default).
    14. Used Acrobat 9 to create the PDF (File > Create > From File) hoping that this might might a difference. Nope. No TOC or page links.
    15. Changed conversion settings back to default via Word 2003, and created a PDF from a longer document. Again the TOC links worked, the URLs worked (they always did), the bookmarks worked (they always did too), but the none of the internal page cross-reference links worked.
    So my summary is this:
    * I can only create TOC links *if* Enable Accessibility is turned on, but I have always turned this off in earlier versions of Acrobat as I don't need it and it made the process of creating a PDF from a long document incredibly slow - I'm wary of using it!
    * I cannot get internal page links to work at all, no matter which method I use to create the PDF (from within Word or within Acrobat), and no matter which conversion settings I select.
    I really don't know what to try next. Manually creating links for what could be hundreds of cross-references in a single document is NOT an option, especially as I have many of these long documents.
    Any further suggestions?

  • Maintaining internal word cross references in word import

    I'm using RoboHelp 9.0.1 trying to import Word 2007 (docx) in order to generate a WebHelp. I have adjusted my style mapping in order generate an appropriate TOC with books and matching sub chapters, which works fine. However, internal Word cross references from the original Word document are not transformed into hyperlinks.
    I have already tried/verified the following:
    - The "convert cross references to hyperlink" option is checked in the RH-Word import settings.
    - I also tried fiddling with the Framemaker options as it is suggested in another thread (see beneath), with no success.
    - Within the Word source document I tried both options with "use hyperlinks instead" when creating cross references.
    - The RH-HTML source, in all of my attempts, does not show any links in the corresponding locations.
    What may I be missing here? According to another, similar thread, the feature should work and is really not that challenging:
    "RH9 - Can not create ANY links in linked Word documents"
    http://forums.adobe.com/thread/854095?tstart=0

    In my testing, I got a link in the RH topic, but it wanted to launch the target Word doc instead of jumping to the desired RH topic. I'd say this sounds like a bug - so go ahead and report it.

  • Conditional cross references (an easier way?)

    Hi gurus,
    Forgive me if this is an absurdly simple problem, but our team just isn't figuring out an elegant solution.
    What we need is two types of crossreference formats - one for print, one for PDF/the web/any other hyperlinkable medium.
    We would like the crossrefs to appear as follows:
    Print:
    [some arbitrary block of text] (see page xx)
    PDF
    [some arbitrary block of text]
    As far as we can tell, FM's crossreferences always GENERATE text based on the building blocks, whereas FM's hyperlinks allow an arbitrary chunk of selected text to serve as the "active" text.  The hyperlink behavior is what we want, in both cases.  We're not interested in pulling the name of the target paragraph, or the page number, or anything else - we just want the text we typed to serve as the link, no matter the format.
    The only solution we've been able to figure out is to actually create both a hyperlink AND a crossreference, and then conditionalize the crossreference (show in print, hide in PDF.)  But this feels unnecesarily complicated.
    Is there a cross-ref building block that stands for "just use the selected text?"  Or even "don't do anything at all?"  It seems both of these solutions would allow us to just build the links using crossreferences, rather than needing to build links via two different formats?
    Any help would be greatly appreciated.  Until then, we'll just be here, weeping quietly.
    Thanks,
    Dennis

    ddsbleton wrote:
    Hi gurus,
    Forgive me if this is an absurdly simple problem, but our team just isn't figuring out an elegant solution.
    What we need is two types of crossreference formats - one for print, one for PDF/the web/any other hyperlinkable medium.
    We would like the crossrefs to appear as follows:
    Print:
    [some arbitrary block of text] (see page xx)
    PDF
    [some arbitrary block of text]
    As far as we can tell, FM's crossreferences always GENERATE text based on the building blocks, whereas FM's hyperlinks allow an arbitrary chunk of selected text to serve as the "active" text.  The hyperlink behavior is what we want, in both cases.  We're not interested in pulling the name of the target paragraph, or the page number, or anything else - we just want the text we typed to serve as the link, no matter the format.
    The only solution we've been able to figure out is to actually create both a hyperlink AND a crossreference, and then conditionalize the crossreference (show in print, hide in PDF.)  But this feels unnecesarily complicated.
    Is there a cross-ref building block that stands for "just use the selected text?"  Or even "don't do anything at all?"  It seems both of these solutions would allow us to just build the links using crossreferences, rather than needing to build links via two different formats?
    Any help would be greatly appreciated.  Until then, we'll just be here, weeping quietly.
    Thank
    Dennis
    You have two purposes, so you need two kinds of references, and two distributable documents, one for each need. Because a FM cross-reference content can't be broken into pieces, say one piece that displays "some arbitrary block of text," and a piece that displays "(see page xx)," you need two cross-references. Create one cross-reference for print, and point it to the source paragraph; use it with a cross-reference format with the "<$paratext> " building block to capture the text portion of the source, add the text "(see page) " and the <$pagenum> building block. For Web, create another cross-reference to the same source paragraph with only the <$paratext> building block. Create conditions for both cross-references; a print condition, and a Web condition. In the text, apply the appropriate condition to the corresponding cross-reference. Show or hide the condition you need, and create a PDF for one purpose, then reverse the visible/hidden condition settings, and create another PDF for the other purpose.
    Because the cross-references in text are different lengths, keep a sharp eye on text reflow in the different conditionalized documents. You can use File > Utilities > Compare Documents in FM, or Acrobat's document comparison features, to check the reflow, but also use your eyes in the real text to confirm what the comparison tools tell you.
    Search Google, if necessary, for terms like "importing conditional text settings to framemaker books," without quotes, for more about managing applying conditions to multiple-file books.
    HTH
    Regards,
    Peter Gold
    KnowHow ProServices

Maybe you are looking for