/[csv2latex]/PLAN
ViewVC logotype

Contents of /PLAN

Parent Directory Parent Directory | Revision Log Revision Log


Revision 56 - (show annotations)
Sun Jul 1 19:37:21 2018 UTC (18 months, 2 weeks ago) by ben
File size: 598 byte(s)
replace interline with baselineskip ratio
1 find T (number of tabulars) and L (number of lines per tabular) so that:
2 (1) L is maximal
3 (2) T is minimal
4 (3) TOTAL_LINES % T is 0
5
6 proposal of algorithm:
7 T = TOTAL_LINES - 1
8 do { | |
9 L = TOTAL_LINES / T | 1 |
10 | |
11 do { | |
12 if TOTAL_LINES % T == 0 | 200 % 199 = 1 != 0 |
13 return | |
14 | |
15 PREVT = T | |
16 T = T - 1 | 198 |
17
18 | |
19 } while (T > PREVT) | 198 < 199 => loop |
20 | |
21 if T < PREVT | 199 < 99999 |
22 PREVT = T | 199 |
23 | |
24 } while (L <= LMAX) | 1 <= 1 |

  ViewVC Help
Powered by ViewVC 1.1.26