diff options
author | Karl Berry <karl@freefriends.org> | 2011-12-03 16:31:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-12-03 16:31:06 +0000 |
commit | 020dc32381060046058d544a5b590d68f7d30449 (patch) | |
tree | d9ed30a8cec28559b399a157fae22b5feb8fd4db /Master/texmf-dist/doc/latex/tufte-latex | |
parent | e957416d7b7b8613047fdfb8fb3e584d347bd8a3 (diff) |
tufte-latex from tds.zip
git-svn-id: svn://tug.org/texlive/trunk@24733 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/tufte-latex')
-rw-r--r-- | Master/texmf-dist/doc/latex/tufte-latex/Manifest.txt | 26 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tufte-latex/README.txt (renamed from Master/texmf-dist/doc/latex/tufte-latex/README) | 0 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tufte-latex/graphics/hilbertrecursive.tex | 72 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tufte-latex/graphics/sine2.asy | 24 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tufte-latex/graphics/sine2.pdf | bin | 0 -> 10648 bytes |
5 files changed, 96 insertions, 26 deletions
diff --git a/Master/texmf-dist/doc/latex/tufte-latex/Manifest.txt b/Master/texmf-dist/doc/latex/tufte-latex/Manifest.txt deleted file mode 100644 index c4c194acede..00000000000 --- a/Master/texmf-dist/doc/latex/tufte-latex/Manifest.txt +++ /dev/null @@ -1,26 +0,0 @@ -History.txt -Manifest.txt -README.txt -graphics/nasa_vision_sm.png -graphics/satir_graph.png -graphics/helix.asy -graphics/sine.asy -graphics/hilbertcurves.pdf -graphics/helix.pdf -graphics/sine.pdf -graphics/be-contents.pdf -graphics/be-title.pdf -graphics/ei-contents.pdf -graphics/ei-title.pdf -graphics/vdqi-contents.pdf -graphics/vdqi-title.pdf -graphics/ve-contents.pdf -graphics/ve-title.pdf -sample-handout.bib -sample-handout.pdf -sample-handout.tex -tufte-handout.cls -sample-book.pdf -sample-book.tex -tufte-book.cls -tufte-common.def diff --git a/Master/texmf-dist/doc/latex/tufte-latex/README b/Master/texmf-dist/doc/latex/tufte-latex/README.txt index 99640e6231e..99640e6231e 100644 --- a/Master/texmf-dist/doc/latex/tufte-latex/README +++ b/Master/texmf-dist/doc/latex/tufte-latex/README.txt diff --git a/Master/texmf-dist/doc/latex/tufte-latex/graphics/hilbertrecursive.tex b/Master/texmf-dist/doc/latex/tufte-latex/graphics/hilbertrecursive.tex new file mode 100644 index 00000000000..dc30ec12893 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tufte-latex/graphics/hilbertrecursive.tex @@ -0,0 +1,72 @@ +% Draw Hilbert curves. +% Credits: Based on code by Marc van Dongen +% See: http://www.fauskes.net/pgftikzexamples/hilbert-curve/ +\title{Hilbert Curves} +\author{} +\date{} + +\documentclass{tufte-handout} + +\usepackage{tikz} + +\usepackage[active,tightpage]{preview} +\PreviewEnvironment{tikzpicture} +\usetikzlibrary{positioning} + +\begin{document} + +\newdimen\HilbertLastX +\newdimen\HilbertLastY +\newcounter{HilbertOrder} + +\def\DrawToNext#1#2{% + \advance \HilbertLastX by #1 + \advance \HilbertLastY by #2 + \pgfpathlineto{\pgfqpoint{\HilbertLastX}{\HilbertLastY}} + % Alternative implementation using plot streams: + % \pgfplotstreampoint{\pgfqpoint{\HilbertLastX}{\HilbertLastY}} +} + +% \Hilbert[right_x,right_y,left_x,left_x,up_x,up_y,down_x,down_y] +\def\Hilbert[#1,#2,#3,#4,#5,#6,#7,#8] { + \ifnum\value{HilbertOrder} > 0% + \addtocounter{HilbertOrder}{-1} + \Hilbert[#5,#6,#7,#8,#1,#2,#3,#4] + \DrawToNext {#1} {#2} + \Hilbert[#1,#2,#3,#4,#5,#6,#7,#8] + \DrawToNext {#5} {#6} + \Hilbert[#1,#2,#3,#4,#5,#6,#7,#8] + \DrawToNext {#3} {#4} + \Hilbert[#7,#8,#5,#6,#3,#4,#1,#2] + \addtocounter{HilbertOrder}{1} + \fi +} + + +% \hilbert((x,y),order) +\def\hilbert((#1,#2),#3){% + \advance \HilbertLastX by #1 + \advance \HilbertLastY by #2 + \pgfpathmoveto{\pgfqpoint{\HilbertLastX}{\HilbertLastY}} + % Alternative implementation using plot streams: + % \pgfplothandlerlineto + % \pgfplotstreamstart + % \pgfplotstreampoint{\pgfqpoint{\HilbertLastX}{\HilbertLastY}} + \setcounter{HilbertOrder}{#3} + \Hilbert[1mm,0mm,-1mm,0mm,0mm,1mm,0mm,-1mm] + \pgfusepath{stroke}% +} + +\def\scalefac{1} +\maketitle + +\begin{figure}[h!] +\begin{tikzpicture}[node distance=0cm,every path/.style={thin}] + \node[label={above:$n=1$}] (n1) {\tikz[scale=\scalefac*18] \hilbert((0mm,0mm),1);}; + \node[label={above:$n=2$},right=of n1] (n2) {\tikz[scale=\scalefac*6] \hilbert((0mm,0mm),2);}; + \node[label={above:$n=3$},right=of n2] (n3) {\tikz[scale=\scalefac*2.6] \hilbert((0mm,0mm),3);}; + \node[label={above:$n=4$},right=of n3] (n4) {\tikz[scale=\scalefac*1.2] \hilbert((0mm,0mm),4);}; + \node[label={above:$n=5$},right=of n4] (n5) {\tikz[scale=\scalefac*0.58] \hilbert((0mm,0mm),5);}; +\end{tikzpicture} +\end{figure} +\end{document} diff --git a/Master/texmf-dist/doc/latex/tufte-latex/graphics/sine2.asy b/Master/texmf-dist/doc/latex/tufte-latex/graphics/sine2.asy new file mode 100644 index 00000000000..a8a79f53dc2 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tufte-latex/graphics/sine2.asy @@ -0,0 +1,24 @@ +import graph; + +usepackage("palatino"); +usepackage("mathpazo"); + +size(7inches,3inches); +scale(true); + +real f(real x) { return sin(x); } +pair F(real x) { return (x, f(x)); } + +real g(real x) { return sin(2x); } +pair G(real x) { return (x, g(x)); } + +real h(real x) { return sin(0.5x); } +pair H(real x) { return (x, h(x)); } + +xaxis("$x$"); +yaxis("$y$"); + +draw(graph(f,-10.,10,operator ..), red); +draw(graph(g,-10.,10,operator ..), blue); +draw(graph(h,-10.,10,operator ..), green); + diff --git a/Master/texmf-dist/doc/latex/tufte-latex/graphics/sine2.pdf b/Master/texmf-dist/doc/latex/tufte-latex/graphics/sine2.pdf Binary files differnew file mode 100644 index 00000000000..6ff0936ff93 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tufte-latex/graphics/sine2.pdf |