1

I have little knowledge about the package xypic.

I am stuck with the following problems:

  1. I cannot able drow a circle with radius BC, centered at C.
  2. I want to draw the five dots on the line.
  3. For better looking I want to draw the points 2, 1, 0, -1 and -2 as well as A, B, C, D and E out side the line.

Here is my effort:

\documentclass{article}
\usepackage{xypic}
\begin{document}
\xymatrix{
\ar[dddddd] \\
.2 & & & & &\\
.1 & & &D & & \\
.0 \ar[r]^p & \ar[rrrr] &A  & C &B &\\
.-1& & &E \\
.-2 & & &\ar[uuuu]\\
\ar[uuuuuu]
}
\end{document}
David Carlisle
  • 757,742
  • Could you post a picture of how the output should look like? I have the feeling that this is less a commutative diagram and more a general diagram that can also been drawn using PSTricks or TikZ (or …). – Qrrbrbirlbel Mar 26 '13 at 06:53
  • Actually i don't know how to post picture.Please tell me the way. Then I shall try to post picture. – Md Kutubuddin Sardar Mar 26 '13 at 13:40

1 Answers1

1

With PSTricks.

enter image description here

\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-eucl}
\begin{document}
\begin{pspicture}(-2.25,-1.25)(2.25,1.25)
    \pstGeonode[PosAngle=-135]
        (-2,0){E}
        (-1,0){D}
        (0,0){C}
        (1,0){B}
        (2,0){A}
    \pstLineAB{E}{A}
    \pstCircleOA{C}{B}
\end{pspicture}
\end{document}