On Mon, 5 Sept 2022 at 02:20, Shu-Hung You
wrote:
>
> Okay, if you want to bypass the #lang protocol entirely, here is the
> needed code. As you have expected, it uses eval and then calls
> dynamic-require.
>
Thanks very much for this code and detailed explanation, that was a great
help.
--
ht
On Sun, 4 Sept 2022 at 19:39, Philip McGrath
wrote:
>
> You may indeed want a tool that supports files without #lang if you are
> working with an existing language and there isn't a way to make the #lang
> line acceptable to its existing grammar.
>
That's exactly it!
> Despite the title of the
On Sun, 4 Sept 2022 at 10:31, Reuben Thomas wrote:
> On Sun, 4 Sept 2022 at 04:13, Philip McGrath
> wrote:
>
>>
>> However, in some cases you might really want a program other than
>> `racket` as the entry point for your language: for instance, maybe you want
>&
On Sun, 4 Sept 2022 at 04:13, Philip McGrath
wrote:
>
> However, in some cases you might really want a program other than `racket`
> as the entry point for your language: for instance, maybe you want to have
> flags for controlling where the output goes. One example of such a program
> is the `sc
On Sat, 3 Sept 2022 at 19:10, Shu-Hung You
wrote:
> Running `racket foo.asm` will produce the desired output, so a shell
> script that directly passes the arguments to Racket could work.
> Otherwise, just use (dynamic-require filename #f) in main.rkt.
>
Thanks for helping!
Don't both of these m
I'm a relative Racket newbie, and I've just enjoyed *Beautiful Racket*.
I am working on a Racket implementation of a simple assembler (for the Hack
VM in the NAND2Tetris course).
I have a partial implementation up and running using #lang lines. I would
like to add a more traditional command-line
On Sun, 8 Dec 2019 at 17:07, Matthew Flatt wrote:
>
> There's now a 'no-toc+aux style property to completely get rid of that div.
>
That's good, thanks; but I see that the maincolumn div is still emitted, so
there's still a left margin. (I'm sorry, I hadn't looked into the CSS
before to work out
On Fri, 6 Dec 2019 at 15:43, Matthew Flatt wrote:
> Do 'no-toc and 'no-sidebar style properties on the main part help? Or
> does that still leave navigation elements that you want removed?
>
That's a great improvement, thanks, although it still leaves the "tocset"
div, now empty.
What I couldn'
On Fri, 6 Dec 2019 at 15:32, Sam Tobin-Hochstadt
wrote:
> Is there a reason that not showing it is a problem, relative to not
> having it in the HTML? The CSS approach is quite easy.
>
I'm trying to generate XHTML for inclusion in web sites (as the main page
contents) and ePUB files, so it's jus
(Surprised that extensive Googling, read of Racket documentation, and
searching the mailing list archive doesn't throw up anything; surely I've
missed something? Apologies in advance therefore!)
I notice that although xrepl is loaded by default in command-line racket,
and indeed in DrRacket, its c
On Thu, 5 Dec 2019 at 14:47, Sam Tobin-Hochstadt
wrote:
> The usual way I've done this is with some custom CSS to set the
> navigation to "display: none".
>
Thanks. I would really prefer not to have the navigation apparatus, so I
guess post-processing the output is the only thing I can do withou
How can I get scribble/base to output HTML without the navigation elements?
I just want a plain HTML page, similar to the look of the LaTeX output.
I can of course extract the "main" div from the standard output, but that
seems to be somewhat shutting the stable door after the horse has bolted.
G
On Wed, 4 Dec 2019 at 13:45, Matthew Flatt wrote:
> I'm not sure I follow completely, but I think the problem is the
> compound-paragraph parsing that is triggered by the lack of space
> between the two `para` calls:
>
Exactly right. I tried to find out if this is documented. I couldn't find
any
After a few more experiments, I find that I can't work out another problem
I was having: nested elements (which is not legal HTML).
This occurs when I put a style on a @para; for example, a small change to
the example code that Matthew kindly provided:
#lang scribble/base
@(require scribble/core
On Mon, 2 Dec 2019 at 23:06, Matthew Flatt wrote:
>
> Ah, it looks like `alt-tag` is the one that works, instead of
> `body-id`. (I'll fix the docs.)
>
Thanks for this. I had come across alt-tag before, but I didn't think of it
here; it didn't occur to me that an HTML-specific solution would wor
On Mon, 2 Dec 2019 at 22:47, Matthew Flatt wrote:
> Does this get closer?
>
> @(define foo-style (make-style "foo" (list (body-id "div"
>
Thanks for the suggestion. It doesn't seem to make any difference. I added
scribble/html-properties to my requires, of course, then since I couldn't
tell
I'm trying to get LaTeX output that wraps an environment around several
paragraphs (while containing @para elements) and HTML output that does
something similar with a . HTML is actually my sticking point, because
so far all I've managed to do is get nested elements, which is illegal.
Here's a M(
On Sun, 17 Nov 2019 at 20:27, Reuben Thomas wrote:
> On Sun, 17 Nov 2019 at 06:35, Matthew Flatt wrote:
>
>> At Sat, 16 Nov 2019 18:32:00 +0000, Reuben Thomas wrote:
>> > On Sat, 16 Nov 2019 at 15:06, Matthew Flatt wrote:
>> >
>> > >
>> > &g
On Sun, 17 Nov 2019 at 06:35, Matthew Flatt wrote:
> At Sat, 16 Nov 2019 18:32:00 +0000, Reuben Thomas wrote:
> > On Sat, 16 Nov 2019 at 15:06, Matthew Flatt wrote:
> >
> > >
> > > The checked-in `configure` scripts are generated by "make-configure"
On Sat, 16 Nov 2019 at 15:06, Matthew Flatt wrote:
>
> The checked-in `configure` scripts are generated by "make-configure" in
> "racket/src/ac", and that script doesn't refer to "start/configure.ac".
>
Thanks for the confirmation. What about start/install2.ac?
--
https://rrt.sc3d.org
--
You
On Thu, 14 Nov 2019 at 19:59, Reuben Thomas wrote:
> On Thu, 14 Nov 2019 at 12:51, Matthew Flatt wrote:
>
>> At Wed, 13 Nov 2019 21:58:24 +0000, "'Reuben Thomas' via Racket Users"
>> wrote:
>> > While looking into implementing this, I discover
On Thu, 14 Nov 2019 at 12:51, Matthew Flatt wrote:
> At Wed, 13 Nov 2019 21:58:24 +, "'Reuben Thomas' via Racket Users"
> wrote:
> > While looking into implementing this, I discovered that
> `racket/src/start/
> > configure.ac`, which seems to have b
On Wed, 13 Nov 2019 at 13:40, Matthew Flatt wrote:
>
> Maybe the solution is to add `--disable-prefix` and have the top-level
> makefile use that along with `--enable-origtree`?
>
Sounds good to me.
While looking into implementing this, I discovered that `racket/src/start/
configure.ac`, which
On Tue, 12 Nov 2019 at 17:53, Matthew Flatt wrote:
> At Thu, 7 Nov 2019 23:14:52 +, "'Reuben Thomas' via Racket Users"
> wrote:
> > I have a CONFIG_SITE environment variable which contains the following
> line:
> >
> > test "$prefix"
e instructions will work for the case where Racket is installed
> > globally and your current user does not have permissions to modify any
> > files in this global Racket installation. They might not be the
> simplest
> > ones however, as I am not a raco pkg package expert eith
On Thu, 7 Nov 2019 at 13:37, Matthew Flatt wrote:
> It's not technically ok to shadow a package in installation scope with
>
> Meanwhile, the current tools are better set up for starting with a
> GitHub checkout and building there. In that setting, for example, it's
> easier to use `raco pkg upda
I have a CONFIG_SITE environment variable which contains the following line:
test "$prefix" = NONE && prefix="$HOME_LOCAL"
(HOME_LOCAL is set to $HOME/.local)
Things then go wrong because racket/src/start/configure.ac code relies on
prefix still being set to NONE in order to finally set prefix t
On Tue, 5 Nov 2019 at 19:01, John Clements
wrote:
>
> raco pkg update —clone drracket
>
> in, say, your home directory should clone the package that includes the
> drracket collection (and possibly others that are in the same package).
> After this is complete, your drracket should depend on this
I'm trying to make a small improvement to the drracket package, and of
course I'd like to test it!
I have racket 7.4 installed on my Ubuntu system from the PPA, so of course
drracket is installed as part of the installation.
After reading the "raco pkg" docs, and searching the mailing list, I c
On 17 December 2017 at 20:18, Reuben Thomas wrote:
> On 4 November 2017 at 17:43, Asumu Takikawa wrote:
>
>> Hi everyone,
>>
>> The Ubuntu PPA has been updated for v6.11. The PPA is available here:
>>
>> https://launchpad.net/~plt/+archive/ubuntu/racke
On 4 November 2017 at 17:43, Asumu Takikawa wrote:
> Hi everyone,
>
> The Ubuntu PPA has been updated for v6.11. The PPA is available here:
>
> https://launchpad.net/~plt/+archive/ubuntu/racket
>
> It's currently available for zesty and artful. Builds for xenial and trusty
> should go up later
On 22 July 2015 at 22:25, Sam Tobin-Hochstadt wrote:
> When I type in `racket` there, it exits immediately.
>
Of course, now you say this, it does for me too.
If this happens again, I'll try to track it down more carefully. Sorry!
(However, I can still see the "racket" command in my gnome shel
The usual GNOME 3 Run Command (bound to Alt+F2 by default).
On 22 July 2015 at 21:36, Sam Tobin-Hochstadt wrote:
> Which Gnome command launcher were you using for this?
>
> Sam
>
> On Wed, Jul 22, 2015 at 4:40 AM 'Reuben Thomas' via users-redirect <
> us...@plt-
I meant to start DrRacket, and typed "racket" in the GNOME
command-launcher. Nothing happened and I forgot about it.
The next morning, I find my computer sluggish, and one reason is that
Racket is occupying one of the cores at 100%.
--
http://rrt.sc3d.org
--
You received this message because y
On 21 January 2015 at 14:45, Matthew Flatt wrote:
> You're right that the essential problem is that `with-steps` introduces
> binding no-hygienically. Non-hygienic macros don't compose nicely.
>
> If `with-steps` were written in modern Racket, then it would be
> hygienic, where `vonly`, etc., are
On 21 January 2015 at 14:51, Sam Tobin-Hochstadt
wrote:
> Also, there are some more modern alternatives to `with-steps`. I
> particularly like the `staged` and `slide/staged` macros, which you can
> read about here:
> http://docs.racket-lang.org/unstable-gui/Slideshow_Presentations.html#%28part._
Hi,
I've been meaning to try Racket for years, and finally got around to it
when I found myself wanting to program a presentation, rather than
laboriously copy lots of slides in a similar format.
I'm using Racket 6.1.1, and I'm pretty new to Scheme.
I'm trying to illustrate editing fixes in shor
On 3 May 2013 22:49, Jose A. Ortega Ruiz wrote:
> Of course, if anyone has the time and inclination to create an
> independent package, whatever Geiser does would be done using it.
>
Making an independent package is as simple as adding a standard comment
header sensible autoloads and then either
38 matches
Mail list logo