[racket-users] Hi Racket Users Fellows: Is there a way to render LaTeX with --htmls

2015-12-16 Thread tachlithavayati
Hi Friends:

With minlatex.rkt functions I can successfuly render HTML with LaTeX in 
one-page documents (directly from DrRacket or with Scribble --html). But for 
multi-page options, for example with Scribble --htmls, the render is something 
like:

\[e^{i \pi}+1=0\]

Question: Is there a way to render multi-page HTML with LaTeX code?

Thank you in advance for any hint concerning this problem.

Sincerely, Enrique Comer

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


qminimal.scrbl
Description: Binary data


minlatex.rkt
Description: Binary data


Re: [racket-users] begin-for-syntax causes syntax objects to expand to a different #'quote

2015-12-16 Thread Leif Andersen
Yeah, I would guess that too. Anyway, it doesn't seem to do all
phases. So I just shift the phase down every time I see a
begin-for-syntax.

Thanks for your help.

~Leif Andersen


On Wed, Dec 16, 2015 at 10:52 PM, Stephen Chang  wrote:
> I'm not sure. I would guess that it corresponds to the label phase?
>
> On Wed, Dec 16, 2015 at 10:37 PM, Leif Andersen  wrote:
>> Ah, okay, thanks. One question, I notice that you can pass in #f to
>> #:phase, I presume that is similar to for-label, can I use that to
>> indicate I would like it to match on all phases?
>>
>> ~Leif Andersen
>>
>>
>> On Wed, Dec 16, 2015 at 10:02 PM, Stephen Chang  wrote:
>>> There's a #:phase option available when specifying literals:
>>>
>>> http://docs.racket-lang.org/syntax/Parsing_Syntax.html?q=syntax-parse#%28form._%28%28lib._syntax%2Fparse..rkt%29._syntax-parse%29%29
>>>
>>> On Wed, Dec 16, 2015 at 9:55 PM, Leif Andersen  
>>> wrote:
 Okay, that makes sense, thanks.

 So out of curiosity, when doing a `syntax-parse`, is there any way I
 can pass in phase level 1 quote as a literal?

 ~Leif Andersen


 On Wed, Dec 16, 2015 at 6:44 PM, Sam Tobin-Hochstadt
  wrote:
> That depends on what you're trying to do, but probably not. Going under a
> `quote-syntax` doesn't change things, it's just that those identifiers are
> usually used in a macro somewhere else. But it would depend on your
> application.
>
> Note the handling of submodules, though, in particular the call to
> `syntax-shift-phase-level`.
>
> Sam
>
> On Wed, Dec 16, 2015 at 6:41 PM Leif Andersen  
> wrote:
>>
>> Ah, cool. Thanks.
>>
>> Does that also mean that if I see a `syntax` form inside of a
>> `begin-for-syntax` it goes back to phase 0?
>>
>> Thanks.
>>
>> ~Leif Andersen
>>
>>
>> On Wed, Dec 16, 2015 at 6:25 PM, Sam Tobin-Hochstadt
>>  wrote:
>> > The identifiers are the same, but only when comparing their phase-1
>> > bindings. When doing traversal of syntax objects, you need to keep 
>> > track
>> > of
>> > the phase that identifiers are meaningful at.
>> >
>> > Here's a version of your paste comparing at the right phase:
>> > http://pasterack.org/pastes/95574
>> >
>> > Here's some quite complex code that walks fully-expanded syntax, and (I
>> > think) handles phases right as of yesterday:
>> >
>> > https://github.com/samth/pycket/blob/master/pycket/pycket-lang/expand.rkt
>> >  .
>> > See the `current-phase` parameter.
>> >
>> > Sam
>> >
>> > On Wed, Dec 16, 2015 at 6:22 PM Leif Andersen 
>> > wrote:
>> >>
>> >> Hello,
>> >>
>> >> I am finding that when I have a syntax object:
>> >>
>> >> #'(begin-for-syntax (define-values (x) 5), when I expand it it 
>> >> becomes:
>> >> #'(begin-for-syntax (define-values (x) '5). However, the quote in that
>> >> expansion will not be free-identifier=? to the one if I were to type
>> >> it out by hand:
>> >> #'(begin-for-syntax (define-values (x) '5), and expand that.
>> >>
>> >> If however, I have a `begin` rather than a `begin-for-syntax`, giving
>> >> me:
>> >> #'(begin (define-values (x) 5) it works as expected. (The quote it
>> >> expands into is free-identifier=? to the one that I am using.)
>> >>
>> >> I am calling expand (or expand-syntax) directly, and not really using
>> >> any phase levels outside of whatever `expand` may use.
>> >>
>> >> Here is my code: http://pasterack.org/pastes/78711
>> >>
>> >> #lang racket
>> >>
>> >> (define x (expand #'(begin-for-syntax
>> >>   (define-values (x) '5
>> >> (define y (expand #'(begin-for-syntax
>> >>   (define-values (x) 5
>> >>
>> >> (define (ident=? stx)
>> >>   (syntax-case stx ()
>> >> [(_ (_ (_) (var _)))
>> >>  (free-identifier=? #'var #'quote)]))
>> >>
>> >> (syntax->datum x)
>> >> (syntax->datum y)
>> >> (ident=? x)
>> >> (ident=? y)
>> >>
>> >> Is this expected behavior? If so, can you give me some intuition as to
>> >> why?
>> >>
>> >> Thank you.
>> >>
>> >> ~Leif Andersen
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "Racket Users" group.
>> >> To unsubscribe from this group and stop receiving emails from it, send
>> >> an
>> >> email to racket-users+unsubscr...@googlegroups.com.
>> >> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to racket-users+unsubscr...@googlegroups.com.
>> For more options, 

Re: [racket-users] begin-for-syntax causes syntax objects to expand to a different #'quote

2015-12-16 Thread Stephen Chang
I'm not sure. I would guess that it corresponds to the label phase?

On Wed, Dec 16, 2015 at 10:37 PM, Leif Andersen  wrote:
> Ah, okay, thanks. One question, I notice that you can pass in #f to
> #:phase, I presume that is similar to for-label, can I use that to
> indicate I would like it to match on all phases?
>
> ~Leif Andersen
>
>
> On Wed, Dec 16, 2015 at 10:02 PM, Stephen Chang  wrote:
>> There's a #:phase option available when specifying literals:
>>
>> http://docs.racket-lang.org/syntax/Parsing_Syntax.html?q=syntax-parse#%28form._%28%28lib._syntax%2Fparse..rkt%29._syntax-parse%29%29
>>
>> On Wed, Dec 16, 2015 at 9:55 PM, Leif Andersen  wrote:
>>> Okay, that makes sense, thanks.
>>>
>>> So out of curiosity, when doing a `syntax-parse`, is there any way I
>>> can pass in phase level 1 quote as a literal?
>>>
>>> ~Leif Andersen
>>>
>>>
>>> On Wed, Dec 16, 2015 at 6:44 PM, Sam Tobin-Hochstadt
>>>  wrote:
 That depends on what you're trying to do, but probably not. Going under a
 `quote-syntax` doesn't change things, it's just that those identifiers are
 usually used in a macro somewhere else. But it would depend on your
 application.

 Note the handling of submodules, though, in particular the call to
 `syntax-shift-phase-level`.

 Sam

 On Wed, Dec 16, 2015 at 6:41 PM Leif Andersen  
 wrote:
>
> Ah, cool. Thanks.
>
> Does that also mean that if I see a `syntax` form inside of a
> `begin-for-syntax` it goes back to phase 0?
>
> Thanks.
>
> ~Leif Andersen
>
>
> On Wed, Dec 16, 2015 at 6:25 PM, Sam Tobin-Hochstadt
>  wrote:
> > The identifiers are the same, but only when comparing their phase-1
> > bindings. When doing traversal of syntax objects, you need to keep track
> > of
> > the phase that identifiers are meaningful at.
> >
> > Here's a version of your paste comparing at the right phase:
> > http://pasterack.org/pastes/95574
> >
> > Here's some quite complex code that walks fully-expanded syntax, and (I
> > think) handles phases right as of yesterday:
> >
> > https://github.com/samth/pycket/blob/master/pycket/pycket-lang/expand.rkt
> >  .
> > See the `current-phase` parameter.
> >
> > Sam
> >
> > On Wed, Dec 16, 2015 at 6:22 PM Leif Andersen 
> > wrote:
> >>
> >> Hello,
> >>
> >> I am finding that when I have a syntax object:
> >>
> >> #'(begin-for-syntax (define-values (x) 5), when I expand it it becomes:
> >> #'(begin-for-syntax (define-values (x) '5). However, the quote in that
> >> expansion will not be free-identifier=? to the one if I were to type
> >> it out by hand:
> >> #'(begin-for-syntax (define-values (x) '5), and expand that.
> >>
> >> If however, I have a `begin` rather than a `begin-for-syntax`, giving
> >> me:
> >> #'(begin (define-values (x) 5) it works as expected. (The quote it
> >> expands into is free-identifier=? to the one that I am using.)
> >>
> >> I am calling expand (or expand-syntax) directly, and not really using
> >> any phase levels outside of whatever `expand` may use.
> >>
> >> Here is my code: http://pasterack.org/pastes/78711
> >>
> >> #lang racket
> >>
> >> (define x (expand #'(begin-for-syntax
> >>   (define-values (x) '5
> >> (define y (expand #'(begin-for-syntax
> >>   (define-values (x) 5
> >>
> >> (define (ident=? stx)
> >>   (syntax-case stx ()
> >> [(_ (_ (_) (var _)))
> >>  (free-identifier=? #'var #'quote)]))
> >>
> >> (syntax->datum x)
> >> (syntax->datum y)
> >> (ident=? x)
> >> (ident=? y)
> >>
> >> Is this expected behavior? If so, can you give me some intuition as to
> >> why?
> >>
> >> Thank you.
> >>
> >> ~Leif Andersen
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups
> >> "Racket Users" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> >> an
> >> email to racket-users+unsubscr...@googlegroups.com.
> >> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "Racket Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to racket-users+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message bec

Re: [racket-users] begin-for-syntax causes syntax objects to expand to a different #'quote

2015-12-16 Thread Leif Andersen
Ah, okay, thanks. One question, I notice that you can pass in #f to
#:phase, I presume that is similar to for-label, can I use that to
indicate I would like it to match on all phases?

~Leif Andersen


On Wed, Dec 16, 2015 at 10:02 PM, Stephen Chang  wrote:
> There's a #:phase option available when specifying literals:
>
> http://docs.racket-lang.org/syntax/Parsing_Syntax.html?q=syntax-parse#%28form._%28%28lib._syntax%2Fparse..rkt%29._syntax-parse%29%29
>
> On Wed, Dec 16, 2015 at 9:55 PM, Leif Andersen  wrote:
>> Okay, that makes sense, thanks.
>>
>> So out of curiosity, when doing a `syntax-parse`, is there any way I
>> can pass in phase level 1 quote as a literal?
>>
>> ~Leif Andersen
>>
>>
>> On Wed, Dec 16, 2015 at 6:44 PM, Sam Tobin-Hochstadt
>>  wrote:
>>> That depends on what you're trying to do, but probably not. Going under a
>>> `quote-syntax` doesn't change things, it's just that those identifiers are
>>> usually used in a macro somewhere else. But it would depend on your
>>> application.
>>>
>>> Note the handling of submodules, though, in particular the call to
>>> `syntax-shift-phase-level`.
>>>
>>> Sam
>>>
>>> On Wed, Dec 16, 2015 at 6:41 PM Leif Andersen  wrote:

 Ah, cool. Thanks.

 Does that also mean that if I see a `syntax` form inside of a
 `begin-for-syntax` it goes back to phase 0?

 Thanks.

 ~Leif Andersen


 On Wed, Dec 16, 2015 at 6:25 PM, Sam Tobin-Hochstadt
  wrote:
 > The identifiers are the same, but only when comparing their phase-1
 > bindings. When doing traversal of syntax objects, you need to keep track
 > of
 > the phase that identifiers are meaningful at.
 >
 > Here's a version of your paste comparing at the right phase:
 > http://pasterack.org/pastes/95574
 >
 > Here's some quite complex code that walks fully-expanded syntax, and (I
 > think) handles phases right as of yesterday:
 >
 > https://github.com/samth/pycket/blob/master/pycket/pycket-lang/expand.rkt
 >  .
 > See the `current-phase` parameter.
 >
 > Sam
 >
 > On Wed, Dec 16, 2015 at 6:22 PM Leif Andersen 
 > wrote:
 >>
 >> Hello,
 >>
 >> I am finding that when I have a syntax object:
 >>
 >> #'(begin-for-syntax (define-values (x) 5), when I expand it it becomes:
 >> #'(begin-for-syntax (define-values (x) '5). However, the quote in that
 >> expansion will not be free-identifier=? to the one if I were to type
 >> it out by hand:
 >> #'(begin-for-syntax (define-values (x) '5), and expand that.
 >>
 >> If however, I have a `begin` rather than a `begin-for-syntax`, giving
 >> me:
 >> #'(begin (define-values (x) 5) it works as expected. (The quote it
 >> expands into is free-identifier=? to the one that I am using.)
 >>
 >> I am calling expand (or expand-syntax) directly, and not really using
 >> any phase levels outside of whatever `expand` may use.
 >>
 >> Here is my code: http://pasterack.org/pastes/78711
 >>
 >> #lang racket
 >>
 >> (define x (expand #'(begin-for-syntax
 >>   (define-values (x) '5
 >> (define y (expand #'(begin-for-syntax
 >>   (define-values (x) 5
 >>
 >> (define (ident=? stx)
 >>   (syntax-case stx ()
 >> [(_ (_ (_) (var _)))
 >>  (free-identifier=? #'var #'quote)]))
 >>
 >> (syntax->datum x)
 >> (syntax->datum y)
 >> (ident=? x)
 >> (ident=? y)
 >>
 >> Is this expected behavior? If so, can you give me some intuition as to
 >> why?
 >>
 >> Thank you.
 >>
 >> ~Leif Andersen
 >>
 >> --
 >> You received this message because you are subscribed to the Google
 >> Groups
 >> "Racket Users" group.
 >> To unsubscribe from this group and stop receiving emails from it, send
 >> an
 >> email to racket-users+unsubscr...@googlegroups.com.
 >> For more options, visit https://groups.google.com/d/optout.

 --
 You received this message because you are subscribed to the Google Groups
 "Racket Users" group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to racket-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] How to make rackunit show tests succeeded?

2015-12-16 Thread Neil Van Dyke
The Overeasy package uses the Racket logger.  Add "info@overeasy" to 
your logging selector, such as in the DrRacket Log window, or in 
environment variables or on the command line: 
http://docs.racket-lang.org/reference/logging.html


Neil V.

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] begin-for-syntax causes syntax objects to expand to a different #'quote

2015-12-16 Thread Stephen Chang
There's a #:phase option available when specifying literals:

http://docs.racket-lang.org/syntax/Parsing_Syntax.html?q=syntax-parse#%28form._%28%28lib._syntax%2Fparse..rkt%29._syntax-parse%29%29

On Wed, Dec 16, 2015 at 9:55 PM, Leif Andersen  wrote:
> Okay, that makes sense, thanks.
>
> So out of curiosity, when doing a `syntax-parse`, is there any way I
> can pass in phase level 1 quote as a literal?
>
> ~Leif Andersen
>
>
> On Wed, Dec 16, 2015 at 6:44 PM, Sam Tobin-Hochstadt
>  wrote:
>> That depends on what you're trying to do, but probably not. Going under a
>> `quote-syntax` doesn't change things, it's just that those identifiers are
>> usually used in a macro somewhere else. But it would depend on your
>> application.
>>
>> Note the handling of submodules, though, in particular the call to
>> `syntax-shift-phase-level`.
>>
>> Sam
>>
>> On Wed, Dec 16, 2015 at 6:41 PM Leif Andersen  wrote:
>>>
>>> Ah, cool. Thanks.
>>>
>>> Does that also mean that if I see a `syntax` form inside of a
>>> `begin-for-syntax` it goes back to phase 0?
>>>
>>> Thanks.
>>>
>>> ~Leif Andersen
>>>
>>>
>>> On Wed, Dec 16, 2015 at 6:25 PM, Sam Tobin-Hochstadt
>>>  wrote:
>>> > The identifiers are the same, but only when comparing their phase-1
>>> > bindings. When doing traversal of syntax objects, you need to keep track
>>> > of
>>> > the phase that identifiers are meaningful at.
>>> >
>>> > Here's a version of your paste comparing at the right phase:
>>> > http://pasterack.org/pastes/95574
>>> >
>>> > Here's some quite complex code that walks fully-expanded syntax, and (I
>>> > think) handles phases right as of yesterday:
>>> >
>>> > https://github.com/samth/pycket/blob/master/pycket/pycket-lang/expand.rkt 
>>> > .
>>> > See the `current-phase` parameter.
>>> >
>>> > Sam
>>> >
>>> > On Wed, Dec 16, 2015 at 6:22 PM Leif Andersen 
>>> > wrote:
>>> >>
>>> >> Hello,
>>> >>
>>> >> I am finding that when I have a syntax object:
>>> >>
>>> >> #'(begin-for-syntax (define-values (x) 5), when I expand it it becomes:
>>> >> #'(begin-for-syntax (define-values (x) '5). However, the quote in that
>>> >> expansion will not be free-identifier=? to the one if I were to type
>>> >> it out by hand:
>>> >> #'(begin-for-syntax (define-values (x) '5), and expand that.
>>> >>
>>> >> If however, I have a `begin` rather than a `begin-for-syntax`, giving
>>> >> me:
>>> >> #'(begin (define-values (x) 5) it works as expected. (The quote it
>>> >> expands into is free-identifier=? to the one that I am using.)
>>> >>
>>> >> I am calling expand (or expand-syntax) directly, and not really using
>>> >> any phase levels outside of whatever `expand` may use.
>>> >>
>>> >> Here is my code: http://pasterack.org/pastes/78711
>>> >>
>>> >> #lang racket
>>> >>
>>> >> (define x (expand #'(begin-for-syntax
>>> >>   (define-values (x) '5
>>> >> (define y (expand #'(begin-for-syntax
>>> >>   (define-values (x) 5
>>> >>
>>> >> (define (ident=? stx)
>>> >>   (syntax-case stx ()
>>> >> [(_ (_ (_) (var _)))
>>> >>  (free-identifier=? #'var #'quote)]))
>>> >>
>>> >> (syntax->datum x)
>>> >> (syntax->datum y)
>>> >> (ident=? x)
>>> >> (ident=? y)
>>> >>
>>> >> Is this expected behavior? If so, can you give me some intuition as to
>>> >> why?
>>> >>
>>> >> Thank you.
>>> >>
>>> >> ~Leif Andersen
>>> >>
>>> >> --
>>> >> You received this message because you are subscribed to the Google
>>> >> Groups
>>> >> "Racket Users" group.
>>> >> To unsubscribe from this group and stop receiving emails from it, send
>>> >> an
>>> >> email to racket-users+unsubscr...@googlegroups.com.
>>> >> For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Racket Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to racket-users+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] begin-for-syntax causes syntax objects to expand to a different #'quote

2015-12-16 Thread Leif Andersen
Okay, that makes sense, thanks.

So out of curiosity, when doing a `syntax-parse`, is there any way I
can pass in phase level 1 quote as a literal?

~Leif Andersen


On Wed, Dec 16, 2015 at 6:44 PM, Sam Tobin-Hochstadt
 wrote:
> That depends on what you're trying to do, but probably not. Going under a
> `quote-syntax` doesn't change things, it's just that those identifiers are
> usually used in a macro somewhere else. But it would depend on your
> application.
>
> Note the handling of submodules, though, in particular the call to
> `syntax-shift-phase-level`.
>
> Sam
>
> On Wed, Dec 16, 2015 at 6:41 PM Leif Andersen  wrote:
>>
>> Ah, cool. Thanks.
>>
>> Does that also mean that if I see a `syntax` form inside of a
>> `begin-for-syntax` it goes back to phase 0?
>>
>> Thanks.
>>
>> ~Leif Andersen
>>
>>
>> On Wed, Dec 16, 2015 at 6:25 PM, Sam Tobin-Hochstadt
>>  wrote:
>> > The identifiers are the same, but only when comparing their phase-1
>> > bindings. When doing traversal of syntax objects, you need to keep track
>> > of
>> > the phase that identifiers are meaningful at.
>> >
>> > Here's a version of your paste comparing at the right phase:
>> > http://pasterack.org/pastes/95574
>> >
>> > Here's some quite complex code that walks fully-expanded syntax, and (I
>> > think) handles phases right as of yesterday:
>> >
>> > https://github.com/samth/pycket/blob/master/pycket/pycket-lang/expand.rkt .
>> > See the `current-phase` parameter.
>> >
>> > Sam
>> >
>> > On Wed, Dec 16, 2015 at 6:22 PM Leif Andersen 
>> > wrote:
>> >>
>> >> Hello,
>> >>
>> >> I am finding that when I have a syntax object:
>> >>
>> >> #'(begin-for-syntax (define-values (x) 5), when I expand it it becomes:
>> >> #'(begin-for-syntax (define-values (x) '5). However, the quote in that
>> >> expansion will not be free-identifier=? to the one if I were to type
>> >> it out by hand:
>> >> #'(begin-for-syntax (define-values (x) '5), and expand that.
>> >>
>> >> If however, I have a `begin` rather than a `begin-for-syntax`, giving
>> >> me:
>> >> #'(begin (define-values (x) 5) it works as expected. (The quote it
>> >> expands into is free-identifier=? to the one that I am using.)
>> >>
>> >> I am calling expand (or expand-syntax) directly, and not really using
>> >> any phase levels outside of whatever `expand` may use.
>> >>
>> >> Here is my code: http://pasterack.org/pastes/78711
>> >>
>> >> #lang racket
>> >>
>> >> (define x (expand #'(begin-for-syntax
>> >>   (define-values (x) '5
>> >> (define y (expand #'(begin-for-syntax
>> >>   (define-values (x) 5
>> >>
>> >> (define (ident=? stx)
>> >>   (syntax-case stx ()
>> >> [(_ (_ (_) (var _)))
>> >>  (free-identifier=? #'var #'quote)]))
>> >>
>> >> (syntax->datum x)
>> >> (syntax->datum y)
>> >> (ident=? x)
>> >> (ident=? y)
>> >>
>> >> Is this expected behavior? If so, can you give me some intuition as to
>> >> why?
>> >>
>> >> Thank you.
>> >>
>> >> ~Leif Andersen
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "Racket Users" group.
>> >> To unsubscribe from this group and stop receiving emails from it, send
>> >> an
>> >> email to racket-users+unsubscr...@googlegroups.com.
>> >> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to racket-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] How to make rackunit show tests succeeded?

2015-12-16 Thread David K. Storrs
On Wednesday, December 16, 2015 at 4:21:12 PM UTC-8, Neil Van Dyke wrote:
> David K. Storrs wrote on 12/16/2015 06:50 PM:
> > I'm just getting started with rackunit, and I was very surprised when I 
> > found that it simply emits nothing if a test succeeds.
> >
> 
> The Overeasy package does this, using the Racket logger.  Add 
> "info@overeasy" to your logging selector, such as in the DrRacket Log 
> window.  (Though this is not a reason I made Overeasy; hierarchical test 
> IDs, like shown below, are of of the reasons.)
> 
> http://www.neilvandyke.org/overeasy/
> 
> #lang racket/base
> 
> (module+ test
>(require (planet neil/overeasy:3)))
> 
> (define (foo x y)
>(* x 42))
> 
> (module+ test
>(test-section 'foo
>  (test-section 'initial
>(test 'zero (foo 0  0)  0)
>(test 'one  (foo 1  0)  42)
>(test 'two  (foo 2  0)  84)
>(test 'negative (foo -1 0) -42)
>(test 'negative-two (foo -2 0) -84))
>  (test-section 'different-y
>(for-each (lambda (y)
>(test-section y
>  (test 'x-zero (foo 0  0)  0)
>  (test 'x-one  (foo 1  0)  42)
>  ;; ...
>  ))
>  '(0 1 2 -1 -2)
> 
> overeasy: Start Test Section [foo]
> ...
> overeasy: Start Test Section [foo different-y 0]
> overeasy: Test Passed [foo different-y 0 x-zero]
> overeasy: Test Passed [foo different-y 0 x-one]
> ...
> 
> Neil V.

Hi Neil,

I pasted the above (everything down to "'(0 1 2 -1 -2)") into "foo.rkt" and 
then ran "racket foo.rkt"  There was no output.  I went to the docs page for it 
and create bar.rkt using the first example test from your docs:

#lang racket

(require (planet neil/overeasy:3:1))

(test (+ 1 2 3) 6)


Again, "racket bar.rkt"  Again, no output.

What does it need?

Dave



Also

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] How to make rackunit show tests succeeded?

2015-12-16 Thread Jay McCarthy
I recommend using "raco test" to run your code. It will cooperate with
rackunit and print out the number of successful tests.

Jay

On Wed, Dec 16, 2015 at 6:50 PM, David K. Storrs  wrote:
> Hi folks,
>
> I'm just getting started with rackunit, and I was very surprised when I found 
> that it simply emits nothing if a test succeeds.  Every other testing 
> framework I've used before will print "ok" (or etc) on a successful test, so 
> that you can differentiate between "the test succeeded" and "the test wasn't 
> run."
>
> check-equal? returns  so I can't just wrap it in another function that 
> prints "ok" on success.  Is there a way to tell rackunit that I want to see 
> successes?
>
> Dave
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Jay McCarthy
Associate Professor
PLT @ CS @ UMass Lowell
http://jeapostrophe.github.io

   "Wherefore, be not weary in well-doing,
  for ye are laying the foundation of a great work.
And out of small things proceedeth that which is great."
  - D&C 64:33

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] How to make rackunit show tests succeeded?

2015-12-16 Thread 'William J. Bowman' via Racket Users
On Wed, Dec 16, 2015 at 03:50:08PM -0800, David K. Storrs wrote:
> Hi folks,
> 
> I'm just getting started with rackunit, and I was very surprised when I found 
> that it simply emits nothing if a test succeeds.  Every other testing 
> framework I've used before will print "ok" (or etc) on a successful test, so 
> that you can differentiate between "the test succeeded" and "the test wasn't 
> run."
> 
> check-equal? returns  so I can't just wrap it in another function that 
> prints "ok" on success.  Is there a way to tell rackunit that I want to see 
> successes?
You might want `test-begin` to wrap a suite of many checks, with a print "ok" 
at the end of the suite. This would only be run if no tests fail: 
http://docs.racket-lang.org/rackunit/api.html#(form._((lib._rackunit/main..rkt)._test-begin)).

You could also use the parameter `current-check-handler` to print "ok" after 
*each* test: 
http://docs.racket-lang.org/rackunit/internals.html#(def._((lib._rackunit/main..rkt)._current-check-handler))

-- 
William J. Bowman

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature


Re: [racket-users] How to make rackunit show tests succeeded?

2015-12-16 Thread Neil Van Dyke

David K. Storrs wrote on 12/16/2015 06:50 PM:

I'm just getting started with rackunit, and I was very surprised when I found 
that it simply emits nothing if a test succeeds.



The Overeasy package does this, using the Racket logger.  Add 
"info@overeasy" to your logging selector, such as in the DrRacket Log 
window.  (Though this is not a reason I made Overeasy; hierarchical test 
IDs, like shown below, are of of the reasons.)


http://www.neilvandyke.org/overeasy/

#lang racket/base

(module+ test
  (require (planet neil/overeasy:3)))

(define (foo x y)
  (* x 42))

(module+ test
  (test-section 'foo
(test-section 'initial
  (test 'zero (foo 0  0)  0)
  (test 'one  (foo 1  0)  42)
  (test 'two  (foo 2  0)  84)
  (test 'negative (foo -1 0) -42)
  (test 'negative-two (foo -2 0) -84))
(test-section 'different-y
  (for-each (lambda (y)
  (test-section y
(test 'x-zero (foo 0  0)  0)
(test 'x-one  (foo 1  0)  42)
;; ...
))
'(0 1 2 -1 -2)

overeasy: Start Test Section [foo]
...
overeasy: Start Test Section [foo different-y 0]
overeasy: Test Passed [foo different-y 0 x-zero]
overeasy: Test Passed [foo different-y 0 x-one]
...

Neil V.

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] How to make rackunit show tests succeeded?

2015-12-16 Thread David K. Storrs
Hi folks,

I'm just getting started with rackunit, and I was very surprised when I found 
that it simply emits nothing if a test succeeds.  Every other testing framework 
I've used before will print "ok" (or etc) on a successful test, so that you can 
differentiate between "the test succeeded" and "the test wasn't run."

check-equal? returns  so I can't just wrap it in another function that 
prints "ok" on success.  Is there a way to tell rackunit that I want to see 
successes?

Dave

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] begin-for-syntax causes syntax objects to expand to a different #'quote

2015-12-16 Thread Sam Tobin-Hochstadt
That depends on what you're trying to do, but probably not. Going under a
`quote-syntax` doesn't change things, it's just that those identifiers are
usually used in a macro somewhere else. But it would depend on your
application.

Note the handling of submodules, though, in particular the call to
`syntax-shift-phase-level`.

Sam

On Wed, Dec 16, 2015 at 6:41 PM Leif Andersen  wrote:

> Ah, cool. Thanks.
>
> Does that also mean that if I see a `syntax` form inside of a
> `begin-for-syntax` it goes back to phase 0?
>
> Thanks.
>
> ~Leif Andersen
>
>
> On Wed, Dec 16, 2015 at 6:25 PM, Sam Tobin-Hochstadt
>  wrote:
> > The identifiers are the same, but only when comparing their phase-1
> > bindings. When doing traversal of syntax objects, you need to keep track
> of
> > the phase that identifiers are meaningful at.
> >
> > Here's a version of your paste comparing at the right phase:
> > http://pasterack.org/pastes/95574
> >
> > Here's some quite complex code that walks fully-expanded syntax, and (I
> > think) handles phases right as of yesterday:
> >
> https://github.com/samth/pycket/blob/master/pycket/pycket-lang/expand.rkt
> .
> > See the `current-phase` parameter.
> >
> > Sam
> >
> > On Wed, Dec 16, 2015 at 6:22 PM Leif Andersen 
> wrote:
> >>
> >> Hello,
> >>
> >> I am finding that when I have a syntax object:
> >>
> >> #'(begin-for-syntax (define-values (x) 5), when I expand it it becomes:
> >> #'(begin-for-syntax (define-values (x) '5). However, the quote in that
> >> expansion will not be free-identifier=? to the one if I were to type
> >> it out by hand:
> >> #'(begin-for-syntax (define-values (x) '5), and expand that.
> >>
> >> If however, I have a `begin` rather than a `begin-for-syntax`, giving
> me:
> >> #'(begin (define-values (x) 5) it works as expected. (The quote it
> >> expands into is free-identifier=? to the one that I am using.)
> >>
> >> I am calling expand (or expand-syntax) directly, and not really using
> >> any phase levels outside of whatever `expand` may use.
> >>
> >> Here is my code: http://pasterack.org/pastes/78711
> >>
> >> #lang racket
> >>
> >> (define x (expand #'(begin-for-syntax
> >>   (define-values (x) '5
> >> (define y (expand #'(begin-for-syntax
> >>   (define-values (x) 5
> >>
> >> (define (ident=? stx)
> >>   (syntax-case stx ()
> >> [(_ (_ (_) (var _)))
> >>  (free-identifier=? #'var #'quote)]))
> >>
> >> (syntax->datum x)
> >> (syntax->datum y)
> >> (ident=? x)
> >> (ident=? y)
> >>
> >> Is this expected behavior? If so, can you give me some intuition as to
> >> why?
> >>
> >> Thank you.
> >>
> >> ~Leif Andersen
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Racket Users" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >> email to racket-users+unsubscr...@googlegroups.com.
> >> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] begin-for-syntax causes syntax objects to expand to a different #'quote

2015-12-16 Thread Leif Andersen
Ah, cool. Thanks.

Does that also mean that if I see a `syntax` form inside of a
`begin-for-syntax` it goes back to phase 0?

Thanks.

~Leif Andersen


On Wed, Dec 16, 2015 at 6:25 PM, Sam Tobin-Hochstadt
 wrote:
> The identifiers are the same, but only when comparing their phase-1
> bindings. When doing traversal of syntax objects, you need to keep track of
> the phase that identifiers are meaningful at.
>
> Here's a version of your paste comparing at the right phase:
> http://pasterack.org/pastes/95574
>
> Here's some quite complex code that walks fully-expanded syntax, and (I
> think) handles phases right as of yesterday:
> https://github.com/samth/pycket/blob/master/pycket/pycket-lang/expand.rkt .
> See the `current-phase` parameter.
>
> Sam
>
> On Wed, Dec 16, 2015 at 6:22 PM Leif Andersen  wrote:
>>
>> Hello,
>>
>> I am finding that when I have a syntax object:
>>
>> #'(begin-for-syntax (define-values (x) 5), when I expand it it becomes:
>> #'(begin-for-syntax (define-values (x) '5). However, the quote in that
>> expansion will not be free-identifier=? to the one if I were to type
>> it out by hand:
>> #'(begin-for-syntax (define-values (x) '5), and expand that.
>>
>> If however, I have a `begin` rather than a `begin-for-syntax`, giving me:
>> #'(begin (define-values (x) 5) it works as expected. (The quote it
>> expands into is free-identifier=? to the one that I am using.)
>>
>> I am calling expand (or expand-syntax) directly, and not really using
>> any phase levels outside of whatever `expand` may use.
>>
>> Here is my code: http://pasterack.org/pastes/78711
>>
>> #lang racket
>>
>> (define x (expand #'(begin-for-syntax
>>   (define-values (x) '5
>> (define y (expand #'(begin-for-syntax
>>   (define-values (x) 5
>>
>> (define (ident=? stx)
>>   (syntax-case stx ()
>> [(_ (_ (_) (var _)))
>>  (free-identifier=? #'var #'quote)]))
>>
>> (syntax->datum x)
>> (syntax->datum y)
>> (ident=? x)
>> (ident=? y)
>>
>> Is this expected behavior? If so, can you give me some intuition as to
>> why?
>>
>> Thank you.
>>
>> ~Leif Andersen
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to racket-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] begin-for-syntax causes syntax objects to expand to a different #'quote

2015-12-16 Thread Sam Tobin-Hochstadt
The identifiers are the same, but only when comparing their phase-1
bindings. When doing traversal of syntax objects, you need to keep track of
the phase that identifiers are meaningful at.

Here's a version of your paste comparing at the right phase:
http://pasterack.org/pastes/95574

Here's some quite complex code that walks fully-expanded syntax, and (I
think) handles phases right as of yesterday:
https://github.com/samth/pycket/blob/master/pycket/pycket-lang/expand.rkt .
See the `current-phase` parameter.

Sam

On Wed, Dec 16, 2015 at 6:22 PM Leif Andersen  wrote:

> Hello,
>
> I am finding that when I have a syntax object:
>
> #'(begin-for-syntax (define-values (x) 5), when I expand it it becomes:
> #'(begin-for-syntax (define-values (x) '5). However, the quote in that
> expansion will not be free-identifier=? to the one if I were to type
> it out by hand:
> #'(begin-for-syntax (define-values (x) '5), and expand that.
>
> If however, I have a `begin` rather than a `begin-for-syntax`, giving me:
> #'(begin (define-values (x) 5) it works as expected. (The quote it
> expands into is free-identifier=? to the one that I am using.)
>
> I am calling expand (or expand-syntax) directly, and not really using
> any phase levels outside of whatever `expand` may use.
>
> Here is my code: http://pasterack.org/pastes/78711
>
> #lang racket
>
> (define x (expand #'(begin-for-syntax
>   (define-values (x) '5
> (define y (expand #'(begin-for-syntax
>   (define-values (x) 5
>
> (define (ident=? stx)
>   (syntax-case stx ()
> [(_ (_ (_) (var _)))
>  (free-identifier=? #'var #'quote)]))
>
> (syntax->datum x)
> (syntax->datum y)
> (ident=? x)
> (ident=? y)
>
> Is this expected behavior? If so, can you give me some intuition as to why?
>
> Thank you.
>
> ~Leif Andersen
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] begin-for-syntax causes syntax objects to expand to a different #'quote

2015-12-16 Thread Leif Andersen
Hello,

I am finding that when I have a syntax object:

#'(begin-for-syntax (define-values (x) 5), when I expand it it becomes:
#'(begin-for-syntax (define-values (x) '5). However, the quote in that
expansion will not be free-identifier=? to the one if I were to type
it out by hand:
#'(begin-for-syntax (define-values (x) '5), and expand that.

If however, I have a `begin` rather than a `begin-for-syntax`, giving me:
#'(begin (define-values (x) 5) it works as expected. (The quote it
expands into is free-identifier=? to the one that I am using.)

I am calling expand (or expand-syntax) directly, and not really using
any phase levels outside of whatever `expand` may use.

Here is my code: http://pasterack.org/pastes/78711

#lang racket

(define x (expand #'(begin-for-syntax
  (define-values (x) '5
(define y (expand #'(begin-for-syntax
  (define-values (x) 5

(define (ident=? stx)
  (syntax-case stx ()
[(_ (_ (_) (var _)))
 (free-identifier=? #'var #'quote)]))

(syntax->datum x)
(syntax->datum y)
(ident=? x)
(ident=? y)

Is this expected behavior? If so, can you give me some intuition as to why?

Thank you.

~Leif Andersen

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] how to render scribble/lp2 with current manual style

2015-12-16 Thread Matthew Flatt
I think the missing `f` in the left-hand margin reflects a missing
`defmodule`. Adding 

 @defmodule[some-module]

or 

 @declare-exporting[some-module]

makes `f` appear as expected.

At Wed, 16 Dec 2015 13:34:57 -0800 (PST), Matthew Butterick wrote:
> > Maybe there should be a `scribble/lp-manual` to provide the manual
> > style in the same way as `scribble/manual`.
> 
> Perhaps, since it also implicates semantic issues, not just formatting. For 
> instance, the following code produces a "<*>" link in the left-hand margin, 
> but not an "f" link (as would be typical for `scribble/manual`). 
> 
> #lang scribble/lp2
> @(require scribble/manual) 
> 
> @title[#:style manual-doc-style]{Greatest function ever} 
> 
> @defproc[
>  (f
>   [x number?])
>  number?]
> Squares a number.
> 
> @chunk[<*>
> (define (f x) (* x x))]
> 
> 
> 
> 
> On Wednesday, December 16, 2015 at 1:12:59 PM UTC-8, Matthew Flatt wrote:
> > One solution is to attach `manual-doc-style` to a title:
> > 
> >  #lang scribble/lp2
> >  @(require scribble/manual)
> > 
> >  @title[#:style manual-doc-style]{Example}
> > 
> >  @chunk[
> > (define (f x) (+ x 1))]
> > 
> > If you don't want to show a title, then it gets trickier.
> > 
> > Maybe there should be a `scribble/lp-manual` to provide the manual
> > style in the same way as `scribble/manual`.
> > 
> > At Wed, 16 Dec 2015 12:11:19 -0800, Matthew Butterick wrote:
> > > If you make these two Scribble files and click "Scribble HTML" in 
> DrRacket, 
> > > the second one (with `#lang scribble/manual) will render in the current 
> manual 
> > > style. But the first one (with `#lang scribble/lp2`) will render in the 
> older 
> > > manual style.
> > > 
> > > This rendering issue surfaced on the list before [1] about `scribble/lp`. 
> At 
> > > the time, the answer seemed to be that it was a flaw that would be fixed 
> in 
> > > `scribble/lp2`. But the flaw seems to persist? Or am I doing it wrong?
> > > 
> > > ;;
> > > ;; lp.scrbl
> > > ;;
> > > #lang scribble/lp2
> > > @chunk[
> > >(define (f x) (+ x 1))]
> > > 
> > > ;;
> > > ;; lp-wrap.scrbl
> > > ;;
> > > #lang scribble/manual
> > > @include-section[(submod "lp.scrbl" doc)]
> > > 
> > > 
> > > 
> > > [1] 
> > > 
> https://groups.google.com/forum/#!searchin/racket-users/scribble$2Flp%7Csort:da
> > > te/racket-users/mkbYIHWnPwI/iV6h8FXJor4J
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] how to render scribble/lp2 with current manual style

2015-12-16 Thread Matthew Butterick
> Maybe there should be a `scribble/lp-manual` to provide the manual
> style in the same way as `scribble/manual`.

Perhaps, since it also implicates semantic issues, not just formatting. For 
instance, the following code produces a "<*>" link in the left-hand margin, but 
not an "f" link (as would be typical for `scribble/manual`). 

#lang scribble/lp2
@(require scribble/manual) 

@title[#:style manual-doc-style]{Greatest function ever} 

@defproc[
 (f
  [x number?])
 number?]
Squares a number.

@chunk[<*>
(define (f x) (* x x))]




On Wednesday, December 16, 2015 at 1:12:59 PM UTC-8, Matthew Flatt wrote:
> One solution is to attach `manual-doc-style` to a title:
> 
>  #lang scribble/lp2
>  @(require scribble/manual)
> 
>  @title[#:style manual-doc-style]{Example}
> 
>  @chunk[
> (define (f x) (+ x 1))]
> 
> If you don't want to show a title, then it gets trickier.
> 
> Maybe there should be a `scribble/lp-manual` to provide the manual
> style in the same way as `scribble/manual`.
> 
> At Wed, 16 Dec 2015 12:11:19 -0800, Matthew Butterick wrote:
> > If you make these two Scribble files and click "Scribble HTML" in DrRacket, 
> > the second one (with `#lang scribble/manual) will render in the current 
> > manual 
> > style. But the first one (with `#lang scribble/lp2`) will render in the 
> > older 
> > manual style.
> > 
> > This rendering issue surfaced on the list before [1] about `scribble/lp`. 
> > At 
> > the time, the answer seemed to be that it was a flaw that would be fixed in 
> > `scribble/lp2`. But the flaw seems to persist? Or am I doing it wrong?
> > 
> > ;;
> > ;; lp.scrbl
> > ;;
> > #lang scribble/lp2
> > @chunk[
> >(define (f x) (+ x 1))]
> > 
> > ;;
> > ;; lp-wrap.scrbl
> > ;;
> > #lang scribble/manual
> > @include-section[(submod "lp.scrbl" doc)]
> > 
> > 
> > 
> > [1] 
> > https://groups.google.com/forum/#!searchin/racket-users/scribble$2Flp%7Csort:da
> > te/racket-users/mkbYIHWnPwI/iV6h8FXJor4J

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] how to render scribble/lp2 with current manual style

2015-12-16 Thread Matthew Flatt
One solution is to attach `manual-doc-style` to a title:

 #lang scribble/lp2
 @(require scribble/manual)

 @title[#:style manual-doc-style]{Example}

 @chunk[
(define (f x) (+ x 1))]

If you don't want to show a title, then it gets trickier.

Maybe there should be a `scribble/lp-manual` to provide the manual
style in the same way as `scribble/manual`.

At Wed, 16 Dec 2015 12:11:19 -0800, Matthew Butterick wrote:
> If you make these two Scribble files and click "Scribble HTML" in DrRacket, 
> the second one (with `#lang scribble/manual) will render in the current 
> manual 
> style. But the first one (with `#lang scribble/lp2`) will render in the older 
> manual style.
> 
> This rendering issue surfaced on the list before [1] about `scribble/lp`. At 
> the time, the answer seemed to be that it was a flaw that would be fixed in 
> `scribble/lp2`. But the flaw seems to persist? Or am I doing it wrong?
> 
> ;;
> ;; lp.scrbl
> ;;
> #lang scribble/lp2
> @chunk[
>(define (f x) (+ x 1))]
> 
> ;;
> ;; lp-wrap.scrbl
> ;;
> #lang scribble/manual
> @include-section[(submod "lp.scrbl" doc)]
> 
> 
> 
> [1] 
> https://groups.google.com/forum/#!searchin/racket-users/scribble$2Flp%7Csort:da
> te/racket-users/mkbYIHWnPwI/iV6h8FXJor4J
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] pkg-build signals dependency error when there are no dependencies?

2015-12-16 Thread Matthew Flatt
That looks like a bug to me, and a "nothing to do" failure in other
cases seems like a misfeature.

I'll fix it, but pkg-build will stay wrong until the next release,
since pkg-build always uses the current release.

Thanks for the report!

At Wed, 16 Dec 2015 11:09:07 -0800, Matthew Butterick wrote:
> Bug or feature? The pkg-build server claims my pollen-tfl package has 
> "dependency problems." Yet the only "problem" seems to be that I've 
> (deliberately) disabled compilation of the files: 
> 
> http://pkg-build.racket-lang.org/server/built/deps/pollen-tfl.txt
> 
> I would think `raco setup` would be grateful that it has "nothing to
> do" for a change.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] how to render scribble/lp2 with current manual style

2015-12-16 Thread Matthew Butterick
If you make these two Scribble files and click "Scribble HTML" in DrRacket, the 
second one (with `#lang scribble/manual) will render in the current manual 
style. But the first one (with `#lang scribble/lp2`) will render in the older 
manual style.

This rendering issue surfaced on the list before [1] about `scribble/lp`. At 
the time, the answer seemed to be that it was a flaw that would be fixed in 
`scribble/lp2`. But the flaw seems to persist? Or am I doing it wrong?

;;
;; lp.scrbl
;;
#lang scribble/lp2
@chunk[
   (define (f x) (+ x 1))]

;;
;; lp-wrap.scrbl
;;
#lang scribble/manual
@include-section[(submod "lp.scrbl" doc)]



[1] 
https://groups.google.com/forum/#!searchin/racket-users/scribble$2Flp%7Csort:date/racket-users/mkbYIHWnPwI/iV6h8FXJor4J

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] pkg-build signals dependency error when there are no dependencies?

2015-12-16 Thread Matthew Butterick
Bug or feature? The pkg-build server claims my pollen-tfl package has 
"dependency problems." Yet the only "problem" seems to be that I've 
(deliberately) disabled compilation of the files: 

http://pkg-build.racket-lang.org/server/built/deps/pollen-tfl.txt

I would think `raco setup` would be grateful that it has "nothing to do" for a 
change.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Re: How to put image background?

2015-12-16 Thread Taro Annual
2015年12月16日水曜日 1時43分03秒 UTC+9 Alejandro López:
> I want to know how to put a background image in a viewport

In graphic use, I recommend 2htdp/image library.
If you need to treat .bmp or .png so on, you can paste the file images into 
your code.
(Dr. Racket's menubar, select [Insert] - [Insert Image...])

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.