ypid / latex-packages

My LaTeX Packages.
https://ctan.org/author/schneider-r
25 stars 22 forks source link

doclicense: Wrong URL for pd license #46

Closed sammaddens closed 5 years ago

sammaddens commented 5 years ago

The correct link for a pd license is https://creativecommons.org/licenses/publicdomain/deed.en instead of https://creativecommons.org/licenses/publicdomain/1.0/deed.en. So the version should be removed.

This can be easily solved by changing the code for pd.

    \ifthenelse{\equal{\doclicense@modifier}{pd}}{
      \renewcommand{\doclicense@icon}{\ccpd}
      \renewcommand{\doclicense@imagemodifier}{}
      \doclicense@setVersion[1.0]
      \edef\doclicenseURL{%
        \doclicense@baseUrlCC/%
        licenses/publicdomain%%COMMENT removed "/"
        \doclicense@UrlLangPart}%%COMMENT removed "\doclicense@versionUsed"
    }{}
ypid commented 5 years ago

Thanks @sammaddens, fixed it.

ypid commented 4 years ago

@sammaddens Note that CC PD is long retired. Refer to https://github.com/ypid/latex-packages/issues/53