22

I'd like to insert a CC license on a manuscript (a book or report). I've seen the page for downloading the CC icons, and also some questions asked in the forum CC logo and Generate CC information.

However, I do not get how to create the actual thing!

Q: Can you please provide an example of a license info page (MWE)? That would be really helpful!

21

I wrote a package for this as I used something similar as Raniere Silva and I wanted it a bit more clean :)

The package is called doclicense. Check out the following mini example:

\documentclass{article}
\usepackage{hyperref}
\usepackage[
    type={CC},
    modifier={by-nc-sa},
    version={3.0},
]{doclicense}
\begin{document}
\doclicenseThis
\end{document}

enter image description here

11

There is a package that do it for you (the documentation is only available in portuguese at the moment): https://gitorious.org/mundo-livre/creative-commons-licenses-for-latex.

For my documents I use the code below in the cover.

 \begin{tabular}{|p{.9\textwidth}|}
 \hline
 This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
 \begin{center}
 \includegraphics[scale=1]{cc-by-sa.png}
 \end{center}\\
 \hline
 \end{tabular}
  • 1
    I would always go for a vector graphic format for example PDF (or SVG). \includegraphics can handle PDFs as well as PNGs ;) – ypid Feb 16 '15 at 18:21
8

The ccicons LaTeX package provides a set of icons to represent the Creative Commons licenses. There are macros for each icon, as well as shortcuts that allow you to simply drop a specific set of license icons for a license type (e.g., \ccbyncsa will add the CC logo, the attribution icon, the noncommercial (in US dollars) icon, and the share-and-share alike icon)).

Icons are a PostScript Type 1 font, so they scale cleanly.

https://www.ctan.org/pkg/ccicons?lang=en

  • Could you explain a bit more about what the package provides? – musarithmia Jan 14 '16 at 19:11
  • @muarithmia: For instance, you can use \ccbysa to output icon showing cc by sa. Very simple usage. If you go want to have the "original" figures, go for the doclicense package. – koppor Apr 22 '17 at 20:35
5

Based on the answer by @raniere-silva, and information on the Creative Commons page, I manage to put the information in a way I liked.

I went to the CC page and download the logo (in svn), based in the kind of license I choose. Using InkScape I transformed into pdf.

\documentclass{book}
\usepackage{xcolor}
\usepackage[framemethod=tikz]{mdframed}

\definecolor{cccolor}{rgb}{.67,.7,.67}

\begin{document}

\begin{mdframed}[outerlinecolor=black,outerlinewidth=2pt,linecolor=cccolor,middlelinewidth=3pt,roundcorner=10pt]
  This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
  \begin{center}
    \includegraphics[scale=2]{by-nc-sa.pdf}
  \end{center}
\end{mdframed}

\end{document}

The final result was

Logo of the Creative Commons licesnse

0

The Creative Commons icons are also included in the Font Awesome font, which is available in LaTeX via the fontawesome5 package:

\documentclass{article}

\usepackage{fontawesome5}

\begin{document}
    This answer is under the CC-BY-SA 4.0 International license \faCreativeCommons\ \faCreativeCommonsBy\ \faCreativeCommonsSa
\end{document}

example_output

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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