GeneralCommand for Output and Formatting of a License

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
RyDroid
Posts: 8
Joined: Mon Nov 04, 2013 11:44 pm

Command for Output and Formatting of a License

Post by RyDroid »

Hi.

I would like to know if there is a package for getting some thing like \license{name of the license}? The name of the licence can for example be "Creative Commons BY-SA".

Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Command for Output and Formatting of a License

Post by Johannes_B »

And where to put it? I guess, you want to add some meta data to your pdf file, please have a look at xmpincl and hyperxmp.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
RyDroid
Posts: 8
Joined: Mon Nov 04, 2013 11:44 pm

Command for Output and Formatting of a License

Post by RyDroid »

Thanks.

I thought that there was a command like \license{name}{url}{text of the license} that can be used by \maketitle and the PDF generator.

So I have done that :

Code: Select all

\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[british,english,american]{babel}
\usepackage{hyperref}
\usepackage{hyperxmp}

% title, author, etc

\hypersetup{
  pdfcopyright={Creative Commons 0},
  pdflicenseurl={https://creativecommons.org/publicdomain/zero/1.0/}
}

\begin{document}

\begin{frame}
  \titlepage
  \centerline{\href{https://creativecommons.org/publicdomain/zero/1.0/}{License Creative Commons 0}, except quotes}
\end{frame}

\end{document}
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Command for Output and Formatting of a License

Post by Johannes_B »

I wasn't aware, that you want to have the license completely visible in your document. A longer complete license can be included as meta data into the pdf.

In a beamer presentation, you could also inlude the CC (creative commons) logo linking to the license.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
RyDroid
Posts: 8
Joined: Mon Nov 04, 2013 11:44 pm

Re: Command for Output and Formatting of a License

Post by RyDroid »

Ok, thanks for the additional explanations.
For people that are interresting, this is a "package" that I have found for easily add a CC license : https://blog.hartwork.org/?p=52
Post Reply