Skip to content

Instantly share code, notes, and snippets.

@nekketsuuu
Created October 17, 2018 16:19
Show Gist options
  • Save nekketsuuu/df928f8cb079356101ff5a539de3bb43 to your computer and use it in GitHub Desktop.
Save nekketsuuu/df928f8cb079356101ff5a539de3bb43 to your computer and use it in GitHub Desktop.
@require: pervasives
@require: math
let-block ctx +p inner =
let ib-inner = read-inline ctx inner in
let ib-parag = ib-inner ++ inline-fil in
form-paragraph ctx ib-parag
let standalone bt =
let ctx =
get-initial-context 440pt (command \math)
|> set-dominant-narrow-script Latin
|> set-dominant-wide-script Kana
in
let bb = read-block ctx bt in
page-break A4Paper
(fun _ -> (|
text-origin = (80pt, 100pt);
text-height = 630pt;
|))
(fun _ -> (|
header-origin = (0pt, 0pt);
header-content = block-nil;
footer-origin = (0pt, 0pt);
footer-content = block-nil;
|))
bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment