Nope, even with eval:alts and eval:result(s) I cannot produce the
results I want.

Btw, I am subscribed to the list.


Cheers,
Dominik

On 12. 04. 20 17:22, Sage Gerard wrote:
> Does scribble/examples offer what you need?
> 
> 
> 
> -------- Original Message --------
> On Apr 12, 2020, 4:23 AM, Dominik Pantůček <
> [email protected]> wrote:
> 
> 
>     Hello fellow Racketeers,
> 
>     I've started a small side project and as a part of that I want to write
>     some articles interspersed with code. Scribble was a natural choice for
>     that task.
> 
>     So I started with #lang scribble/manual as usual and after writing some
>     text, I tried to do something like the following:
> 
>     ====
>     #lang scribble/manual
> 
>     ... and here are the requires:
> 
>     @racketblock{
>     (require
>     }
> 
>     .. with the first one being this and we need that for ....
> 
>     @racketblock{
>     (only-in ffi/unsafe ptr-set! _uint32)
>     }
> 
>     ...
>     ====
> 
>     Of course it renders the racketblocks as string, silly me. So I go for
>     @racketblock[] but that - in @-syntax translates to S-expressions with
>     "(require" (without the quotes) definitely not being a valid
>     S-expression. And therefore scribble cannot handle it.
> 
>     Looking at [1] leaves me with an impression that it is not possible to
>     typeset parts of racket code in scribble. Only valid S-expressions (and
>     the #lang line, of course).
> 
>     Using scribble/lp2 I can get closer to my wanted result, but really it
>     just works around the issue by forming valid S-expressions and expanding
>     chunks inside those.
> 
>     What is the proper way of typesetting (in scribble) parts of racket code
>     which do not form complete S-expression?
> 
>     And yes, I know this is rather strange requirement, but in this
>     particular case, I am pretty sure, I want to work with parts of
>     S-expressions without balanced parentheses. (Although the minimal
>     example definitely does not answer "why").
> 
>     I assume I must have overlooked something, of course.
> 
>     Cheers,
>     Dominik
> 
>     [1] https://docs.racket-lang.org/scribble/scribble_manual_code.html
> 
>     --
>     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 [email protected].
>     To view this discussion on the web visit
>     
> https://groups.google.com/d/msgid/racket-users/d4473bd1-5b9c-b658-2989-df0a143d7ae9%40trustica.cz.
> 
>     -- 
>     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 [email protected]
>     <mailto:[email protected]>.
>     To view this discussion on the web visit
>     
> https://groups.google.com/d/msgid/racket-users/kB7sQQDkefoEq86xajF1QifjjY-cWMqDfbxhD08dN2NqNBNnRn-8u6HX7lOA_JFhClSvgMhJdHxpI9MdEaB3oOpOQHEKNRFn1KCSexM86bg%3D%40sagegerard.com
>     
> <https://groups.google.com/d/msgid/racket-users/kB7sQQDkefoEq86xajF1QifjjY-cWMqDfbxhD08dN2NqNBNnRn-8u6HX7lOA_JFhClSvgMhJdHxpI9MdEaB3oOpOQHEKNRFn1KCSexM86bg%3D%40sagegerard.com?utm_medium=email&utm_source=footer>.
> 

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/977981fa-97c1-15ac-fcae-84cbb5330e4e%40trustica.cz.

Reply via email to