Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Well I have a problem matching line end with its coordinate. Here's the code:

\documentclass{article}
\begin{document}

\begin{figure}[h]
\centering
\begin{picture}(260,210)

\put(0,32){\line(1,0){260}}%
\put(0,32){\circle{2} }%
\put(260,32){ \circle{2} }%

\end{picture}
\label{fig:01}
\end{figure}

\end{document}

As you can see the second circle isn't placed at the end of a line despite their coordinates should match. Code is pretty simple yet I can't find the reason why the circle and the line are shifted.

share|improve this question
    
You have a space before the second \circle and this space you should remove. –  Przemysław Scherwentke Dec 20 '13 at 16:15
    
Welcome to TeX.sx! –  Przemysław Scherwentke Dec 20 '13 at 16:17
    
Thank you so much! I can't belive it was so simple :D –  Arthur Dec 20 '13 at 16:23

1 Answer 1


do not use spaces in the argument of \put:

\begin{picture}(260,210)
\put(0,32){\line(1,0){260}}
\put(0,32){\circle{2}}
\put(260,32){\circle{2}}
\end{picture}

And, by the way, using package pict2e makes sense.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.