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.

I'd like to cut the line AC at the point p by a perpendicular line.

\documentclass{article}
\usepackage{xypic}
\begin{document}
\xymatrix{
& B\ar @{-}[d] &\\
A\ar @{-}[rr]_{P} &  & C
  }
\end{document}
share|improve this question
3  
@MdKutubuddinSardar: Why don't you react to any of the comments? –  Jake Mar 22 '13 at 14:24
8  
Please, at least have the decency to upvote and accept answers to your questions. –  Jake Mar 22 '13 at 14:30
add comment

1 Answer

To extend the vertical line down to the line AC, use the arrow adjustment facility placing +0{} after the arrow. By default the arrow stops short of the center of the node, this adjustment makes it stop distance 0 from the center instead.

Sample output

\documentclass{article}

\usepackage{xypic}

\begin{document}
Adjusted:
\xymatrix{
& B\ar @{-}[d]+0{} &\\
A\ar @{-}[rr]_{P} &  & C
  }

Unadjusted:
\xymatrix{
& B\ar @{-}[d] &\\
A\ar @{-}[rr]_{P} &  & C
  }

\end{document}

Such adjustments are described in Section 2.6 of the xypic User guide with something like this set as an exercise.

share|improve this answer
    
Thank you for your answer. –  Md Kutubuddin Sardar Mar 22 '13 at 16:41
add comment

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.