kellertuer / Kartei

Eine Karteikartenklasse für LaTeX
48 stars 23 forks source link

Feature Request: Shuffle Cards #5

Open lekv opened 12 years ago

lekv commented 12 years ago

While I'm at it, another feature request:

Provide an option to shuffle the cards in a way, that they will come out correctly if cut en mass. Define a cutting procedure like

When doing this, the order of the cards will be shuffled. Hence it would help to order the cards in a way, that will make them come out of said cutting procedure in a ordered fashion.

This is highly optional, but it came to my mind so I though I could share it as well.

kellertuer commented 12 years ago

Ou, that's a neat idea. Up to now you can print them (duplex and the rear card sides are automatically opposed to their front sides), you can cut them en mass, but you would end up with on pile containing the even and one containing the odd cards (for A5) or one with 1,5,9,... one with 2,6,10,... and so on for A6 cards.

But. Already for the rearrangement from the urual order (front - back - front No. 2 - back No. 2 - ...) to the one, where the printing results in correct cards (front - front No. 2 -... until one page is full, then back#2 - back - back No. 3 ... - or the order that's needed to arrange front and rear). Changing that to your request is (though really really a nice idea) quite challenging.

By now it's implemented kind of „hard coded“ for a fixed card size (e.g. A8) there's a fixed arrangement for 16 Cards on A4 (and their rear sides on the second page) such that the cards can be cut (with or without flipped rear as you wish).

To get your idea done, that arrangement has to be made dynamic, i.e. depend on the number of cards the tex file consists of. I have - as of now - no idea how to do that.

magnucki commented 9 years ago

I wrote a simple bash script, that manages to shuffle the card, while not in print-output. This is pretty helpful , e.g when using the pdf on a mobile device.

kellertuer commented 9 years ago

sounds like a nice idea, also because i still think for print that would be quite difficult. For the non-print version, i think it sould also be possible in TeX, but i have no direct solution in mind.