summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cclicenses
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-09-23 22:44:51 +0000
committerKarl Berry <karl@freefriends.org>2007-09-23 22:44:51 +0000
commit73da625d038c1dcd3061a8233f5abdbab8dd4555 (patch)
treeff01f9d67b51fb24227c6a83122a005047b1e424 /Master/texmf-dist/tex/latex/cclicenses
parent3eb8ff6660f62d8354814cf306868db874c94a02 (diff)
new latex package cclicenses
git-svn-id: svn://tug.org/texlive/trunk@5017 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/cclicenses')
-rw-r--r--Master/texmf-dist/tex/latex/cclicenses/cclicenses.sty143
1 files changed, 143 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/cclicenses/cclicenses.sty b/Master/texmf-dist/tex/latex/cclicenses/cclicenses.sty
new file mode 100644
index 00000000000..0c1fcdc8a07
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/cclicenses/cclicenses.sty
@@ -0,0 +1,143 @@
+%%
+%% This is file `cclicenses.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% cclicenses.dtx (with options: `code')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% For the copyright see the source file.
+%%
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from cclicenses.sty.
+%%
+%% For distribution of the original source see the terms
+%% for copying and modification in the file cclicenses.dtx.
+%%
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{cclicenses}[2005/05/20 v0.4 CC licenses typesetting]
+\RequirePackage{rotating}
+\newdimen\chardim
+\newdimen\hdim
+\newdimen\htmp
+\newcount\hpos
+\newcount\vpos
+\newcommand{\SA@arrow}{
+\hdim\chardim
+\ifdim\hdim<1.5pt \hdim=1.5pt\fi
+\setlength\unitlength{1sp}
+\begin{picture}(0,0)
+ \hpos=0
+ \vpos\hdim
+ \loop
+ \put(\hpos,\vpos){
+ \rule[0mm]{\hdim}{1000sp}
+ }
+ \advance\htmp by 1000sp
+ \hpos\htmp
+ \advance\vpos by -1000
+ \advance\hdim by -2000sp
+ \ifnum\vpos > 0 \repeat
+\end{picture}}
+\DeclareTextCommandDefault{\text@cc}{%
+ \let\origfontfamily\f@family
+ \let\origfontseries\f@series
+ \chardim\fontdimen6\font
+ \divide\chardim by 2
+ {
+ \fontfamily{phv}\fontseries{b}\selectfont%
+ \textcircled{%
+ \raisebox{.12ex}{\fontsize{\chardim}{\baselineskip}\selectfont{CC}}%
+ }
+ }
+ \fontfamily{\origfontfamily}\fontseries{\origfontseries}\selectfont
+}
+\DeclareTextCommandDefault{\text@ccnd}{%
+ \let\origfontfamily\f@family
+ \let\origfontseries\f@series
+ \chardim\fontdimen6\font
+ \divide\chardim by 2
+ {
+ \fontfamily{phv}\fontseries{b}\selectfont%
+ \textcircled{%
+ \raisebox{.20ex}{\fontsize{\chardim}{\baselineskip}\selectfont{=}}%
+ }
+ }
+ \fontfamily{\origfontfamily}\fontseries{\origfontseries}\selectfont
+}
+\DeclareTextCommandDefault{\text@ccby}{%
+ \let\origfontfamily\f@family
+ \let\origfontseries\f@series
+ \chardim\fontdimen6\font
+ \divide\chardim by 2
+ {
+ \fontfamily{phv}\fontseries{b}\selectfont%
+ \textcircled{%
+ \raisebox{.5pt}{\fontsize{\chardim}{\baselineskip}\selectfont%
+ {B\kern -.15em Y\kern -.15em:}}%
+ }
+ }
+ \fontfamily{\origfontfamily}\fontseries{\origfontseries}\selectfont
+}
+\DeclareTextCommandDefault{\text@ccnc}{%
+ \let\origfontfamily\f@family
+ \let\origfontseries\f@series
+ \chardim\fontdimen6\font
+ \divide\chardim by 2
+ {
+ \fontfamily{phv}\fontseries{b}\selectfont%
+ \textcircled{%
+ \raisebox{.15ex}{\fontsize{\chardim}{\baselineskip}\selectfont%
+ \makebox[0cm][c]{\$}}%
+ \setlength{\chardim}{1.98\chardim}%
+ \fontsize{\chardim}{\baselineskip}\selectfont%
+ \raisebox{-.20ex}{\begin{rotate}{45}\textbackslash\end{rotate}}%
+ }
+ }
+ \fontfamily{\origfontfamily}\fontseries{\origfontseries}\selectfont
+}
+\DeclareTextCommandDefault{\text@ccsa}{%
+ \let\origfontfamily\f@family
+ \let\origfontseries\f@series
+ \fontfamily{phv}\fontseries{b}\selectfont%
+ \textcircled{%
+ \makebox[1em][l]{
+ \raisebox{.95ex}{\hskip-.45ex
+ \begin{rotate}{180}\scshape{c}\end{rotate}}}%
+ \chardim\fontdimen6\font
+ \divide\chardim by 6
+ \raisebox{.3ex}{\hspace{-5ex}
+ \SA@arrow}
+ }
+ \fontfamily{\origfontfamily}\fontseries{\origfontseries}\selectfont
+}
+\DeclareRobustCommand{\cc}{%
+ \ifmmode{\nfss@text{\text@cc}}\else\text@cc\fi}
+\DeclareRobustCommand{\ccnd}{%
+ \ifmmode{\nfss@text{\text@ccnd}}\else\text@ccnd\fi}
+\DeclareRobustCommand{\ccby}{%
+ \ifmmode{\nfss@text{\text@ccby}}\else\text@ccby\fi}
+\DeclareRobustCommand{\ccnc}{%
+ \ifmmode{\nfss@text{\text@ccnc}}\else\text@ccnc\fi}
+\DeclareRobustCommand{\ccsa}{%
+ \ifmmode{\nfss@text{\text@ccsa}}\else\text@ccsa\fi}
+\newcommand{\by}{\ccby}
+\newcommand{\bynd}{\ccby\ccnd}
+\newcommand{\byncnd}{\ccby\ccnc\ccnd}
+\newcommand{\bync}{\ccby\ccnc}
+\newcommand{\byncsa}{\ccby\ccnc\ccsa}
+\newcommand{\bysa}{\ccby\ccsa}
+\newcommand{\nd}{\ccnd}
+\newcommand{\ndnc}{\ccnd\ccnc}
+\newcommand{\nc}{\ccnc}
+\newcommand{\ncsa}{\ccnc\ccsa}
+\newcommand{\sa}{\ccsa}
+\endinput
+%%
+%% End of file `cclicenses.sty'.