% ====================[ ccbeamer.sty                       ]====================
%                     [ Time-stamp: "2009-04-18 19:29:36 leycec" ]
%
% --------------------( SYNOPSIS                           )--------------------
% This LyX-compatible LaTeX package is required by classicthesis, but not
% supplied by TeXLive 2008 or LyX. Therefore, as a convenience, this package is
% supplied by this archive on your behalf. It is used to insert PDF-format
% vector representations of several common Creative Commons logos, for licensing
% theses into the public domain.
%
% --------------------( TODO                               )--------------------
% * Add a suite of high-level commands for printing full-page disclaimers and
%   licenses, replete with proper Creative Commons logos, given an author name,
%   publication date, and so forth. Ideally, these commands would integrate
%   well with a variety of document classes, packages, and LyX. This is made
%   somewhat complex by the variational choice between Creative Commons
%   licenses but should, as the number of such variations is quite small, be
%   feasible still.
% * Do the same for the GFDL (GNU Free Document License), which, as it has less
%   of a dependency on logos (i.e., it offers only one logo) and no variational
%   choice between licenses (i.e., it offers only one license), should be much
%   more feasible.
% * Provide PDF format graphics for the "to Share" and "to Remix" logos
%   (typically displayed under the "You are free:" subsection), and
%   corresponding commands.
%
% --------------------( CHANGELOG                          )--------------------
% 2009-08-17  Cecil Curry  <http://raiazome.com>
%   * Converted into a proper LaTeX package.
%   * Provided further documentation. 
%   * Replaced the "LicenseDisclaimer/" prefix on all image paths with
%     \CcImagePath. Redefine this command in the preamble of your LaTeX
%     document, after including this package, to point to the absolute or
%     relative path having the Creative Commons logos for your system. As
%     example:
%     \usepackage{ccbeamer}
%     \renewcommand{\CcImagePath}{image/front_matter/}
%
% 2009-05-27  Guy K. Kloss  <g.kloss@massey.ac.nz>
%   * Changed the #1 argument of the macros to support more flexible sizing.
%   * Adapted paths and minor tweaks in text's hyphens.
%
% 2007-07-02  Sebastian Pipping  <webmaster@hartwork.org>
%   * Created.

% ....................{ PROVIDES                           }....................
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ccbeamer}[2007/07/02 ccBeamer]

% ....................{ IMAGE PATH                         }....................
% Declare the absolute or relative path to which you installed the PDF-format
% Creative Commons logos for your system. (By default, this is the current
% path for the current LaTeX document, each path defined by the \graphicspath
% command and TEXINPUTS environment variable, and all other LaTeX aware paths:
% e.g., /usr/share/texmf-dist/tex/latex/ccbeamer/.)
\newcommand{\CcImagePath}{}

% ....................{ IMAGES                             }....................
\newcommand{\CcImageBy}[1]{%
	\includegraphics[#1]{\CcImagePath/cc_by_30}%
}
\newcommand{\CcImageCc}[1]{%
	\includegraphics[#1]{\CcImagePath/cc_cc_30}%
}
\newcommand{\CcImageDevNations}[1]{%
	\includegraphics[#1]{\CcImagePath/cc_dev_nations_30}%
}
\newcommand{\CcImageNc}[1]{%
	\includegraphics[#1]{\CcImagePath/cc_nc_30}%
}
\newcommand{\CcImageNd}[1]{%
	\includegraphics[#1]{\CcImagePath/cc_nd_30}%
}
\newcommand{\CcImagePd}[1]{%
	\includegraphics[#1]{\CcImagePath/cc_pd_30}%
}
\newcommand{\CcImageSa}[1]{%
	\includegraphics[#1]{\CcImagePath/cc_sa_30}%
}
\newcommand{\CcImageSampling}[1]{%
	\includegraphics[#1]{\CcImagePath/cc_sampling_30}%
}
\newcommand{\CcImageSamplingPlus}[1]{%
	\includegraphics[#1]{\CcImagePath/cc_sampling_plus_30}%
}

% ....................{ GROUPS                             }....................
\newcommand{\CcGroupBy}[1]{% zoom
	\CcImageBy{#1}%
}
\newcommand{\CcGroupByNc}[2]{% zoom, gap
	\CcImageBy{#1}\hspace*{#2}\CcImageNc{#1}%
}
\newcommand{\CcGroupByNcNd}[2]{% zoom, gap
	\CcImageBy{#1}\hspace*{#2}\CcImageNc{#1}\hspace*{#2}\CcImageNd{#1}%
}
\newcommand{\CcGroupByNcSa}[2]{% zoom, gap
	\CcImageBy{#1}\hspace*{#2}\CcImageNc{#1}\hspace*{#2}\CcImageSa{#1}%
}
\newcommand{\CcGroupByNd}[2]{% zoom, gap
	\CcImageBy{#1}\hspace*{#2}\CcImageNd{#1}%
}
\newcommand{\CcGroupBySa}[2]{% zoom, gap
	\CcImageBy{#1}\hspace*{#2}\CcImageSa{#1}%
}
\newcommand{\CcGroupDevNations}[1]{% zoom
	\CcImageDevNations{#1}%
}
\newcommand{\CcGroupNcSampling}[2]{% zoom, gap
	\CcImageNc{#1}\hspace*{#2}\CcImageSampling{#1}%
}
\newcommand{\CcGroupPd}[1]{% zoom
	\CcImagePd{#1}%
}
\newcommand{\CcGroupSampling}[1]{% zoom
	\CcImageSampling{#1}%
}
\newcommand{\CcGroupSamplingPlus}[1]{% zoom
	\CcImageSamplingPlus{#1}%
}

% ....................{ TEXT                               }....................
\newcommand{\CcLongnameBy}{Attribution}
\newcommand{\CcLongnameByNc}{Attribution--NonCommercial}
\newcommand{\CcLongnameByNcNd}{Attribution--NoDerivs}
\newcommand{\CcLongnameByNcSa}{Attribution--NonCommercial--ShareAlike}
\newcommand{\CcLongnameByNd}{Attribution--NoDerivs}
\newcommand{\CcLongnameBySa}{Attribution--ShareAlike}

\newcommand{\CcNote}[1]{% longname
	This work is licensed under the \textit{Creative Commons #1 3.0 License}.%
}

% ....................{ LICENSE                            }....................
% Licensed under Creative Commons Attribution-ShareAlike 3.0. See:
% http://creativecommons.org/licenses/by-sa/3.0/
