Skip to content

margin-note exceeds page limit in PDF e.g. Racket guide #470

Description

@spdegabrielle

What version of Racket are you using?
8.15

What program did you run?
scribble/manual render to pdf

example showing continuation-mark-set->context running beyond edge of page in pdf viewer
Image

page 226
https://download.racket-lang.org/releases/8.15/pdf-doc/guide.pdf

What should have happened?

I'd expect scribble to wrap keep margin notes within gutter by wrapping @racket[continuation-mark-set->context] on hyphens like exn-message in @interaction block on the same page.(see full page capture below).

Not a big issue as manual is intended to be used via browser, but may be frustrating for e-reader users who use PDF. (I was trying to publish print copy via amazon with permission of author)

continuation-mark-set->context

Line 124

@margin-note{The @racket[continuation-mark-set->context] procedure provides best-effort structured backtrace information.}

https://github.com/racket/racket/blob/158361441c0617ee9df91954cf3afbfebc37094a/pkgs/racket-doc/scribblings/guide/control.scrbl#L124

Please include any other relevant details

Interaction block

@interaction[
(with-handlers ([exn:fail?
                 (lambda (v)
                   ((error-display-handler) (exn-message v) v))])
  (car 17))
]

full page
Image

'Gutter' guidance from amazon kindle direct publishing:

Insufficient gutter. Books with 407 pages require at least 0.625" (15.875mm) for the gutter (inside margin) and at least 0.25" (6.35mm) for the outside, top and bottom margins.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions