TransWikia.com

texinfo @summarycontents - how can I adjust the level depth?

TeX - LaTeX Asked on January 14, 2021

I wrote/edit a texinfo manual, specifically the GNU Emacs Lisp Bytecode Reference
Manual
, and if you look on page i (sheet 2) there is a short table of contents, but it is too short.

So I’d like to include one more level, i.e. the section headings as well as the chapter headings that are already there.

How can I do this?

One Answer

I looked at the texinfo.tex file and it appears that a short table of contents just redefines the macros for sections and subsections to null.

Here then is a diff:

diff -u texinfo-hacked.tex{~,}
--- texinfo-hacked.tex~ 2019-10-07 16:44:56.000000000 -0400
+++ texinfo-hacked.tex  2019-11-29 12:41:46.105737894 -0500

@@ -6881,15 +6881,18 @@
     rm
     hyphenpenalty = 10000
     advancebaselineskip by 1pt % Open it up a little.
-    defnumsecentry##1##2##3##4{}
-    letappsecentry = numsecentry
-    letunnsecentry = numsecentry
-    letnumsubsecentry = numsecentry
-    letappsubsecentry = numsecentry
-    letunnsubsecentry = numsecentry
-    letnumsubsubsecentry = numsecentry
-    letappsubsubsecentry = numsecentry
-    letunnsubsubsecentry = numsecentry
+    % Wwe want section
+    % headers in our short contents
+    defnullentry##1##2##3##4{}
+    % defnumsecentry##1##2##3##4{}
+    % letappsecentry = numsecentry
+    % letunnsecentry = numsecentry
+    letnumsubsecentry = nullentry
+    letappsubsecentry = nullentry
+    letunnsubsecentry = nullentry
+    letnumsubsubsecentry = nullentry
+    letappsubsubsecentry = nullentry
+    letunnsubsubsecentry = nullentry
     openin 1 tocreadfilenamespace
     ifeof 1 else
       readtocfile

Answered by rocky on January 14, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP