Skip to content
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

[LaTeX] Simplify index entries for class members #799

Closed
AlisdairM opened this issue Jul 7, 2016 · 3 comments
Closed

[LaTeX] Simplify index entries for class members #799

AlisdairM opened this issue Jul 7, 2016 · 3 comments

Comments

@AlisdairM
Copy link
Contributor

AlisdairM commented Jul 7, 2016

It is very common to create an index entry for a class member like so:

\indexlibrary{\idxcode{class}!\idxcode{member}}%
\indexlibrary{\idxcode{member}!\idxcode{class}}%

It would be nice to be able to create both entries from a single line, such as:

\indexlibrarymember{\idxcode{class}!\idxcode{member}}%

This would then allow us to simplify a lot of declarations, and improve consistency. It would help towards fixing the modest number of cases where one, but not both, of the lines above is present.

@jwakely
Copy link
Member

jwakely commented Jul 7, 2016

I do that in the Networking TS, see cplusplus/networking-ts@18a1cc1#diff-a647f9a1c14f8900030991b8b9fec2d8R69

% Add two names to the library index as both #1!#2 and #2!#1
\newcommand{\indexlibrarytwo}[2]{%
\indexlibrary{\idxcode{#1}!\idxcode{#2}}%
\indexlibrary{\idxcode{#2}!\idxcode{#1}}%
}

Your name is better though :)

@AlisdairM
Copy link
Contributor Author

Macro and initial application up for review:
#835

@AlisdairM
Copy link
Contributor Author

This has been satisfactorily resolved by #837 (although some follow-up patches may still apply).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants