diff options
author | Karl Berry <karl@freefriends.org> | 2012-09-25 21:17:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-09-25 21:17:07 +0000 |
commit | d21e43ac989ba93e0f327fc32fd99f3b1c3f0c6e (patch) | |
tree | 4559c2801018f4511acb348e3ea173b38d5aabed /Master/texmf-dist/doc/latex/dynblocks | |
parent | f54f97c9d6ff947e8761f0c41662f50155ca630d (diff) |
dynblocks.sty in runtime (25 Sep 2012 21:19:30)
git-svn-id: svn://tug.org/texlive/trunk@27804 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/dynblocks')
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/dynblocks.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/dynblocks.pdf) | bin | 277870 -> 277870 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/dynblocks.tex (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/dynblocks.tex) | 0 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/alert_1.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/alert_1.pdf) | bin | 24585 -> 24585 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/alert_2.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/alert_2.pdf) | bin | 24791 -> 24791 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/align.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/align.pdf) | bin | 24576 -> 24576 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/basic_1.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/basic_1.pdf) | bin | 24423 -> 24423 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/basic_2.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/basic_2.pdf) | bin | 24530 -> 24530 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/cmbx_1.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/cmbx_1.pdf) | bin | 34676 -> 34676 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/cmbx_2.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/cmbx_2.pdf) | bin | 34936 -> 34936 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/cmby_1.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/cmby_1.pdf) | bin | 34651 -> 34651 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/cmby_2.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/cmby_2.pdf) | bin | 34912 -> 34912 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/custcol_1.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/custcol_1.pdf) | bin | 33877 -> 33877 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/custcol_2.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/custcol_2.pdf) | bin | 32512 -> 32512 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/custcol_3.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/custcol_3.pdf) | bin | 32445 -> 32445 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/custcol_4.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/custcol_4.pdf) | bin | 34185 -> 34185 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/estl.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/estl.pdf) | bin | 30522 -> 30522 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/shdrndc_1.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/shdrndc_1.pdf) | bin | 24993 -> 24993 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/shdrndc_2.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/shdrndc_2.pdf) | bin | 25250 -> 25250 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/szeg_1.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/szeg_1.pdf) | bin | 31769 -> 31769 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/images/szeg_2.pdf (renamed from Master/texmf-dist/doc/latex/dynblocks/doc/images/szeg_2.pdf) | bin | 31966 -> 31966 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dynblocks/latex/dynblocks.sty | 224 |
21 files changed, 0 insertions, 224 deletions
diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/dynblocks.pdf b/Master/texmf-dist/doc/latex/dynblocks/dynblocks.pdf Binary files differindex 9f4fd83d051..9f4fd83d051 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/dynblocks.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/dynblocks.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/dynblocks.tex b/Master/texmf-dist/doc/latex/dynblocks/dynblocks.tex index 8b877e963ae..8b877e963ae 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/dynblocks.tex +++ b/Master/texmf-dist/doc/latex/dynblocks/dynblocks.tex diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/alert_1.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/alert_1.pdf Binary files differindex bfe688be746..bfe688be746 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/alert_1.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/alert_1.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/alert_2.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/alert_2.pdf Binary files differindex 01955b88636..01955b88636 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/alert_2.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/alert_2.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/align.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/align.pdf Binary files differindex 2f141e0e38d..2f141e0e38d 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/align.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/align.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/basic_1.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/basic_1.pdf Binary files differindex 5665f1714d3..5665f1714d3 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/basic_1.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/basic_1.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/basic_2.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/basic_2.pdf Binary files differindex dc27df07ed7..dc27df07ed7 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/basic_2.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/basic_2.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/cmbx_1.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/cmbx_1.pdf Binary files differindex be40f3e35d8..be40f3e35d8 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/cmbx_1.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/cmbx_1.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/cmbx_2.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/cmbx_2.pdf Binary files differindex 455f45f01bc..455f45f01bc 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/cmbx_2.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/cmbx_2.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/cmby_1.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/cmby_1.pdf Binary files differindex 73a13167138..73a13167138 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/cmby_1.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/cmby_1.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/cmby_2.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/cmby_2.pdf Binary files differindex fa3eab65393..fa3eab65393 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/cmby_2.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/cmby_2.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/custcol_1.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/custcol_1.pdf Binary files differindex a8e2a08d5db..a8e2a08d5db 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/custcol_1.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/custcol_1.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/custcol_2.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/custcol_2.pdf Binary files differindex b2b2dac9a3c..b2b2dac9a3c 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/custcol_2.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/custcol_2.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/custcol_3.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/custcol_3.pdf Binary files differindex 625650fd5e4..625650fd5e4 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/custcol_3.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/custcol_3.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/custcol_4.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/custcol_4.pdf Binary files differindex 6a91f4bc3bf..6a91f4bc3bf 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/custcol_4.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/custcol_4.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/estl.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/estl.pdf Binary files differindex d719863e3ed..d719863e3ed 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/estl.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/estl.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/shdrndc_1.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/shdrndc_1.pdf Binary files differindex a3e98433f12..a3e98433f12 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/shdrndc_1.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/shdrndc_1.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/shdrndc_2.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/shdrndc_2.pdf Binary files differindex 7ae5a128a50..7ae5a128a50 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/shdrndc_2.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/shdrndc_2.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/szeg_1.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/szeg_1.pdf Binary files differindex fd85cbced1f..fd85cbced1f 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/szeg_1.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/szeg_1.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/doc/images/szeg_2.pdf b/Master/texmf-dist/doc/latex/dynblocks/images/szeg_2.pdf Binary files differindex 9e8bad152cd..9e8bad152cd 100644 --- a/Master/texmf-dist/doc/latex/dynblocks/doc/images/szeg_2.pdf +++ b/Master/texmf-dist/doc/latex/dynblocks/images/szeg_2.pdf diff --git a/Master/texmf-dist/doc/latex/dynblocks/latex/dynblocks.sty b/Master/texmf-dist/doc/latex/dynblocks/latex/dynblocks.sty deleted file mode 100644 index 8c52e8bed98..00000000000 --- a/Master/texmf-dist/doc/latex/dynblocks/latex/dynblocks.sty +++ /dev/null @@ -1,224 +0,0 @@ -% * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -% Copyright 2012 Claudio Fiandrino -% -% This work may be distributed and/or modified under the -% conditions of the LaTeX Project Public License, either version 1.3 -% 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 -% and version 1.3 or later is part of all distributions of LaTeX -% version 2005/12/01 or later. -% -% This work has the LPPL maintenance status `maintained'. -% -% The Current Maintainer of this work is Claudio Fiandrino. - -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{dynblocks}[2012/13/05 v0.1 A simple way to create dynamic blocks.] -\RequirePackage{tikz} -\RequirePackage{etoolbox} -\RequirePackage{xparse} - -%% Colors definition and initial setting - -\newcommand{\thecol}{blue!10} -\newcommand{\thebordercol}{blue} - -%% Package options - -% Customization colors -\DeclareOption{customcolors}{% -\def\setblockcolor#1{\def\@setcolor{#1}} -\def\@setcolor{blue!10} -\renewcommand{\thecol}{\@setcolor} - -\def\setbordercolor#1{\def\@setbordercolor{#1}} -\def\@setbordercolor{blue} -\renewcommand{\thebordercol}{\@setbordercolor} - -\def\setinnercolor#1{\def\@setinnercolor{#1}} -\def\@setinnercolor{white} - -\def\setoutercolor#1{\def\@setoutercolor{#1}} -\def\@setoutercolor{blue!10} - -\def\settopcolor#1{\def\@settopcolor{#1}} -\def\@settopcolor{white} - -\def\setbottomcolor#1{\def\@setbottomcolor{#1}} -\def\@setbottomcolor{blue!10} - -\def\setleftcolor#1{\def\@setleftcolor{#1}} -\def\@setleftcolor{white} - -\def\setrightcolor#1{\def\@setrightcolor{#1}} -\def\@setrightcolor{blue!10} -} - -% Customization colors adequate to the theme -\DeclareOption{getthemecolors}{% -% redefinition opaqueblock -\renewcommand{\thecol}{structure.fg!10} -\renewcommand{\thebordercol}{structure.fg} -% redefinition fancyblock -\def\@setinnercolor{white} -\def\@setoutercolor{structure.fg!10} -% redefinition vshadeblock -\def\@settopcolor{white} -\def\@setbottomcolor{structure.fg!10} -% redefinition oshadeblock -\def\@setleftcolor{white} -\def\@setrightcolor{structure.fg!10} -} - -\newbool{rndcorners} -\boolfalse{rndcorners} -\DeclareOption{roundedcorners}{% -\booltrue{rndcorners} -} - -\newbool{shadowed} -\boolfalse{shadowed} -\DeclareOption{shadow}{% -\usetikzlibrary{shadows} -\booltrue{shadowed} -} - -\ProcessOptions - -%% Opacity - -\def\setvisopacity#1{\def\@visopacity{#1}} -\def\@visopacity{0.9} - -\def\setinvopacity#1{\def\@invopacity{#1}} -\def\@invopacity{0.4} - -\def\setshadowopacity#1{\def\@shadowopacity{#1}} -\def\@shadowopacity{0.4} - -%% Alignment - -\def\setalignment#1{\def\@alignment{#1}} -\def\@alignment{justify} - -%% Word alert color -\def\setwordscolor#1{\def\@setwordscolor{#1}} -\def\@setwordscolor{blue} - -\newcommand{\myalert}[1]{\textcolor{\@setwordscolor}{#1}} - -%% Macro to save text and recall it afterwards - -\newcounter{thistext} -\newcommand{\savetext}[2]{% - «#1»% - \addtocounter{thistext}{1}% - \@namedef{thistext\thethistext}{#2}} -\newcommand{\printthistext}[1]{\@nameuse{thistext#1}} - - -%% Settings - -\tikzset{visib/.style={rectangle,color=\thebordercol,fill=\thecol,text=black,draw,text opacity=\@visopacity, text width=#1,align=\@alignment}} -\tikzset{fancyvisib/.style={rectangle,color=\thebordercol,inner color=\@setinnercolor, outer color=\@setoutercolor,text=black,draw,text opacity=\@visopacity, text width=#1,align=\@alignment}} -\tikzset{vshadevisib/.style={rectangle,color=\thebordercol,top color=\@settopcolor, bottom color=\@setbottomcolor,text=black,draw,text opacity=\@visopacity, text width=#1,align=\@alignment}} -\tikzset{oshadevisib/.style={rectangle,color=\thebordercol,left color=\@setleftcolor, right color=\@setrightcolor,text=black,draw,text opacity=\@visopacity, text width=#1,align=\@alignment}} -\tikzset{invisib/.style={rectangle,color=gray,fill=gray!10,text=black,draw,text opacity=\@invopacity, text width=#1,align=\@alignment}} - -%% Overlays -\tikzset{ - invisible/.style={opacity=0,text opacity=0}, - visible on/.style={alt=#1{}{invisible}}, - alt/.code args={<#1>#2#3}{% - \alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}} - }, - } - -%% Shadow layer -\pgfdeclarelayer{shadowback} -\pgfsetlayers{shadowback,main} - -\pgfkeys{% - /tikz/on layer/.code={ - \pgfonlayer{#1}\begingroup - \aftergroup\endpgfonlayer - \aftergroup\endgroup - }, - /tikz/node on layer/.code={ - \pgfonlayer{#1}\begingroup - \expandafter\def\expandafter\tikz@node@finish\expandafter{\expandafter\endgroup\expandafter\endpgfonlayer\tikz@node@finish}% - }, -} - -%% Rounded corners -\ifbool{rndcorners}{%true -\tikzset{visib/.append style={rounded corners}} -\tikzset{fancyvisib/.append style={rounded corners}} -\tikzset{vshadevisib/.append style={rounded corners}} -\tikzset{oshadevisib/.append style={rounded corners}} -\tikzset{invisib/.append style={rounded corners}} -}{%false -} - -%% Definition of user commands and environment - -\newenvironment{dynblock}{\begin{tikzpicture}}{\end{tikzpicture}} - -\newlength\intdimension - -\NewDocumentCommand{\opaqueblock}{r<> O{\textwidth} m}{% -\setlength{\intdimension}{\z@} -\addtolength{\intdimension}{#2} -\ifbool{shadowed}{% true -\node[visib=#2,visible on=<#1>,drop shadow={opacity=\@shadowopacity,on layer=shadowback,visible on=<#1->}] (X) {\begingroup #3 \endgroup}; -}{% false -\node[visib=#2,visible on=<#1>] (X) {\begingroup #3 \endgroup}; -} -\savetext{mytext}{#3} -} - -\NewDocumentCommand{\fancyblock}{r<> O{\textwidth} m}{% -\setlength{\intdimension}{\z@} -\addtolength{\intdimension}{#2} -\ifbool{shadowed}{% true -\node[fancyvisib=#2,visible on=<#1>,drop shadow={opacity=\@shadowopacity,on layer=shadowback,visible on=<#1->}] (X) {\begingroup #3 \endgroup}; -}{% false -\node[fancyvisib=#2,visible on=<#1>] (X) {\begingroup #3 \endgroup}; -} -\savetext{mytext}{#3} -} - -\NewDocumentCommand{\vshadeblock}{r<> O{\textwidth} m}{% -\setlength{\intdimension}{\z@} -\addtolength{\intdimension}{#2} -\ifbool{shadowed}{% true -\node[vshadevisib=#2,visible on=<#1>,drop shadow={opacity=\@shadowopacity,on layer=shadowback,visible on=<#1->}] (X) {\begingroup #3 \endgroup}; -}{% false -\node[vshadevisib=#2,visible on=<#1>] (X) {\begingroup #3 \endgroup}; -} -\savetext{mytext}{#3} -} - -\NewDocumentCommand{\oshadeblock}{r<> O{\textwidth} m}{% -\setlength{\intdimension}{\z@} -\addtolength{\intdimension}{#2} -\ifbool{shadowed}{% true -\node[oshadevisib=#2,visible on=<#1>,drop shadow={opacity=\@shadowopacity,on layer=shadowback,visible on=<#1->}] (X) {\begingroup #3 \endgroup}; -}{% false -\node[oshadevisib=#2,visible on=<#1>] (X) {\begingroup #3 \endgroup}; -} -\savetext{mytext}{#3} -} - -\NewDocumentCommand{\invblock}{r<>}{% -\ifbool{shadowed}{% true -\node[invisib=\intdimension,visible on=<#1>,drop shadow={opacity=\@shadowopacity,on layer=shadowback,visible on=<#1>}] (X) {\printthistext{\thethistext}}; -}{% false -\node[invisib=\intdimension,visible on=<#1>] (X) {\printthistext{\thethistext}}; -} -} - -\NewDocumentCommand{\dynalert}{r<> m}{\alt<#1>{\pgfsetfillopacity{1}\myalert{#2}\pgfsetfillopacity{\@invopacity}}{#2}} - -\endinput |