For my post, I assume that for software developers or authors of educational texts, an important part of choosing the proper license for their work is attribution: as the original author, I would want my work to be attributed to me when it's reused. Furthermore, I may want to assure that it's not allowed for someone else to reclaim my work as its own without at least violating de terms of use of my publication.

I feel that a lot of times Open-Educational Resources (OER) are linked to CreativeCommons (CC) without being actually compatible. I'll give two examples to illustrate my claim and would like to hear your comments handling the publication process in these examples.

Example I

Assume that I want to publish the LaTeX-source code of some lecture notes I wrote as an OER. I want others to reuse the code for their own lectures but also for the produced artifact (the PDF) to carry the proper attribution. What license should I choose and for what?

Idea (i): only release the PDF with a CC-BY license

It seems to me that this is the standard scenario would be to opt for a CC-BY licensing of the PDF. If someone uses a passage from the PDF, proper attribution needs to be given. However, in this case, I should not publish the TeX-source as well under an open-source license, as the user could then just copy my TeX-source, and generate an "attribution free" PDF copy of my lecture notes basically reclaiming my work as their own.

Idea (ii): only release the Source-code with the "correct" license

Based on the previous section, I think that it does not make sense to license the PDF if the source is also published under an open-source license. But which license should one then choose to assure proper attribution?

Example II with a twist

Assume that I wrote some JavaScript code, in the sense of an interactive exercise/quiz for students. In practice, the JavaScript code is included on a webpage and used by students. I want other teachers to be able to use the quizzes in their course under the condition of attributing the source code to myself but without the need to link the exercise's source code (which contains at least a hint of a solution to the quiz). Is there a license that classifies for this scenario? I feel like under a CC-BY license for the JavaScript code, the quiz that is displayed in the web browser of the student could classify as a derivate and therefore must carry a proper attribution including a link to the original source.

  • "the user could then just copy my TeX-source, and generate an "attribution free" PDF copy of my lecture notes basically reclaiming my work as their own." - Just because they are technically capable of doing that using the source code you published, doesn't mean it is allowed by the license. On the contrary, it seems to me that creating a derivative work with the attribution removed would explicitly violate a CC license which requires attribution.
    – kaya3
    Oct 7, 2022 at 21:12

1 Answer 1


You may license both the PDF and (separately) the TeX-sources under a CC license. There is a statement that CC licenses are not useful for source code, but this is related to software and the TeX source code is different, it is a form of a document description language, and therefore CC licenses are useful. If you just care about Attribution, then CC-BY is fine, CC-BY-SA would be another option.

If you have software (JavaScript) code in your document, then you can license that with a different license (e.g. MIT or Apache) if you want. A clear statement in the document is sufficient (e.g. "All JavaScript code contained in this document is Copyright [myself] and licensed under the MIT license"). If the code itself is not included in the TeX or PDF, but on a server, then you can just license it under (for example) MIT or Apache license by including the respective information in the header of each JavaScript source code file. That's very easy and straight-forward.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.