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

Replace non-code "C++" with "\Cpp{}" #3794

Closed
JohelEGP opened this issue Feb 25, 2020 · 2 comments · Fixed by #3797
Closed

Replace non-code "C++" with "\Cpp{}" #3794

JohelEGP opened this issue Feb 25, 2020 · 2 comments · Fixed by #3797

Comments

@JohelEGP
Copy link
Contributor

I guess that \Cpp{} was introduced to avoid the hideous looking "++" with the PDF's font. There are plain "C++" that would look better if they were replaced with "\Cpp{}". check.sh should be enhanced to detect these. This may be obvious to pro LaTeX users, but pay attention to the index entries containing "C++". Some come from macro definitions like \defnx{\Cpp{} standard library}{library!C++ standard}, which should also replace the plain "C++" with "\Cpp{}" so that the index looks nice too.

@jensmaurer
Copy link
Member

Extended the automatic checks is hard, because some mentions of C++ are actually intentional, e.g. in extern "C++". Also, for index entries, there are two levels: one is the (sorting of) the index entry itself, and one is the presentation in the index. Only the latter can be replaced with the beautified macro.

@JohelEGP
Copy link
Contributor Author

Very well. If it has to be done manually, I can submit a patch.

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