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

"ith" should be consistently formatted #653

Closed
zygoloid opened this issue Mar 18, 2016 · 6 comments
Closed

"ith" should be consistently formatted #653

zygoloid opened this issue Mar 18, 2016 · 6 comments

Comments

@zygoloid
Copy link
Member

Sometimes we use "ith", sometimes we use "$i^{th}$", etc.

@tkoeppe
Copy link
Contributor

tkoeppe commented Mar 18, 2016

If you're going with the maths notation, then it should be $i^\text{th}$.

image

tkoeppe added a commit that referenced this issue Nov 29, 2016
…(order elements consistently; use better index notation)

Also fixes issue #1117 and partially addresses issue #653.
@tkoeppe
Copy link
Contributor

tkoeppe commented Nov 29, 2016

Following 48efdfe, there's still work left to be done in the later parts of [tuple.tuple].

@tkoeppe
Copy link
Contributor

tkoeppe commented Dec 14, 2016

(I've been following my recommended style on and off when I happen across relevant text, though I haven't actively sought them out.)

@godbyk
Copy link
Contributor

godbyk commented Dec 20, 2016

@tkoeppe Would it be better to create an \ith macro to help ensure consistency?

@tkoeppe
Copy link
Contributor

tkoeppe commented Dec 20, 2016

@godbyk: I'd be strongly against that. Text and maths is the bread and butter of LaTeX, and $i^\text{th}$ is perfectly readable. Every new macro carries a heavy mental cost and needs to be carefully justified: readers need to know what it means, writers need to remember to use it, and the more trivial the subject the more arbitrary the macros become. We also don't define macros for the behavior is undefined, say, even though that's a much more common phrase. Macros shouldn't just zlib-compress the text, they should factor out conceptual units.

@godbyk
Copy link
Contributor

godbyk commented Dec 21, 2016

@tkoeppe My proposed macro isn't about compression or saving a few keystrokes; it's about ensuring consistency.

I propose that it's easier for an author less accustomed to LaTeX and the finer points of typesetting to remember \ith than $i^\text{th}$. After all, if everyone naturally typed $i^\text{th}$, this bug report wouldn't exist.

Macros also offer more flexibility when it comes to changing styles. If you later decide that $i\text{th}$ is better than $i^\text{th}$, for instance, you must only change it in one place.

A better counter-argument would be, “What about $j^\text{th}$ and 10000^\text{th} and $\tcode{I}^\text{th}$?” And for that I'd still recommend a macro that appends th. For example:

\let\thorn\th% stealing \th for our own purposes
\def\th{\ensuremath{{}^\text{th}}}

$i\th$  \qquad  \tcode{N}\th  \qquad  7\th

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

3 participants