Re: [racket-users] Meta-question: "Racket to go"andtheformatofthedocumentation...

2016-11-05 Thread David Christiansen
Hi Meino, > ... the resulting file was 46x times bigger than the input. > This is little to much for a flash based budget tablet...;) > Any idea to circumeven this? Unfortunately not. I typically just print the resulting file. Good luck! /David -- You received this message because you are

Re: [racket-users] Meta-question: "Racket to go"andtheformatofthedocumentation...

2016-11-05 Thread Meino . Cramer
Hi David, thanks for your reply! :) I installed pdfcrop and processd "reference.pdf" with it like so: pdfcrop --verbose reference.pdf reference.cropped.pdf The result was without any margin (this was only a testrun!): -rw-r--r-- 1 mccramer users 3070399 2016-11-06 04:30 reference.pdf

Re: [racket-users] Building regexen in at-exp

2016-11-05 Thread Eli Barzilay
On Fri, Oct 28, 2016 at 3:18 PM, David Storrs wrote: > tl;dr : Why is the following an error? > > #lang at-exp racket > (define a "this") > @pregexp{^@a} ;; Should produce #px"^this" but errors out > @pregexp{@(~a "^" a)} ;; This works but is clumsy I see that the

Re: [racket-users] Of editors and mere mortals

2016-11-05 Thread Vincent St-Amour
There's a section of the guide that discusses tools to use Racket with various text editors, including Emacs: http://docs.racket-lang.org/guide/other-editors.html Vincent On Sat, 05 Nov 2016 08:14:34 -0500, Ken MacKenzie wrote: > > So as much as I know there is much love for Dr Racket, I

Re: [racket-users] Why would delete-file fail without throwing?

2016-11-05 Thread 'John Clements' via Racket Users
> On Nov 5, 2016, at 15:05, David Storrs wrote: > > I've got this little snip of code: > > > (define p "/tmp/foo/bar-28") > (file-exists? p) ; #t > (delete-file p) > (file-exists? p) ; still #t ?? > > > I've verified that: > > *) It's not throwing an exception

Re: [racket-users] docs for string-trim

2016-11-05 Thread Eli Barzilay
On Wed, Nov 2, 2016 at 12:29 AM, Ben Greenman wrote: > The trick is that 'whitespace' isn't just #\space. It's any sequence > of whitespace characters, like "\r\r\r" or " \r\n\t" ...and this happens because the default `sep` is a regexp, not a plain string. --

Re: [racket-users] Of editors and mere mortals

2016-11-05 Thread Ken M
Yes racket mode is installed. A few other odds and ends as well. A few other people direct responded some other suggestions. I would suggest they add them to the whole group as they might prove useful for others. Ken On Sat, Nov 05, 2016 at 01:58:48PM -0400, Ben Greenman wrote: > Do you have

Re: [racket-users] Why would delete-file fail without throwing?

2016-11-05 Thread Matthias Felleisen
I am on 10.11 and almost git head. I cannot repeat your experiment. Is the following accurate? % cat /tmp/foo.txt hello world good bye % racket Welcome to Racket v6.7.0.3. > (define p "/tmp/foo.txt") > (file-exists? p) #t > (delete-file p) > (file-exists? p) #f > On Nov 5, 2016, at 6:05

[racket-users] Why would delete-file fail without throwing?

2016-11-05 Thread David Storrs
I've got this little snip of code: (define p "/tmp/foo/bar-28") (file-exists? p) ; #t (delete-file p) (file-exists? p) ; still #t ?? I've verified that: *) It's not throwing an exception *) The code is running as me *) The /tmp directory is 777 [I'm on OSX 10.11] *) The file itself is

Re: [racket-users] Meta-question: "Racket to go"andtheformatofthedocumentation...

2016-11-05 Thread David Christiansen
Hello, > Is there a (simple) way to get rid of most > of the white blank border and to create > the pdfs in a differen page format (aspect > ratio) ? I often use a little command-line utility called pdfcrop to remove margins from PDF files. It's also useful for economical printing of long texts,

Re: [racket-users] The regex and me...

2016-11-05 Thread David Storrs
On Sat, Nov 5, 2016 at 10:00 AM, wrote: > > Hi David, > > thanks for your reply ! :) > > SUPER! THAT helps! > > Is this kinda "pattern", that > if 'function' does something once, there is a > 'function*' that does the same thing multiple times? > > Cheers > Meino > > It

Re: [racket-users] Of editors and mere mortals

2016-11-05 Thread Ben Greenman
Do you have racket-mode installed? https://github.com/greghendershott/racket-mode -- 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] Meta-question: "Racket to go"andtheformatofthedocumentation...

2016-11-05 Thread Meino . Cramer
Hi, I put Racket on different computers and tablets. So my 7" tablet receives a copy fo Racket :) But: The pdfs of the documentation have a wide blank border and a ratio aspect, which is different of that of the tablet. When viewing the pdfs with mudf, it (mupdf) tries to disply "the whole

Re: [racket-users] Extending DrRacket's LaTeX Shortcuts

2016-11-05 Thread Laurent
There's no official package. It's probably best to just dump the contents of this file into the existing one. Btw, I think this file should probably not belong to "gui", but it may be cumbersome to move it to a different place I guess. On Sat, Nov 5, 2016 at 3:49 PM, Robby Findler

Re: [racket-users] Extending DrRacket's LaTeX Shortcuts

2016-11-05 Thread Robby Findler
I think it would be great to adjust the one that DrRacket uses to use this one. Is that in a pkg somewhere? Or would it be better to just drop it into the existing one? Robby On Sat, Nov 5, 2016 at 7:31 AM, Laurent wrote: > This may be of interest: >

Re: [racket-users] The regex and me...

2016-11-05 Thread Meino . Cramer
Hi David, thanks for your reply ! :) SUPER! THAT helps! Is this kinda "pattern", that if 'function' does something once, there is a 'function*' that does the same thing multiple times? Cheers Meino David Storrs [16-11-05 14:37]: > (regexp-match* #px"(AA.+?AA)"

Re: [racket-users] The regex and me...

2016-11-05 Thread David Storrs
(regexp-match* #px"(AA.+?AA)" str) regexp-match* matches multiple times through the string. As with Perl and pcre in general, a trailing '?' makes quantifers non-greedy. On Sat, Nov 5, 2016 at 8:59 AM, wrote: > Hi Jens, > > thanks for your reply! :) > > ...hmmm...I

[racket-users] Of editors and mere mortals

2016-11-05 Thread Ken MacKenzie
So as much as I know there is much love for Dr Racket, I am not the biggest fan. Yes I must admit some of its helper features are great for working in racket and if I must debug something it is probably the best place to work. Anyway was wondering what other editors people use. I have been a

Re: [racket-users] The regex and me...

2016-11-05 Thread Meino . Cramer
Hi Jens, thanks for your reply! :) ...hmmm...I /think/ I understand the mechanism now...but if it is as it seems to be...I run into another problem. Suppose your have a long line of character with groups of certain chararcter and random caharcters in between. Something like this

Re: [racket-users] Extending DrRacket's LaTeX Shortcuts

2016-11-05 Thread Laurent
This may be of interest: https://gist.github.com/Metaxal/86be1b733c0f5ad4a0cf6c58cf140436 It's a assoc list between latex math strings and unicode characters. This list is based on "anaconda/lib/python2.7/site-packages/docutils/utils/math/tex2unichar.py" itself based on