Created
March 2, 2018 15:14
-
-
Save konn/6900e54673cd0e6925f123a78fab62f9 to your computer and use it in GitHub Desktop.
total page SATySFi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let hook = line-break false false (get-standard-context 0pt) | |
(hook-page-break (fun pbInfo _ -> ( | |
numpages <- pbInfo#page-number | |
))) | |
in | |
let answer = page-break page pagecontf pagepartsf (bb-title +++ bb-toc +++ bb-main +++ hook) | |
in let () = register-cross-reference `pagecount` (arabic (!numpages)) | |
in answer |
gfngfn
commented
Mar 2, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment