Skip navigation
Currently Being Moderated

Dictionary-type running heads?

Nov 15, 2011 3:53 AM

Anyone know if there's a way to create running heads, dictionary-style, that change with the content on the page? I'm working on a directory (of people) that has heads at the top of each page with the first and last entries. There are well over 100 pages. If I could automate this it would cut down considerably on my time, as I'm sure you can imagine.

 

GREP? A separate script? Please point me in the right direction.

 

Thanks!

 
Replies
  • Currently Being Moderated
    Nov 15, 2011 4:05 AM   in reply to dunaz

    Use a Running Head type variable. Read about them in the Help files.

     

    One word of caution: Variables are teated as a single character, so make sure there is enough space on your line in the frame to hold the longest string. If there is not, the text will bunch up on top of itself, not break to a new line.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 15, 2011 7:09 AM   in reply to dunaz

    Yes. Running header variables come in two flavors, paragraph style or character style. I'm pretty sure that applying the character style as an ordinary nested style will work (and it needn't contain any formatting information if you don't need to change from the parameters set in the paragraph style -- all you need is a name).

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 15, 2011 7:17 AM   in reply to dunaz

    This is similar to this other recent thread (accidentally posted in the Scripting forum):

     

    Text Variables - Multiple Alphabetized Text sections per page, with Data Merge?
     
    |
    Mark as:
  • Currently Being Moderated
    Nov 21, 2011 8:15 AM   in reply to Peter Spier

    Okay, Peter (et. al.), I have a new challenge for you, along these same lines. The running head via text variable as described above works very well, EXCEPT for when you have a category that spans two pages. So, for that same document I've been working on, now we have lawyers arranged by specialty. So, if a specialty starts on one page and continues to the next, I need the two headers to say, for instance, AVIATION - CIVIL LITIGATION and CIVIL LITIGATION - CONSTRUCTION. Civil litigation starts on the left hand page and continues onto the right hand page.

     

    Can I make that happen with text variable, or do I need a script?

     

    THANKS!

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 21, 2011 8:30 AM   in reply to dunazee

    I'd have to see the actrual text to be able to tell you where to apply waht style, but in theory there's no problem. Each portion of that header should be a separate variable (with a dash and any spaces set as ordinary type in between) based on a Character style.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 21, 2011 8:41 AM   in reply to Peter Spier

    I can help you with that. Image attached.

     

    The right hand page is hand edited. The left hand page header is correct, but the right hand page, if using the "from" (character) variable as it was set up previously, would start with Civil Rights, instead of carrying over Civil Litigation from the previous page. Follow?

    Screen shot 2011-11-21 at 11.34.47 AM.png

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 21, 2011 8:51 AM   in reply to dunazee

    Is civil litigation it's own heading/paragraph/something? It needs to be, and appears that it is. I said character styles above, but seein ghte pages, it looks like they would really be paragraph style based -- I thought initially that you needed to pull part of the text out of a longer paragraph.

     

    On the left you want <subcategory variable> - <main category variable> and on the right you want <main category variable> - <subcategory variable> entered in the header text frame, and you may want a separate frame from the areas of concentration text, but It's not clear to me why the one on the left is separate and the one on the right is not.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 21, 2011 9:29 AM   in reply to dunaz

    You are, but apparently I'm not.

     

    You need two different variables for this. One picks up the Civil Litigation, and the other picks up Aviation, etc, so those types of headings need to have styles with different names, even if they are otherwise identical. You enter the variables in the order and position you want them to appear, and they can be mixed in with other running text (that's their power) if you like. In this case I see no need for a separate frame for the fixed text. On the left page I'd enter the two variables, a right-indent tab, and the fixed text. On the right page I'd enter the fixed text, right-indent tab, then the two variables. It really is that simple.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 21, 2011 10:12 AM   in reply to dunaz

    OK, TOTALLY misunderstood the structure there. I thought Civil Litigation was a higher order heading on the previous page, but now I get what you are saying. You want "yellow pages" style headers. I haven't got a printed dictionary in the office since the last time I packed up, but my recollection is that they use the first whole listing on the page and ID supposedly uses "dictionary style" running heads, not that it matters because the behavior you see is what is expected according to ID's rules.

     

    To do what you want, use the last category from the previous page when there is run-over, requires some sort of manual intervention. You can either remove the variable on a page-by-page basis and type in the correct heading, or yo can add an "invisible" heading at the top of the page to get picked up. Invisibles can be either text set with no fill, set to non-printing in the attributes, or on a whole special layer set to non-printing. I prefer one of the latter two choices, and I normally would use a local formatting override to also make that non-printing text red and very easy to see in layout view so you don't forget it's there.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 21, 2011 11:43 AM   in reply to dunaz

    dunaz wrote:

     

    Now you are getting through my thick skull! Yes, I understand the two separate variables, one each for "use first" and "use last". What I'm trying to achieve is when the category spans across two pages, like Civil Litigation in the first image, starts on page 2, continues on page 3. On page 3, "Use First" applies Civil Rights, which is the first instance of that style on the page, instead of Civil Litigation, which is what I want it to say, which was the "use last" from the previous page.

     

    What would be cool is if I could tell it to "use previous last" unless the style is applied at the very top of the first column.

    InDesign can't do this automatically.

     

    The commercial Power Headers plug-in from In-Tools can probably do it. Read about it here:

     

    http://in-tools.com/products/plugins/power-headers/

     

     

    HTH

     

     

    Regards,

     

     

    Peter

    _______________________

    Peter Gold

    KnowHow ProServices

     
    |
    Mark as:
  • Currently Being Moderated
    May 11, 2012 1:40 PM   in reply to Peter Spier

    Where are the two flavors? When I'm defining the Text Variables, the only styles to choose from are paragraph styles, even though I've set up a character style and applied it.

     
    |
    Mark as:
  • Currently Being Moderated
    May 11, 2012 1:59 PM   in reply to nathan@techniks

    When you define the Running Header text variable there's a dropdown for variable Type at the top of the dialog. Choose Running Header (Character Style).

     
    |
    Mark as:
  • Currently Being Moderated
    May 15, 2012 5:16 AM   in reply to Peter Spier

    Ah! A beautiful thing. Thanks!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points