{"action":"created","issue":{"url":"https://api.github.com/repos/maieul/ledmac/issues/254","labels_url":"https://api.github.com/repos/maieul/ledmac/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/maieul/ledmac/issues/254/comments","events_url":"https://api.github.com/repos/maieul/ledmac/issues/254/events","html_url":"https://github.com/maieul/ledmac/issues/254","id":63169968,"number":254,"title":"Feature: Create labels containing the \\linenum info of a lemma","user":{"login":"stenskjaer","id":4047523,"avatar_url":"https://avatars.githubusercontent.com/u/4047523?v=3","gravatar_id":"","url":"https://api.github.com/users/stenskjaer","html_url":"https://github.com/stenskjaer","followers_url":"https://api.github.com/users/stenskjaer/followers","following_url":"https://api.github.com/users/stenskjaer/following{/other_user}","gists_url":"https://api.github.com/users/stenskjaer/gists{/gist_id}","starred_url":"https://api.github.com/users/stenskjaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stenskjaer/subscriptions","organizations_url":"https://api.github.com/users/stenskjaer/orgs","repos_url":"https://api.github.com/users/stenskjaer/repos","events_url":"https://api.github.com/users/stenskjaer/events{/privacy}","received_events_url":"https://api.github.com/users/stenskjaer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/maieul/ledmac/labels/Feature","name":"Feature","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-20T05:54:47Z","updated_at":"2015-03-22T16:14:43Z","closed_at":null,"body":"It can often be necessary to refer to a note in the apparatus / lemma with notes in the apparatus.\r\nWould it be an idea to make an `\\applabel` (or something) that can be used in the second argument of `\\edtext` to refer to the linenum-info of the lemma?\r\n\r\nLet me give an example:\r\n```latex\r\n\\pstart \r\nSi propter indigentiam motoris, aut ergo \\edtext{propter \r\nindigentiam}{\\applabel{note1}\\Afootnote{\\emph{om.} M}} \r\nmotoris primi aut appropriati.\r\n\\pend\r\n```\r\n\r\nHere the `\\applabel` would create *two* labels called ([name]_beg and [name]_end or whatever) refering to the beginning and end of the lemma. So here `\\lineref{note1_beg}` and `\\lineref{note1_end}` would refer to the line numbers of the beginning and end of the lemma discussed in the apparatus.\r\n\r\nIn this way it would be possible to create simple and consistent references to passages treated in the apparatus without too many `\\edlabel`s in the text.\r\n"},"comment":{"url":"https://api.github.com/repos/maieul/ledmac/issues/comments/84644867","html_url":"https://github.com/maieul/ledmac/issues/254#issuecomment-84644867","issue_url":"https://api.github.com/repos/maieul/ledmac/issues/254","id":84644867,"user":{"login":"stenskjaer","id":4047523,"avatar_url":"https://avatars.githubusercontent.com/u/4047523?v=3","gravatar_id":"","url":"https://api.github.com/users/stenskjaer","html_url":"https://github.com/stenskjaer","followers_url":"https://api.github.com/users/stenskjaer/followers","following_url":"https://api.github.com/users/stenskjaer/following{/other_user}","gists_url":"https://api.github.com/users/stenskjaer/gists{/gist_id}","starred_url":"https://api.github.com/users/stenskjaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stenskjaer/subscriptions","organizations_url":"https://api.github.com/users/stenskjaer/orgs","repos_url":"https://api.github.com/users/stenskjaer/repos","events_url":"https://api.github.com/users/stenskjaer/events{/privacy}","received_events_url":"https://api.github.com/users/stenskjaer/received_events","type":"User","site_admin":false},"created_at":"2015-03-22T16:14:43Z","updated_at":"2015-03-22T16:14:43Z","body":"A quick last question: Could we maybe make a prefix for the line number that depends on whether it refers to a single or more lines.\r\nJust an example name:\r\n```latex\r\n\\renewcommand*\\apprefprefixsingle{line~}\r\n\\renewcommand*\\apprefprefixmore{lines~}\r\n```\r\nSo let's say `\\applabel{note1}` outputs refers to line 43, then `\\appref{note1}` it will output *line 43*, and if it refers to line 43--45, then `\\appref{note1}` will output *lines 43--45*.\r\n"}}