Thank you very much! I know what to do now. 2013-09-14
ironson 发件人:Stephen Chang <stch...@ccs.neu.edu> 发送时间:2013-09-14 01:49 主题:Re: [racket] How to make slide align left in Slideshow 收件人:"J. Ian Johnson"<i...@ccs.neu.edu> 抄送:"Racket Users"<users@racket-lang.org> > I tend to just use (vl-append gap-size items ...) That doesn't align left relative to the entire slide. You'd have to wrap a para or something else around it. Here is a super basic macro that aligns-left everything on a slide: (define-syntax-rule (left-slide title x ...) (slide #:title (para title) (para (vl-append gap-size x ...)))) (left-slide "Please align left" (t "Hello") (t "World")) > -Ian > ----- Original Message ----- > From: "Laurent" <laurent.ors...@gmail.com> > To: "Stephen Chang" <stch...@ccs.neu.edu> > Cc: users@racket-lang.org > Sent: Friday, September 13, 2013 1:33:58 PM GMT -05:00 US/Canada Eastern > Subject: Re: [racket] How to make slide align left in Slideshow > > > > In complement, note that it's quite common to use (item "Some text") and > (subitem "One precision: ..."), which are left-aligned (but, like `para', has > a #:align keyword for another kind of alignment). > > Laurent > > > > > On Fri, Sep 13, 2013 at 6:11 PM, Stephen Chang < stch...@ccs.neu.edu > wrote: > > > I dont think there's any way to specify the alignment of the entire > slide. You'd have to do each element separately. > > For example, using > > (para "Please align left") > > as the title would align left and > > (para #:align 'right "Please align left") > > would align right. > > If all your slides have the same structure, you could define a new slide > macro. > > > > > > On Fri, Sep 13, 2013 at 11:31 AM, ironson < iron...@126.com > wrote: >> Hi all, >> >> I am writing for a presentation using Slideshow. I want to align picts left. >> But it aligns center. Below is my code >> >> #lang slideshow >> >> (slide >> #:title "Please align left" >> (t "Hello") >> (t "World")) >> Thanks! >> >> 2013-09-13 >> ________________________________ >> ironson >> >> ____________________ >> Racket Users list: >> http://lists.racket-lang.org/users >> > ____________________ > Racket Users list: > http://lists.racket-lang.org/users > > > ____________________ > Racket Users list: > http://lists.racket-lang.org/users ____________________ Racket Users list: http://lists.racket-lang.org/users
____________________ Racket Users list: http://lists.racket-lang.org/users