-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reproduce an index #1
Comments
Has anyone already started working on this? If not, I'd like to help you. |
By "this" you mean? Robert Harper
|
What I mean by "this" is adding '\index` annotations to LaTeX text based on a printed copy. I apologize for any confusion. |
@omasanori, I believe that @dmacqueen started looking into adding the index, but has not made much progress on it yet. We would welcome any help you can provide! Do you have a copy of the original printed text, in order to see where the index entries previously pointed? |
oh, great, thanks! lars will guide you. bob harper
|
I am in fact working on the index for the SML ’97 Defn. The definition was not produced in the normal way, but adding \index items for each occurrence of a term in the index, but instead there are “positional” \index items scattered through the text, typically a couple per page, and there is an ML program index.sml that takes the root.idx output for those positional indexes and translates it into a normal index, index.tex. (index.sml takes the place of the makeindex command) This was also the technique used in the SML ’90 Defn, where we have the this index translation program in the file index.sml (this had to be updated to SML from the original version written for an early version of SML and the early SML libraries). Unfortunately, the SML ’97 Defn sources did not include a corresponding index.sml program, so we were unable to generate the index as we did for SML ’90. There were two ways of recreating the index:
I decided to use the second approach. What I have done so far is to mark up my copy of the Defn book with the locations of all these positional index items, and the next step that I am working on is to start with the SML ’90 index.sml file and update the mapping in the second half of that file so it corresponds with the index entries in the book. This seemed slightly less laborious than creating a conventional index from scratch. So the question is how to potentially partition the effort so that more than one person can pitch in. My key tool is my annotated copy of the book, so anyone else who wants to participate has to create their own annotated book. It may be possible to add the annotations on a “by need” basis, avoiding having to annotate the whole book before starting. Dave
David MacQueen |
My experience with PFPL is that it is not hard to do a conventional index from scratch.
|
@larsbergstrom I have a paperback of SML '97. I prefer the conventional |
It’s not really the “hardness”, it’s the tedium! Dave
David MacQueen |
We could do a comparison — measure how long it takes doing, say, 100 index entries the conventional way vs 100 entries in the mapping in index.sml. That would give us a comparison of the relative time and effort required by the two approaches. Either way, one needs to go through the entire existing index in the book to make sure all the entries get covered. Dave
David MacQueen |
agreed, especially if we want to be accurate with respect to the original. bob
|
As the previous index had hard-coded entries and page numbers that did not correspond to the new layout from the LaTeX sources, it has been removed.
We would like to re-create the index through the
makeidx
package, which has documentation at: https://en.wikibooks.org/wiki/LaTeX/IndexingThis work is basically to go through the printed copy of the Definition of Standard ML (Revised), annotate the LaTeX with
\index{key}
annotations, and enable index generation.The text was updated successfully, but these errors were encountered: