|
A method for re-indexing LaTeX filesGetting the FilesThe files (DOS -- based programs only, sorry) used here are: SCRUB.BAT, SCRUBLST.EXE and FILSCRUB.EXE It will be necessary to download these files to your computer and put them into a directory in your path. How to use the programThe file that you should now run is called scrub.bat, you can change the name if you want. Here is how it works. You have to be a little careful how you number your
labels in the latex file. For example for lemmas's use a label like \label{l.abc}
and for theorems \label{t.cameron-martin} and for equations I use \label{e.123}
etc. It is important to have a prefix for each new environment. Otherwise the
label program may screw things up. Here is how you use the program.
The computer should respond: The output files name
is BOUNDS.CNG You now must answer Y or N. If you answer N jump to (#) below and while if you answer Y you will see. Enter an optional prefix for numbering. At this point you might enter bb (and then return) Copyright 1987 by Elfring
Consulting, Inc. What the program has doneAt this point the program has done the following:
So the old tex file is now in bounds.tmp Remark: If you answered Y above then you will see labels in the file like: \begin{prop} \label{p.bb1.2} Let $X$ solve Eq. (\ref{e.bb1.3}) So all labels will be of the form {??.bb?.??}. If you answered N above you would get instead: \begin{prop} \label{p.1.2} Let $X$ solve Eq. (\ref{e.1.3}) Hints
Warning!! I have had fairly good luck with this program but I take no responsibility if it screws up your file. (So always back up your file before using this program on it. ) However you should be careful with it. I always run latex on the relabeled file immediately after relabeling to make the sure the references work out right. If they do not and the file is messed up, the original file is stored in file.tmp , i.e. bounds.tmp in the example above. Good Luck, I hope that you find it useful. Bruce Driver |
11/26/2018 10:37 AM |