summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/sparklines
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-09 00:49:07 +0000
committerKarl Berry <karl@freefriends.org>2006-01-09 00:49:07 +0000
commit007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch)
tree90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/sparklines
parent950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (diff)
doc/latex
git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/sparklines')
-rw-r--r--Master/texmf-dist/doc/latex/sparklines/sparklines.pdfbin0 -> 42318 bytes
-rw-r--r--Master/texmf-dist/doc/latex/sparklines/sparklines.tex58
2 files changed, 58 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/sparklines/sparklines.pdf b/Master/texmf-dist/doc/latex/sparklines/sparklines.pdf
new file mode 100644
index 00000000000..e62084c7810
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/sparklines/sparklines.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/sparklines/sparklines.tex b/Master/texmf-dist/doc/latex/sparklines/sparklines.tex
new file mode 100644
index 00000000000..a29aac04883
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/sparklines/sparklines.tex
@@ -0,0 +1,58 @@
+\documentclass{article}
+\usepackage{sparklines}
+\renewcommand{\baselinestretch}{1.25}
+
+\begin{document}
+\title{Sparklines}
+\author{Andreas L\"{o}ffler}
+\date{21.~April 2005}\maketitle
+
+\section{What are sparklines?}
+
+ Sparklines are intense, simple, wordlike
+graphics (so named by Edward Tufte). In lieu of a more detailed introduction,
+Professor Tufte's site has an early release of a chapter on sparklines, see
+www.edwardtufte.com. A PHP implementation can be found at
+http://sparkline.sourceforge.net/.
+
+
+A sparkline can be added using the \texttt{sparkline}--environment. Also, you
+can add sparkling rectangles for the median and special sparkling dots in red
+or blue. \textbf{Only use sparklines with pdflatex}, sparklines do not appear
+within a dvi-file. \texttt{Sparklines} does not work with \texttt{pictex}.
+
+If we want to add a sparkline, be careful not to leave an empty line between
+the text left from the sparkline and the environment itself (starting with the
+sparkline environment)
+% This now starts the sparkline of length 10 times the width of the letter x
+\begin{sparkline}{10}
+% This environment has now an own coordinate system. x and y run from 0 to 1.
+
+% This draws a sparkling-rectangle with lower level y=0.3 and upper level y=0.5
+\sparkrectangle 0.3 0.5
+
+% This draws a blue colored sparkling-dot at x=0.5, y=0.8
+\sparkdot 0.5 0.62 blue
+
+% This draws a red colored sparkling-dot at x=1, y=0.2
+\sparkdot 1 0.2 red
+
+% draws a sparkline with ten values starting at x=0.1 and y=0.95, then x=0.2 and y=0.8 etc.
+% drawing finishes if / appears
+ \spark 0.1 0.95 0.2 0.8 0.3 0.3 0.4 0.52 0.5 0.62 0.6 0.7 0.7 0.5 0.8 0.4 0.9 0.25 1 0.2 /
+\end{sparkline}
+ Daimler Chrysler, 12\%, {\color{red} 129}, since otherwise the sparkline starts
+ at a new line.
+
+\section*{Version history}
+\begin{description}
+\item[] Apr 21, 2005
+
+ version 1.1: bug removed thanks to Mathias Hofmann <mathias.hofmann@web.de>
+
+\item[] Dec 12, 2004
+
+ version 1.0: first version of sparklines
+\end{description}
+
+\end{document}