list motion .........117
All other references and the table of contents work the same way. I
-find this *very* helpful.
+find this *very* helpful.
In brief: you run tex on a .texi file with
\f
Here are the steps in detail:
-% tex elisp-vol1.texi
-% texindex elisp-vol1.??
-% tex elisp-vol1.texi
+% tex vol1.texi
+% texindex vol1.??
+% tex vol1.texi
-% tex elisp-vol2.texi
-% texindex elisp-vol2.??
-% tex elisp-vol2.texi
+% tex vol2.texi
+% texindex vol2.??
+% tex vol2.texi
### Create .aux files with volume numbers for other volume.
-% cp elisp-vol1.aux elisp1-aux
-% cp elisp-vol2.aux elisp2-aux
+% cp vol1.aux elisp1-aux
+% cp vol2.aux elisp2-aux
-% cp elisp-vol1.aux elisp1-aux-vol-number-added
-% cp elisp-vol2.aux elisp2-aux-vol-number-added
+% cp vol1.aux elisp1-aux-vol-number-added
+% cp vol2.aux elisp2-aux-vol-number-added
on elisp1-aux-vol-number-added
(volume-aux-markup 1) see defun for volum-aux-markup below.
(volume-aux-markup 2)
to create elisp2-aux-vol-number-added
-insert elisp2-aux-vol-number-added into elisp-vol1.aux (append)
-insert elisp1-aux-vol-number-added into elisp-vol2.aux (prepend)
+insert elisp2-aux-vol-number-added into vol1.aux (append)
+insert elisp1-aux-vol-number-added into vol2.aux (prepend)
(so you dont have to do it again)
-% cp elisp-vol1.aux elisp1-aux-2vol-ready
-% cp elisp-vol2.aux elisp2-aux-2vol-ready
+% cp vol1.aux elisp1-aux-2vol-ready
+% cp vol2.aux elisp2-aux-2vol-ready
### Create .fn files with volume numbers for other volume.
-% cp elisp-vol1.fn elisp1-fn
-% cp elisp-vol2.fn elisp2-fn
+% cp vol1.fn elisp1-fn
+% cp vol2.fn elisp2-fn
-% cp elisp-vol1.fn elisp1-fn-vol-number-added
-% cp elisp-vol2.fn elisp2-fn-vol-number-added
+% cp vol1.fn elisp1-fn-vol-number-added
+% cp vol2.fn elisp2-fn-vol-number-added
on elisp1-fn-vol-number-added
(volume-index-markup "I")
(volume-index-markup "II")
to create elisp2-fn-vol-number-added
-insert elisp2-fn-vol-number-added into elisp-vol1.fn: do following `cat'
-insert elisp1-fn-vol-number-added into elisp-vol2.fn: do following `cat'
+insert elisp2-fn-vol-number-added into vol1.fn: do following `cat'
+insert elisp1-fn-vol-number-added into vol2.fn: do following `cat'
-% cat elisp2-fn-vol-number-added >> elisp-vol1.fn
-% cat elisp1-fn-vol-number-added >> elisp-vol2.fn
+% cat elisp2-fn-vol-number-added >> vol1.fn
+% cat elisp1-fn-vol-number-added >> vol2.fn
Be sure to handle special case entries by hand.
Be sure that .fn file has no blank lines.
-% texindex elisp-vol1.fn
-% texindex elisp-vol2.fn
+% texindex vol1.fn
+% texindex vol2.fn
(so you dont have to do it again)
-% cp elisp-vol1.fns elisp1-fns-2vol-ready
-% cp elisp-vol2.fns elisp2-fns-2vol-ready
+% cp vol1.fns elisp1-fns-2vol-ready
+% cp vol2.fns elisp2-fns-2vol-ready
### Create merged .toc file with volume number headings.
-append elisp-vol2.toc to elisp-vol1.toc with following `cat'
+append vol2.toc to vol1.toc with following `cat'
-% cat elisp-vol1.toc elisp-vol2.toc > elisp-toc-2vol.toc
+% cat vol1.toc vol2.toc > elisp-toc-2vol.toc
and edit in Volume titles
% cp elisp-toc-2vol.toc elisp1-toc.toc
% cp elisp-toc-2vol.toc elisp2-toc.toc
-Use keyboard macro to put I: in first half of elisp1-toc.toc and
+Use keyboard macro to put I: in first half of elisp1-toc.toc and
II: in first half of elisp2-toc.toc
Copy the tocs to something you can remember more easily
-% cp elisp2-toc.toc elisp1-toc-ready.toc
-% cp elisp1-toc.toc elisp2-toc-ready.toc
+% cp elisp2-toc.toc elisp1-toc-ready.toc
+% cp elisp1-toc.toc elisp2-toc-ready.toc
-Then, edit elisp-vol1.texi to input elisp1-toc-ready.toc
-and elisp-vol2.texi to input elisp2-toc-ready.toc
+Then, edit vol1.texi to input elisp1-toc-ready.toc
+and vol2.texi to input elisp2-toc-ready.toc
### Now format the two volumes:
-% cp elisp1-aux-2vol-ready elisp-vol1.aux
-% cp elisp2-aux-2vol-ready elisp-vol2.aux
+% cp elisp1-aux-2vol-ready vol1.aux
+% cp elisp2-aux-2vol-ready vol2.aux
-% tex elisp-vol1.texi
-% tex elisp-vol2.texi
+% tex vol1.texi
+% tex vol2.texi
\f
For every additional run:
### recopy aux files so the correct ones are read:
-% cp elisp1-aux-2vol-ready elisp-vol1.aux
-% cp elisp2-aux-2vol-ready elisp-vol2.aux
+% cp elisp1-aux-2vol-ready vol1.aux
+% cp elisp2-aux-2vol-ready vol2.aux
Do not run texindex. Then proper sorted index will stay.
- else do: % cp elisp2-fns-2vol-ready elisp-vol2.fns
+ else do: % cp elisp2-fns-2vol-ready vol2.fns
Do not change the .texi files; they will call the elisp-toc-2vol.toc file.
-% tex elisp-vol1.texi
-% tex elisp-vol2.texi
+% tex vol1.texi
+% tex vol2.texi
================================================================
(defun volume-index-markup (arg)
"Prepend `NUMBER:' to page number. Use Roman Numeral.
-Apply only to unsorted index file,
+Apply only to unsorted index file,
Then insert marked file into other volume's unsorted index file.
Then run texindex on that file and save."
(interactive
1. Run TeX, texindex and TeX on file1.
2. Run TeX, texindex and TeX on file2.
-3. Copy both .aux files into specially named files
+3. Copy both .aux files into specially named files
-4. In the case of the elisp ref manual,
+4. In the case of the elisp ref manual,
- copy the *unsorted* function index files into specially named files
+ copy the *unsorted* function index files into specially named files
(no other index used in elisp ref manual)
Run a function on the specially named .aux files to label each
entry according to volume. Save these files.
- i.e., convert
+ i.e., convert
'xrdef {Special-pg}{7} to 'xrdef {Special-pg}{7, vol.'tie1}
5a.Insert each specially named .aux file into the regular .aux file of