\curve of curves.sty
- From: "David94705" <dpra@xxxxxxxxx>
- Date: 15 Apr 2007 08:36:29 -0700
I have the following problem with \curve of curves.sty: the line
segments that I give to the \curve macro are nicely created except
that they often extend beyond my given x lower boundary. Some times
they also extend beyond my given x upper boundary too. This seems to
be the case, or at least it is most noticeable, for shorter line
segments (2-20mm). I am using MiKTeX and WinEdt. Notice these are
straight lines (no quadratic term).
All I want is go generate a number of standard geometric forms and
need more than the 6 slopes standard LaTeX provides (also it seems
that even those slopes must be of a certain minimum length to actually
appear in the dvi, see below example).
I would be happy for any suggestions on how to make \curve keep to its
given boundaries or how to (easily) generate non-standard slope
(short) straight lines
Below is an example:
\newcommand{\myHex}[2]{
\put(-#2,-#1){\line(1,0){#1}\line(1,1){#1}}
\put(-#2,#1){\line(1,0){#1}\line(1,-1){#1}}
\put(-#1,0){%
\put(-#2,0){\line(1, 1){#1}}%
\put(-#2,0){\line(1,-1){#1}}%
}
}
\begin{figure}
\begin{center}
\setlength{\unitlength}{1mm}
\begin{picture}(120,140)(-60,-70)\large\sf%
\thinlines
\put(-40,0){\myHex {10}{5}}
\put(-40,0){\myHex {5}{2.5}}
\put(30,-50){\line(0,1){100}}
\put(-40,0){\myHex {2}{1}}
\put(50,-50){\line(0,1){100}}
\put(30, 0){\curve(0,0, 1,1, 20,20)}
\put(30,-10){\curve(0,0, 2,2, 20,20)}
\put(30,-15){\curve(0,0, 10,10, 20,20)}
\put(30,-20){\curve(0,0, 3,3, 20,20)}
\put(30,-30){\curve(0,0, 4,4, 20,20)}
\end{picture}
\end{center}
\end{figure}
Thanks for any advice or suggestions, David.
.
- Prev by Date: Re: Problems with yap and coloured (colored) text
- Next by Date: Re: tex4ht, accent \r{u} and jsmath
- Previous by thread: [comp.text.tex] (La)TeX FAQs and answers: links and pointers
- Next by thread: changing how labels are referenced in LaTeX
- Index(es):
Relevant Pages
|