pocmatos
2019-1-7 13:18:25

Happy New Year! :slightly_smiling_face: - I know it’s the 7th but I just returned from holidays.


pocmatos
2019-1-7 13:18:44

Does anybody have any experience in converting scribble to odt?


pocmatos
2019-1-7 13:19:08

I am trying pandoc to do scribble -> html -> odt but the output is ridiculously bad.


pocmatos
2019-1-7 13:19:33

scribble -> latex -> odt doesn’t seem to work as pandoc complains about malformed latex although latex is happy with it.


florence
2019-1-7 16:05:04

@pocmatos ISTR someone on twitter saying scribble -> (latex or pdf?) -> doc (using pandoc) worked okay, so maybe taking a -> odt on the end there will work for you?


pocmatos
2019-1-7 16:18:10

@florence will try but I am not keeping my hopes high. Pandoc to odt was pretty poor. Lost scheme block highlighting and indentation, footnotes and margin notes.


pocmatos
2019-1-7 16:19:02

Better until now was tex4ht oolatex from scribble latex to odt. In any case, will try word as soon as I am back on the PC. Thanks.


githree
2019-1-7 16:56:30

while we are at scribble does anyone know if when using #lang scribble/lp2 you can get the content of the expanded chunk (e.g. for printing or saving to file)?


greg
2019-1-7 18:37:26

@mflatt I’m now testing things on Windows. Even with stock 7.1, I’m seeing a boatload of logger warnings doing things with UDP: error for long-term poll set: unsupported; rktio_err=1 This comes from scheme_rktio_fd_to_semaphore in thread.c getting a NULL value from rktio_ltps_add in rktio_ltps.c. The very start of which is: rktio_ltps_handle_t *rktio_ltps_add(rktio_t *rktio, rktio_ltps_t *lt, rktio_fd_t *rfd, int mode) { #ifdef RKTIO_SYSTEM_WINDOWS set_racket_error(RKTIO_ERROR_UNSUPPORTED); return NULL;

And yet, things seem to work anyway, albeit maybe somewhat more slowly due to the deluge of log-warnings.


mflatt
2019-1-7 19:24:06

I’ll look into this more in the next couple of days, but probably the solution is to not log a warning on RKTIO_ERROR_UNSUPPORTED.


greg
2019-1-7 19:30:01

Although I don’t really comprehend the code, that’s what I was wondering.


greg
2019-1-7 19:31:16

(I’ve been running lots of things with specific defined loggers of my own, cranked up. But hadn’t run with the default logger level set >= ’warning, in quite awhile. I added a log-warning to my own code, not sure if I was going to go on and define a logger for it, and that’s when I noticed.)


soegaard2
2019-1-7 22:59:24

Shortest way to go from ’(a b c d) to ’((a b) (b c) (c d)) ?


sorawee
2019-1-7 23:09:09

What about (define (f xs) (for/list ([x xs] [y (rest xs)]) (list x y))) ? Note that it will error when the input is an empty list.


soegaard2
2019-1-7 23:12:05

Much better than what I had.


soegaard2
2019-1-7 23:13:05

If we had an in-pair: (for/list ([p (in-pairs xs)]) (take p 2))


sorawee
2019-1-7 23:47:12

You can do (and xs (or (list) (list _))), I think.


sorawee
2019-1-7 23:59:53

You can also use the #:when clause if the above pattern looks too ugly