Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis authored and ronaldtse committed Dec 19, 2020
1 parent a1c8d60 commit 6c2d100
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions author/topics/document-format/text.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,11 @@ was to carry Excalibur (((Sword~A~, stem:[sqrt(2)], Excalibur))).
--

Metanorma supports index entries that involve ranges [added in https://github.com/metanorma/metanorma-standoc/releases/tag/v1.7.0],
using the macro `index-range:to[(((...)))]`. The index entry range starts at the location of the
macro, as with `(((...)))`; the end of the range is the element with anchor `to`, and that is expected to be
provided as a bookmark. The macro itself contains an Asciidoctor index entry.
using the macro `index-range:to[...]`.
The macro itself contains an Asciidoctor index entry, such as `+((...))+` or `+(((...)))+`.
The index entry range starts at the location of the `index-range` macro,
in the same way as the index macro it contains; the end of the range is the element with the anchor `to`,
and that is expected to be provided as a bookmark.

[source,asciidoc]
--
Expand All @@ -288,6 +290,9 @@ and so forth.[[end-range-1]]
_Sic explicit fabula._[[end-range-2]]
--

The preceding example has a visible index entry for _**Arthur**_, ranging from the location of `+*Arthur*+`
up to `end-range-1`, and a hidden index entry for _Sword~A~_, ranging from the location of `+Sword~A~+`
up to `end-range-2`.

Metanorma also supports "see" and "see also" crossreferences between
index terms [added in https://github.com/metanorma/metanorma-standoc/releases/tag/v1.6.5],
Expand Down

0 comments on commit 6c2d100

Please sign in to comment.