From d882c28155a87f245ab04b96bf9e09460f82f94e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 6 Jan 2012 00:59:10 +0000 Subject: new tikz package reotex 1.0 (5jan12) git-svn-id: svn://tug.org/texlive/trunk@25031 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/reotex/README | 24 + Master/texmf-dist/doc/latex/reotex/reotex.pdf | Bin 0 -> 127644 bytes Master/texmf-dist/doc/latex/reotex/reotex.tex | 867 ++++++++++++++++++++++++ Master/texmf-dist/tex/latex/reotex/reotex.sty | 938 ++++++++++++++++++++++++++ 4 files changed, 1829 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/reotex/README create mode 100644 Master/texmf-dist/doc/latex/reotex/reotex.pdf create mode 100755 Master/texmf-dist/doc/latex/reotex/reotex.tex create mode 100755 Master/texmf-dist/tex/latex/reotex/reotex.sty (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/reotex/README b/Master/texmf-dist/doc/latex/reotex/README new file mode 100644 index 00000000000..000a5eedb5d --- /dev/null +++ b/Master/texmf-dist/doc/latex/reotex/README @@ -0,0 +1,24 @@ +Package Name: reotex + +Author Name: Nuno Oliveira + +License: +This material is subject to the LaTeX Project Public Licence. +See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for the details of that licence. + + +Description: +This package provides a set of macros to create +reo channels and circuits. + +Iis an extension of the PGF/Tikz package, thoroughly documented +in the manual ``Tikz \& PGF Manual for Version~2.10''. + +For a good usage of this package, LaTeX2e version is required. +Some commands may work as well with LaTeX version, but it is +left as your responsibility. + +You need to have an installation of the following packages: +- ifthen; +- tikz (with arrows, decorations.pathmorphing, decorations.shapes, calc); +- verbatim; diff --git a/Master/texmf-dist/doc/latex/reotex/reotex.pdf b/Master/texmf-dist/doc/latex/reotex/reotex.pdf new file mode 100644 index 00000000000..0a5a2943e5d Binary files /dev/null and b/Master/texmf-dist/doc/latex/reotex/reotex.pdf differ diff --git a/Master/texmf-dist/doc/latex/reotex/reotex.tex b/Master/texmf-dist/doc/latex/reotex/reotex.tex new file mode 100755 index 00000000000..92d84353994 --- /dev/null +++ b/Master/texmf-dist/doc/latex/reotex/reotex.tex @@ -0,0 +1,867 @@ +\documentclass[11pt]{article} +\usepackage{reotex} +\usepackage{verbatim} +\usepackage{pgf} +\usepackage{tikz} +\usepackage[pdftex]{hyperref} +\usepackage{url} + + +\title{A PGF-based Libary for Reo Circuits} +\author{\textbf{Nuno Oliveira}\\[12pt]HASLab/INESC TEC\\Universidade do Minho} +\date{\today} +\begin{document} +\maketitle + + +\begin{abstract} +This article briefly presents the package for Reo Circuits which is an \emph{extension} of the PGF/Tikz package, thoroughly documented in the manual ``Tikz \& PGF Manual for Version~2.10''. + +Herein, the several commands to build a Reo circuit are presented and its \emph{API} explained. + +For a good usage of this package, \LaTeXe{} version is required. Some commands may work as well with \LaTeX{} version, but it is left as your responsibility. + +Moreover, an excellent introduction to Reo can be found in~\cite{arbab04}, and for more information and tools on this theme the following website may be visited: +\begin{center} +\url{http://reo.project.cwi.nl/} +\end{center} + +\end{abstract} + + +\section{How to Make it Work} + +Ok, say you want to use this package to draw beautiful Reo Circuits. +You start by loading your latex template. +Then, in your preamble, you need to have the following: + +\begin{itemize} +\item \verb+\usepackage{reotex}+ +\end{itemize} + +Obviously, you need to have \verb+pgf+ and \verb+tikz+ packages installed in your environment, otherwise the commands provided in \verb+reotex+ will not be interpreted. + + +\section{Drawing a Reo Channel} + +Reo circuits are the composition of several Reo channels. +In this package all the channels have the same API, thus it is +easy to explain a generic way of drawing such channels. + +\subsection{The Generic Format}\label{sec:genericchannels} + +The following pseudo-code shows how to draw any channel. + +\begin{verbatim} +\tikz \{} + {} + {} ; +\end{verbatim} + +In detail, +\begin{itemize} + +\item \verb+\tikz+: refers to the Tikz environment to draw a tikz-based picture. In fact, the \verb+\tikz+ command is to draw an inline picture. If you desire to draw in a more controlled environment you may use: +\begin{verbatim} + \begin{tikzpicture} + {} + {} + {} + \end{tikzpicture} +\end{verbatim} + +\item \emph{$<$channel name$>$}: refers to the command (representing the name of a channel) as presented in Section~\ref{sec:channels}. + +\item \emph{$<$start$>$} refers to the coordinates of the starting point of the channel. It may be written either as $(x,y)$ or as a reference for a previous defined node: $(name)$. The second format should only be used in a tikzpicture environment. + +\item \emph{$<$target$>$}: refers to the coordinates of the target point of the channel. It is used as the \emph{$<$start$>$} coordinate. + +\item \emph{$<$labels$>$}: refer to the labels that may be desired to add to the channel. More than one label may be expressed; whenever it happens, a space should separate them. Each label should have the following format: + +\begin{verbatim} +node[] {