@izabera Theoretical computer science. I meant that, at the end of the day, you might end up with a region partitioning problem (as I see it) that will cost terribly (exponential at least), unless of course some greedy heuristics could be employed. :)
@Paulo An obvious “at least to try” solution would be to change the spaces just a little to see if the paragraph changes a lot, and then compare the two baddnesses. A partial solution (IIRC it was a commend in the ConTeXt list) is to write optional code while writing the text … like \maybe{for instance} the romans…; that way you let the program compile many paragraph some with the argument of \maybe typeset y others without it, and then compare the badness in all of them.
@izabera on luatex or cricket? (the system thinks you were replying to the later:-) luatex (on which I'm not really an expert) has callback functions that allow you to substitute lua functions for tex internals, in particular there is one for the linebreaking routine so with luatex you can have a lua function that gets the horizontal list of the paragraph and does whatever you want before returning the vertical list of tehe line boxes after linebreaking
@PauloCereda I wasn't proposing a definitive answer. Just that you don't need to get stuck there, you could do a few things :) Combinatorial? I guess what that means, but never ever thought/studied about that, so I can't say anything relevant :)
@egreg the match ends tomorrow so if both teams have not finished their innings by then it's a draw. Basically India will be hoping now to get far enough ahead so they can "declare" and stop their innings and give themselves time to get England all out, of course if you declare too early and lose you look silly, but if you declare too late the match gets drawn, meanwhile England are trying to get India out quickly so they have time to pass that score tomorrow.
This is rather general inquiry (which I do not think qualifies for the main site), with intent to find out how to go about this the best way with the less time-consuming the better. How would you draw this when using TikZ? imgur.com/btKCS48
It's a sketch of a technical apparatus. There are obviously lots of rectangular shapes and nearly equally many nodes "pointing" to them. On the right of the nodes are the same rectangular shapes, just rotated by 90°, in the sense of a sectional drawing from the side.
Do you understand what's been asked here tex.stackexchange.com/q/191242/3954 ? In a comment (the first one), I asked for clarification but the answer got me even more confused.
@GonzaloMedina was trying to figure that one out as well. I think the OP wants to mark a section in the source somehow. This marked section should have an asterisk prepended in the ToC, as well as the Chapter containing the marked section. (I think :-).)
It is entirely possible that I'm completely wrong, though. :~)