{"action":"created","issue":{"url":"https://api.github.com/repos/KWARC/sTeX/issues/89","labels_url":"https://api.github.com/repos/KWARC/sTeX/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/KWARC/sTeX/issues/89/comments","events_url":"https://api.github.com/repos/KWARC/sTeX/issues/89/events","html_url":"https://github.com/KWARC/sTeX/issues/89","id":79762871,"number":89,"title":"integrate the new path canonicalization into modules.sty (relative paths)","user":{"login":"kohlhase","id":4037538,"avatar_url":"https://avatars.githubusercontent.com/u/4037538?v=3","gravatar_id":"","url":"https://api.github.com/users/kohlhase","html_url":"https://github.com/kohlhase","followers_url":"https://api.github.com/users/kohlhase/followers","following_url":"https://api.github.com/users/kohlhase/following{/other_user}","gists_url":"https://api.github.com/users/kohlhase/gists{/gist_id}","starred_url":"https://api.github.com/users/kohlhase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohlhase/subscriptions","organizations_url":"https://api.github.com/users/kohlhase/orgs","repos_url":"https://api.github.com/users/kohlhase/repos","events_url":"https://api.github.com/users/kohlhase/events{/privacy}","received_events_url":"https://api.github.com/users/kohlhase/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"La-Stravaganza","id":10081485,"avatar_url":"https://avatars.githubusercontent.com/u/10081485?v=3","gravatar_id":"","url":"https://api.github.com/users/La-Stravaganza","html_url":"https://github.com/La-Stravaganza","followers_url":"https://api.github.com/users/La-Stravaganza/followers","following_url":"https://api.github.com/users/La-Stravaganza/following{/other_user}","gists_url":"https://api.github.com/users/La-Stravaganza/gists{/gist_id}","starred_url":"https://api.github.com/users/La-Stravaganza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/La-Stravaganza/subscriptions","organizations_url":"https://api.github.com/users/La-Stravaganza/orgs","repos_url":"https://api.github.com/users/La-Stravaganza/repos","events_url":"https://api.github.com/users/La-Stravaganza/events{/privacy}","received_events_url":"https://api.github.com/users/La-Stravaganza/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-05-23T07:20:52Z","updated_at":"2015-06-15T07:23:18Z","closed_at":null,"body":"We want to avoid duplicate loading of module signatures in sTeX (```modules.sty```). Currently in ```\\@importmodule```, we test if we have seen the path already (the line with ```\\IfStrEq```, and that does not really work with relative paths, which can be non-canonical). Actually, we cannot do relative paths at all at the moment (they are relative to the current file; we need to compose the load prefixes and normalize). I am not sure I have expressed myself clearly here, so just ask. \r\nAssigning to @La-Stravaganza "},"comment":{"url":"https://api.github.com/repos/KWARC/sTeX/issues/comments/111965202","html_url":"https://github.com/KWARC/sTeX/issues/89#issuecomment-111965202","issue_url":"https://api.github.com/repos/KWARC/sTeX/issues/89","id":111965202,"user":{"login":"kohlhase","id":4037538,"avatar_url":"https://avatars.githubusercontent.com/u/4037538?v=3","gravatar_id":"","url":"https://api.github.com/users/kohlhase","html_url":"https://github.com/kohlhase","followers_url":"https://api.github.com/users/kohlhase/followers","following_url":"https://api.github.com/users/kohlhase/following{/other_user}","gists_url":"https://api.github.com/users/kohlhase/gists{/gist_id}","starred_url":"https://api.github.com/users/kohlhase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kohlhase/subscriptions","organizations_url":"https://api.github.com/users/kohlhase/orgs","repos_url":"https://api.github.com/users/kohlhase/repos","events_url":"https://api.github.com/users/kohlhase/events{/privacy}","received_events_url":"https://api.github.com/users/kohlhase/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T07:23:18Z","updated_at":"2015-06-15T07:23:18Z","body":"I think we want to leave ```\\gimport``` and ```\\importmhmodule``` alone for relative paths. They live quite happily with absolute paths. I should probably have specified this. \r\n\r\nSo let us think about ```\\importmodule[load=../../smglom/numberfields/source/naturalnumbers]```. \r\nand get this to work. The way I imgine this is that there is a local macro like ```\\load@path@prefix``` that is initially (i.e. when TeX processing starts) empty and is updated to the new local directory with something like\r\n```\r\n\\ddef\\load@path@prefix{\\@canonicalize{\\load@path@prefix{smglom/numberfields/source}}}\r\n``` \r\nwhen  ```\\importmodule[load=../../smglom/numberfields/source/naturalnumbers]``` is processed. \r\nThen ```\\@path``` and ```\\@load```  can be set for ```\\@importmodule```. \r\n\r\nDoes this help?"}}