[plt-scheme] Tables in Scribblings

From: Doug Williams (m.douglas.williams at gmail.com)
Date: Thu Sep 11 16:55:15 EDT 2008

Thanks, Eli.  I used the @tt|{@}| alternative you gave at it works fine.
While I was sure that some combination of @, |, and \ would get me there, it
is confusing.

Doug

On Thu, Sep 11, 2008 at 2:41 PM, Eli Barzilay <eli at barzilay.org> wrote:

> On Sep 11, Doug Williams wrote:
> > Thanks, Matthew.  One more scribble question.
> >
> > In the table I need an atsign as in entry (in teletype font).  As
> > part of a cell I have '(make-flow (list (make-paragraph (list
> > @tt{at}))))' and I'd like to have an atsign (@) appear in place of
> > the 'at'.  I've tried @ by itself, \@, |@|, etc, but without any
> > luck.  How do I correctly escape the atsign in this case?
>
> You can always use a Scheme string escape:
>
>  @tt{@"@"}
>
> But another option is the laternative syntax for the open/close
> braces:
>
>
>  @tt|{@}|
>
> Using |{ to open the body means that only }| will be recognized as
> closing the body, and commands inside should start with |@.  If that's
> not enough, you can add stuff between the | and {.  For example, the
> scribble syntax documentation (collects/scribblings/scribble/
> reader.scrbl) has things like this:
>
> @scribble-examples|==={
>  @foo{bar baz
>       blah}
>  @foo{bar @baz[3]
>       blah}
>  @foo{bar @baz{3}
>       blah}
>  @foo{bar @baz[2 3]{4 5}
>       blah}
> }===|
>
> --
>          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
>                  http://www.barzilay.org/                 Maze is Life!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080911/7c7dba6c/attachment.html>

Posted on the users mailing list.