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

Reference locality expressions not working when citing a single bibliography item #700

Closed
ronaldtse opened this issue Nov 11, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ronaldtse
Copy link
Contributor

In ISO 19115-3 I wanted to cite "ISO 19115-1:2014 C.5 and C.6".

Metanorma supports various reference locality expressions relevant to this:
https://www.metanorma.org/author/topics/document-format/bibliography/#localities-2

  • discontinuous locality (<<ref1,page=4,page=7>>)
  • complex locality (<<ref1,part=IV,chapter=3;or!part=VI,chapter=9>>)

I tried this but it doesn't work.

<<ISO_19115-1_2014,clause="C.5;and!C.6">>

(renders as "ISO 19115-1:2014, C.5;and!C.6")

This also isn't ideal:

<<ISO_19115-1_2014,clause="C.5-C.6">>

(renders as "ISO 19115-1:2014, C.5-C.6")

I had to do this:
<<ISO_19115-1_2014,clause="C.5",clause="C.6">>

which renders as "ISO 19115-1:2014, C.5, C.6".

If we enable complex locality for bibliographic cross-references, then this should work:

<<ISO_19115-1_2014,clause="C.5;and!C.6">>

=> "ISO 19115-1:2014, C.5 and C.6"

@ronaldtse ronaldtse added the bug Something isn't working label Nov 11, 2022
@ronaldtse ronaldtse moved this to 🆕 New in Metanorma Nov 11, 2022
@ronaldtse ronaldtse moved this from 🆕 New to 🏔 High priority in Metanorma Nov 11, 2022
@opoudjis opoudjis moved this from 🏔 High priority to 🏗 In progress in Metanorma Jan 8, 2024
@opoudjis
Copy link
Contributor

opoudjis commented Jan 8, 2024

I had to do this:
<<ISO_19115-1_2014,clause="C.5",clause="C.6">>

The intended formatting, as you would know if you had bothered to RTFM, or look at the examples,

Complex relations between discontinuous references can be specified by prefixing conjoining verbs to sequences of localities separated by semicolon

is:

<<ISO_19115-1_2014,clause="C.5";and!clause="C.6">>

sequences of localities means "clause=x", not just x.

Nonetheless, I've implemented the requested behaviour in postprocessing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants