-
Notifications
You must be signed in to change notification settings - Fork 757
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
When to use \ldots v. \cdots v. ...? #2529
Comments
See #2032 for some answers. |
I'm not sure this is all that confusing, it's always been pretty obvious which kind of ellipsis is used for what.
|
Documented in the wiki at: https://github.com/cplusplus/draft/wiki/Specification-Style-Guidelines#Formatting |
In contexts involving both packs and ellipses, using |
For example, [temp.variadic]p8:
The choice to use |
@zygoloid, thanks. I've added this corner of the cases to the wiki page. Is there any reason to keep this issue open, then? |
The guidance in the wiki leaves me with one question: what about ellipses outside of math/code? I recently replaced a bunch of those in my fork of the document because cxxdraft-htmlgen's sentence splitting can get confused by them. So for me, it would be great if such raw ellipses outside math/code were also systematically replaced with some command, because it would be one less patch to maintain. |
@Eelis: There should be no raw "..." in plain prose text. I'm preparing a patch. |
@zygoloid: OK, fair enough, but I'd say that's a corner case that represents a lose-lose-lose situation. I'm sympathetic to your chosen solution, but I'd say that it doesn't affect the general rules I outlined above. |
In #2450, @zygoloid claims that
\cdots
should be used when listingn
number of arguments (as inC<A1, A2, ..., An>
), sinceBut this is confusing given the existing uses of
\ldots
, \cdots, and
...in the standard. Perhaps many of the uses of
...should actually be
\cdots`? Once clarified, please update the answer in our Q & A. Also consider adding examples of each to the example codeblock in the example Latex code in our quidelines.The text was updated successfully, but these errors were encountered: