diff options
author | Karl Berry <karl@freefriends.org> | 2012-05-08 22:31:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-05-08 22:31:12 +0000 |
commit | b1a34aa4fa5786ec883f9a47338300a32d0ed40d (patch) | |
tree | 2111bbf609e703a25183e0e882160124856d0f17 /Master/texmf-dist/tex/latex/mwe/example-grid-100x100bp.tex | |
parent | 14412aa8b29db7924cc9a35cab477f0ba83681a3 (diff) |
new latex package mwe 0.2 (8may12)
git-svn-id: svn://tug.org/texlive/trunk@26257 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mwe/example-grid-100x100bp.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/mwe/example-grid-100x100bp.tex | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/mwe/example-grid-100x100bp.tex b/Master/texmf-dist/tex/latex/mwe/example-grid-100x100bp.tex new file mode 100644 index 00000000000..5a6ec30082d --- /dev/null +++ b/Master/texmf-dist/tex/latex/mwe/example-grid-100x100bp.tex @@ -0,0 +1,17 @@ +\tikzset{unit/.code={\unit=\dimexpr#1\relax}}% +\tikzset{xy/.style={x={#1},y={#1},unit={#1},font={\sffamily\fontsize{.2\unit}{.24\unit}\selectfont},line width=.01\unit}}% +\begin{tikzpicture}[xy=10bp]% + \path [use as bounding box] (0,0) rectangle (10,10); + \foreach \x in {5,...,1} { + \path [fill=blue!\the\numexpr\x*20\relax!red] (5-\x,5-\x) rectangle (5+\x,5+\x); + } + \path [draw] (0,0) rectangle (10,10); + \foreach \x in {0,...,10} { + \path [draw] (\x,0) rectangle (\x,10); + \path [draw] (0,\x) rectangle (10,\x); + } + \foreach \y in {0,...,9} + \foreach \x in {0,...,9} { + \path (\x+.5,\y+.5) node {\x,\y}; + } +\end{tikzpicture}% |