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

Use Section Sign ( § ) as XRref Section Signifier #40

Open
tajmone opened this issue Nov 30, 2019 · 0 comments
Open

Use Section Sign ( § ) as XRref Section Signifier #40

tajmone opened this issue Nov 30, 2019 · 0 comments
Labels
💡 enhancement A new feature or enhancement request 🔨 Asciidoctor Tool: Asciidoctor ⭐ xrefs Topic: Cross reference labels and issues ⚠️ useful Priority: Low
Milestone

Comments

@tajmone
Copy link
Owner

tajmone commented Nov 30, 2019

To keep cross references brief in the text, it would be nice to use the § section sign instead of the current "Sec." signifier, in order to output xrefs like:

See §5.3, "Customing Text" for more details.

Unfortunately this is currently unachievable due to space insertion after the section-refsig string attribute, and there's no way to inform Asciidoctor that the user-defined section-refsig shouldn't be followed by a space. Therefore, attempting this:

:section-refsig: §

actually produces:

See § 5.3, "Customing Text" for more details.

where the unwanted space between the § and the section number is both incorrect and hugly.

But this should soon become possible, if either my feature request (asciidoctor/asciidoctor#3498) is accepted, or when the upcoming features proposed in asciidoctor/asciidoctor#2212 are implemented.

So we only have to wait and keep an eye open on when this becomes possible in future Asciidoctor releases.

References

@tajmone tajmone added 💡 enhancement A new feature or enhancement request ⚠️ useful Priority: Low 🔨 Asciidoctor Tool: Asciidoctor ⭐ xrefs Topic: Cross reference labels and issues labels Nov 30, 2019
@tajmone tajmone added this to the xrefs milestone Nov 30, 2019
@tajmone tajmone modified the milestones: xrefs, plus ultra Nov 30, 2019
@tajmone tajmone changed the title Use Section Symbol ( § ) as XRref Section Signifier Use Section Sign ( § ) as XRref Section Signifier Nov 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 enhancement A new feature or enhancement request 🔨 Asciidoctor Tool: Asciidoctor ⭐ xrefs Topic: Cross reference labels and issues ⚠️ useful Priority: Low
Projects
None yet
Development

No branches or pull requests

1 participant