As author of a LaTeX package (licensed under the LPPL), what is the best practice to properly attribute
- when I copy-paste and possibly modify parts of code from another LaTeX package (which is published under the LPPL);
- when I copy-paste and possibly modify code snippets from answers here on TeX.SX?
Is there any established form this would be handled in the community? Is a comment in the Source of my package at the point where such a snippet is re-used appropriate? What would be the wording of that comment?
Basically, my question is about a template of best practice, not legal advice. Particularly, if attribution is given by a comment in the source, I wonder of the following details:
- does it mention the original author or only the project?
- should it provide a URL to the original source?
- does it make clear where the copy pasted part starts and ends?
- does it have to make clear which modifications I did?
Or, to make it easy, how could such a attribution comment look like?
% The following code provided by Audrey http://tex.stackexchange.com/a/57247or% Copyright notice: the following code is adapted from code from the % amsmath package.or% partly copied from enumerate.sty– samcarter_is_at_topanswers.xyz Jul 26 '18 at 10:38