You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to reference annotations, perhaps with labels or some other practical means. This would be useful if one annotation relates to a previous one, just as a section of a text document could refer to another. Since annotation numbers (if used) should always be flexible as new annotations are added or removed, the label could be generated/referenced in relation to instrument and location, like viola.1.1 (meaning viola in measure 1, beat 1).
Annotations would reference others like message = "This is a message. Also see \nameref{viola.1.1} because it relates." which would expand to, for example, This is a message. Also see 7. where "7" would actually link to the referenced annotation (in this case, annotation number 7) as well.
The text was updated successfully, but these errors were encountered:
This will be easily possible with html, and the LaTeX export can be made to interpret whatever ID property this uses as labels / hrefs and apply them that way.
jefferyshivers
changed the title
referencing annotations
annotations referencing other annotations
Mar 7, 2017
We could consider using explicit labels, like in LaTeX, where you'd also need to specify a label:
\section{First Section}
\label{sec:first-section}
Some text
\section{Second Section}
As described in section \ref{sec:first-section}
I think it's acceptable to require adding a label to make an annotation referencable. Apart from that the location of an annotation isn't fixed either.
We could use label as a generic hook (where html-export turns it into div id, latex-export into label, etc), or require explicit props for each, like
html-id = "my-html-id" % or just "id = .."
label = "my-latex-label"
...
which I think is what you have in mind. I don't suspect there would be any conflicts in using one prop type for all such labels/id's, but it might be good to separate them just in case (and to remove any possible ambiguity as to where each id goes).
It should be possible to reference annotations, perhaps with labels or some other practical means. This would be useful if one annotation relates to a previous one, just as a section of a text document could refer to another. Since annotation numbers (if used) should always be flexible as new annotations are added or removed, the label could be generated/referenced in relation to instrument and location, like
viola.1.1
(meaning viola in measure 1, beat 1).Annotations would reference others like
message = "This is a message. Also see \nameref{viola.1.1} because it relates."
which would expand to, for example, This is a message. Also see 7. where "7" would actually link to the referenced annotation (in this case, annotation number 7) as well.The text was updated successfully, but these errors were encountered: