TOC for ePub Paragraph style editing

I'm trying to figure out if InDesign can allow us to editor the dynamic table of contents. What we have is basically this:
Chapter number (unique paragraph style)
Chapter title (unique paragraph style)
First paragraph (unique paragraph style)
We want the ToC that gets pulled up in a eBook reader to show this:
Chapter 1: Chapter Title
Chapter 2: Chapter Title
Right now, InDesign seems to only export each as a specifc paragraph style, without setting them on the same line side by side. We get stuck with:
Chapter 1
     Chapter Title
Chapter 2
     Chapter Title
Does anyone know of a way to export the ePub so it's what we want rather than this hirarchically broken way?

This TOC issue has bugged me for years.
I have been able to come up with certain workarounds, but only when my physical (print) TOC just happens to be set up exactly as I would like it displayed in the ePub (this is not always the case).
It would be wonderful if there was a way for us to better control how the TOC info is output when exporting to ePub.
For now, the fastest and easiest way to deal with this issue (for me anyway), is to manually update it in the ePub file after export.
Cheers,
Ron

Similar Messages

  • Create TOC javascript using paragraph style

    Hi,
    i want to create javascript for TOC in new indesign document or book. but i want to use input style for paragraph styleHi,

    "It didn't work for me" doesn't work for me. Always, always, always, state why it doesn't work for you.
    Did you try to use it, but could not get it to work?
    Or, do you need to do something special that the built-in function does not do?
    It should not be extremely hard to make a javascript version that does (roughly) the same. You could try something like this:
    For every paragraph style you want to include (most likely all sorts of headings),
    Search for all occurrences, and store the text, its page number, and (important!) its story offset in an array.
    You need the text because that's what will appear in the TOC.
    You need the page number because, well, that's what the TOC is for :-)
    Most important: you need the story offset so you can reconstitute the original order of the headings. You can only search for one level of heading at a time, so without sorting, you would get "Heading 1 -- Heading 1 -- Heading 1 -- Heading 2 -- Heading 2 -- Heading 2" (etc.)
    When you have gathered all of the information for your entire book, sort on story offset. (I forgot, it's for a Book, right? You need to store a document id as well, so you can sort throughout multiple documents.) (See Ed.)
    Then write out every text in the right order, followed by its page number.
    The IndexMatic script that Marc points out should already contains lots of the logic described here -- esp. searching and storing page numbers.
    [Ed.] Thinking about it, a Book (multiple documents) should *not* cause any problems, and you don't need to know in which document some text was found. Simply sort the paragraphs on their page number; only when these are the same for more than one paragraph, sort just these on their Story Offset. Logically, there should not be two headers with the same page number in two different documents.

  • Defining a background color for a paragraph style

    Hello and please excuse this very basic question, but I am completely stumped.
    How do I simply define a background color for a paragraph style? I cannot use a table etc. because the styles are mapped during an XML conversion. Code lines should receive a gray background box to separate them from the text.
    Also, is there a way to force line breaks whithin words for a specific style? The text, formated in Courier, should just fill the space with a fixed width per character and break wherever the line ends.

    With some drawbacks it's doable using two paragraph tags.
    The first tag, e.g. "Line" is empty (no text), and it has a reference page graphic that's just a rectangle filled 100% with color and set to have a percentage tint so that the text will "show through" it.
    "Line" is also set to have a negative space below it, e.g. -12 points.
    "Code" paratag has the actual code text in it, and it's set to have a negative space above, e.g. -12 points.
    I've done projects where I have multiple Line paratags differing by the number of code lines needing to be shaded, e.g. Line1, Line2, Line3.
    Unfortunately there isn't a way to automatically have the line expand to the correct depth of the Code paragraph, although I believe this would probably be something that could be done as a Framescript, to run through a document and create new "line" paratags of the correct depth depending on how many Code paragraphs or lines are in the following paratag.

  • Applying paragraph style edit takes for ever

    Hello. In a 20-pages document, I uncheck the "keep lines together" option at the basic paragraph style, and the application of this takes for ever. The mouse pointer become a circle (which indicates activity) but the wholle process does not complete... I use ID cs5, and my computer is quite good. Dual core. 4 Gb RAM. Any suggestions would be appreciated. Thanx a lot.

    Creating a new frame didn’t help, neither cutting and pasteing without formatting did. I have narrowed the problem down to 2 specific paragraphs. They create problem not only with a text frame within them, but also when I tried to delete the thread that contains them. They also cause the same problem if I cut them, paste into a new document, and then cut and paste without formatting into my original document (ID freezes). Apart from them, I zoomed out and moved a small text frame through all the pages of my document with no problem. I could also move this text frame with no problem at the pages that contain the specific paragraphs when I cut them from my document. I have found a work around for this problem in my project, but what motivates me further into it is curiosity. What can be causing such a strange problem??? Anyway, as I said I found a workaround so if you don’t want to go further into the problem, It’s ok. Thanx a lot anyway for your help and time.

  • Customize TOC for epub book

    Hi,
    I have a book file in ID CS6, containing ten chapters each one in its own document starting with Heading 1 style for "Chapter 1", "Chapter 2",  "Chapter 3" etc. It also contains some more documents for cover, copyright notes, acknowledgement, publisher's info etc (not formatted at all).
    Well, when I export it to epub and open it in Adobe Digital Editions a TOC is generated from the file names of all the documents.
    Is there a way to exclude the entries I don't want to be there?
    Furthermore, can I control the text of each entry? eg for the file "cr.indd", I want the text "Copyright notes" in TOC.
    Thank you

    Short answer to your question: You can control the navigational TOC by creating a TOC Style (Layout > Table of Contents Style) and including a paragraph style which you want which pulls the headings you want into the TOC.
    You then call out that TOC Style on the General panel of the EPUB Export dialog.
    It sounds like you need to get some basic information about creating EPUBs. Here are the two best sources I know:
    (1) The eBooks of Elizabeth Castro:
    http://www.elizabethcastro.com/epub/
    (2) Anne-Marie Concepcion's videos on Lynda.com. She's produced videos on creating EPUB from InDesign CS5, 5.5 and 6. www.lynda.com. (If Bob Levine sees this, he'll add a week-long free link for Lynda.com.)

  • Help creating rasterized images for all level 1 toc for epub ebook

    I am creating an ebook (epub) for a course that I had previously made in iBooks Author, but iBA files do not open on iPhones. So I have decided to recreate it as an epub 2.0.1 in InDesign. There are 2 levels to my Table of Contents, each week and then multiple pages underneath each of the 9 different weeks. I am creating essentially an intro cover image for each week, so when you click on "week 1" in the toc it directs you to a "rasterized image" discussing what each student will be learning in that specific week. I've tried so many different ways but I still haven't gotten it to work the way I want. The rasterized intro cover image shows up in the book, but usually adds another blank page after it, and sometimes I can get it to show up in the toc in level 1 and sometimes it disappears. I get confused on whether it should be a paragraph style with the export tagging "split document (epub only)", or changing the objects export options. Ultimately, I feel like I've tried a combination of everything and confused myself even more. I haven't found any information on anyone executing this before, so even if anyone knows any links to help me or if anyone has done this before, your help would be appreciated!
    I hope this makes sense, because honestly I don't even know what to call these rasterized intro cover pages for each week (let alone what to search for), Colin Fleming from Adobe InDesign calls the cover pages "title images" so maybe that is a more appropriate name, however I don't want these images at the beggining of the book, I want them spread out before each week.

    I would check out the website of Elizabeth Castro. She has created several eBooks on creating EPUBs:
    http://www.elizabethcastro.com/epub/
    Also check out her blog:
    http://www.pigsgourdsandwikis.com
    Quite likely, this cannot be exported directly from InDesign but will have to be done by editing the CSS after you've exported the EPUB so I hope you're good at HTML/CSS.

  • Toc for epub

    Hi,
    My TOC has 20 chapters so spills onto a few pages in the epub. I have a horizontal rule after the first ten, as the book has two parts. Because of the flow, it doesn't look so appealing to the eye so wondering if I should create two TOC pages, each with 10 chapters to even it out so it looks neater.  I was thinking of having small text in ital @ the bottom of the first TOC page...something like 'table of contents continued...'  .  Is that a good solution or do people not really bother?
    Other than that, I set the styles so the TOC link text is 'black'. Why in iBook are those links in a dark blue-purple? - Anyway to control or override that?
    thanks!

    Hi,
    To achieve a definite amount of space before the chapter heading, you can set First Line Indent in paragraph style definition to 0.25 inches and it gets mapped to text-indent property in the CSS.
    Regards,
    Pooja

  • GREP for changing paragraph style?

    Okay folks, I have another one for all you smart people out there. I think GREP can be used to change formatting in the following instance, but I have no idea how to set it up.
    I have a very long document, essentially a phone book-type listing of names, phone numbers, addresses, well over 150 pages' worth. The paragraph styles are fairly simple, only two per listing. The name/phone number is bold with a right hand tab with leader dots to a phone number that is flush to the right side of the column. The following lines are flush left, not bold, but indented 6pts. I've placed the text file and assigned the entire thing the NameListing paragraph style. I'd like to use GREP to find the address lines and change them to the NameListingAddress paragraph style.
    Here's a screen shot to give you an idea. The left column is formatted correctly with both styles, the right column is "raw", all paragraphs formatted with the NameListing paragraph style.
    Is this an appropriate application for GREP? If so, how do I set it up to only change the paragraphs that "don't have tabs"? It would save me a crapload of time.
    THANKS again! --Dina

    If your intent here is to use the character style to trigger a variable, as I belive it is based on your other thread, you MUST apply the character style up to the first tab to pick up the text at the start of the paragraph. There are two approaches to automating the formatting after that, but it may be too late for you to be much help.
    In cases where every listing has the same number of lines it makes sense to use a unique paragraph style name (not necessarily format -- base on on another) for each lline and make it its own paragraph. Set up "next styles" to rotate through the list so each line is assigned the correct style based on the style of its predecessor. You get the rotation to sart over by making the first line style the next style for the last line. This works for manual entry and can be applied to an entire block of placed text in a single operation by selecting the text, then right-clicking the name of the first style to be applied and choose Apply <stylename>, Then Next Style.This ONLY works if you have exactly the same number of paragraphs in each listing.
    The other option is to use forced line breaks instread of paragraphs and use one style for the entire listing. Set a left indent and negative first line indent, create a character style for the part of the first line that you want to appear in your header and apply it Up To ^t^n (that's a little-known trick -- if you enter more than one character in the trigger for a nested style it will activate on the first instance of any of the characters listed that occurs, so for example if you enter the word cat, your style will end on the first, c, a or t that appears inthe paragraph. ^t is the metacharacter for tab, and ^n is for forced line break) so that the style will end at either the tab, if present, or the forced line break if there is no tab (if you use a right-indent tab instead of a regualr right aligned tab [tricky to do a leader, but that's another discussion] substitute ^y for the ^t), then add a nested Line Style for one line. That line style should use a second character style that is based on the first character style you created for the name text and has no other attributes if you want the line to be the same from end to end. Sounds more complex than it is, and will work for listings with variable lenghths. The trick is to repalce your paragraph returns with forced line breaks, and will require a little thinking.
    If using separate paragraph styles for each line, you'd use the same technique of a nested style up to a tab for the first line, but there is no need to get fancier since it will apply to the whole line if there is no tab. The paragraph style, in this case, would carry all of the bold and size formatting (and no need for any indents), and the character style would be nothing more than a name that will allow you to use it in the variable.

  • Export to Fixed_Layout EPUB: Paragraph Styles not exporting to CSS class tags

    Hi,
    As it says, my Paragraph Styles aren't exporting to CSS class tags with a Fixed Layout EPUB.
    ...But Object Styles are working ok.
    Seems to work ok when exporting to HTML or Reflowable EPUB... just not Fixed Layout.
    Any ideas?
    Cheers
    Forgot to say: Mac OSX 10.8(?) Adobe Indesign CC 2014

    Hi... it was 10.0.7
    Updated to 10.1 & wahoo - it works now.
    Will mark your answer correct as it prompted me to update.
    Cheers

  • Suppress highlighting for parent paragraph style

    When one paragraph style is based on another paragrash style, and you click inside the child style with the Type tool, both the parent and child styles are highlighted in the Paragraph Styles panel. This makes it confusing as to which paragraph style is actually applied to that paragraph. Is there a way to change this display so that only the style applied to the active paragraph is highlighted?

    What version of ID and OS X?
    You might want to file a bug: Adobe - Feature Request/Bug Report Form

  • Creating TOC for ePub output

    I am exploring the ePub output in RH9, using Adobe Digital Editions to view the output. When I generate the output, I get a message that the TOC file is missing (see below). The solution that I found involves creating an NCX file for the table of contents - however, the instructions are geared toward creating a book for a Kindle. I've tried adapting the instructions for a RH file, but haven't had any luck. Anyone know how to do this?
    Thanks.

    Hi,
    I followed your advice, and looked at a sample project - Employee Care. When I generated ePub output using this project, the output included a table of contents. However, when I specified a TOC in my project (see below), I still get the same message that the TOC file is missing. The project name doesn't contain any special characters.

  • Feature request:  keymapping support for basic GVIM style editing

    Maybe this isn't the right forum, but it seems to be the only mechanism for providing
    feedback. I'm getting used to the workshop environment and like a lot of the
    features it provides. Tab completion of methods, parameter info, import automation
    are all very nice modern features. I come from a Unix background and cut my teeth
    coding on VI and GVIM off the command prompt. A feature that would really sell
    me on an IDE and many that I know, would be some support for VI keymappings.
    Once you are used to an editor that doesn't make you run to the mouse or the arrow
    keys every time you need to move the cursor, anything less feels slow and taxing.
    If basic support for "VI like" operation could be added, I think you'd find more
    people like myself willing to spend time in the IDE for its other features. GVIM
    offers a rich set of features, of which about 10 would suffice for most of what
    I do.
    1. insert/navigate modes so you can use ijkl instead of arrow keys.
    2. support for '/' as a search prompt as well as 'n' and 'N' to jump between
    findings.
    3. support for regular expressions on the search line
    4. support for regular expressions via a VI style substitute command {range}:s/search/replace/
    5. :w for write or "save"
    6. :e to open a file
    7. 'A' to jump to the end of a line and enter insert mode.
    8. 'D' to delete beyond the cursor to the end of the line.
    9. :line-number to jump to a line number.
    10. 'x' to delete a character and 2x for two etc...
    Okay, my list goes beyond ten if I continue, but if I could perform basic editing
    without having to go to the arrows or the mouse or a separate window of gvim,
    I'd be a happy customer.
    Thanks,
    Morgan

    Morgan,
    The engg team has confirmed that its a goal to support this in the next
    version.
    Thanks for the suggestion. Keep them coming!
    -Anurag
    "Raj Alagumalai" <[email protected]> wrote in message
    news:[email protected]...
    Hello Morgan,
    I have forwarded the information to our engineering team for evaluation.
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    PS: Wasn't sure if you had come across the kit available at
    http://dev2dev.bea.com/products/wlworkshop81/workshop_ext.jsp
    "Morgan Hall" <[email protected]> wrote in message
    news:[email protected]...
    Worth noting, I just found viPlugin for Eclipse on Sourceforge.net.
    From
    the looks
    of the documentation, it will act as a layer on top of any JDT editor oran editor
    that extends ITextEditor, which might be an Eclipse class. Hope thathelps your
    development team.
    "Raj Alagumalai" <[email protected]> wrote:
    Thanks for the feedback Morgan. I will make sure that this information
    is
    forwarded to our engineering team. We love to hear what our customers
    feel
    about the product.
    Regards,
    Raj Alagumalai
    WebLogic Workshop Support
    "Morgan Hall" <[email protected]> wrote in message
    news:[email protected]...
    Maybe this isn't the right forum, but it seems to be the only
    mechanism
    for providing
    feedback. I'm getting used to the workshop environment and like alot of
    the
    features it provides. Tab completion of methods, parameter info,
    import
    automation
    are all very nice modern features. I come from a Unix background andcut
    my teeth
    coding on VI and GVIM off the command prompt. A feature that wouldreally
    sell
    me on an IDE and many that I know, would be some support for VIkeymappings.
    Once you are used to an editor that doesn't make you run to the mouseor
    the arrow
    keys every time you need to move the cursor, anything less feels slowand
    taxing.
    If basic support for "VI like" operation could be added, I think
    you'd
    find more
    people like myself willing to spend time in the IDE for its otherfeatures. GVIM
    offers a rich set of features, of which about 10 would suffice formost of
    what
    I do.
    1. insert/navigate modes so you can use ijkl instead of arrow keys.
    2. support for '/' as a search prompt as well as 'n' and 'N' to jumpbetween
    findings.
    3. support for regular expressions on the search line
    4. support for regular expressions via a VI style substitute command{range}:s/search/replace/
    5. :w for write or "save"
    6. :e to open a file
    7. 'A' to jump to the end of a line and enter insert mode.
    8. 'D' to delete beyond the cursor to the end of the line.
    9. :line-number to jump to a line number.
    10. 'x' to delete a character and 2x for two etc...
    Okay, my list goes beyond ten if I continue, but if I could performbasic
    editing
    without having to go to the arrows or the mouse or a separate windowof
    gvim,
    I'd be a happy customer.
    Thanks,
    Morgan

  • Empty TOC KindleGen/ ePub Incorrect nesting level error

    Neither is a question but hopefully a solution for anyone who has been going through hell (like me) trying to get a working TOC for mobi and ePub files.
    I have INDD CS6, Kindle Plugin installed - but I think this also applies to earlier versions of Indd
    For Mobi (kindle) - If you got your TOC set via the Layout menu and still don't see the Table of Contents menu in Kindle Previewer- make sure to go to your PARAGRAPH STYLE - EXPORT TAGGING and UNCHECK!!! SPLIT DOCUMENTS (it even says there ePUB only).  I also  suggest you do it for all Paragraph styles you are using in your MOBI file. Kindle previewer no longer gave me an error and I can see both of my TOC's  now - that said this took me several weekends and countless nervous breakdowns to figure out.....
    For ePub incorrect nesting level - this happened to me due to the fact that I have used 2 levels for my TOC (some of you may use even 3 or 4)
    To get rid of the error I had to edit the TOC style and change the levels for both my "included paragraph styles" (the ones you add to the left column) to LEVEL 1 - yes for BOTH. I say this again - SET ALL all included paragraph styles levels to digit 1 (ONE).
    I think this is a serious bug Adobe really should fix asap -  I truly wasted several weekends on this, pulled all my remaining hair out and had suicidal (and other very violent)  thoughts ...
    I hope this post will help all of you who is dealing with either of those problems....
    Happy ePublishing everyone

    Neither is a question but hopefully a solution for anyone who has been going through hell (like me) trying to get a working TOC for mobi and ePub files.
    I have INDD CS6, Kindle Plugin installed - but I think this also applies to earlier versions of Indd
    For Mobi (kindle) - If you got your TOC set via the Layout menu and still don't see the Table of Contents menu in Kindle Previewer- make sure to go to your PARAGRAPH STYLE - EXPORT TAGGING and UNCHECK!!! SPLIT DOCUMENTS (it even says there ePUB only).  I also  suggest you do it for all Paragraph styles you are using in your MOBI file. Kindle previewer no longer gave me an error and I can see both of my TOC's  now - that said this took me several weekends and countless nervous breakdowns to figure out.....
    For ePub incorrect nesting level - this happened to me due to the fact that I have used 2 levels for my TOC (some of you may use even 3 or 4)
    To get rid of the error I had to edit the TOC style and change the levels for both my "included paragraph styles" (the ones you add to the left column) to LEVEL 1 - yes for BOTH. I say this again - SET ALL all included paragraph styles levels to digit 1 (ONE).
    I think this is a serious bug Adobe really should fix asap -  I truly wasted several weekends on this, pulled all my remaining hair out and had suicidal (and other very violent)  thoughts ...
    I hope this post will help all of you who is dealing with either of those problems....
    Happy ePublishing everyone

  • Trouble with CS5 InDesign Paragraph Styles

    I am creating a new template. I want one style to be "TOC Title", and another to be "TOC Level 1". All my concerns center around the Paragraph Style Options window (Type > Paragraph Styles > Create New Style >(double-click style to modify)  )
    1. No matter what I do, if I stipulate that "TOC Level 1" has leading (Tabs option, enter a "." or period in the Leader box), then InDesign does this for ALL my paragraph styles.
    For the record, under the General option, my "Based On" box is set to "[No Paragraph Style]" for both paragraph styles.
    So either I have to live with the TOC title having leading on it, or the TOC Level 1 having none, and in either case having to do something manually to the TOC everytime I use the template.
    How can I fix this so that TOC Title has no Leader and TOC Level 1 has a Leader of "." ?
    2. How can I set my TOC Title paragraph style so that it centers on the page?
    Edit: Two days later and no reply - I would have gladly supplied more information if I did not make the issue clear enough, and I would have even appreciated a simple "Sorry, I don't know." Since it is highly improbable that nobody out there knows ANYTHING about Paragraph Style tabs in Adobe CS5 InDesign, I must conclude that my issue is simply not "in" enough to be considered worthy of attention from the unnamed scores of elitists which must run this forum.

    I think the only way I'm going to be able to understand the problem is to see a sample file. Please make a sample, even if it has nothing more than your style definitions that are failing, and post a link to it here.

  • TOC to ePub issue

    InDesign CS5; MacOS 10.6.5
    When I export my TOC document to ePub, the TOC doesn't show—only the last two pages containing text and an image.
    The TOC has defined paragraph styles. I think I have my export settings correct.
    Help in isolating this issue is appreciated.
    Note: Viewing other documents in the book via export to ePub do show up correctly—although the book does need formatting tweaking for ePub.
    Also, when I tried exporting the entire book via the book panel, InDesign begins the export, but no activity in the progress bar; I have to force quit to get out the endless loop. Then, when I restart InDesign, untitled files begin to open—10, 20 and so on; I then have to manually close each file.
    I suspect the TOC is causing this issue.

    Firstly. Unzip your epub file
    Change the filename from "filename.epub" to "filename.zip"
    Unzip the file
    So you will see under the OEBPS folder all of your files as "filename.xhtml"
    Also a .css file which holds your style for the books (paragraph and character style)
    Step one (linking your TOC)
    Open you TOC file in Dreamweaver. 
    Select the first entry 
    Click on the picture of a folder in the bottom box
    Select the corresponding file. In this case it's Acknowledgments. 
    rinse and repeat all entries in your TOC (sure it's repeatitive but it works). 
    Then open your individual files which you have link to from your TOC. (you can open them all at once)
    Select something to link back to, and point the link back to the TOC file.
    Rinse and repeat
    The once you have done this.
    you need re zip your your folder to an epub.
    Down this applescript from this first post.
    http://www.mobileread.com/forums/showthread.php?t=55681&highlight=epub+mac+zip
    Simply drag you folder onto it. this will zip up you folder into a .epub 

Maybe you are looking for

  • How can I resize a photo in iPhoto without cropping it?

    I am taking pictures on my iphone 4s and using iphoto to edit them on macbook pro.  I need to upload these photos at a size much smaller than what i am able to take with my phone.  The only way I see to adjust the size of a photo in iphoto is to crop

  • Do I need an adapter or converter to charge i-phone 3G in Paris

    Do I need an adapter or converter to charge i-phone 3G in Paris?

  • Parallel port under linux

    could anybody help a linux-labview beginner? i'm trying to write to my parallel port. but labview is obviousely not set up for this. does anywone happen to have a vi which can do that? best of regards michael h. fischer ==============================

  • SQL Developer 1.5.4.59.40 doesn't display any data or only nulls

    Hi All, I've got a problem with SQL Developer after I downloaded the latest version *1.5.4.59.40*. SQLDev doesn't display any data or displays only few lines of nulls within information tabs: Column, DATA, Constraints, Grants, Stats, triggers and so

  • Url in jsp

    hi i code in jsp but normally my urls are http:/www.xxx.com/xxx/myfile.jsp?xx=xx&xx=xx lately i encountered a site with this kind of url: https://xxxxxxxxxxxxxxxxx/application?xxxxxx=xx&xxxxx=myfile.jsp&xxxx=xxx.xxxxxxxxxx can somebody please explain