\documentclass[12pt,twoside]{book}
\usepackage{amsthm,amssymb,amsmath}
\usepackage{xcolor}
\linespread{1.3}
%\usepackage{breqn}
%\usepackage{fancybox}

\usepackage{tikz}

\usepackage{fancyhdr}
\usepackage{amsfonts}
\usepackage{pstricks,pst-plot}
%\newgray{verylightgray}{0.82}7
\usepackage{enumerate}
%\usepackage{soul}
%\usepackage{fourier}
\usepackage{makeidx}

%\def\proofname{برهان}
\makeindex
%\usepackage{amsmath,amsthm}
%\usepackage{amssymb}
%\usepackage{times,mathptm}
%\usepackage{showkeys}
%\usepackage{xepersian}
%\usepackage{persianpoem}
\usepackage{xepersian}
\settextfont{XB Zar}%Adobe Arabic}%XB Kayhan}
\setlatintextfont{Times New Roman}%Adobe Arabic}%XB Kayhan}
\setdigitfont{XB Zar}

%\textheight 7in \textwidth 4.75in \linespread{1.3}

\newtheorem{theorem}{قضیه}[chapter]
\newtheorem{lemma}{لم}[chapter]
\newtheorem{prop}{گزاره}[chapter]
\newtheorem{corollary}{نتیجه}[chapter]
%\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{Def}{ تعریف}[chapter]
\theoremstyle{definition}
\newtheorem{remark}{توجه}[chapter]
\newtheorem{example}{مثال}[chapter]

%\numberwithin{theorem}{section}

\newcommand{\dd}{ { \mathrm{d}} }
\newcommand{\ee}{ { \mathrm{e}} }
\newcommand{\bx}{ { \mathbf{x}} }
%\newcommand{\b0}{ { \mathbf{0}} }
%\newcommand{\bu}{ { \mathbf{u}} }
\newcommand{\bn}{ { \mathrm{n}} }
\newcommand{\bb}{ { \mathbf{b}} }
\newcommand{\bA}{ { \mathbf{A}} }
\newcommand{\bu}{ { \mathbf{u}} }
\newcommand{\bxi}{ { \mathbf{\xi}} }
\newcommand{\ii}{ { \mathrm{i}} }
\newcommand{\pt}{{ \partial}}
\newcommand{\cG}{{ \mathcal G}}
\newcommand{\cZ}{{ \mathcal Z}}
\newcommand{\cK}{{ \mathcal K}}
\newcommand{\cA}{{ \mathcal A}}
\newcommand{\cP}{{ \mathcal P}}
\newcommand{\cC}{{ \mathcal C}}
\newcommand{\cH}{{ \mathcal H}}
\newcommand{\cE}{{ \mathcal E}}
\newcommand{\cB}{{ \mathcal B}}
\newcommand{\cR}{{ \mathcal R}}
\newcommand{\cF}{{ \mathcal F}}
\newcommand{\cD}{{ \mathcal D}}
\newcommand{\cN}{{ \mathcal N}}
\newcommand{\cM}{{ \mathcal M}}
\newcommand{\IR}{{\mathbf R}}
\newcommand{\IC}{{ \mathbf C}}
\newcommand{\IQ}{{ \mathbf Q}}
\newcommand{\IN}{{\mathbf N}}
\newcommand{\IE}{{ \mathbf E}}
\newcommand{\IInt}{{ \textrm Int}}
\newcommand{\HS}{\mathrm{HS}}

\newcommand{\apre}{{ \textrm a priori}}
\newcommand{\apos}{{ \textrm a posteriori}}
\newcommand{\sti}{{ \textrm stiffness}}
\newcommand{\load}{{ \textrm load vector}}

\newcommand{\TR}{{ \mathbb R}}
\newcommand{\TC}{{ \mathbb C}}
\newcommand{\TF}{{ \mathbb F}}
\newcommand{\TN}{{ \mathbb N}}

\newcommand{\norm}[2][]{\|#2\|_{#1}}
\newcommand{\snorm}[2][]{|#2|_{#1}}
\newcommand{\Norm}[2][]{\Big\|#2\Big\|_{#1}}
\newcommand{\abs}[1]{|#1|}
\newcommand{\Abs}[1]{\Big|#1\Big|}
\newcommand{\inner}[3][]{\langle#2,#3\rangle_{#1}}
\newcommand{\Inner}[3][]{\Big\langle#2,#3\Big\rangle_{#1}}

\usepackage[all]{xy}

\DeclareMathOperator{\Tr}{Tr}
\DeclareMathOperator{\re}{Re}
\DeclareMathOperator{\im}{Im}
%\usepackage{pstricks}
%\usepackage{pst-func}
%\usepackage{pstricks-add}
%\usepackage{xepersian}
%\numberwithin{equation}{chapter}
%\usepackage{persianpoem,fmultico}
%\newfontinstance\farsifont[Script=Arabic,Scale=1,Mapping=parsidigits]{XB Zar}
%\newfontinstance\nastaliq[Script=Arabic,Scale=1,Mapping=parsidigits]{IranNastaliq}
%\setdigitfont[Scale=1.45, Mapping=parsidigits]{Linon}
\makeindex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\numberwithin{equation}{section}




%-----------------------------------------------------------------------------
\begin{document} 

\entrymodifiers={++[o][F-]}

\xymatrix{
A \ar[dr]_{f;g} \ar[r]^{f} & B \ar[d]^{g} \ar[dr]^{g;h}  \\
  & C \ar[r]_{h}& D
}

\end{document}

