9

I have problems with the memory management of an eTeX created with Jim Fowler's TeX's pascal to javascript compiler web2js as soon as I want to dump the eTeX format etex.src with more than only "USenglish" in the language.def.

I found this §13 in tex.pdf generated by pdftex tex.tex which can help to solve my problem, but here I am referred to over 100 other sections.

  1. In case somebody has inadvertently made bad settings of the “constants,” TEX checks them using a global variable called bad . This is the first of many sections of TEX where global variables are defined. h Global variables 13 i ≡ bad : integer ; { is some “constant” wrong? } See also sections 20, 26, 30, 32, 39, 50, 54, 73, 76, 79, 96, 104, 115, 116, 117, 118, 124, 165, 173, 181, 213, 246, 253, 256, 271, 286, 297, 301, 304, 305, 308, 309, 310, 333, 361, 382, 387, 388, 410, 438, 447, 480, 489, 493, 512, 513, 520, 527, 532, 539, 549, 550, 555, 592, 595, 605, 616, 646, 647, 661, 684, 719, 724, 764, 770, 814, 821, 823, 825, 828, 833, 839, 847, 872, 892, 900, 905, 907, 921, 926, 943, 947, 950, 971, 980, 982, 989, 1032, 1074, 1266, 1281, 1299, 1305, 1331, 1342, and 1345. This code is used in section 4.

It is very time-consuming to work through this list of references.

Is this documentation also available with interactive links - incl. back button - instead of just plain textual links? As an interactive PDF or in an HTML version?

The important thing is the interactivity of the links.

A follow up question: How to change table of content layout for a pdf document created from a web source file?

  • which pdf viewer do you use? Many support jumping back to the previous position – sive Jul 28 at 12:54
  • @sive I use PDF-XChange Viewer and just found the back button. Good tip. The forward linking of the sections still remains. – CarpeDiemKopi Jul 28 at 13:08
  • 1
    Also, looking at all these “See also” sections won't help you at all (as you'll simply get a list of all globals in the TeX program, which is very large); instead you ought to look under “bad” (the variable you care about) in the index — it is defined in section 13 (the one you're seeing) and referred to again in 14 (initialized to 0), 111, 290, 522, 1249 (all the ways in which it can be set — these 4 sections are what you care about), then finally in 1332 (the value is checked). – ShreevatsaR Jul 28 at 13:45
  • ShreevatsaR 👍 My "real" problem results from section 111 if fontmax > fontbase + 256 then bad ← 16;. I'm currently writing a node.js script which executes a complete run of: tie, tangle, compile and initex. – CarpeDiemKopi Jul 28 at 21:12
9

That's not from “The TeXbook”, but is rather the typeset version of the WEB source for TeX (the program).

This is available in the TeX Live distribution (possibly also with MiKTeX) as a hyperlinked PDF file, with texdoc tex or from texdoc.net.

enter image description here

The red numbers are hyperlinks pointing to the corresponding module or section.

If I hover on a link I get the exact location (Skim, in this case, shows a preview of the linked text)

enter image description here

  • I didn't know texdoc yet. What's this weird table of contents? Is it possible to list all sections (with description and clickable) instead or additionally? – CarpeDiemKopi Jul 28 at 13:21
  • Why are 16 sections between section 1 and 17 skipped from the table of contents? Is it fixable? – CarpeDiemKopi Jul 28 at 13:29
  • 1
    @CarpeDiemKopi The table of contents lists the parts, which are made of sections (with continuous numbering through parts). Since the source is freely available, you can modify the way the TOC is produced. However, just the first section has a title (that you see as the part title), so listing sections in the TOC doesn't seem that useful. – egreg Jul 28 at 13:32
  • But in the the same layout as See also sections it would be very useful. – CarpeDiemKopi Jul 28 at 14:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.