Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#470 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với pkgs/racket-doc/scribblings/guide/control.scrbl ở dòng 124 và tái tạo trang bằng scribble/manual, được kết xuất thành PDF. So sánh margin-note chứa continuation-mark-set->context với ví dụ @interaction gần đó và kiểm tra cách PDF xử lý mã định danh dài. Hoàn tất khi ghi chú bên lề vẫn nằm trong vùng gáy, kể cả trên trang guide được tham chiếu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Racket
Star
250
Fork
102
Merge trung bình
11 ngày 9 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của racket/scribble

Tất cả issue của racket/scribble

Issue tương tự

Thêm issue về Documentation

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.