/ Id-Extras Forum / LiveTOC — Is it possible to change a number manually? / Reply To: LiveTOC — Is it possible to change a number manually?

#7534
Ariel
Keymaster

    Hi Barbara,
    You can normally click OK and the script will apply the correct page number.
    The script works from the end of the book to the beginning.
    It remembers the last unambiguous page number that it has found, and when it hits an ambiguity (as per your screenshot), the default selection in the little dropdown (“page 319” in your screenshot) is the page number that is closest to the last previously used page number.
    So, in your case, it looks like “Outline of Shao Yang” was found on p. 319, so the script, by default, has selected 319 for the current selection “Shao Yang”.

    In your case, though, there is another complication, in that the term “Shao Yang” appears multiple times on p. 319, so it’s a little difficult to know which instance of p. 319 should be selected. (But does it actually make a difference?)

    There’s no simple way to stop the script (you can try a long press on the ESC key while the script runs).

    The script can be undone in one step (Cmd-Z).

    So, after it finishes running, you might want to undo the result, and rerun LiveTOC in two stages, once without including the problematic paragraph style (the Section style, I think), and a second time just for the sections.

    You might also add special characters (temporarily) to the sections, both in the main book and in the TOC (aaa, bbb, ccc, etc.) just to solve the ambiguity problem and make it easier for LiveTOC to identify the correct location in each case.

    Does that help?
    Ariel