Skip navigation
Currently Being Moderated

automatically splitting a heading between two frames

Feb 14, 2012 4:54 PM

Tags: #framemaker_10 #auto_numbering #text_flow

I'm trying to simplify a template I inherited without changing its appearance. I'm using FrameMaker 10.

 

The First page layout has three frames: a small box at the top left that contains only the chapter number, to the right of that a rectangle that contains the chapter name, and a box below for the page body. All three are in the A flow and are autoconnected in the specified sequence.

 

Currently the chapter number and name are two paragraphs that use ChapNum and ChapName tags.

 

I'd like to combine these into one tag. Is there some way to format a paragraph tag so FrameMaker will put the autonumber in the first box and the title in the second?

 
Replies
  • Currently Being Moderated
    Feb 14, 2012 7:05 PM   in reply to rlauriston

    Make the first box small enough so that only the autonumber fits and use a leading space for the chapter title to ensure that it starts in the next box.

     

    Alternately, you could use a cross-ref from the first box to the chapter title and use the <$paranumonly> building block in the cross ref. In the chapter paragraph autonumber use the "< $chapnum>" building block (note the leading space) to not display the number beside the chapter title.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 15, 2012 9:33 AM   in reply to rlauriston

    rlauriston wrote:

     

    A leading space for the chapter title will mess up the formatting and I can't build a cross-reference into a paragraph tag.

     

    Maybe I could use a Running H/F in the first block in the master page.

    A screenshot would help.

     

    If the chapter number and chapter title are on the same line, consider a single text frame, the width of the body text, for the whole page, with the horizontal distance between the number and the title set by tab stops, and the distance between the chapter number/title line and the body text set by space below the chapter numbertitle.

     

    [EDIT] Following-up on Arnis' suggestion, instead of a leading space between the chunks, consider inserting a non-breaking space after the first word of the title, to force it out of the small text frame. If the title is only one word, use enough non-breaking spaces to force it out. If the title is referred to in a cross-reference, or extracted for a TOC, the trailing spaces may be problematic. [/EDIT]

     

    HTH

     

     

    Regards,

     

     

    Peter

    _______________________

    Peter Gold

    KnowHow ProServices

     

    Message was edited by: peter at knowhowpro

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 15, 2012 10:13 AM   in reply to rlauriston

    Actually, if you don't use a space or any other positioning in the autonumber component, then you don't need a leading space in the Title (weird FM interaction here), so no formatting gets messed up.

     

    For the x-ref approach, the first paratag would be something like a Body tag and then you x-ref to the next one, i.e the Chapter Title.

     

    Neither of these is something that I would really recommend.

     

    You've suggested the less intensive maintenance way yourself, e.g. use a running h/f variable  to get the <$chapnum> in a background frame on the Master Page. If you don't want the Chapter Number to duplicate in the title, but still have it available for cross-refs and generated lists, remember the leading space attribute in the autonum building block for the chapter number, i.e. "< $chapnum>"

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 15, 2012 11:06 AM   in reply to rlauriston

    Where does vertical spacing come into this? Are you trying to create something that looks like this:

    fm_2frames.png

     

    If so, then the first suggestion I made does this. You just have to make the first box the critical size (depending upon your typeface and font size) to force the text to start in the next one.

     

    There's also a quirk with using hidden autonumbers in variables, they don't display; whereas, when used in an x-ref, they work. Another FM inconsistnecy.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 15, 2012 12:56 PM   in reply to rlauriston

    You can always just have the first text box be a background text frame on the Master Page holding just the <$chapnum> variable. Then use the < $chapnum> (with the space) for the autonumber in the chapter title to not display the chapter number again. Or is there something else more complicated in your design?

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 15, 2012 1:49 PM   in reply to Arnis Gubins

    Arnis Gubins wrote:

     

    Where does vertical spacing come into this? Are you trying to create something that looks like this:

    fm_2frames.png

     

    If so, then the first suggestion I made does this. You just have to make the first box the critical size (depending upon your typeface and font size) to force the text to start in the next one.

     

    There's also a quirk with using hidden autonumbers in variables, they don't display; whereas, when used in an x-ref, they work. Another FM inconsistnecy.

     

    As proof that nothing on the Internet ever dies, the I'm sure I learned the technique of sinking text from Arnis, back when computers were powered by steam.

     

    sunken text annotated final2.png

     

    [EDIT] I replaced the screenshot because the earlier one lacked the insertion point in the CnumTitl paragraph, hence it lacked the tab stop in the ruler.[/EDIT]

     

    Also, I had a suspicion that FrameMaker's Japanese "rubi" text feature might work, and in Klause Daube's document, I found he'd credited me with a tidbit, back in 2008! If you're curious:

     

    http://www.daube.ch/docu/files/rubi-in-latin-scripts.pdf

     

    I think the sunken text in a single paragraph format in a single text frame is the most direct approach. To recreate the feature in other locations, copy/paste is the most efficient.

     

    HTH

     

     

    Regards,

     

     

    Peter

    _______________________

    Peter Gold

    KnowHow ProServices

     

    Message was edited by: peter at knowhowpro

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 15, 2012 6:03 PM   in reply to rlauriston

    rlauriston wrote:

     

    I don't understand the bit about "sinking" text, but I'm not editing these files, only importing formats and updating the book using Apply Master Pages.

    Sorry if I wasn't clear enough. The autonumber of the CnumTitl paragraph is above the line on which the title text rests, something like a superscript (but don't go there,) but it's a single paragraph in a single text frame. I was emulating Arnis' example that uses two text frames to place the text at different heights on the page. The main title text is "sunk" compared to the position of the autonumber; the technique for sinking is described in my earlier post.

     

    If you're trying to combine two paragraph formats into one format, you're doing more than simply importing formats and updating by using Apply Master Pages, IMO.

     

    As I suggested earlier, a screenshot would be helpful, otherwise we're guessing what you're thinking about.

     

     

    HTH

     

     

    Regards,

     

     

    Peter

    _______________________

    Peter Gold

    KnowHow ProServices

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 16, 2012 8:39 AM   in reply to rlauriston

    rlauriston wrote:

     

    Book A uses a complicated, cruft-ridden, print-oriented template I inherited.

     

    Book B uses a streamlined template I designed for easy export to XHTML or Word.

     

    What I developed today is template C. I import its styles into book B, update with Apply Master Changes enabled, enable side heads, and voilà, book B looks just like book A, but it's still easy to export. I can also revert to the original look by importing template B.

     

    What I was asking about here involved duplicating the chapter title style of template A, which used two text frames and two paragraph tags with a single paragraph tag. The trick was putting the chapter-number counter in a background text frame.

    Glad you got what you wanted.

     

    If there's a reason to change the relationship between the background number and the body-page text, may need to work with both body and master pages. The single-frame single-paragraph format method might be less fussy if you need to readjust.

     

     

    HTH

     

     

    Regards,

     

     

    Peter

    _______________________

    Peter Gold

    KnowHow ProServices    

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 16, 2012 11:45 AM   in reply to rlauriston

    rlauriston wrote:

     

    As I said, the single-frame methods didn't work.

     

    I won't be changing anything. I'll be deprecating the old template when we migrate to a wiki (if not sooner), just need to make the docs look the same in the meantime.

    Well, not seeing a screenshot of successes and failures keeps me guessing.

     

     

    Regards,

     

     

    Peter

    _______________________

    Peter Gold

    KnowHow ProServices    

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 16, 2012 12:14 PM   in reply to rlauriston

    Actually, you can specify a baseline offset in a character tag (however Adobe in it's infinite wisdom still doesn't see the benefit of providing access to this via the user interface... ). See MIF Reference for FDX & FDY.

     

    See Scott Prentice's ExtraCharFormat utility: http://leximation.com/tools/info/extracharformat.php

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 16, 2012 3:08 PM   in reply to Arnis Gubins

    Arnis Gubins wrote:

     

    Actually, you can specify a baseline offset in a character tag (however Adobe in it's infinite wisdom still doesn't see the benefit of providing access to this via the user interface... ). See MIF Reference for FDX & FDY.

     

    See Scott Prentice's ExtraCharFormat utility: http://leximation.com/tools/info/extracharformat.php

    According to Scott's page, this plug-in only through FM 5, 6, 7. 8 is in development. Nothing later.

     

    I guess, like presidential nomination candidates, I didn't disclose something important until it was brought up by someone else. The steps I described in post 10, actually change the baseline offset; I didn't use the term because technically it doesn't exist in FrameMaker, and I didn't think it was clear. Moving a selection up/down with Alt+ArrowKey is commonly used for moving graphic objects, but it happens to work with text selections as well. Selected text can be moved up/down/left/right. An anchored frame in line with text can only move up/down. Autonumbers can't be selected and moved, but they don't move when other paragraph text is moved.

     

    Regards,

     

     

    Peter

    _______________________

    Peter Gold

    KnowHow ProServices

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 16, 2012 4:57 PM   in reply to peter at knowhowpro

    Peter,

     

    The plug-in does work with later versions of FM as well. FM10 is a bit cranky with many FDK plug-ins, so it may crash once in a while. Scott's aware of this, but since he's graciously & freely put it out there, it kind of has low priority

     

    Whadda'ya mean "a baseline offset doesn't technically exist in FM"? FM's fonts are laid down on a baseline and the offset is defined as a %em relative to the baseline. There's also the horizontal FDX component for custom kerning.

     

    An Autonumber can have a character style applied that has a custom FDX & FDY, so yes they can be moved (albeit in a non-intuitive way).

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 17, 2012 7:30 AM   in reply to Arnis Gubins

    Arnis Gubins wrote:

     

    Peter,

     

    The plug-in does work with later versions of FM as well. FM10 is a bit cranky with many FDK plug-ins, so it may crash once in a while. Scott's aware of this, but since he's graciously & freely put it out there, it kind of has low priority

     

    Whadda'ya mean "a baseline offset doesn't technically exist in FM"? FM's fonts are laid down on a baseline and the offset is defined as a %em relative to the baseline. There's also the horizontal FDX component for custom kerning.

     

    An Autonumber can have a character style applied that has a custom FDX & FDY, so yes they can be moved (albeit in a non-intuitive way).

     

    Arnis:

     

    Good to know the plug-in works with later releases.

     

    By "doesn't technically exist," I probably should have said "doesn't apparently exist in the UI." My earlier credit to you was about just this ability. I suggested "sinking" selected text with Alt+arrows as a way to achieve the shift in the UI.

     

    I don't see FDX and FDY options in FM 10's character designer; are you referring to creating them in MIF? In the UI, autonumbers cannot be raised or lowered, but raising or lowering paragraph text can achieve the same effect in most situations.

     

     

    Regards,

     

     

    Peter

    _______________________

    Peter Gold

    KnowHow ProServices

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 17, 2012 10:31 AM   in reply to peter at knowhowpro

    Peter,

     

    The FDX and FDY parameters have always existed for all text objects (character tags, paragraphs and line-text - graphics tool). Unfortunately, they are not exposed even in the new & improved UIs of late. Having these available through the UI has been on wishlists for at least 19 years! Scott's plugin adds the FDX and FDY values to the Character Catalog values for a specified tag. They can be seen when the FM file is saved to MIF and also can be imported from MIF. However, if you ever do an Update All on that character tag and select Remove Overrides, FM removes the FDX and FDY entries from the catalog definition for that tag. REALLY DUMB!! [Programmer: The user really didn't want that anyway, so even though they explicitly specified it, lets take it away from them and not let them know...]

     

    Regarding autonumbers, in the UI you can also specify a character tag that will raise or lower the autonumber component without having to adjust the paragraph text. The opposite of what you're saying. My preference is to leave the parent containers (paragraphs) alone and set to the design grids, and tweak other containers (character tags, tables, frames) relative to that.

     
    |
    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