localghost wrote:Rely on packages like
pgf/tikZ or
PSTricks for such sketches. Instead of scaling down the text you better scale up the graphical elements.
From the descriptions at Wikibooks, it looked like
pgf/tikZ would serve my purposes. I read a tutorial on it. Thanks for the info.
localghost wrote:As soon as the problem is sorted out, please act exactly according to Section 3 of the Board Rules (can be found on top of each forum in the »Announcements« section).
Well, there isn't really a 'solution', per se, to this problem. I was referred to a different environment and as soon as I perfect it, I'll have the 'solution'.
However, here is what I came up with. It just barely looks good enough and it's not scaleable (though I'm sure it could have been drawn better). I would also have preferred to create a single spring, and a single mass, which I could then deposit wherever I wanted, but I did not see anything which allowed that in the documentation. But it's done now, and it will have to do:
Code: Select all
\documentclass[11pt,fleqn,reqno]{amsart}
\usepackage{amssymb} %amsthm,amsmath included in amsart documentclass
\usepackage{tikz}
\begin{document}
\begin{center}
\begin{tikzpicture}
% \draw[step=0.25cm,color=gray] (-1,-1) grid (1,1);
% \draw [->] (-1.5,0) -- (1.5,0) node [below] {$x$};
% \draw [->] (0,-1.5) -- (0,1.5) node [left] {$y$};
% Left wall
\draw[very thick] (0,-.5) -- (0,.5);
% First two springs and masses
\foreach \x in {0,1} {
\draw (\x*1.8+0,0) -- (\x*1.8+.25,0);
\draw (\x*1.8+.375,-.0125) ellipse (1.25mm and 1.25mm)
(\x*1.8+.500,-.0125) node [above,outer sep=2pt,name=s\x] {$s_\x$} ellipse (1.25mm and 1.25mm)
(\x*1.8+.625,-.0125) ellipse (1.25mm and 1.25mm);
\draw (\x*1.8+.75,0) -- (\x*1.8+1,0);
\draw (\x*1.8+1,0) node[draw,rectangle,name=m\x,anchor=west] {$m_\x$};
}
\draw (2*1.8+0,0) -- (2*1.8+.25,0);
% Ellipses
\foreach \i in {0,...,2} {
\path (4+\i*.1,0) coordinate (X\i);
\fill (X\i) circle (1pt);
}
% Last, n-th spring and mass.
\foreach \x in {4.35} {
\draw (\x+0,0) -- (\x+.25,0);
\draw (\x+.375,-.0125) ellipse (1.25mm and 1.25mm)
(\x+.500,-.0125) node [above,outer sep=2pt,name=sn] {$s_n$} ellipse (1.25mm and 1.25mm)
(\x+.625,-.0125) ellipse (1.25mm and 1.25mm);
\draw (\x+.75,0) -- (\x+1,0);
\draw (\x+1,0) node[draw,rectangle,name=mn,anchor=west] {$m_n$};
}
% Very last spring.
\draw (4.35+1.8,0) -- (4.35+1.8+.25,0);
\draw (4.35+1.8+.25+.125,-.0125) ellipse (1.25mm and 1.25mm)
(4.35+1.8+.25+.250,-.0125) node [above,outer sep=2pt,name=sn1] {$s_{n+1}$} ellipse (1.25mm and 1.25mm)
(4.35+1.8+.25+.375,-.0125) ellipse (1.25mm and 1.25mm);
\draw (4.35+1.8+.25+.5,0) -- (4.35+1.8+.25+.5+.25,0);
% Right wall
\draw[very thick] (7.15,-.5) -- (7.15,.5);
% The original spring and mass.
% \draw (0,0) -- (.25,0);
% \draw (.375,-.0125) ellipse (1.25mm and 1.25mm)
% (.500,-.0125) node [above,outer sep=2pt,name=s0] {$s_0$} ellipse (1.25mm and 1.25mm)
% (.625,-.0125) ellipse (1.25mm and 1.25mm);
%
% \draw (.75,0) -- (1,0);
%% \draw (1,-.25) rectangle (2,.25) (1.5,0) node [name=m0] {$m_0$};
% \draw (1,0) node[draw,rectangle,name=m0,anchor=west] {$m_0$};
\end{tikzpicture}
\end{center}
\end{document}
P.S. How do I easily include the above document in my main text? I tried using \input{graphic}, but that required that I strip the preamble from the graphic.tex.