4

Although I have ~10 years of LaTeX experience, I never needed any drawings.

I'm trying to make this drawing, TikZ definitely seems like the only way, but I'm really in a hurry and I just can't figure out how to do the 2 circles in different planes, half-dashed.

this

This is the closest I've got so far.

3
  • 3
    Welcome. Can you please post your code so that we can fix it right away over that?
    – percusse
    Commented Jun 13, 2015 at 11:13
  • This is how I typically draw the half-dashed circle: \draw[dashed] (00) arc [start angle=0,end angle=180,x radius=3cm, y radius=1cm]; \draw (0,0) arc [start angle=0,end angle=-180,x radius=3cm, y radius=1cm];
    – jak123
    Commented Jun 13, 2015 at 11:48
  • 1
    TikZ is definitely not the only way to produce drawings for LaTeX. If you are in a hurry, then drawing by hand and scanning the result into something you can include with \includegraphics might be easiest. Or drawing it with an interactive tool, like Geogebra. I would only start with TikZ if you have plenty of time to read the excellent manual and learn it. For 3D drawings you could also consider Asymptote, or pstricks. Metapost could also draw your sketch quite nicely since it is fairly simple.
    – Thruston
    Commented Jun 13, 2015 at 11:51

2 Answers 2

3

You could try something like this:

\draw (3,0) arc[x radius=3, y radius=1, start angle=0, end angle=-180];
\draw [dashed] (3,0) arc[x radius=3, y radius=1, start angle=0, end angle=180];

which provides:

enter image description here

Change the distances (x radius, y radius, etc.) depending on your drawing. Note that (3,0) is not the center of the arc, but it is the point the arc starts to be drawn.

2
  • That's great! But is there an easy way to pick the plane in which the circle is drawn when you're in a 3-dimensional space?
    – H3llShadow
    Commented Jun 13, 2015 at 12:37
  • @H3llShadow There might be, but I don't know it. Sorry. Maybe you can find something here: tex.stackexchange.com/questions/32077/…. Good luck!!
    – Manu
    Commented Jun 13, 2015 at 12:48
1

A PSTricks solution:

\documentclass{article}

\usepackage{pstricks-add}

\def\circlecut[#1](#2,#3)#4{%
  \psellipticarc(#2,#3)(#2,0.3){180}{0}
  \psellipticarc[linestyle = dotted](#2,#3)(#2,0.3){0}{180}
  \psdot(#2,#3)
  \uput{0.07}[#1](#2,#3){\scriptsize #4}%
}

\begin{document}

\begin{pspicture}[dimen = m](-0.45,-0.3)(2.45,5.3) % boundry found manually
  \psframe(0,0)(2,3.5)
  \uput[180](0,3.5){$A$}
  \uput[0](2,3.5){$B$}
  \uput[0](2,0){$C$}
  \uput[180](0,0){$D$}
  \psline(0,3.5)(1,5)(2,3.5)
  \psdot(1,5)
  \uput[30](1,5){$V$}
  \circlecut[315](1,0){$O'$}
  \circlecut[45](1,3.5){$O$}
\end{pspicture}

\end{document}

output

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .