summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/dynblocks/README4
-rw-r--r--Master/texmf-dist/doc/latex/dynblocks/dynblocks.pdfbin277870 -> 279514 bytes
-rw-r--r--Master/texmf-dist/doc/latex/dynblocks/dynblocks.tex19
-rw-r--r--Master/texmf-dist/tex/latex/dynblocks/dynblocks.sty48
4 files changed, 31 insertions, 40 deletions
diff --git a/Master/texmf-dist/doc/latex/dynblocks/README b/Master/texmf-dist/doc/latex/dynblocks/README
index 1ce27d49e70..9303f961104 100644
--- a/Master/texmf-dist/doc/latex/dynblocks/README
+++ b/Master/texmf-dist/doc/latex/dynblocks/README
@@ -3,11 +3,11 @@
%
% Copyright (C) 2012 Claudio Fiandrino
%
-% v0.2 - 2012/20/09
+% v0.2a - 2012/27/09
%
% * A simple way to create dynamic blocks *
%
-% * * * * * * * * * * * * * * * * * * * * *
+% * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
%
% * Abstract *
%
diff --git a/Master/texmf-dist/doc/latex/dynblocks/dynblocks.pdf b/Master/texmf-dist/doc/latex/dynblocks/dynblocks.pdf
index 9f4fd83d051..a78a438d264 100644
--- a/Master/texmf-dist/doc/latex/dynblocks/dynblocks.pdf
+++ b/Master/texmf-dist/doc/latex/dynblocks/dynblocks.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/dynblocks/dynblocks.tex b/Master/texmf-dist/doc/latex/dynblocks/dynblocks.tex
index 8b877e963ae..3aaf5fcdf7a 100644
--- a/Master/texmf-dist/doc/latex/dynblocks/dynblocks.tex
+++ b/Master/texmf-dist/doc/latex/dynblocks/dynblocks.tex
@@ -43,11 +43,11 @@
\renewcommand\labelitemii{\color{DodgerBlue1!60}$\circ$}
\newcommand{\name}{\textsf{dynblocks}}
-\newcommand{\version}{0.2}
-\newcommand{\versiondate}{20/09/2012}
+\newcommand{\version}{0.2a}
+\newcommand{\versiondate}{27/09/2012}
\author{Claudio Fiandrino \\ \footnotesize{\href{mailto:claudio.fiandrino@gmail.com}{claudio.fiandrino@gmail.com}}}
-\title{The \name{} package \footnote{This package has version number \textit{v}\version{} of \versiondate{}}}
+\title{The \name{} package \footnote{This package has version number \textit{v}\version{} of \versiondate{}; it is released under and subject to the \href{http://www.latex-project.org/lppl/}{\LaTeX\ Project Public License (LPPL)}.}}
\begin{document}
\maketitle
@@ -95,7 +95,12 @@ Using the package in basic mode allows to define a block with:
\item width equal to \cs{textwidth};
\item border color \cs{blue} and fill color \cs{blue!10}.
\end{itemize}
-thanks to the command \cs{opaqueblock}\sarg{overlay spec}\mbarg{width}\marg{text}.
+thanks to the command \cs{opaqueblock}\sarg{overlay spec}\mbarg{width}\marg{text}. Notice that \sarg{overlay spec} could be:
+\begin{itemize}
+\item a single number: \texttt{<1>};
+\item multiple numbers separated by commas and delimited by braces: \texttt{<\{1,2,3\}>};
+\item a single number followed by a dash: \texttt{<1->}.
+\end{itemize}
Moreover, it is also possible to make it \emph{invisible} forcing colors to become \texttt{gray} by means of \cs{invblock}\sarg{overlay spec}. For example, the following code, generates the two frames shown in figures \ref{fig:basic1} and \ref{fig:basic2}.
\medskip
\begin{lstlisting}[frame=lines]
@@ -322,7 +327,7 @@ allows to get the frames shown in figures \ref{fig:shdrndc1} and \ref{fig:shdrnd
}
\caption{Example with \texttt{shadow} and \texttt{roundedcorners} options}
\end{figure}
-\pagebreak
+
\subsection{Customized fill colors}\label{subse:cfill}
By activating this option it is possible to fully customize the \emph{dynblocks} colors because several command become available:
\begin{itemize}
@@ -545,7 +550,7 @@ obtaining as result the frames shown in figures \ref{fig:cmby1} and \ref{fig:cmb
}
\caption{Example of a theme with a posteriori structure color definition}
\end{figure}
-\pagebreak
+
Here is another example:
\begin{lstlisting}[frame=lines]
@@ -624,7 +629,7 @@ The two frames obtained as outcome are shown in figures \ref{fig:szeg1} and \ref
}
\caption{Example of a customized theme}
\end{figure}
-\pagebreak
+
Notice that the \texttt{getthemecolors} option has some drawbacks when used with particular Beamer color themes like:
\begin{itemize}
diff --git a/Master/texmf-dist/tex/latex/dynblocks/dynblocks.sty b/Master/texmf-dist/tex/latex/dynblocks/dynblocks.sty
index 8c52e8bed98..361f1eee573 100644
--- a/Master/texmf-dist/tex/latex/dynblocks/dynblocks.sty
+++ b/Master/texmf-dist/tex/latex/dynblocks/dynblocks.sty
@@ -14,7 +14,7 @@
% 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.]
+\ProvidesPackage{dynblocks}[2012/27/09 v0.2a A simple way to create dynamic blocks.]
\RequirePackage{tikz}
\RequirePackage{etoolbox}
\RequirePackage{xparse}
@@ -103,6 +103,7 @@
\def\@alignment{justify}
%% Word alert color
+
\def\setwordscolor#1{\def\@setwordscolor{#1}}
\def\@setwordscolor{blue}
@@ -127,30 +128,15 @@
\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}{%
+ dyninvisible/.style={opacity=0,text opacity=0},
+ dynvisible on/.style={dynalt=#1{}{dyninvisible}},
+ dynalt/.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}}
@@ -171,9 +157,9 @@
\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};
+\node[visib=#2,dynvisible on=<#1>,drop shadow={opacity=\@shadowopacity,dynvisible on=<#1>}] (X) {\begingroup #3 \endgroup};
}{% false
-\node[visib=#2,visible on=<#1>] (X) {\begingroup #3 \endgroup};
+\node[visib=#2,dynvisible on=<#1>] (X) {\begingroup #3 \endgroup};
}
\savetext{mytext}{#3}
}
@@ -182,9 +168,9 @@
\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};
+\node[fancyvisib=#2,dynvisible on=<#1>,drop shadow={opacity=\@shadowopacity,dynvisible on=<#1>}] (X) {\begingroup #3 \endgroup};
}{% false
-\node[fancyvisib=#2,visible on=<#1>] (X) {\begingroup #3 \endgroup};
+\node[fancyvisib=#2,dynvisible on=<#1>] (X) {\begingroup #3 \endgroup};
}
\savetext{mytext}{#3}
}
@@ -193,9 +179,9 @@
\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};
+\node[vshadevisib=#2,dynvisible on=<#1>,drop shadow={opacity=\@shadowopacity,dynvisible on=<#1>}] (X) {\begingroup #3 \endgroup};
}{% false
-\node[vshadevisib=#2,visible on=<#1>] (X) {\begingroup #3 \endgroup};
+\node[vshadevisib=#2,dynvisible on=<#1>] (X) {\begingroup #3 \endgroup};
}
\savetext{mytext}{#3}
}
@@ -204,18 +190,18 @@
\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};
+\node[oshadevisib=#2,dynvisible on=<#1>,drop shadow={opacity=\@shadowopacity,dynvisible on=<#1>}] (X) {\begingroup #3 \endgroup};
}{% false
-\node[oshadevisib=#2,visible on=<#1>] (X) {\begingroup #3 \endgroup};
+\node[oshadevisib=#2,dynvisible 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}};
+\node[invisib=\intdimension,dynvisible on=<#1>,drop shadow={opacity=\@shadowopacity,dynvisible on=<#1>}] (X) {\printthistext{\thethistext}};
}{% false
-\node[invisib=\intdimension,visible on=<#1>] (X) {\printthistext{\thethistext}};
+\node[invisib=\intdimension,dynvisible on=<#1>] (X) {\printthistext{\thethistext}};
}
}