numpy-100 icon indicating copy to clipboard operation
numpy-100 copied to clipboard

Wrapping code in answers for PDF output

Open deeplook opened this issue 7 years ago • 3 comments

In my fork of this repo, see https://github.com/deeplook/numpy-100, I'm generating double-sided PDF index cards (call them quiz cards or flash cards if you like) from the markdown file 100 Numpy exercises.md with code extracted from an unrelated project. There it would be nice to manually wrap the Python code of the answers a bit more to make it fit on the cards. Would you accept a PR doing this? This might be a first step in including the code to generate the PDF output in your own repo, but I don't know if you want that, of course. It would help avoid maintaining different versions of the same Markdown file, though.

deeplook avatar Jan 04 '17 10:01 deeplook

What do you mean by wrapping exactly ?

rougier avatar Jan 04 '17 16:01 rougier

Basically shorter and likely more lines. While producing the same result.

deeplook avatar Jan 04 '17 16:01 deeplook

See https://github.com/rougier/numpy-100/pull/38

deeplook avatar Jan 05 '17 14:01 deeplook