-
Notifications
You must be signed in to change notification settings - Fork 41
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
Tighten connection between \firstuse and document index #3043
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked at a couple of changes and how they look in the build by Jenkins. It appends CUSTOM and NOTHING to the text. I am not sure if the rule is not defined correctly or something went wrong with the build. Could you check what you get in your build and if something needs to be updated? Also styleguide.md should be updated to document the new options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not check every item (maybe 15 or so, at random that have different styles). Looks good apart from the comment about encapsulated (but may be it needs to be a separate issue?) and also an update to the styleguide.
How about this? |
Co-authored-by: Elena Shmoylova <eshmoylova@users.noreply.github.com>
(I still don't know how you do it, but I can't figure out how to reply directly to the comments.)
Yes, I believe it should work that way.
Not that I know, unfortunately. I suppose it could be the topic of a new LaTeXML issue. |
I usually go to the Files tab and look through the comments there (Ctrl + f can be helpful when like in this change there are so many files). I cannot make sense sometimes of how the Conversation tab combines comments especially if they are many comments that are part of one "Review"). If I see a comment in an email that I cannot find in the Files tab I search through the Conversation.
Maybe it's irrelevant because the assumption is that you click on all items. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good except for the specific comments.
As suggested by Hans.
As requested by Hans.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Fixes #3041.
More importantly, this instruments
\firstuse
with capabilities for adding introduced terminology to the index. The point is to strengthen the connection between introducing terminology in the text and making the terminology searchable in the document index. By default, the argument to\firstuse
is added as-is to the index, but since the desired appearance in the index is often not exactly the same as the appearance in the text,\firstuse
also takes an optional argument for specifying how the terminology should be presented in the index. Finally, on rare occasions one doesn't want an entry in the index at all (for example if a word is already present in the form of a keyword), and then one can pass an em-dash as the optional argument (for example,\firstuse[---]{partial}
).To support reviewers, I made a diff of the
MLS.idx
to show the effect of the commit Make \firstuse add to document index, with possibility to override:The changes seen are intentional and the result of manually going through all occurrences of
\firstuse
.Edit: The diff and the comment to the diff was updated after removing forgotten debug prints in the implementation of
\firstuse
.