- Notifications
You must be signed in to change notification settings - Fork5
Commit8d20eaa
committed
Improve our workaround for 'TeX capacity exceeded' in building PDF files.
In commita5ec86a I wrote a quick hackthat reduced the number of TeX string pool entries created while convertingour documentation to PDF form. That held the fort for awhile, but as ofHEAD we're back up against the same limitation. It turns out that theoriginal coding of \FlowObjectSetup actually results in *three* string poolentries being generated for every "flow object" (that is, potentialcross-reference target) in the documentation, and my previous hack only gotrid of one of them. With a little more care, we can reduce the stringcount to one per flow object plus one per actually-cross-referenced flowobject (about 115000 + 5000 as of current HEAD); that should work untilthe documentation volume roughly doubles from where it is today.As a not-incidental side benefit, this change also causes pdfjadetex tostop emitting unreferenced hyperlink anchors (bookmarks) into the PDF file.It had been making one willy-nilly for every flow object; now it's just oneper actually-cross-referenced object. This results in close to a 2Xsavings in PDF file size. We will still want to run the output through"jpdftweak" to get it to be compressed; but we no longer need removal ofunreferenced bookmarks, so we might be able to find a quicker tool forthat step.Although the failure only affects HEAD and US-format output at the moment,9.5 cannot be more than a few pages short of failing likewise, so itwill inevitably fail after a few rounds of minor-version release notes.I don't have a lot of faith that we'll never hit the limit in the olderbranches; and anyway it would be nice to get rid of jpdftweak across theboard. Therefore, back-patch to all supported branches.1 parenteb66ee6 commit8d20eaa
1 file changed
+69
-10
lines changedLines changed: 69 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
7 |
| - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
8 | 6 |
| |
9 |
| - | |
10 |
| - | |
11 |
| - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
12 | 35 |
| |
13 | 36 |
| |
14 | 37 |
| |
15 | 38 |
| |
16 | 39 |
| |
17 | 40 |
| |
18 | 41 |
| |
| 42 | + | |
| 43 | + | |
19 | 44 |
| |
20 | 45 |
| |
21 | 46 |
| |
22 | 47 |
| |
23 | 48 |
| |
24 | 49 |
| |
25 | 50 |
| |
26 |
| - | |
27 |
| - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
28 | 54 |
| |
29 | 55 |
| |
30 | 56 |
| |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + |
0 commit comments
Comments
(0)