From 59dd623790d8f70db0a340c71f9c27a2e3903b0c Mon Sep 17 00:00:00 2001
From: Xu Yuan <xu@informatik.hu-berlin.de>
Date: Sat, 1 Oct 2011 12:56:51 +0200
Subject: pos and radius

---
 dev/pgf-pie-manual.tex | 44 ++++++++++++++++++++++++++++----------------
 1 file changed, 28 insertions(+), 16 deletions(-)

(limited to 'dev/pgf-pie-manual.tex')

diff --git a/dev/pgf-pie-manual.tex b/dev/pgf-pie-manual.tex
index 12e91d2..85f07d1 100644
--- a/dev/pgf-pie-manual.tex
+++ b/dev/pgf-pie-manual.tex
@@ -37,27 +37,33 @@ keywordstyle=\color{blue}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \newcommand{\demo}[2][1]{
-\begin{minipage}{.49\linewidth}
-\centering
-\resizebox{#1\linewidth}{!}{
-\input{demo/#2}
-}
-\end{minipage}
-\hspace{0.01\linewidth}
-\begin{minipage}{.5\linewidth}
-\lstinputlisting{demo/#2}
-\end{minipage}
+  \begin{center}
+  \begin{tabular}{cc}
+    \begin{minipage}{.49\linewidth}
+      \centering
+      \resizebox{#1\linewidth}{!}{
+        \input{demo/#2}
+      }
+    \end{minipage}
+    &
+    \begin{minipage}{.45\linewidth}
+      \lstinputlisting{demo/#2}
+    \end{minipage}
+  \end{tabular}
+  \end{center}
 }
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\newcommand{\example}[1]{
-\resizebox{\linewidth}{!}{
-\input{demo/#1}
-}
-\lstinputlisting{demo/#1}
+\newcommand{\example}[2][1]{
+  \begin{center}  
+    \resizebox{#1\linewidth}{!}{
+      \input{demo/#2}
+    }
+  \end{center}
+  \lstinputlisting{demo/#2}
 }
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
 
 \begin{document}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -89,6 +95,12 @@ keywordstyle=\color{blue}
 \subsection{Color}
 \demo[0.6]{color}
 
+\subsection{Radius, Position}
+The size of chart can be set by \texttt{radius}, default is 3. The
+center of chart can be set by \texttt{pos}, default is \texttt{\{0,0\}}.
+
+\demo{radius}
+
 \section{Examples}
 
 
-- 
cgit v1.2.3

