在本页中:
aspect?
gap-size
current-gap-size
bullet
o-bullet
client-w
get-client-w
client-h
get-client-h
full-page
get-full-page
titleless-page
get-titleless-page
margin
title-h
printing?
condense?

2.4 Constants and Layout Variables

函数

(aspect? v)  boolean?

  v : any/c
Return #t if v is 'fullscreen, 'widescreen, or #f, otherwise returns #f.

A symbolic v selects a specific aspect, while #f as an aspect corresponds to a user-selected aspect through the --widescreen or --fullscreen flag.

See also Fullscreen vs. Widescreen Aspect Ratio.

添加于package slideshow-lib的1.5版本。

gap-size : 24

A width commonly used for layout.

parameter

(current-gap-size)  real?

(current-gap-size sep-gap-size)  void?
  sep-gap-size : real?
A parameter whose value is a width used for the separation between items by slide, the size and spacing of a bullet for item, the space between a slide title and content in 'tall mode, etc. The default value is gap-size.

bullet : pict?

A filled bullet used by default by item.

It is either (t "•"), if that character is available in the font that t uses, or it uses an implementation similar to o-bullet, but not hollow (using disk, not circle).

A hollow bullet used by default by subitem.

It’s implementation is:

语法

client-w

函数

(get-client-w [#:aspect aspect])  exact-nonnegative-integer?

  aspect : aspect? = #f
Produces the width of the display area, minus margins for a given aspect, where client-w is equivalent to (get-client-w). The result changes if the margin is adjusted via set-margin!.

修改于package slideshow-lib的1.5版本:Added get-client-w.

语法

client-h

函数

(get-client-h [#:aspect aspect])  exact-nonnegative-integer?

  aspect : aspect? = #f
Produces the height of the display area, minus margins for a given aspect, where client-h is equivalent to (get-client-h). The result changes if the margin is adjusted via set-margin!.

修改于package slideshow-lib的1.5版本:Added get-client-h.

语法

full-page

函数

(get-full-page [#:aspect aspect])  pict?

  aspect : aspect? = #f
Produces an empty pict that is the same size as the client area, which is like (blank client-w client-h). The full-page form is equivalent to (get-full-page).

修改于package slideshow-lib的1.5版本:Added get-full-page.

语法

titleless-page

函数

(get-titleless-page [#:aspect aspect])  pict?

  aspect : aspect? = #f
Produces an empty pict that is the same size as the client area minus the title area in 'top layout mode, which is like (blank client-w (- client-h title-h (* 2 gap-size))). The titleless-page form is equivalent to (get-titleless-page).

修改于package slideshow-lib的1.5版本:Added get-titleless-page.

语法

margin

Produces a number that corresponds to the current margin, which surrounds every side of the slide. The client area for a slide corresponds to the display area (which is always 1024 by 768) minus this margin on each side. The default margin is 20.

The margin can be adjusted via set-margin!.

语法

title-h

Produces a number that corresponds to the height of a title created by titlet.

If titlet is changed via the current-titlet parameter, the title height should be updated via set-title-h!.

The value is #t if slides are being generated for printed output, #f for normal on-screen display. Printing mode is normally triggered via the --print or --ps command-line flag.

The value is #t if slides are being generated in condensed mode, #f for normal mode. Condensed mode is normally triggered via the --condense command-line flag.