From 013d740774fc770c92cbf4cf9485651fbf135d76 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Sat, 8 Jun 2019 09:10:59 -0700 Subject: [PATCH] document page sizes (closes #33) --- quad/quad/scribblings/quad.scrbl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/quad/quad/scribblings/quad.scrbl b/quad/quad/scribblings/quad.scrbl index c84f6f73..f74660cf 100644 --- a/quad/quad/scribblings/quad.scrbl +++ b/quad/quad/scribblings/quad.scrbl @@ -1,6 +1,6 @@ #lang scribble/manual -@(require racket/runtime-path scribble/example quadwriter (for-label txexpr (except-in pollen #%module-begin) xml racket/base racket/draw quadwriter) +@(require racket/runtime-path scribble/example quadwriter pitfall/page racket/format (for-label txexpr (except-in pollen #%module-begin) xml racket/base racket/draw quadwriter) pollen/scribblings/mb-tools quad/pict) @(define my-eval (make-base-eval)) @@ -450,6 +450,15 @@ A @deftech{dimension string} represents a distance in the plane. If unitless, it @deftogether[(@defthing[#:kind "attribute" page-size symbol?] @defthing[#:kind "attribute" page-orientation symbol?])]{ The usual way of setting the overall page dimensions of the rendered PDF. The value of @racket[page-size] is a @tech{named page size}. The value of @racket[page-orientation] can be either @racket["tall"] or @racket["portrait"] (which both put the longer edge vertically) or @racket["wide"] or @racket["landscape"] (which put the longer edge horizontally). + +The @deftech{named page sizes} are listed below. Names are case-insensitive. Dimensions below are in points. + + +@(tabular +#:sep @hspace[2] +(cons (list @bold{name} @bold{short side} @bold{long side}) +(map (λ (args) (map ~a args)) +(sort (hash->list page-sizes) string