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

Referring to a term defined within document with automatic anchors #289

Closed
ronaldtse opened this issue Jun 9, 2020 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@ronaldtse
Copy link
Contributor

ronaldtse commented Jun 9, 2020

In #154 this syntax was implemented:

=== Term defined within current document

If the term is defined within the current document, the term citation
gives the anchor of the term definition in the document, the canonical
term name, and optionally the text to be displayed.

The anchor is converted into a document crossreference in the Metanorma XML.

The syntax is:

[source,adoc]
----
{{local-anchor,term}}

// if the display text differs from the cited term
{{local-anchor,term,text}}
----

In metanorma/metanorma-iso#369 , the automatic term anchors were defined -- but only in ISO.

We should create the term lookup table in standoc, not only ISO.

Then we can do:

----
{{term}}

// if the display text differs from the cited term
{{term,text}}
----
@ronaldtse ronaldtse added the enhancement New feature or request label Jun 9, 2020
@ronaldtse
Copy link
Contributor Author

This has been implemented as smart terms references by @opoudjis across flavors . Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants