3

Here is my original code :

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{
    amsmath,amssymb, 
}
\usepackage{graphicx}
\usepackage[% xypic
    all,pdf,cmtip,color
]{xy} % xypic
\usepackage[dvipsnames]{xcolor}
% ---------------------------------------------------------
\begin{document}
\(\begin{xy}<1.5cm,0cm>:
(0,0)*{\textsf{Water Tank}};
(0,0)*=<4cm,2cm>[F-]{}*\frm{(}*\frm{)};
% cold water
{(+2  ,-1.5) \PATH ~={**@{=}} ~>{|>*{\NoTips\dir{>}}} `l 
 (+1  ,-1.5) *!U(1.5){\textsf{\color{blue}cold water}}
 (+1  ,-0.5)};
% hot  water
{(-1  ,-0.5) \PATH ~={**@{=}} ~>{|>*{\NoTips\dir{>}}} `d
 (-1  ,-1.5)*!U(1.5){\color{red}\underset{\textsf{(to faucet)}}{\textsf{hot water}}}
 (-2  ,-1.5)}
\end{xy}\)
\end{document}

And it produces this :

enter image description here

how to make the turn area double line , and how to change the color of the arrow ? would you mind explaining the Figure 14 of page 39 of the xyrefer.pdf ? That would be helpful : )

Chen_zy
  • 31
  • 2
  • 1
    There is a related question from six years ago https://tex.stackexchange.com/questions/334347/bending-arrows-around-entries-and-double-arrow-style-variant-with-xy-pic with a comment that this is probably not supported. You could try to draw a double curve manually as a part-circle of ellipse, as in page 60 of xyrefer.pdf. – Marijn Dec 25 '22 at 15:59
  • I see... and thank you for your suggestion : ) – Chen_zy Dec 25 '22 at 16:53

0 Answers0