Mif2Go Prev and Next navigation macros

Jim Owens jowens at magma.ca
Wed Nov 5 12:21:53 PST 2008


I'd like to use these, but I'm having trouble.

The latest beta revision history file for Mif2Go explains that the 
$_prev and $_next macros have been updated to support browsing backwards 
in true sequence, even across chapter breaks. (Formerly, according to 
the documentation, the "Prev" button would leap from the first topic of 
a chapter to the first topic of the previous chapter.) The history file 
  also says that the [FileSequence] section has been deprecated.

I've downloaded and installed the latest dwhtm, m2gframe, and m2rbook 
dll's.

I've set StartingSplit=Yes as suggested in the history file. For 
personal preference, I've set UseNavButtons=Yes. Because 
the[FileSequence] section is deprecated, I haven't added it to my ini file.

I've referenced a macro for [Inserts} Top=, and in the macro I've 
invoked <$_prev><$_next>.

The buttons appear in the output as expected, and within a given chapter 
they work. However, they do not go from chapter to chapter. At the end 
of a chapter, the Next button does nothing. At the beginning of a 
chapter, the Prev button does nothing. In addition, for the first topic 
in a chapter, the text in the Prev button reads "Test File from Mif2Go".

There is a special consideration regarding my Framemaker source: each 
chapter begins with a single paragraph tagged either "Chapter" or 
"Appendix", followed by an "h1" paragraph. I am using the h1 paragraph 
as a split point.

The Chapter and Appendix paragraphs are not used as split points. They 
provide for some fancy formatting on the chapter title page and in the 
TOC. Eeach one contains  a ChapterNumber variable, some autonumber text 
(set to white), and a Frame Above. I have assigned "=Delete" to them in 
[HTMLStyles], but I suspect that they are causing an HTML file to be 
created anyway.  Regardless of how I set StartingSplit (Yes or No), the 
output includes an HTML file named for the chapter, and this file 
contains three <a name=> elements, as well as the standard header and 
footer that we use on all pages. This file is the one linked from the 
"Test File from Mif2Go" button. If I comment out Chapter=Delete, I get 
the same file, but containing the Frame Above referenced by the Chapter tag.

I even tried deleting the Chapter tag in one chapter. With 
StartingSplit=Yes, I still get a "Test File from Mif2Go" Prev button on 
the first page of the chapter, and the button opens an empty page 
(except for the headers and footers). With StartingSplit=No, I get a 
blank Prev button at the beginning of the chapter, and this button does 
nothing; and the Next button for the last topic of the preceding chapter 
still does nothing.

I hope I haven't provided too much detail. I would like the Prev and 
Next buttons to work end-to-end. Once they're working, I'd also like to 
use graphics for the links instead of text (as in <a 
href="next_topic.htm"><img src="Next.gif"/></a>).

P.S. I considered writing my own macros, but I came up against this 
problem: when writing the last topic in Chapter 1, I haven't processed 
Chapter 2 yet, so I can't define the link to Chapter 2's h1 topic. I 
seem to need two passes, one to define all the topic file names, and 
another to add links to any topic file names that occur later in the 
document. Is there a way I can do this?







More information about the framers mailing list