TOC styles and tabs

Hello. I'm working on a book and the TOC has the page numbers aligned to the right, via a right indent tab, that I defined on the paragraph styles the TOC uses.
Some of the entries, however, are a bit long and so they get too close to the page number or even fill more than one line. This makes the page number flow into the next line as well, although it remains right aligned, as it should.
What I need is to define a right aligned tab for the text and one for the page number. This would essentially define a margin between the entry's text and the page numbers.
Also, if possible, I'd prefer to have the page number always on the first line of the entry and not have it flow to the last one.
Any thoughts? I hope I explained this well enough, but if it's not the case, just let me know. Thanks in advance.

Another option between fully-automatic and manual would be to insert a hair space in the actual text where you want the TOC to break (which probably won't effect the text noticably), then after you build your TOC, select all of the TOC text, search for any hair spaces and replace them with forced line breaks. You can do that in one step, rather than several, and as long as you restrict your find/replace to the selection (and not the document), you won't change the hair spaces in the actual text. When I have things like this to do, I place a large, obvious reminder in the document and set it to non-printing.

Similar Messages

  • Selected TOC style Name

    Hi All,
    Simple question for you...
    How can I alert the selected TOC style name.
    We are creating huge tool. Based on the selection Toc Style, we will process the multiple document.
    For example I want to alert the Toc Style CCC(tick mark) name in this document.
    Trying Code:
    var myTocStyle = app.activeDocument.tocStyles.selectedIndex;
    //~ var myTocStyle = app.activeDocument.tocStyles.item(-2);   //Dont want this concept
    Very urgent request. Please help.
    Thanks
    Beginner_X

    From:
    myStory.storyType
    you can determine that a story is a TOC, but how do you get from there to the TOC Style that was used to create said TOC?
    This was the question that was bugging me back in CS3 days and I see no improvement in the CC object model. Stories don't have an associatedTOCStyle property. But maybe you can get at this by lateral thinking. If a story was created as a TOC then it has certain paragraph styles in it. If the TOC Styles are designed to have unique paragraph styles that identify the TOC Style, then you're home and dry. For example, you could have a ParagraphStyleGroup for each TOC Style and the name of that group could be the same as the name of the corresponding TOC Style.
    Of course, this assumes you have control over the template for the project so that this relationship can be relied on. But given that, you can start with a text selection. Check the applied paragraph style, look at the name of its parent and bingo: there's the name of the TOC Style.
    I'm not sure if this helps in your situation.
    Dave

  • Two different TOC styles in one Pages document?

    I'm a new Pages 2.0.2 user with a large document with two different tables of contents 20 pages apart. I'm trying to format them differently using different TOC styles but when I change one's style the other one changes as well. Anything I do format-wise to one goes over to the other as well. I'm hoping this is just something I have yet to learn about the product. Any thoughts?
    iMac G5   Mac OS X (10.3.9)   1GB Memory

    Hi
    Someone else might know but this doesn't look good, taken from Pages Help:
    "Changing the appearance of text in a table of contents
    You can change the appearance of text in a table of contents and also add a leader line between a TOC heading and its associated page number.
    To change the appearance of text in a table of contents:
    Select the TOC heading you want to change. When you select a TOC heading, all the entries of the same heading type are automatically selected; headings cannot be individually selected.
    Click View in the toolbar, and then choose Show Styles Drawer.
    The Styles drawer displays a list of table of contents (TOC) styles. The TOC style that corresponds to the selected entry type is also selected.
    Do one or more of the following:
    To change the appearance of text, change it as you would format any paragraph text. For example, choose Format > Font or use the Text Inspector to make edits.
    To create leader lines from a TOC heading to its associated page number, click Inspector in the toolbar, click the Text Inspector button, and then click Tabs. Click the value for the TOC in the Tab Stops list, and then choose a line style from the Leader pop-up menu."

  • Setting up a TOC Style

    It is possible to set up a style such that the last line of a paragraph has a wide right margin that the read of the paragraph?
    I would like to have a TOC style that has
    FIRST LINE                                          Justified Right Margin
           INDENTED SECOND LINE             Justified Right Margin
           INDENTED THIRD LINE                                                             RIGHT JUSTIFIED PAGE MARGIN
    Such that the page numbers are away from the TOC text.

    Set the paragraph style with a right indent, and a negative last line indent ( this is kind of the opposite of a first line hanging indent). It won't be obvious with ragged right text, and may not show at all unless the last line is actually the correct length to fill the column width.
    In your example it looks as if you intend to justify, which will help, and you can use either a flush space or a right-indent tab to move the end of the last line to the margin.

  • Table of Contents Issue - TOC Styles Set Correctly, but TOC Shows Two Fonts on One TOC Line

    I created a template and set up all of the styles correctly, as with every other template I've ever made.  However, I have never run into this problem before.
    I created the template to match a client's style/look.  They use a font called "Gill Sans MT."  My Normal style is set to this, and my TOC styles (TOC 1, TOC 2, TOC 3, etc.) are based off of the Normal style.  My Heading styles are
    also based off the Normal style and use the same font.
    For some reason, the TOC in the document is populating with two different styles.  The actual Heading text is showing up as Arial font, but the tab leader and the page number are showing up in the Gill Sans MT font (see below).
    Any idea what's going on here?  I have tried modifying the TOC styles, inserting a new TOC, basing the TOC styles off of "(no style)," changing the Heading styles, clearing the formatting on the Heading styles, etc.  I can't get anything
    to work.

    All I can suggest is to try your steps again. You mention everything that I would try.
    I assume that the template is a .dotx or .dotm file, and so, does not have an "attached template."
    When you tried basing your TOC styles off "no style" I assume you set the font to Gill Sans MT. I would definitely have the heading and TOC styles set to cascade.
    How styles in Microsoft Word cascade by Shauna Kelly
    Charles Kenyon Madison, WI

  • TOC Links and Bookmarks

    Hello InDesign community,
    I seek your advice and assistance with resolving an issue related to Table of Contents and Bookmarks created in books in InDesign CS6 for Mac (v8.0.1).
    I have created a book in ID which contains a few chapters. There is a TOC at the beginning of the book based on Headings created in Paragraph Styles . In TOC style, I have selected the option to create PDF bookmarks. When I have exported the book, using the book panel, I have used the following settings for interactive and print respectively.
    (I have also tried creating interactive without the 'Use Structure for Tab Order' checkbox marked)
    My problem is when one clicks on the bookmarks (in Acrobat) the bookmark navigates through the document to the respective page only, rather than to the heading which the bookmark refers. The same occurs if one clicks on the documents TOC links (that appear on page iv).
    What is even more interesting is that a colleague sent me a PDF that was created in MS Word and converted to PDF using Acrobat X and the links behave perfectly, that is, they go directly to he heading requested. ID is a a professional page layout software, yet I am unable to get bookmarks and TOC links behave in the same fashion as a PDF created by Word and Acrobat.  I must be doing something wrong....
    I looked at the bookmarks (in Acrobat) for each document and noticed some differences see pictures below.
    Properties of bookmarks created from a Word Document using Acrobat X (Windows)
    Properties of bookmarks created from Adobe InDesign
    My questions, therefore are:
    1. How can one edit the links in the document's own Table of Contents (as generated using TOC funtion of ID) so that the links link directly to the heading they are suppose to.
    2. How can one modify automatically the way bookmarks are created by ID so that they behave in the same fashion as ones created by Acrobat during Word Document conversion.
    3. What are 'named destinations' and how can one create them and/or link them to the TOC links?
    I know this sounds complicated, but I would like to be able to have users of documents click a link and be taken directly to the information they have requested to view rather than just to the page. Is this possible with ID or is it just the domain of PDF created from Word Docs (surely not?) ?
    I thank you in advance for your comments and feedback.

    What PDF are you making Interactive or Print ?
    Bookmarks and hyperlink automatically work in Interactive PDF however while making the Print PDF you have to manually check the option under "General option" in Export PDF screen to include the interactivity.

  • How to create a report in Form line Style and can display Image field?

    Hi,
    In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
    I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
    But in Paper Layout, my report can not display Image field.
    I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
    How to create a report in Form line Style and can display Image field?
    I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
    Thanks & regards,
    BACH
    Message was edited by:
    bachnp

    Here you go..Just follow these steps blindly and you are done.
    1) Create a year prompt with presentation variable as pv_year
    2) Create a report say Mid report with year column selected 3 times
    - Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
    - Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
    - Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
    Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
    3) Create your main report with criteria as Year and Measure col
    - Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
    - Now put a filter on year column with Filter based on results of another request and select these:
    Relationship = greater than or equal to any
    Saved Request = Browse Mid Report
    Use values in Column = YEAR-1
    - Again,put a filter on year column with Filter based on results of another request and select these:
    Relationship = less than or equal to any
    Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
    Use values in Column = YEAR+1
    This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
    This will 100% work...
    http://i56.tinypic.com/wqosgw.jpg
    Cheers

  • New character style not showing up in TOC style

    I created a new character style called Subchapter....
    Then I went to layout>toc styles.. and hit [new]. Under "Style" my new character style "Subchapter" is not there. Also, under the "Styles in Table of Contents....include paragraph styles.." my new character style "Subchapter" is not in the other styles list.
    What am I missing?
    Thanks.
    Also, forgot to mention, I am in book mode at this point. Maybe I need to add that new character style to each .IDD chapter of the book?

    NEvermind, it was because I was making a character style, not a paragraph style. Now it shows up.
    Thanks anyways.

  • Carriage Returns and Tabs in XML element

    I have a number of carriage returns and tabs within an xml element. When I take that element I would like it to transform to html in which I am then displaying within a JEditorPane. However, when I do this it is one long string. I have tried the xml:space="preserve" within that element and this still is not working.
    Here is part of the xml with the carriage return line feeds. The element that I am talking about is called pseudocode. You can see it is displayed correctly below.
    Design Document XML : <?xml version="1.0" encoding="ISO-8859-1"?><design-doc><title-page><title>Testing Document</title><class-prepared-for>Lloyd</class-prepared-for><authors>Ben Garbers</authors><date-created>September 23, 2004</date-created></title-page><introduction text="This is the introduction. This is the introduction."/><class-definitions><class-definition class-name="ClassOne" visibility="public" class-complexity="not complex"><global-variables><variable visibility="public" name="VariableOne" object="String" comments="This is a String."/><variable visibility="public" name="VariableTwo" object="Integer" comments="This is an Integer."/></global-variables><methods><method name="MethodOne" synopsis="This will do some things." purpose="public" visibility="public"><input-parms><variable visibility="null" name="firstName" object="String" comments="null"/></input-parms><output-parms><variable visibility="null" name="lastName" object="String" comments="null"/></output-parms><local-variables><variable visibility="null" name="age" object="int" comments="null"/></local-variables><pseudocode xml:space="preserve">/* Ensure that player name exist in the system*/
    if (player =null)
         NullPlayerException;
              if (NOT (isPlayerNameExist(player)))
                   throw PlayerNameNotExistException;
              /* Ensure player name exist in the team already*/
              i ? 1;
              while (i <= length(mPlayers)) {
                   if (mPlayers.mPlayerName != playerName)
                        throw PlayerNameNotExistInTeamException;
    this.mPlayers ? this.mPlayers - player;</pseudocode>
    However, when I do the transformation I get the following with the pseudocode:
    /* Ensure that player name exist in the system*/if (player =null)     NullPlayerException;          if (NOT (isPlayerNameExist(player)))               throw PlayerNameNotExistException;          /* Ensure player name exist in the team already*/          i ? 1;          while (i <= length(mPlayers)) {               if (mPlayers[i].mPlayerName != playerName)                    throw PlayerNameNotExistInTeamException;}this.mPlayers ? this.mPlayers - player;
    It looks like it adds some spaces but no carriage returns or line feeds.
    My transformation code is the following:
         public ParseFile(String xmlString) {
              try {
              //Here we will load the correct style sheet for the message
              //that will be formatted.
              String urlString = "DesignDocument.xsl";
              URL url = this.getClass().getResource(urlString);
              System.out.println("URL to style sheet = " + url.toString());
              String styleSheetName = url.getFile();
              System.out.println("Style sheet name : " + styleSheetName);
              InputStream styleSheetInputStream = this.getClass().getResourceAsStream(urlString);
              //We will than load our SAXParerFactory and parse the message.
              SAXParserFactory SPFactory = SAXParserFactory.newInstance();
              SPFactory.setValidating(true);
              SAXParser sp = SPFactory.newSAXParser();
              XMLReader sax2parser = sp.getXMLReader();
              //NO Validation done on for this because we do NOT have a DTD.
              sax2parser.setFeature(
                   "http://xml.org/sax/features/validation",
                   false);
              sax2parser.setContentHandler(new FileContentHandler());
              //we create a character array of the length of the xml message String
              char[] messageCharacterArray =
                   new char[xmlString.length()];
              // we then put the xml string into the character array.
              messageCharacterArray = xmlString.toCharArray();
              // after this ew end up creating a CharArrayReader that will be used by the Sax
              // parser to parse the xml.
              CharArrayReader xmlCharArrayReader =
                   new CharArrayReader(messageCharacterArray);
              // we put the xml character array within the Input Source which will then be parsed
              // by the Sax2 parser.
              InputSource in = new InputSource(xmlCharArrayReader);
              // Use a Transformer for outputting the message into our formatted xml using
              // the stylesheet defined up in a messages own sxl stylesheet file.
              TransformerFactory tFactory = TransformerFactory.newInstance();
              tFactory.setURIResolver(new BasicURIResolver());
              StreamSource stylesource = new StreamSource(styleSheetInputStream);
              Transformer transformer = tFactory.newTransformer(stylesource);
    //          transformer.setOutputProperty(OutputKeys.INDENT, "yes");
    //          transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
    //          Properties properties = new Properties();
    //          properties.setProperty("indent", "yes");
    //          properties.setProperty("{http://xml.apache.org/xslt}indent-amount", "2");
    //          transformer.setOutputProperties(properties);
              // We will use a ByteArrayOutputStream to put our transformed xml.
              ByteArrayOutputStream bos = new ByteArrayOutputStream();
              StreamResult result = new StreamResult(bos);
              SAXSource source = new SAXSource(in);
              transformer.transform(source, result);
              String s = bos.toString();
              StringBuffer sb = new StringBuffer();
              //This will make sure the Version Line is not shown.
              BufferedReader br = new BufferedReader(new StringReader(s));
              String line = "";
              while ((line = br.readLine()) != null) {
                        sb.append(line);
              bos.close();
              br.close();
              formattedXmlString = sb.toString();
              System.out.println("--------------------------------");
              System.out.println(formattedXmlString);
              System.out.println("--------------------------------");
              } catch (Exception e) {
                   e.printStackTrace();
    I have been searching and trying to figure this out forever. Any help would be greatly appreciated. Bottom line is that I want carriage returns and tabs to work when transferring from the xml to xsl.

    I get the following line when adding the <pre> tags.
    /* Ensure that player name exist in the system*/if (player =null)     NullPlayerException;          if (NOT (isPlayerNameExist(player)))               throw PlayerNameNotExistException;          /* Ensure player name exist in the team already*/          i ? 1;          while (i <= length(mPlayers)) {               if (mPlayers[i].mPlayerName != playerName)                    throw PlayerNameNotExistInTeamException;}this.mPlayers ? this.mPlayers - player;
    On the screen this is shown on 1 line. It looks like the tabs are working correctly. However, the carriage return, line feeds do not seem to be working. The xml that is pushed into the transformation has the carriage returns and line feeds and is formatted correctly. There has to be something happening when the xsl takes the xml String. When I add <BR></BR> within the xml that doesn't seem to work either.
    I am really sumpted. If you could help DrClap I would really be appreciated.

  • I need to convert PDF to Excel, however, columns and tabs make many merged cells and many blank columns. In addition to not separate the columns correctly, I see many not separate lines together in the same cell. I'm even thinking that Adobe Acrobat Pro D

    I need to convert PDF to Excel, however, columns and tabs make many merged cells and many blank columns. In addition to not separate the columns correctly, I see many not separate lines together in the same cell. I'm even thinking that Adobe Acrobat Pro DC has limitations. There is no way to define what points in columns to force break column? Nor create many columns that are useless? How does text to column in Excel, fixed size when we import text, and define where the breaks have columns?
    Google Tradutor para empresas:Google Toolkit de tradução para appsTradutor de sitesGlobal Market Finder
    Desativar tradução instantâneaSobre o Google TradutorCelularComunidadePrivacidade e TermosAjudaEnviar feedback

    PDF does not contain columns, rows, formats, styles, or other aspects of word processing or spreadsheet file formats.
    This is because PDF is decidedly not a word processing or spreadsheet file format or something "like" one of those.
    (see ISO 32000 for what PDF "is")
    What can optimize the export of PDF page content is to start with a well-formed tagged PDF (ISO 14289-1, PDF/UA-1 compliant).
    Without that export is what it is and one performs whatever content cleanup is needed using the native application for the export file (MS Word or Excel).
    Be well...

  • Table of contents: Style and numbering

    Hi all,
    I've already found some information about the page numbers in the Toc here on the forum, so thank you for posting that.
    What I can't find is this: I've got my table of contents with the page numbers aligned to the right side. The toc consists all the titles I've used in my Pages document. In this document I gave these titles different numbers, i.e. I've used the styles for creating a list. So in my document I have something like this:
    1 Food
    1 1 Vegetables
    1 1 1 Carrots
    text about carrots
    1 1 2 Tomatoes
    text
    1 2 Fruit
    1 2 1 Apples
    text about apples
    1 2 2 Lemons
    text about lemmons
    2 Drinks
    2 1 Hot drinks
    2 1 2 Coffee
    text..
    I don't want to start a discussion about wheter or not a tomato is a fruit or a veg . I would like to know how i get these numbers in my Toc ? Right now I have this toc :
    Food 1
    Vegetables 1
    Carrots 1
    Tomatoes 2
    Fruit 3
    Apples 3
    Lemons 4
    Drinks 5
    Hot drinks 5
    Coffee 6
    But I want something like this :
    1 Food 1
    1 1 Vegetables 1
    1 1 1 Carrots 1
    1 1 2 Tomatoes 2
    1 2 Fruit 3
    1 2 1 Apples 3
    1 2 2 Lemons 4
    2 Drinks 5
    2 1 Hot drinks 5
    2 1 2 Coffee 6
    Can somebody show me how to do this ? And also, is there a possibility of changing the text layout in this Toc according to the layout I've used for these titles in my Pages document ?

    Actually, yes, it was tedious, but I gave the numbering in the heading styles a fair go. tried my own indented numbering styles. When the doc becomes large enough, the auto-numbering breaks. I write fairly intense technical docs, with legal (or tiered) numbering, I cannot afford either the incorrect numbering, or the ToC not showing the numbered heading.
    Typing the number into the heading, and using say 4 heading styles for four level of detail (tiers), works well. But do not start until the doc is fairly stable, and thus the numbers do not change. These numbers show up in the ToC very nicely. You can use didferent ToC Heading styles and make that look good as well.
    And, yes, I have requested the feature. What I really want is the heading sytle to remember the indent/tier level and keep track of it; and not get lost in a large doc; THEN showing that number in the ToC.
    Cheers
    Derek

  • TOC freakiness: Loading TOC style from other document reset my par styles [CS4]

    I loaded a TOC style into my layout (from a template doc), only to find that all my text formatting had reverted to that used in said other doc.
    This even affected styles not used in the TOC, such as body text.
    It appears that instead of just loading the TOC style, it is loading (and replacing) paragraph styles as well.
    Anyone else have this problem? Looks to me like a bug.

    Aaron,
    You probably already checked on this but, if some or all of your styles are Based On the paragraph style known as Basic Paragraph, then you could have this unfortunately fatal accident?
    Mike Witherell in Maryland

  • TOC style template for epubs - where is it stored?

    Hello,
    some years ago I saved 3 different toc styles for my epubs. Now I added some more (for 2 levels etc.). This new ones also I saved.
    But when I start to build the epub in the first option windows at the point TOC style navigation there are still the old three templates to select. I'm not able to choose the new ones.
    Now I deleted in every dokument file the three old TOC styles by using the usual TOC tool. But in the epub-generator these templates are still there. With the result: the epub toc wich will be generated is wrong.
    Where are these templates stored?
    I use ID CC 2014.
    Thanks
    Detlef

    Hi Anshul,
    Thanks for your help. I export to epub 2.01 reflowable.
    For dokuments that might be so. But I do it with books and I deleted the TOC styles in ALL documents but it was still there in the list. Also I created a new book with all new dokuments, generates on TOC style in the first document and in the export option list there were the Default style only. It is not to figure out, where ID ist looking for that?
    Cheers
    Detlef

  • TOC style issue

    I'm working toward converting my book to an ePub.
    So, I created a new TOC style to pick up both the chapter number and chapter title on level 1.
    But the new TOC style only appears as an option with my TOC doc open. The new style doesn't appear as an option in my book chapter files.
    Is there a way to make the new TOC style available when opening another doc in my book?

    I would appreciate some clarification.
    I've attached a few screenshots.
    My style source is 03_chapter. So, do you mean to simply select the TOC doc as shown below, and then synchronize? Also, how would I know if the other styles in the TOC file are defined correctly?
    Thanks.
    All except Master Pages are checked.

  • TOC Style

    Though the TOC Style "Always Show Selection" has been checked but still in the generated chm file using RoboHelp 10 does not close the book.  When a user navigates from one link to another from topics, the related topic is not displayed.  The other books remain open, the related book from where the html file gets displayed is not displayed.  Can anyone help me with this.
    Soni

    Rick will still be in bed right now.
    What you are showing is a webhelp window. In theSSL pod, set Microsoft HTML help to be the default, unless you are using Rh10. Then go the Project Set Up pod and create a new window, in Rh 10 you will get an option for the window type.
    In the new window you will see the required option.
    Make sure you select that window when generating the help.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for