diff options
author | Xu Yuan <xu@informatik.hu-berlin.de> | 2011-10-01 12:56:51 +0200 |
---|---|---|
committer | Xu Yuan <xu@informatik.hu-berlin.de> | 2011-10-01 12:56:51 +0200 |
commit | 59dd623790d8f70db0a340c71f9c27a2e3903b0c (patch) | |
tree | dae49e5e58d75659092b51d63bb848e1ade5ce32 /dev/pgf-pie-manual.tex | |
parent | eff2b05e919c9c439ae5fe503c45029146a082b4 (diff) | |
download | pgf-pie-59dd623790d8f70db0a340c71f9c27a2e3903b0c.tar.gz pgf-pie-59dd623790d8f70db0a340c71f9c27a2e3903b0c.tar.bz2 pgf-pie-59dd623790d8f70db0a340c71f9c27a2e3903b0c.zip |
pos and radius
Diffstat (limited to 'dev/pgf-pie-manual.tex')
-rw-r--r-- | dev/pgf-pie-manual.tex | 44 |
1 files changed, 28 insertions, 16 deletions
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} |