From 62e28014398695138e40690330baaff56a9b3b83 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 24 Oct 2012 23:28:23 +0000 Subject: new latex package venndiagram (24oct12) git-svn-id: svn://tug.org/texlive/trunk@28069 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/venndiagram/CHANGES | 3 + Master/texmf-dist/doc/latex/venndiagram/INSTALL | 64 +++++++++++++++++++++ Master/texmf-dist/doc/latex/venndiagram/README | 16 ++++++ .../doc/latex/venndiagram/samples/venn-sample.pdf | Bin 0 -> 36598 bytes .../doc/latex/venndiagram/samples/venn-sample.tex | 46 +++++++++++++++ .../doc/latex/venndiagram/venndiagram.pdf | Bin 0 -> 280356 bytes 6 files changed, 129 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/venndiagram/CHANGES create mode 100644 Master/texmf-dist/doc/latex/venndiagram/INSTALL create mode 100644 Master/texmf-dist/doc/latex/venndiagram/README create mode 100644 Master/texmf-dist/doc/latex/venndiagram/samples/venn-sample.pdf create mode 100644 Master/texmf-dist/doc/latex/venndiagram/samples/venn-sample.tex create mode 100644 Master/texmf-dist/doc/latex/venndiagram/venndiagram.pdf (limited to 'Master/texmf-dist/doc/latex/venndiagram') diff --git a/Master/texmf-dist/doc/latex/venndiagram/CHANGES b/Master/texmf-dist/doc/latex/venndiagram/CHANGES new file mode 100644 index 00000000000..2177ef1e87f --- /dev/null +++ b/Master/texmf-dist/doc/latex/venndiagram/CHANGES @@ -0,0 +1,3 @@ +v1.0 (2012-10-24): + + * Initial release diff --git a/Master/texmf-dist/doc/latex/venndiagram/INSTALL b/Master/texmf-dist/doc/latex/venndiagram/INSTALL new file mode 100644 index 00000000000..fcc7305bcb1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/venndiagram/INSTALL @@ -0,0 +1,64 @@ +INSTALLATION + +If you have downloaded the venndiagram package using the TeX +Directory Structure (TDS), that is you have downloaded the archive +venndiagram.tds.zip containing doc, tex, scripts and source +directories, you need to follow the "Installing from TDS" +instructions below. + +If you have downloaded the following files: + +venndiagram.dtx +venndiagram.ins + +You need to follow the "Installing from DTX and INS" instructions +below. + +For further information on installing LaTeX packages see: + +http://www.tex.ac.uk/cgi-bin/texfaq2html?label=installthings + +INSTALLING FROM TDS +=================== + +Files in tex and doc directories should go in the corresponding +TEXMF directories (for example, /usr/share/texmf-local/ or +C:\localtexmf\). + +*Remember to refresh TeX's database* + +Example (on UNIX like systems): + +unzip venndiagram.tds.zip -d ~/texmf/ +texhash ~/texmf/ + +INSTALLING FROM DTX AND INS +=========================== + +Run LaTeX on venndiagram.ins to generate the package style file: + +latex venndiagram.ins + +To create the package documentation (venndiagram.pdf): + +pdflatex venndiagram.dtx +makeindex -s gind.ist venndiagram.idx +pdflatex venndiagram.dtx +pdflatex venndiagram.dtx + +If TEXMF denotes the base directory of your local TeX installation (e.g. +/usr/share/texmf-local/ or C:\localtexmf\) then create the following +directories (if they don't already exist): + +TEXMF/doc/latex/venndiagram +TEXMF/doc/latex/venndiagram/samples +TEXMF/tex/latex/venndiagram + +Move the sample file (*.tex) to TEXMF/doc/latex/venndiagram/sample/ + +Move the documentation (*.pdf) to TEXMF/doc/latex/venndiagram/ + +Move style file (*.sty) to TEXMF/tex/latex/venndiagram/ + +*Remember to refresh TeX's database* + diff --git a/Master/texmf-dist/doc/latex/venndiagram/README b/Master/texmf-dist/doc/latex/venndiagram/README new file mode 100644 index 00000000000..16f8b3c3fbf --- /dev/null +++ b/Master/texmf-dist/doc/latex/venndiagram/README @@ -0,0 +1,16 @@ +LaTeX Bundle : venndiagram v1.0 + +Last Modified : 2012-10-24 + +Author : Nicola Talbot + +The venndiagram package is provided to assist generating +simple two- and three-set Venn diagrams for lectures or assignment +sheets. This package requires the tikz package. + + +This material is subject to the LaTeX Project Public License. +See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for the details of that license. + +http://www.dickimaw-books.com/ + diff --git a/Master/texmf-dist/doc/latex/venndiagram/samples/venn-sample.pdf b/Master/texmf-dist/doc/latex/venndiagram/samples/venn-sample.pdf new file mode 100644 index 00000000000..1055838258e Binary files /dev/null and b/Master/texmf-dist/doc/latex/venndiagram/samples/venn-sample.pdf differ diff --git a/Master/texmf-dist/doc/latex/venndiagram/samples/venn-sample.tex b/Master/texmf-dist/doc/latex/venndiagram/samples/venn-sample.tex new file mode 100644 index 00000000000..cfaa3a39aaa --- /dev/null +++ b/Master/texmf-dist/doc/latex/venndiagram/samples/venn-sample.tex @@ -0,0 +1,46 @@ +\documentclass{article} + +\usepackage{venndiagram} + +\begin{document} + +$ \mathcal{U} \setminus (\mathcal{A} \cup \mathcal{B} \cup +\mathcal{C})$: + +\begin{venndiagram3sets} + \fillNotABC +\end{venndiagram3sets} + +$ \mathcal{B} \setminus \mathcal{A} $ + +\begin{venndiagram2sets} +\fillOnlyB +\end{venndiagram2sets} + +Using the labels: + +\begin{venndiagram3sets}[labelOnlyA={1},labelOnlyB={2},labelOnlyC={3}, + labelOnlyAB={4},labelOnlyAC={5},labelOnlyBC={6},labelABC={7}, + labelNotABC={8}] +\end{venndiagram3sets} + +Annotating the diagram: + +\begin{venndiagram3sets}[labelOnlyA={1},labelOnlyB={2},labelOnlyC={3}, + labelOnlyAB={4},labelOnlyAC={5},labelOnlyBC={6},labelABC={7}, + labelNotABC={8}] +\setpostvennhook +{ + \draw[<-] (labelA) -- ++(135:3cm) node[above] {Students who eat artichokes}; + \draw[<-] (labelB) -- ++(45:3cm) node[above] {Students who eat broccoli}; + \draw[<-] (labelC) -- ++(-90:3cm) node[below] {Students who eat carrots}; + \draw[<-] (labelABC) -- ++(0:3cm) + node[right,text width=4cm,align=flush left] + {7 students eat artichokes, broccoli and carrots}; + \draw[<-] (labelNotABC) -- ++(-135:3cm) + node[below,text width=4cm,align=flush left] + {8 students don't eat artichokes, broccoli or carrots}; +} +\end{venndiagram3sets} + +\end{document} diff --git a/Master/texmf-dist/doc/latex/venndiagram/venndiagram.pdf b/Master/texmf-dist/doc/latex/venndiagram/venndiagram.pdf new file mode 100644 index 00000000000..d194606b503 Binary files /dev/null and b/Master/texmf-dist/doc/latex/venndiagram/venndiagram.pdf differ -- cgit v1.2.3