summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tikz-qtree/test.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/tikz-qtree/test.tex')
-rw-r--r--Master/texmf-dist/doc/latex/tikz-qtree/test.tex45
1 files changed, 45 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/tikz-qtree/test.tex b/Master/texmf-dist/doc/latex/tikz-qtree/test.tex
new file mode 100644
index 00000000000..77220a844db
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tikz-qtree/test.tex
@@ -0,0 +1,45 @@
+\documentclass{article}
+
+\usepackage{tikz,tikz-qtree}
+\usepackage{pgf,pgfsubpic}
+
+\begin{document}
+
+\fbox{%
+\begin{pgfpicture}
+\pgfnode{rectangle}{center}{Hello}{hellonode}{\pgfusepath{stroke}}
+\begin{pgfsubpicture}
+\pgfpathcircle{\pgfpointorigin}{4pt}\pgfusepath{stroke}
+\pgfnode{rectangle}{center}{there}{therenode}{\pgfusepath{stroke}}
+\end{pgfsubpicture}
+\pgftransformshift{\pgfpoint{1in}{-1in}}
+\pgftransformscale{2}
+\pgftransformrotate{45}
+\pgfpathcircle{\pgfpointorigin}{2pt}\pgfusepath{fill}
+\pgfplacesubpicture
+
+\pgfmoveto{\pgfpointanchor{hellonode}{south}}
+\pgflineto{\pgfpointanchor{therenode}{north}}
+\pgfusepath{stroke}
+
+\end{pgfpicture}%
+}
+
+\begin{tikzpicture}
+\begin{pgfscope}
+\begin{pgfsubpicture}
+\draw (-1in,0)--(2in,0)--(2in,2in)--(0,2in)--cycle;
+\end{pgfsubpicture}
+\pgffitsubpicture{\pgfpointorigin}{\pgfpoint{1in}{1in}}
+\pgfplacesubpicture
+\end{pgfscope}
+
+\draw (0,0)--(1in,0)--(1in,1in)--(0,1in)--cycle;
+
+
+\end{tikzpicture}
+
+
+
+
+\end{document}