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
[std] Use \libmember and \libglobal everywhere #3911
Comments
I don't think I thought about overloads. We do not use \libmember broadly right now, because we sometimes have So, please hold back on global |
Ah I see, makes sense. An alternative idea I had was that perhaps there could be an environment that wraps a whole declaration, so that instead of
you get something more along the lines of
Bit more verbose, but easy to edit, and even better for cxxdraft-htmlgen because then I can make it highlight the whole declaration instead of just the name. I have no idea if mixing environments with @ like this is even possible in LaTeX though. |
Add-on: I think we're looking forward to |
There's a problem with this: the
(with blank lines before and after IIRC this kind of formatting works OK:
... but you need to be careful about which linebreaks you do and do not comment out, and not all declarations are preceded by a comment that can be so annotated. As a general goal, every library declaration should have an index entry. If it has an |
Somewhat on the topic: There's a few instances where \libraryglobalindex is not being parsed correctly, and showing up naked in the text, for example http://eel.is/c++draft/new.syn. Not sure if it's an eel.is issue or what have you, just wanted to point that out :) |
That's Eelis/cxxdraft-htmlgen#71, so I guess it's an eel.is's issue. |
These macros were added by #3096 but are currently almost unused. That's a shame, because in principle their use enables more precise indexing and linking, which I would love to take advantage of in cxxdraft-htmlgen.
For example, a link such as http://eel.is/c++draft/string.iterators#lib:basic_string,cbegin currently points to
begin
rather thancbegin
, because the index entry forcbegin
is actually located just before the itemdecl that declares bothbegin
andcbegin
. Had\libmember
been used here, I could link specifically to the declaration ofcbegin
.Although.. that brings up the question of how these macros are intended to be used with overloaded names like
begin
. Is the intent to:I'd be happy to make a pull request to use these macros everywhere, but do need guidance on this issue of how to handle overloaded names. @jensmaurer do you remember whether you considered overloaded names when you made these macros?
The text was updated successfully, but these errors were encountered: