这是我的原始代码:
\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}
它产生了这个:
如何使转弯区域变成双线,以及如何更改箭头的颜色?您介意解释一下第 39 页的图 14 吗xyrefer.pdf
?那会很有帮助 : )