Skip to main content
LinSims
Community Expert
Community Expert
April 5, 2022
Answered

Forced returns in autonumbering

  • April 5, 2022
  • 3 replies
  • 1222 views

Has this been added to FM? I see some old posts that it isn't possible to do this (and experimentation with using either \n and \r seems to bear this out), but it would be really useful if I could figure out a way to do this. Mostly so that when I generate a PDF, the bookmarks include the section numbering automatically as part of the heading instead of having to add them in after the fact.

    This topic has been closed for replies.
    Correct answer LinSims

    Rick turned this around in about half an hour, and I couldn't be happier with the result. Not only does the script fix my bookmarks, but he taught me in about 5 minutes how to set up an Action that would reset my display settings and run the script automatically after invoking it.

     

    I may have to play with more actions. I bet I could get it to automatically add watermarks, too, for when I'm issuing drafts for reviews.

     

    [rubs hands gleefully]

    3 replies

    LinSims
    Community Expert
    LinSimsCommunity ExpertAuthorCorrect answer
    Community Expert
    April 6, 2022

    Rick turned this around in about half an hour, and I couldn't be happier with the result. Not only does the script fix my bookmarks, but he taught me in about 5 minutes how to set up an Action that would reset my display settings and run the script automatically after invoking it.

     

    I may have to play with more actions. I bet I could get it to automatically add watermarks, too, for when I'm issuing drafts for reviews.

     

    [rubs hands gleefully]

    LinSims
    Community Expert
    LinSimsCommunity ExpertAuthor
    Community Expert
    April 6, 2022

    FWIW, I've added a request to enable using either an \r or \n to the autonumbering in a comment to an earlier bug report/feature request created by Klaus Daube, which asks Adobe to add the ability to have leading zeros and to have decrementing autonumbering, both of which I think would be wonderfully useful features. So go vote for it!

     

    https://tracker.adobe.com/#/view/FRMAKER-10999

    Inspiring
    April 5, 2022

    I don't understand why your bookmarks don't include the section numbering nor why that is connected to forced returns. I don't have that problem.

    LinSims
    Community Expert
    LinSimsCommunity ExpertAuthor
    Community Expert
    April 5, 2022

    The style here (set before I came on board), is to have the section number on the first line and the heading text on the second line. They use different tags and are formatted differently.

     

    If I generate a PDF and include both tags, the bookmark for the section number is a different bookmark from the bookmark for the heading text, which just looks stupid in the bookmark pane.

     

    If I generate a PDF and only include the tag for the heading text, I have to manually add the Section number before the text in each bookmark. This is the option I've been using, but it's a PITA.

     

    In short, I want to have one paragraph tag with autonumbering that will look like the following in the book, but will show up as "Section 2: This is how it should look" in the PDF bookmark panel.

     

     

     

     

    Community Expert
    April 5, 2022

    Hi Lin,

     

    And when you move the paragraph format of the heading text one level down?

    Then you would have something like

    Section number

    -- Heading tet

    Section number

    -- Heading text

     

    I have this in my catalogue, and there it looks good, more tidied up, as only the order numbers can be seen, and when the reader is curious, he/she can open the bookmark.

    But this is probably a different need.