diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/ccicons/ccicons.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/ccicons/ccicons.dtx | 113 |
1 files changed, 56 insertions, 57 deletions
diff --git a/Master/texmf-dist/source/latex/ccicons/ccicons.dtx b/Master/texmf-dist/source/latex/ccicons/ccicons.dtx index de323680300..4031eaa9926 100644 --- a/Master/texmf-dist/source/latex/ccicons/ccicons.dtx +++ b/Master/texmf-dist/source/latex/ccicons/ccicons.dtx @@ -3,7 +3,7 @@ % Copyright (C) 2011 by Michael Ummels <michael.ummels@rwth-aachen.de> % % This work may be distributed and/or modified under the -% conditions of the LaTeX Project Public License, either version 1.3 +% conditions of the LaTeX Project Public License, either version 1.3c % of this license or (at your option) any later version. % The latest version of this license is in % http://www.latex-project.org/lppl.txt @@ -16,33 +16,44 @@ % % This work consists of the files ccicons.dtx, ccicons.ins, % ccicons.map, ccicons.pfb, ccicons.tfm, ccicons-u.enc and -% the derived files ccicons.sty and uccicons.fd. +% the derived files ccicons.pdf and ccicons.sty. % -% The files ccicons.pfb and ccicons.tfm have been -% generated from the file cc-icons-svg.zip available from +% The files ccicons.pfb and ccicons.tfm have been generated from the +% file cc-icons-svg.zip available from % http://mirrors.creativecommons.org/presskit/icons/cc-icons-svg.zip -% and released by Creative Commons (http://creativecommons.org) under a -% Creative Commons Attribution 3.0 Unported license -% (http://creativecommons.org/licenses/by/3.0/). +% and released by Creative Commons under the Creative Commons Attribution +% 3.0 Unported License: http://creativecommons.org/licenses/by/3.0/ % % \fi % % \iffalse +%<*driver> +\ProvidesFile{ccicons.dtx}[2011/09/18 v1.3 LaTeX support for Creative Commons icons] +%</driver> %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] -%<package>\ProvidesPackage{ccicons}[2011/05/22 v1.2 LaTeX support for Creative Commons icons] -%<fontdef>\ProvidesFile{uccicons.fd}[2011/05/22 v1.2 font definitions for U/ccicons] -% +%<package>\ProvidesPackage{ccicons}[2011/09/18 v1.3 LaTeX support for Creative Commons icons] %<*driver> \documentclass{ltxdoc} \usepackage[T1]{fontenc} \usepackage{charter} -\usepackage{inconsolata} +\usepackage[scaled=1.05]{inconsolata} \usepackage{ccicons} \usepackage{longtable} +\usepackage{hypdoc} +\usepackage{microtype} + +\hypersetup{ + bookmarksnumbered, + colorlinks=false, + pdfborder={0 0 0}, + pdftitle={The ccicons package}, + pdfauthor={Michael Ummels} +} \newcommand{\pkg}[1]{\mbox{#1}} -\newcommand{\url}[1]{\mbox{\texttt{#1}}} +\newcommand{\typesetcc}[1]% + {#1\,{\large #1}\,{\Large #1}\,{\LARGE #1}\,{\huge #1}\,{\Huge #1}} \EnableCrossrefs \CodelineIndex @@ -54,11 +65,28 @@ %</driver> % \fi % -% \GetFileInfo{ccicons.sty} +% \CheckSum{0} +% \CharacterTable +% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +% Digits \0\1\2\3\4\5\6\7\8\9 +% Exclamation \! Double quote \" Hash (number) \# +% Dollar \$ Percent \% Ampersand \& +% Acute accent \' Left paren \( Right paren \) +% Asterisk \* Plus \+ Comma \, +% Minus \- Point \. Solidus \/ +% Colon \: Semicolon \; Less than \< +% Equals \= Greater than \> Question mark \? +% Commercial at \@ Left bracket \[ Backslash \\ +% Right bracket \] Circumflex \^ Underscore \_ +% Grave accent \` Left brace \{ Vertical bar \| +% Right brace \} Tilde \~} +% +% \GetFileInfo{ccicons.dtx} % % \DoNotIndex{\newcommand} % -% \title{The \pkg{ccicons} package} +% \title{\LaTeX\ support for Creative Commons Icons} % \author{Michael Ummels \\ \texttt{michael.ummels@rwth-aachen.de}} % \date{\fileversion\ -- \filedate} % \maketitle @@ -83,16 +111,12 @@ % % \section{Usage} % -% To use this package in your \LaTeX\ document, you need to issue +% To use this package in your \LaTeX\ document, add % \begin{quote} % |\usepackage{ccicons}| % \end{quote} -% in the preamble of your document. This makes available the following +% to the preamble of your document. This makes available the following % commands to typeset the icons provided by Creative Commons: -% -% \newcommand{\typesetcc}[1]% -% {#1\,{\large #1}\,{\Large #1}\,{\LARGE #1}\,{\huge #1}\,{\Huge #1}} -% \medskip\noindent % \begin{longtable}[l]{ll} % |\ccLogo| & \typesetcc{\ccLogo} \\ % |\ccAttribution| & \typesetcc{\ccAttribution} \\ @@ -108,7 +132,7 @@ % |\ccRemix| & \typesetcc{\ccRemix} % \end{longtable} % -% \bigskip\noindent +% \noindent % Additionally, for each of the common Creative Commons licenses there is a % command to typeset the CC logo together with the icons applicable for that % license (see \url{http://creativecommons.org/licenses}): @@ -140,7 +164,8 @@ % % Version 1.0 (2009/11/29): Initial version \\ % Version 1.1 (2009/12/14): New font with additional glyphs \\ -% Version 1.2 (2011/05/22): Optimised some glyphs +% Version 1.2 (2011/05/22): Optimised some glyphs \\ +% Version 1.3 (2011/09/18): Merged font definitions into style file % % \StopEventually{} % @@ -148,7 +173,15 @@ %<*package> % \fi % -% \section{The main style file} +% \section{Implementation} +% +% We just declare one font family with one shape. +% \begin{macrocode} +\DeclareFontFamily{U}{ccicons}{} +\DeclareFontShape{U}{ccicons}{m}{n}{ + <-> ccicons +}{} +% \end{macrocode} % % We provide one internal command to access the characters of the font % directly. @@ -211,43 +244,9 @@ \newcommand{\ccpd}% {\mbox{\ccLogo\kern0.1em\ccPublicDomain}} % \end{macrocode} -% % \iffalse %</package> -%<*fontdef> % \fi % -% \section{The font definitions file} -% -% We just need to declare one family with one shape. -% \begin{macrocode} -\DeclareFontFamily{U}{ccicons}{} -\DeclareFontShape{U}{ccicons}{m}{n}{ - <-> ccicons -}{} -% \end{macrocode} -% -% \iffalse -%</fontdef> -% \fi -% -% \CheckSum{160} -% -% \CharacterTable -% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z -% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z -% Digits \0\1\2\3\4\5\6\7\8\9 -% Exclamation \! Double quote \" Hash (number) \# -% Dollar \$ Percent \% Ampersand \& -% Acute accent \' Left paren \( Right paren \) -% Asterisk \* Plus \+ Comma \, -% Minus \- Point \. Solidus \/ -% Colon \: Semicolon \; Less than \< -% Equals \= Greater than \> Question mark \? -% Commercial at \@ Left bracket \[ Backslash \\ -% Right bracket \] Circumflex \^ Underscore \_ -% Grave accent \` Left brace \{ Vertical bar \| -% Right brace \} Tilde \~} -% % \Finale \endinput |