我试图在两个标签之间画一个箭头,但即使在“XY-pic 用户指南”中的这个例子中,我也没有得到正常的图表。
\xymatrix{ A \ar[r] ^a="a" & B \ar[r] ^b="b" & C \ar @/^/ "a";"b" }
以下是我的开场白。如果信息没有用,我很抱歉,但我不知道哪些是相关的,哪些不是,而且我必须说我不太懂电脑!!
\documentclass[10pt]{article}
\usepackage[latin1]{inputenc}
\usepackage[french]{babel}
\usepackage{graphicx}
%\usepackage{wrapfig}
\usepackage[margin=2cm]{geometry}
\usepackage{enumitem} % Change [leftmargin=*]
\usepackage{amsmath,amssymb}
%\usepackage{fourier}
\usepackage{comment}
\usepackage{eurosym}
\usepackage{wasysym} % Smiley!!!
\usepackage{tikz}
\usepackage[all]{xy}
\usepackage{xcolor}
\usepackage{hyperref} % comme pour les equations, utilise \label et \hyperref[key]{text}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=blue,
urlcolor=black
}
\usepackage{xcolor}
\definecolor{jaunevert}{RGB}{185,185,0}
\definecolor{bleufonce}{RGB}{0,25,70}
\definecolor{vertfonce}{RGB}{30,44,37}
\definecolor{vert}{RGB}{34,139,34}
\definecolor{marron}{RGB}{55,15,0}
\usepackage{tikz} % draw geometric figures, \begin{tikzpicture}; place after xcolor because conficts
\usetikzlibrary{arrows,patterns,decorations.pathreplacing,decorations.markings,shapes.misc} % for arrowhead style ; markings pour contour integrals, croix
\tikzset{cross/.style={cross out, draw=black, minimum size=2*(#1-\pgflinewidth), inner sep=0pt, outer sep=0pt},
%default radius will be 1pt.
cross/.default={1pt}}
\newcommand{\ligne}{
\noindent\makebox[\linewidth]{\rule{\textwidth}{0.4pt}}
}
\providecommand{\abs}[1]{\left\lvert#1\right\rvert}
\providecommand{\norm}[1]{\left\lVert#1\right\rVert}
\newcommand{\Crochet}[2][0.7\baselineskip]{\left\lbrace \rule{0mm}{#1} #2 \right\rbrace}
\newcommand{\Klammer}[2][0.7\baselineskip]{\left( \rule{0mm}{#1} #2 \right)}
\newcommand{\Paar}[2][0.7\baselineskip]{\left\langle \rule{0mm}{#1} #2 \right\rangle}
\newcommand{\bracket}[1]{\left[ #1 \right]}
\usepackage{amsthm} % for \newtheorem
\theoremstyle{plain} % "definition" no italic
\newtheorem{definition}{Definition}[section]
\newtheorem{lem}[definition]{Lemma} % [definition] means same labelling as definition
\newtheorem{coro}[definition]{Corollary}
\newtheorem{prop}[definition]{Property}
\newtheorem{propos}[definition]{Proposition}
\newtheorem{thm}[definition]{Theorem}
\newenvironment{Rem}{\refstepcounter{definition} \par\vspace{0.3\baselineskip} \noindent \textit{Remarque \thedefinition :} }{\par\vspace{0.5\baselineskip}}% \newenvironment{name}{before text} text {after}
\newenvironment{Rems}{\refstepcounter{definition} \par\vspace{0.5\baselineskip}\noindent\textit{Remarques \thedefinition :} \begin{enumerate}[wide]\setlength{\itemindent}{.15in}}{\end{enumerate}}
\newenvironment{rem}{\refstepcounter{definition} \par\vspace{0.3\baselineskip}\noindent\color{bleufonce}\begin{small}\textit{Remarque \thedefinition :} }{\end{small}\par\vspace{0.5\baselineskip}}% \newenvironment{name}{before text} text {after}
\newenvironment{rems}{\refstepcounter{definition} \par\vspace{0.5\baselineskip}\noindent\color{bleufonce}\begin{small}\textit{Remarques \thedefinition :} \begin{enumerate}[wide]\setlength{\itemindent}{5pt}}{\end{enumerate} \end{small}}
\let\proofOld\proof % comme pour commandes!!
\renewenvironment{proof}{\begin{small}\color{marron}\begin{proofOld}}{\qed\end{proofOld}\end{small}\par\vspace{0.5\baselineskip}}
答案1
问题是 是 的;
简写babel-french
。
我还建议如何使用绘制图表tikz-cd
,我发现它更简单并且与 Xy-pic 一样强大(如果不是更强大的话)。
\documentclass{article}
\usepackage[french]{babel}
\usepackage[all,cmtip]{xy}
\usepackage{tikz-cd}
\usetikzlibrary{babel}
\begin{document}
\[\shorthandoff{;}
\xymatrix{ A \ar[r] ^a="a" & B \ar[r] ^b="b" & C \ar @/^/ "a";"b" }
\]
\[
\begin{tikzcd}
A \arrow[r,"a"{name=a}] & B \arrow[r,"b"{name=b}] & C
\arrow[from=a,to=b,bend left]
\end{tikzcd}
\]
\end{document}