s*****g 发帖数: 5159 | 1 Say I have drawn a cube
%%%%%
\begin{pspicture}(0,0)(12,3)
\psframe[linestyle=none,%
fillstyle=solid,%
fillcolor=Apricot]%
(0,0)(2,2)
\pspolygon[linestyle=none,%
fillstyle=solid,%
fillcolor=Tan]%
(0,2)(2,2)(3,3)(1,3)
\pspolygon[linestyle=none,%
fillstyle=solid,%
fillcolor=Mahogany]%
(2,0)(3,1)(3,3)(2,2)
\end{pspicture}
%%%%%
with starts at (0,0) and has a upper right corner of (3,3).
I wish to draw another two cubes looks the same at (4,0) (7,3) and (8,0) (11
,3).
Is there a way for me to use th |
|
S**I 发帖数: 15689 | 2 \def\myCube{
\psframe[linestyle=none,%
fillstyle=solid,%
fillcolor=Apricot]%
(0,0)(2,2)
\pspolygon[linestyle=none,%
fillstyle=solid,%
fillcolor=Tan]%
(0,2)(2,2)(3,3)(1,3)
\pspolygon[linestyle=none,%
fillstyle=solid,%
fillcolor=Mahogany]%
(2,0)(3,1)(3,3)(2,2)
}
\begin{pspicture}(0,0)(12,3)
\rput(0,0){\myCube}
\rput(4,0){\myCube}
\rput(8,0){\myCube}
\end{pspicture}
11
SAME |
|
G********t 发帖数: 334 | 3 \documentclass[clock]{slides}
%\usepackage{float}
\usepackage[dvips]{color, graphicx}
\usepackage{pstricks,pst-node,pst-coil,pst-grad}
\begin{document}
\begin{slide}
\textbf{Vibrations of the Linear Symmetric Triatomic Molecule}
\begin{itemize}
\item Symmetric Stretch
\begin{pspicture}(-.5, -.5)%(1, 1)
\cnode[fillstyle=solid,fillcolor=gray](-2.7,-1.5){.3}{A}
\cnode[fillstyle=solid,fillcolor=gray](.0,-1.5){.3}{B}
\cnode[fillstyle=solid,fillcolor=gray](2.7,-1.5){.3}{C}
\nccoil[ |
|