看板LaTeX
标 题Re: [问题] \picture中 上色後图却偏掉
发信站(null) (Sat Apr 13 11:19:58 2013)
转信站ptt!news.ntu!ctuews.n!news.nctu!stanfordtanford.edu!ca1no43535562qab.0
If I may, PGF/TikZ by Till Tantau (Google search for its manuals) is very powerful and prevails in TeX community. The following code is an attempt based on your question.
\documentclass{beamer} % LaTeX classes also work
\usetheme{Warsaw} % for beamer only
\usepackage{tikz} % you need this package, a must
\begin{document}
\begin{frame} % for beamer only
\begin{center}
\begin{tikzpicture} % begin of tikzpicture
\foreach \t/\x/\y in {1/18/1.5, 2/90/1.5, 3/162/1.5, 4/234/1.5, 5/306/1.5}
{\node (\t) at (\x:\y) {\textbullet};}
\foreach \from/\to in {1/2,2/3,3/4,4/5,5/1}
{\draw[->,color=red] (\from)--(\to);}
\end{tikzpicture} % end of tikzpicture
\end{center}
\end{frame} % for beamer only
\end{document}