[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

RE: Cross-ref page number prefix in multi-file book



Here is the Cross-Reference format I used in a recent manual:

<CrossReference>see \`<$paranum><$paratext>\' on page
<$paranum[ChapterStartNumber]>-<$pagenum><Default 

 Font>

Where <CrossReference> is the character format for the cross-reference
<$paranum><$paratext> are the paragraph autonumber and heading (subheading)
<$paranum[ChapterStartNumber]> populates the "page number" with the chapter
 number (note the hyphen between this and the next variable)
<$pagenum> is the actual, sequential page number in the chapter.
<Default  Font> resets the character formatting back to "normal".

Each chapter starts the page numbering at x-1, where x is the chapter
number of that chapter.

As long as you use an autonumber to populate the chapter number, this
format works.

Dennis
Dennis Hays Information Design
Eleven Circle Drive
Castleton on Hudson, NY 12033
Telephone: 518/477-7570
Facsimile: 518/477-5006
mailto:dlhays@earthlink.net
mailto:dhays@novalis.com




Dan Emory <danemory@primenet.com> on 11/18/98 12:38:22 PM

To:   "Stanley, Hank" <hstanley@exchange.SanDiegoCA.NCR.com>, Free Framers
      <framers@omsys.com>, blarger@sctcorp.com
cc:    (bcc: Dennis Hays/ALBANY/NOVALIS)
Subject:  RE: Cross-ref page number prefix in multi-file book



At 08:07 AM 11/18/98 -0800, Stanley, Hank wrote:
>    What I want is:
>    See page 6-4.
>
>    What I am getting is:
>    See page 4.
>
>    Since I subscribe only to the Digest, please reply directly to
>    Nancy.
>
>No!  Let everyone know the answer to this one.
*****************************************************************
Since my posting privileges on the FrameUsers list have been suspended by
the list owner, I am posting this instead to Free Framers
<framers@omsys.com>:

The only way I know to include the chapter number in a cross-reference
within an unstructured document is to use a composite cross-reference,
where:

The first cross-reference format, named "ChapNum" is as follows:

        See page <$paranumonly>

The second second cross-reference format, named "PageNum" is as follows:

        -<$pagenum>

First, select the paragraph that contains the chapter number, and insert
the
cross-reference that uses the ChapNum format. Immediately following that
one, select the source paragraph, and insert the cross-reference that uses
the PageNum format.

The disadvantage is that, if the user clicks on the first part of the
cross-reference, it takes him/her to the first page of the chapter rather
than to the page being referenced.

However, in a structured FM+SGML document, the whole thing can be done in a
single cross-reference format of the form:

        See page <$elemparanumonly[Chapter]>-<$elempagenum>

Where:
        <$elemparanumonly[Chapter]> refers to the parent Chapter element,
        which contains the chapter number

                                        AND

        <$elempagenum> refers to the page number on which the source is
located

To insert the cross-reference, you simply select the cross-reference format
described above, and choose the source element. FM+SGML then looks for the
first ancestor Chapter element preceding the source element to determine
the
chapter number, and then adds the page number on which the source element
is
located.






     ____________________
     | Nullius in Verba |
     ********************
Dan Emory, Dan Emory & Associates
FrameMaker/FrameMaker+SGML Document Design & Database Publishing
Voice/Fax: 949-722-8971 E-Mail: danemory@primenet.com
10044 Adams Ave. #208, Huntington Beach, CA 92646


** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body.   **