Placing an anchor with respective character style

Hi all,
Write now i am going to start one new book. In that book, lot of marginal elements are coming in the end of each chapter. That Marginal Notes Paragraph style (Green color") fix with their respective Key Terms (KT or Magenta color) with the object style (Side Box Style) and library name is MN Box . For your information i am showing the Marginal Notes Paragraph style in the end of page. But it comes in the end of chapter only.
For any clarification i attached the sample page of that book layout.
Please give your hand to solve this issues.
Thanks in advance....

Hi all,
Can anyone understand what i said in last comments, otherwise i try to say in different format. Because i am new to javascript and forum.
Kindly provide any idea or script for the above attachment.

Similar Messages

  • [FM11] Print Image Link and Index Markers with specific Character Style

    Hello,
    I'm new with scripting for Framemaker. I want to export FM docs to RTF so I can import these into InDesign. For the placed images I want to insert a text line that is showing the image link (reference). Besides that I want to show the Index Markers at the mark insertion position with a different Character Style. Can someone help me with that?
    Regards, Sjoerd

    Hello Sjoerd,
    One note about your method to retrieve all linked graphics: this will also process the graphics that might be linked into the master and reference pages. Just to be safe against unwanted side effects you should restrict your list of graphics to the ones in the main flow of your document.
    About the tLoc: you are really looking for the anchor of the anchored frame that contains graphic. It is a little confusing that FM calls both the anchored frame and the imported graphic by the same name. Even if you add an anchored frame to the text to put an equation or a text box in your document, the anchored frame will show up in the linked list of graphics in the document. If you do have an anchored frame containing an imported graphic file, you have a list of graphic objects inside the anchored frame, which itself appears in the list of graphic objects of the document.
    This function should do what you want to do:
    function ListGraphics(doc)
              var aframe = doc.FirstGraphicInDoc;
         while (aframe.ObjectValid()) {
             if (aframe.constructor.name == "AFrame") {
                                            graphic = aframe.FirstGraphicInFrame;
                 if ( graphic.type == Constants.FO_Inset )
                                                 doc.AddText ( aframe.TextLoc, graphic.InsetFile );
             aframe = aframe.NextGraphicInDoc;
    I assume you will also want to remove the anchored frames (the imported image files) from the text. This can be done in the same routine, but you must first catch the following element in the linked list of graphics in the doc before you can delete the current one. Otherwise you will only remove the first and end up with an invalid object. The easiest and safest method to do this is to create an array of elements to be deleted. After ending the while loop, you delete those objects. The full code looks like this:
    function ListGraphics(doc)
              var toDelete = [];
              var aframe = doc.FirstGraphicInDoc;
         while (aframe.ObjectValid()) {
             if (aframe.constructor.name == "AFrame") {
                                            graphic = aframe.FirstGraphicInFrame;
                                            if ( graphic.type == Constants.FO_Inset ) {
                                                           doc.AddText ( aframe.TextLoc, graphic.InsetFile );
                                                           toDelete.push ( aframe );
           aframe = aframe.NextGraphicInDoc;
              for ( i = 0; i < toDelete.length; i++ ) {
                             toDelete[i].Delete();
    This works on a small test file I created. If you need more support, feel free to contact me: jang at jang dot nl

  • Can you create a ToC with nested character styles?

    I'm creating a technical guide document, and for ease of formatting within document creation I've used nesting character styles within the 'Body' paragraph style. I need to reference the second level headings within the ToC, but I since I can only use the 'Paragraph' styles in ToC creation - can I do this? (I'm using InDesign CC)
    The document looks something like this, with the italics indicating the nesting structure and the ** indicating what needs to go in ToC.
    1. Our Story (separate paragraph style, not an issue)
    1.1 Random Title Goes Here ("Body" paragraph style, nested "Heading 2")**
    Body text now, all over here, several paragraphs, etc. ("Body" paragraph style, nested "Body")
    Subheadings - not required in ToC ("Body paragraph style," nested "Subheading")
    1.2 Random Section Title goes here ("Body" paragraph style, nested "Heading 2")**
    More body text, you get the gist. ("Body paragraph style, nested "Body")
    Basically, I need to build my ToC with the Heading 1 and the Heading 2, but Heading 2 is nested in "Body" paragraph style.

    Nested styles are NOT a TOC style function, it is only available in a paragraph style. But when you choose a paragraph style to be written into your TOC based on another Para Style, most likely a headline, you can define such nested styles in this para style.
    But a TOC entry can only include a complete paragraph, a single one. You can make a Para Style, let's name it TOC1 which draws the information from Headline 1, but not for headline 2.
    This TOC1 can include nested styles (or GREP styles).
    Another way to define chara styles automatically is via the TOC style definition. Styles there will override any styles which come from nested and GREP styles. (But this does not necessary mean, that they have no functionality any more, because ID's styles are only partially defined and leave room for other elements of a style to be used together.)

  • CS5: Hyperlink to text anchor from character style?

    Is it possible to script the following:
    A text has several occurances of the same string, e.g. 'A10'. One is marked with a character style 'Anchor' and the others are marked with a character style 'Link'. The idea is to create text anchors from the 'Anchor' style and then find every occurrence of the character style 'Link' and create a hyperlink to the matching anchor.
    I've managed to find a script that creates text anchors from a character style 'Anchor'. Can someone offer some suggestions on how to do script creating the links?
    // Written by Kasyan Servetsky
    // March 13, 2011
    // http://www.kasyan.ho.com.ua
    // e-mail: [email protected]
    //======================================================================================== =================================
    if (app.documents.length == 0) ErrorExit("Please open a document and try again.");
    const gScriptName = "Create Text Anchors";
    const gScriptVersion = "1.0";
    var gDoc = app.activeDocument;
    if (!gDoc.characterStyles.item("Anchor").isValid) ErrorExit("Character style \"Anchor\" doesn't exist.");
    CreateDestinations();
    //======================================================== FUNCTIONS  =====================================================
    function CreateDestinations() {
        app.findGrepPreferences = app.changeGrepPreferences = NothingEnum.nothing;
        app.findGrepPreferences.findWhat = ".+";
        app.findGrepPreferences.appliedCharacterStyle = gDoc.characterStyles.item("Anchor");
        var finds = gDoc.findGrep();
        var destCounter = 0;
        for ( var j = finds.length-1; j >= 0; j-- ) {
            var found = finds[j];
            try {
                if (!gDoc.hyperlinkTextDestinations.itemByName(found.contents).isValid) {
                    var hypTextDest = gDoc.hyperlinkTextDestinations.add(found);
                    hypTextDest.name = found.contents;
                    destCounter++;
            catch(e) {}
        if (destCounter == 0) {
            alert("No text anchors have been created.", gScriptName + " - " + gScriptVersion);
        else if (destCounter == 1) {
            alert("One text anchor has been created.", gScriptName + " - " + gScriptVersion);
        else if (destCounter > 1) {
            alert(destCounter  + " text anchors have been created.", gScriptName + " - " + gScriptVersion);
    function ErrorExit(error, icon) {
        alert(error, gScriptName + " - " + gScriptVersion, icon);
        exit();

    Hi,
    The way is:
    create hyperlinkTextDestination;
    create hyperlinkTextSources;
    create hyperlinks using one destination and various sources;
    so:
    // to create hyperlinks alike:    one destination==>many sources
    // destination is the 1st occurrence of text with charStyle "anchor" applied
    // sources are each occurrences of text with charStyle "link" applied
    var mDoc = app.activeDocument;
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedCharacterStyle = mDoc.characterStyles.item("anchor");
    var
         mAnchor = mDoc.findText()[0],
         mDest;
    if (mAnchor) mDest = mDoc.hyperlinkTextDestinations.add(mAnchor,{name: mAnchor.words[0].contents});
    else {alert ("no anchor found"); exit(); }
    app.findTextPreferences.appliedCharacterStyle = mDoc.characterStyles.item("link");
    var
         mSource = mDoc.findText(),
         len = mSource.length,
         currSource, currHyper;
    if (!len) {alert ("no link found"); exit(); }
    while (len-->0) {
         currSource = mDoc.hyperlinkTextSources.add(mSource[len],{name: "sourceLink_" + len});
         currHyper = mDoc.hyperlinks.add(currSource, mDest, {name: "mHyperlink_" + mDest.name + "_" + len});
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    Jarek

  • Numbered bullet character style with underline not showing

    Hi,
    I have a paragraph style for numbered bullets where I've used a character style for the numbered bullet.
    The character style has an underline applied so the effect looks like white text on a blue box, the blue box being created by the underline.
    The 'Paper' coloured number is showing, I can see it by placing a coloured box behind the text box to test.
    But the blue underline is not showing. When I apply the character style on other text it works fine.
    Could this be a bug?
    InDesign CC, Mac OS X 10.8.4

    Thanks for responding.
    "Paper" is the colour I am using for the character colour and then using another named colour for the underline.
    But it is happening the same as you suggest in your screengrab.
    In my screengrab below I have put in a black box to show that there is no underline appearing!
    And my paragraph style with that character style applied:
    So how do we submit this as a bug? And why hasn't it been fixed before now?!!!
    thanks.

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

  • Why does CS6 InDesign Book epub output generate and apply new graf and character style names in CSS?

    I created an InDesign book composed of documents that had had no paragraph or character styles in the palettes until text was copied over from a single overall document. I worked absolutely as clean as I could.
    I synchronized the book to that single overall document several times, including immediately before exporting the book to epub. My export settings disallowed any local formatting. Character styles were restricted to one named "Italic" for which the only format applied was Italic in the Font Style field, and one named "Small Caps" for which NO formatting was included in the character style.
    There was, as far as I can see, no reason for any character or paragraph styles to export to anything but identically-named CSS entries. That is to say, any text with the character style "Italic" applied in the InDesign doc should have output with the same text with a span class entry of "Italic" around it.
    I still ended up with p and span CSS entries with extra numbers appended to them:
    span.Italic {
    font-style:italic;
    font-weight:normal;}
    span.Small-Caps-1 {
    font-variant:normal;}
    span.Italic-1 {
    font-style:italic;
    font-weight:normal;}
    span.Small-Caps-2 {
    font-variant:normal;}
    span.Italic-2 {font-style:italic;
    font-weight:normal;}
    span.Small-Caps-3 {
    font-variant:normal;}
    span.Italic-3 {
    font-style:italic;
    font-weight:normal;}
    and
    p.x-SECTION-BREAK, p.x-SECTION-BREAK-1, p.x-SECTION-BREAK-2, p.x-SECTION-BREAK-3  and so on.
    Why would the InDesign epub output engine choose to generate and apply new spans and paragraph-level styles, which multiply the complexity of editing the CSS directly? How can I prevent InDesign from doing this?

    Perhaps I wasn't clear. When I wrote "an InDesign book composed of documents that had had no paragraph or character styles in the palettes until text was copied over from a single overall document" I meant to emphasize  the part where I CLEARLY said "UNTIL text was copied over." The text I copied over had plenty of paragraph styles. I was trying to point out that each individual document had no PREVIOUSLY EXISTING character or paragraph styles that might have added complexity to the epub output. .
    So, every paragraph in each document had a paragraph style attached, a total of maybe 20 different paragraph styles throughout the book. The only CHARACTER LEVEL styles I cared about exporting were Italic, for text that was set in italic, and Small Caps, for CAPITALIZED text that I wanted to be able to make smaller in the CSS, since I am not allowed to embed fonts and therefore have no other way of creating small caps in the xhtml files inside the epub.
    So, given that I had two character styles applied to various bits of text throughout my InDesign book ("Italic" and "Small Caps"), I would like to know why there are multiple CSS entries generated: Italic, Italic-1, Italic-2, Small Caps, Small Caps-1, Small Caps-2, and so on.
    Ditto paragraph styles. I had a paragraph style called "SECTION BREAK" in each document. Not only did paragraph style "SECTION BREAK" contain identical specs in each document--I know they did because I copied each from one single doc where they were being used identically--but I also synchronized the book repeatedly.  So why would the xhtml docs and the CSS output need p.x-SECTION-BREAK-1, p.x-SECTION-BREAK-2, and p.x-SECTION-BREAK-3?

  • Tagging character styles and paragraph styles in inDesign

    I'm working on a complex book in which everything on the pages is styled.
    I've been asked to tag the vocabulary terms in the text, so that the correct page number shows up in the index.
    I've been asked to tag the folios as well, for the table of contents.
    The folios are a paragraph style.
    The vocabulary terms are styled with a character style.
    How do I do this?
    Any help much appreciated.

    InDesign's built-in Table of Contents function picks up text based on paragraph styles. I'm not sure you really men, though, that you want to pick up the folios, if you are using the term as I understand it, to mean the page numbers. You really want to pick up the various headings used to identify the topics or titles. ID will supply the page numbers.
    As for the indexing, there may be a script that can find text with a particular character style assigned and add it to an index (you should ask over in the scripting forum: InDesign Scripting) but you should also read the Help on Indexes and learn more about how they operate.

  • Unable to save paragraph and character styles

    I noticed an issue popping up for me in CS6 yesterday. I thought it was originally because of Fireworks saved PSD but an effort re-create the file from scratch in PS I'm coming across the same issue. In PS when I have a large amount of text layers and create a paragraph or character style, when I have ANY layer/group in my document locked I'm unable to save any paragraph or layer styles. Regardless of the layer or group being locked and regardless of what layer is highlighted I'm unable to save styles / any settings / name etc. The error I get for character styles for example is:
    "Could not complete the Modify Named Character Style command because a specified layer is locked."
    I did notice that in the Fireworks created PSD that without any layer even being locked I'd still get an error. It may be that this other document got some bad mojo from the Fireworks PSD. When creating a test doc and only creating a couple text layers and a bunch of empty groups and layers I'm unable to reproduce this. It appears to happen to me when I have a slew of text layers.
    Has anyone else experienced this and figured out a more solid workaround?

    If you want to add the styles to an already created document:
    1) Create you Character style containing only the character color
    2) Find and Replace, searching for text with red color and replace formatting with the new character style. (Don't type anything in the text part of the Find and Replace dialog)
    3) Create and apply your paragraph style to all. The text with the Character Style applied will stay red.

  • Maintaining fill colors in character styles across multiple AI documents

    I'm having a lot of trouble understanding how Adobe Illustrator (CS6) manages character styles imported from different ai documents. If I create all character styles in a single .ai document and only use them in in that document, everything works as expected--colors, fonts, and typography settings are maintained in the character style, and newly added text can be quickly styled with the character style.
    My trouble starts when i want to re-use those character styles in a new .ai document. From the character style menu I use the option to import the character styles from another document, and they import correctly--all of the styles work and style text as expected. But then i save & close the document and re-open it to find that the character style entries are there, but the fills and strokes are all messed up--fonts, sizes, typography settings are maintained, but styles with a blue fill are suddenly filed with black, or some other color.
    So, why is this happening? This happens even if the swatches associated with the character styles are imported to the new document as well. I've read that all character styles are based off of the 'normal' character style. But, i've tried a test making sure that the 'normal' character style was consistent between the two documents and i've still experienced the issue.
    Here's a short video showing the issue i'm experiencing: http://youtu.be/Z-BG7miwib8 (watch at 720p)
    Any insights as to what i'm doing wrong would be GREATLY appreciated.
    Thanks!

    Jamier,
    can you please do the following and report what you see?
    1. Open a blank document
    2. Import a character style
    3. Make a text object and apply the style
    4. Cut and paste the text object inside the document
    5. Save the file
    6. Reopen this file
    Is the character style still intact?
    If so, you could take this way as a bumpy workaround (that should not be required at all, of course).

  • InDesign crash while applying character style

    Hi all,
    A)I have problem with applying character style to selected text.
    when character style is applied to selected text indesign get crashes.
    my code snippet is as follow
    input parameters
    1.RangeData paraRange // start and end index of paragraph
    2.storyUIDRef // uidref of current story
              code snippet
              // valid text model
              InterfacePtr<ITextModel> textModel(storyUIDRef, UseDefaultIID());
              if (!textModel)
       break;
              //wax strand
              InterfacePtr<IWaxStrand> waxStrand(((IWaxStrand*)textModel->QueryStrand(kFrameListBoss, IID_IWAXSTRAND)));
              if (waxStrand == nil)
       break;
              //WaxIterator
              K2::scoped_ptr<IWaxIterator> waxIterator(waxStrand->NewWaxIterator());
              if (waxIterator == nil)
        break;
              //first wax line of paragraph
              IWaxLine* waxLine = waxIterator->GetFirstWaxLine(paraRange.Start(nil));
              //iterate each waxline
              while (waxLine != nil && (waxLine->TextOrigin() < paraRange.End()))
        //Iterate for all runs
       K2::scoped_ptr<IWaxRunIterator> waxRunIter( waxLine->QueryWaxRunIterator() ) ;
       IWaxRun * waxRun = waxRunIter->GetFirstRun();
       while (waxRun)
       int32 startPos  = waxRun->TextOrigin();
       int32 endPos = startPos + waxRun->GetCharCount();
       RangeData textRange(startPos ,endPos);
       ISelectionManager* selMgr = m_activeContext->GetContextSelection();
       if(!selMgr)
        break;
       //get valid textselection suite
      InterfacePtr<ITextSelectionSuite> suite(selMgr, UseDefaultIID());
                                  if (!suite)
       break;
                                  //select  text
      suite->SetTextSelection(storyRef, textRange, Selection::kScrollIntoView, nil);
                                  //created style from selection using  " SnpManipulate::TextStyleCreateStyleFromSelection" method.
    my code get crashed at highlighted text( int32 startPos  = waxRun->TextOrigin();).
    B)my next question is how to get textstyle ranges of a selected paragraph.
    please help me.
    Thanks
    Tahir

    A) Make sure that the all parcels of the text is composed before you iterate it, see ITextParcelListComposer. I don't quite understand what you are trying to achieve. You want to apply a character style to a range of text, but the code iterates wax lines and iterate the runs of each line  and sets the current selection to be the run on each iteration. Why not just:
    InterfacePtr<ICommand> icmd(textmodelCmds->ApplyStyleCmd(index, length,styleUID,kCharAttrStrandBoss,kFalse));
    B) Walk the kCharAttrStrands to the get information:
    InterfacePtr<IStrand> strand((IStrand*)textmodel->QueryStrand(kCharAttrStrandBoss,IStrand::kDefaultIID));
    then call stand->GetRunLength() a number of times until, you are through the selected part of the text / paragraph

  • Can I copy/export all text formatted with a given style?

    I have a multi document book, which includes nearly a hundred references to web pages. Each of these is formatted with a character style. The author has not asked me if I can give him a list of all of those references. Is there any way to pull out all text using that character style, and either copy or export it? I already have a TOC and index, but if there is a way to force character styles into either of these, I could do this on a clone just to get the data.
    Failing that, is anyone aware of a way to do this in the resulting PDF or EPUB file?
    (I'm in CS5, by the way!)

    I have a multi document book, which includes nearly a hundred references to web pages. Each of these is formatted with a character style. The author has not asked me if I can give him a list of all of those references. Is there any way to pull out all text using that character style, and either copy or export it? I already have a TOC and index, but if there is a way to force character styles into either of these, I could do this on a clone just to get the data.
    Failing that, is anyone aware of a way to do this in the resulting PDF or EPUB file?
    (I'm in CS5, by the way!)

  • Placing Word File with Character Styles

    InDesign CS5, windows 7
    I am hoping for some guidance.
    I am creating a directory from an Excel file.  This is what I have done and where I am at.
    1. Edited Excel File to ad "Headers" for Name, Address, etc...
    2. Used Mail Merge in MS word to create a Directory.
         - Created Character Styles in word for different fields.
         - Did some minor editing to remove stray spaces, etc...
    3. Placed wrod file in InDesign.  Layout is created with basic text boxes that are split into 4 columns, each box linked to the next (I have about 30 pages of this).
    At first, this was working OK, but the CHaracter styles were not coming through (Actually, they were lost during the merge in Word).  So, I did some work and found that there was a code I could add to the Merge Fields oin Word to force the Character styles to be retained.
    Anyway, I did that.  However, now when I place the Word File in InDesign, it appears to hang at "Processing Character Styles".
    I removed the code from the merge, figuring I could go back, but I still get that hang.
    Any suggestions are appreciated...
    -kaz

    Any suggestions are appreciated...
    I think I followed most of your explanation. But, since we can't see what you're doing, it's hard to know 100% what your reasons are for doing what you do. F'rinstance, I wonder why you're bothering with the Word merge at all. Without knowing why you have to run the merge in Word, I'd suggest this:
    add headers to your Excel file
    save out .csv
    Use InDesign's Data Merge tool, skip Word entirely
    Why do you need to use Word's Mail Merge? If you've never used Data Merge in ID, you should probably take a look at the Help file entry to see if it will work for you.

  • How to specify character style to anchored objects markers depending on the objects formats?

    I have a long document contains much of anchored text frames with custom positions and want to delete them by aplying character styles to their markers.

    Create a new character style to apply it. And change the character style name in this code to yours, then execute it.
    main ();
    function main (){
        app.findGrepPreferences = NothingEnum.NOTHING;
        app.findGrepPreferences.findWhat = "~a";
        var objectsArray = app.activeDocument.findGrep();
        for (var c = 0; c < objectsArray.length; c++) {
            if (objectsArray[c].textFrames.length > 0) //The anchored object is a text frame
                var targetTextFrame = objectsArray[c].textFrames.item(0);
                var textFramePosition = targetTextFrame.anchoredObjectSettings.anchoredPosition;
                if (textFramePosition == AnchorPosition.ANCHORED) // the object have custom position
                    //Create a new charater style and change the character style name to yours. 
                    objectsArray[c].appliedCharacterStyle = app.activeDocument.characterStyles.itemByName("Delete");
    Then make a GREP search for this character style, and if you want delete them all by Change All button.

  • Generating TOC with Character Styles Referenced

    I have a paragraph style applied so several paragraphs in a document.  This paragraph style has a nested style for the first few words of the paragraph which also have a specific character style assigned to them.  The thing is that I need to be able to reference or list these first few in my TOC.  I'm aware that the automatically generated TOC doesn't have the ability to refrence character styles, but I'm hoping that someone else knows of a way around this.  Does anyone know how to work around that or include, somehow, character styles in the TOC list?  The main reason I'm needing to do this is because the automaticly generated TOC (Layout > Table of Content) is built in such a way that it can be recognized in the settings when exporting to epub.

    It was a good idea and almost worked.  I created an extra textbox with the text I wanted included in that text box with a specific paragraph style applied to it that has non-printing text.  Once I included the paragraph style in the Automatically generated TOC it worked in generating the text in the TOC line up, but when I exported the file to an EPUB there was no way to tell it not to include the text that where non-printing.  Therefore the words/sentences that were not visible in indesign or on print and anchored to the original text were doubled in the final epub version.

Maybe you are looking for