| 1 | # biblatex-license |
| 2 | |
| 3 | ---- |
| 4 | Author: |
| 5 | Anselm Wagner |
| 6 | [email protected] |
| 7 | Bergische Universität Wuppertal |
| 8 | v0.1 |
| 9 | |
| 10 | License: |
| 11 | This material is subject to the LaTeX Project Public License 1.3c. |
| 12 | https://ctan.org/license/lppl1.3 |
| 13 | |
| 14 | Requirements: |
| 15 | This package requires the LaTeX-packages 'biblatex' and 'kvoptions' to be installed. |
| 16 | ---- |
| 17 | |
| 18 | ## Intro |
| 19 | |
| 20 | This package provides a modification to the biblatex standard styles for |
| 21 | relating cited works to the license under which they were published. |
| 22 | This is done via biblatex’ build in `related` mechanism and |
| 23 | `relatedtype = license`. This package basically provides this new |
| 24 | relatedtype, the bibmacros for typesetting these related entries and |
| 25 | some additional styling options. |
| 26 | |
| 27 | ## Loading the package |
| 28 | |
| 29 | The package is loaded via |
| 30 | |
| 31 | \usepackage[options]{biblatex-license} |
| 32 | |
| 33 | and has to be loaded *after* the `biblatex` package. The package sets |
| 34 | the `biblatex` option `related = true`. |
| 35 | |
| 36 | ## Options |
| 37 | |
| 38 | * `license` : Decides if and how the license is to be printed. Default: short |
| 39 | * `url` : Switch for deciding if the url of the license should be explicitly printed. Default: false |
| 40 | * `link` : When set to `true` and `url` is set to `off`, the title of the license becomes an `\href`, i.e. a hyperlink. Default: true |
| 41 | * `introtext`: Makes it possible to replace the language specific intro text (e.g. “licensed under”) with custom text. Default: none |
| 42 | |
| 43 | ## Usage |
| 44 | |
| 45 | Consider the following bibliography: |
| 46 | |
| 47 | @Misc{CreativeCommons4.0, |
| 48 | author = {{Creative Commons}}, |
| 49 | title = {{Attribution-NonCommercial-ShareAlike 4.0 International}}, |
| 50 | date = {2013-11-25}, |
| 51 | url = {https://creativecommons.org/licenses/by-nc-sa/4.0/}, |
| 52 | urldate = {2019-10-01}, |
| 53 | shorttitle = {{CC BY-NC-SA 4.0}}, |
| 54 | } |
| 55 | |
| 56 | @book{Payne2019, |
| 57 | author = {Blakeley Hoffman Payne}, |
| 58 | editor = {{MIT Media Lab Personal Robots Group} and Cynthia Breazeal}, |
| 59 | title = {An Ethics of Artificial Intelligence Curriculum for Middle |
| 60 | School Students}, |
| 61 | related = {CreativeCommons4.0}, |
| 62 | relatedtype = {license}, |
| 63 | url = {https://t1p.de/rwlp}, |
| 64 | urldate = {2020-01-27}, |
| 65 | date = {2019-08}, |
| 66 | } |
| 67 | |
| 68 | Note, that `Payne2019` has the fields `related` and `relatedtype` |
| 69 | defined. `related` is pointing via the label to the entry corresponding |
| 70 | to the license under which `Payne2019` was published: |
| 71 | `CreativeCommons4.0`. The `relatedtype = {license}` is necessary for |
| 72 | `biblatex` to know how this relation should be handled. Please see the |
| 73 | `biblatex` user guide (§3.4 *Related Entries*) for more information on |
| 74 | related entries. |
| 75 | |
| 76 | ## More on the options |
| 77 | |
| 78 | ### `introtext` |
| 79 | |
| 80 | Note the text “Licensed under” in the bibliography. This text is, as of |
| 81 | now, only translated to german but can be changed via the option |
| 82 | `introtext` like so: |
| 83 | |
| 84 | \usepackage[introtext={Some text}]{biblatex-license} |
| 85 | |
| 86 | ### `link` |
| 87 | |
| 88 | Also note that in the example output above the title of the license is |
| 89 | itself a link to where the `url`-field of the license entry inside the |
| 90 | bib-file is pointing. This link is made via `\href`. |
| 91 | |
| 92 | ### `url` |
| 93 | |
| 94 | It might be better to explicitly print the url of the license, which can |
| 95 | be done via the `url=true` option. If printed this way, the option |
| 96 | `link` has no effect on if this url is itself a hyperlink or not aus the |
| 97 | url-field is handled by biblatex itself. |
| 98 | |
| 99 | ### `shorttitle` of the license |
| 100 | |
| 101 | If a `shorttitle` is provided for the license inside the bib-file, the |
| 102 | shorttitle will always be preferred. |