To keep it simple, I have created a custom table of contents for LaTeX,
% ===TOC (Alphabetical)===
% - - - - - - - - - - - - - - - -
\makeatletter
\newcommand\tableofcontentsalphabetical{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{%
\contentsname \\
(Alphabetical*)
\@mkboth{\MakeUppercase\contentsname (Alphabetical*)}
{\MakeUppercase\contentsname (Alphabetical*)}%
}%
\@starttoc{tocabc}%
\if@restonecol\twocolumn\fi
}
\newcommand{\addtocabc}[2]{%
\addcontentsline{tocabc}{#1}{\protect\numberline{\csname the#1\endcsname}#2}%
}
\makeatother
And, I was wondering if there were a way to declare the order in which whatever will appear, that I add with the afforementioned command. I don't understand TeX or LaTeX, but I am gradually seeing things as I look for answers and ask.
In my case, I judge it would be easier for me to declare which order an entry should go, rather than worry about declaring the page (if that is even possible to do.) Because the order will never change (it is alphabetical) but the pages will.
I hope this is clear. But, that said, should I just forego caring and manually reorder the appropriate *.tocabc file, that LaTeX creates?
I write in Vim, so I have Vim call a scrit to look at the ending of a file name and compile it appropriately, so it wouldn't be hard to make it compile the file two or three times, then reorder that TOC file, then recompile it.
Thank you in advance!