Re: [racket-users] Re: Scribble: customizing table borders

2020-07-19 Thread Shriram Krishnamurthi
That did the trick well enough, thank you!!! (I wouldn't mind a cleaner
solution, but it gets the job done for now.)

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAJUf2yS9ypVeqv9uMR_G_Zw3WPaPQpq-Q9TAFWB7ucncWL6VHA%40mail.gmail.com.


[racket-users] How can I increase expansion+compilation speed?

2020-07-19 Thread Ryan Kramer
Using DrRacket, the following file takes 18 seconds to compile without 
debugging, or about 40 seconds to compile with 
debugging: 
https://raw.githubusercontent.com/default-kramer/plisqin-tutorials/e844825b48137553246c64e73516d880b9068825/define-schema-answer-key/aw-schema.rkt

When I say "compile", I mean that I click "Run" in DrRacket and wait for it 
to give me REPL access. But that file just defines and provides a slew of 
functions, it doesn't really do anything at runtime.

(Using the command-line `racket that-file.rkt` takes only 7 seconds, which 
is OK. But many people, myself included, primarily use DrRacket.)

Admittedly, this is 612 dense lines of code. So it might just be a case of 
"yeah, that's about how long it takes." But it's also possible (or 
probable?) that I have some inefficient macros somewhere. Are there any 
tools/techniques I can use to help me reduce the compilation time?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/40e40eff-a0be-4850-9360-c9648cb5b8d9o%40googlegroups.com.


[racket-users] Re: Scribble: customizing table borders

2020-07-19 Thread Ryan Kramer
This isn't the most ideal way, but it might work for you:

CSS:

.LongMult td[data-underline="yes"] { border-bottom: 1px solid red; }

Code:

#lang scribble/manual

@(require scribble/core
  scribble/html-properties)

@(tabular
  #:sep @hspace[2]
  #:style (style "LongMult" null)
  #:row-properties (list (list)
 (attributes '((data-underline . "yes")))
 (list))
  (list (list @para{a1} @para{a2})
(list @para{b1} @para{b2})
(list @para{c1} @para{c2})))



On Sunday, July 19, 2020 at 2:10:03 PM UTC-5, Shriram Krishnamurthi wrote:
>
> It *appears* that in Scribble, the color of a table's borders (e.g., 
> bottom-border) is fixed: e.g.,
>
> 5
>
> generated from a program such as
>
> @tabular[#:sep @hspace[2]
>  #:row-properties '(() () bottom-border ())
> #:style (style "LongMult" null)
>
> I haven't had any luck coming up with the right CSS incantation that would 
> let me override exactly that black and not change anything else.
>
> Yes, I can tag these with a style, as above, which translates into a class 
> name. But because the black setting is most deeply nested, I can't seem to 
> change it at all. For instance,
>
> .LongMult {
> border-bottom: 1px solid red;
> }
>
> *adds* a new red bottom border for the whole table while leaving the 
> intermediate black one intact, while 
>
> .LongMult td {
> border-bottom: 1px solid red;
> }
>
> adds a red bottom border to every row *except* the one that is black 
> (since the generated code presumably overrides the outer CSS). It feels 
> like perhaps this should have been a named and modifiable class in 
> scribble.css rather than a hard-coded constant?
>
> (My central problem is I have a site that is in "dark mode", so the black 
> essentially disappears against the background. So the need to change this 
> color is a functional one, not just aesthetic.)
>
> Any ideas? Thanks!
>
> Shriram
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/5277d6fe-29a2-41d2-8ead-042307c7e40eo%40googlegroups.com.


Re: [racket-users] emoji in source code

2020-07-19 Thread Robby Findler
I'm not sure what's going on, but this smily works: ☺

Robby


On Sun, Jul 19, 2020 at 10:55 AM Shriram Krishnamurthi 
wrote:

> I wrote the following program:
>
>   (define /: ')
>
> which at least on my screen looks like
>
>
>
> in Aquamacs and in my browser (modulo dark/light mode).
>
> However, no matter which mode I use in OS X AND which color mode I use in
> DrRacket, the emoji just isn't visible:
>
>
>
> Not the most pressing problem in the world, but figured this is probably
> not desirable.
>
> Shriram
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/af814198-b86b-4905-a741-4b59d605ca8co%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAL3TdOMS5KWw0cj_jzzWpeO1icNZ1Ez%2BKkjZt%2B3PLiY96BwoaA%40mail.gmail.com.


[racket-users] Scribble: customizing table borders

2020-07-19 Thread Shriram Krishnamurthi
It *appears* that in Scribble, the color of a table's borders (e.g., 
bottom-border) is fixed: e.g.,

5

generated from a program such as

@tabular[#:sep @hspace[2]
 #:row-properties '(() () bottom-border ())
#:style (style "LongMult" null)

I haven't had any luck coming up with the right CSS incantation that would 
let me override exactly that black and not change anything else.

Yes, I can tag these with a style, as above, which translates into a class 
name. But because the black setting is most deeply nested, I can't seem to 
change it at all. For instance,

.LongMult {
border-bottom: 1px solid red;
}

*adds* a new red bottom border for the whole table while leaving the 
intermediate black one intact, while 

.LongMult td {
border-bottom: 1px solid red;
}

adds a red bottom border to every row *except* the one that is black (since 
the generated code presumably overrides the outer CSS). It feels like 
perhaps this should have been a named and modifiable class in scribble.css 
rather than a hard-coded constant?

(My central problem is I have a site that is in "dark mode", so the black 
essentially disappears against the background. So the need to change this 
color is a functional one, not just aesthetic.)

Any ideas? Thanks!

Shriram

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/09e8a87b-3532-491f-a297-635d07d6ed9dn%40googlegroups.com.


[racket-users] emoji in source code

2020-07-19 Thread Shriram Krishnamurthi
I wrote the following program:

  (define /: ')

which at least on my screen looks like



in Aquamacs and in my browser (modulo dark/light mode).

However, no matter which mode I use in OS X AND which color mode I use in 
DrRacket, the emoji just isn't visible:



Not the most pressing problem in the world, but figured this is probably 
not desirable.

Shriram

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/af814198-b86b-4905-a741-4b59d605ca8co%40googlegroups.com.