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

[everywhere] Rework how we mark up inline references. #1690

Closed
wants to merge 2 commits into from

Conversation

zygoloid
Copy link
Member

Visual changes:

  • The "Clause" and "Annex" in "Clause N" and "Annex N" are now part of
    the hyperlink.
  • Fewer words are hyphenated (we prefer to move an inline reference
    across a line break rather than hyphenating a word)
  • Some spurious "Clause"s and "Annex"es are gone and some missing ones
    are now present.

LaTeX-level changes:

Instead of "some text~(\ref{blah})", we now use "some text\iref{blah}".
Instead of "Clause~\ref{blah}", we now use simply "\ref{blah}", and the
"Clause" prefix is automatically added (likewise for "Annex").

For multi-reference parentheticals, use "some text (\ref{a}, \ref{b})".
A longer orphaned parenthetical is not really a big deal.

~s should now generally not be used near \ref's.

@tkoeppe
Copy link
Contributor

tkoeppe commented Jul 29, 2017

Do the ISO drafting directives allow the word "Annex" in a reference? I think I have a similar pull request open where this question needs to be resolved.

Visual changes:

 * The "Clause" and "Annex" in "Clause N" and "Annex N" are now part of
   the hyperlink.
 * Fewer words are hyphenated (we prefer to move an inline reference
   across a line break rather than hyphenating a word)
 * Some spurious "Clause"s and "Annex"es are gone and some missing ones
   are now present.

LaTeX-level changes:

Instead of "some text~(\ref{blah})", we now use "some text\iref{blah}".
Instead of "Clause~\ref{blah}", we now use simply "\ref{blah}", and the
"Clause" prefix is automatically added (likewise for "Annex").

For multi-reference parentheticals, use "some text (\ref{a}, \ref{b})".
A longer orphaned parenthetical is not really a big deal.

~s should now generally not be used near \ref's.
@zygoloid
Copy link
Member Author

"Annex" is expected prior to a reference to an annex, per Directives Part 2 (7th ed), 6.1, and examples throughout the directives.

@tkoeppe
Copy link
Contributor

tkoeppe commented Aug 1, 2017

This has already been applied as beb8815.

@tkoeppe tkoeppe closed this Aug 1, 2017
@zygoloid zygoloid deleted the linebreak branch September 15, 2017 00:33
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

Successfully merging this pull request may close these issues.

None yet

2 participants